union set of 2D regions
More...
#include <composite_region_2d.h>
|
|
| UnitedRegion2D () |
| | create empty region set
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2) |
| | construct with 2 regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3, const Region2D *r4) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3, const Region2D *r4, const Region2D *r5) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3, const Region2D *r4, const Region2D *r5, const Region2D *r6) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3, const Region2D *r4, const Region2D *r5, const Region2D *r6, const Region2D *r7) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| | UnitedRegion2D (const Region2D *r1, const Region2D *r2, const Region2D *r3, const Region2D *r4, const Region2D *r5, const Region2D *r6, const Region2D *r7, const Region2D *r8) |
| | construct with regions. all arguments must be a dynamically allocated object.
|
| UnitedRegion2D & | add (const Region2D *r) |
| | add new region.
|
| virtual double | area () const |
| | not implemented yet.
|
| virtual bool | contains (const Vector2D &point) const |
| | check if union region contains 'point'.
|
|
virtual | ~Region2D () |
| | virtual destructor.
|
|
|
| Region2D () |
| | accessible only from derived classes
|
◆ UnitedRegion2D() [1/7]
| rcsc::UnitedRegion2D::UnitedRegion2D |
( |
const Region2D * | r1, |
|
|
const Region2D * | r2 ) |
|
inline |
construct with 2 regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
◆ UnitedRegion2D() [2/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
◆ UnitedRegion2D() [3/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
| r4 | 4th region |
◆ UnitedRegion2D() [4/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
| r4 | 4th region |
| r5 | 5th region |
◆ UnitedRegion2D() [5/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
| r4 | 4th region |
| r5 | 5th region |
| r6 | 6th region |
◆ UnitedRegion2D() [6/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
| r4 | 4th region |
| r5 | 5th region |
| r6 | 6th region |
| r7 | 7th region |
◆ UnitedRegion2D() [7/7]
construct with regions. all arguments must be a dynamically allocated object.
- Parameters
-
| r1 | 1st region |
| r2 | 2nd region |
| r3 | 3rd region |
| r4 | 4th region |
| r5 | 5th region |
| r6 | 6th region |
| r7 | 7th region |
| r8 | 8th region |
◆ add()
add new region.
- Parameters
-
| r | new region, which must be a dynamically allocated object. |
- Returns
- reference to itself
◆ area()
| double rcsc::UnitedRegion2D::area |
( |
| ) |
const |
|
virtual |
◆ contains()
| bool rcsc::UnitedRegion2D::contains |
( |
const Vector2D & | point | ) |
const |
|
virtual |
check if union region contains 'point'.
- Parameters
-
- Returns
- true or false
Implements rcsc::Region2D.
The documentation for this class was generated from the following files: