This is a Box1d class, a specialized version of slip::Box<CoordType,DIM> with DIM = 1.
More...
|
std::string | name () const |
| Returns the name of the class. More...
|
|
CoordType | length () const |
| compute the length of the Box1d. More...
|
|
CoordType | width () const |
| compute the width of the Box1d. More...
|
|
bool | contains (const point_type &p) const |
| Returns true if the box contains the point p. More...
|
|
void | translate (const dpoint_type &dp) |
| Translate the window along the deplacement dp the dimensions of the window are conserved. More...
|
|
bool | is_consistent () const |
| verify if the window is consistent, that is to say if the first point p1 has the smaller coordinates than p2 More...
|
|
void | swap (self &other) |
| Swaps two Box. More...
|
|
|
| Box1d () |
| Constructs a Box3d. More...
|
|
| Box1d (const Point< CoordType, 1 > &p1, const Point< CoordType, 1 > &p2) |
| Constructs a Box1d from a CoordType array. More...
|
|
| Box1d (const CoordType &x1, const CoordType &x2) |
| Constructs a Box1d. More...
|
|
| Box1d (const Point< CoordType, 1 > &pc, const CoordType &w) |
| Constructs a plane Box1d using a central point and a width. More...
|
|
|
void | upper_left (const Point< CoordType, 1 > &p1) |
| Accessor/Mutator of the upper_left point (p1) of Box1d. More...
|
|
Point< CoordType, 1 > & | upper_left () |
| Accessor/Mutator of the upper_left point (p1) of Box1d. More...
|
|
const Point< CoordType, 1 > & | upper_left () const |
| Accessor/Mutator of the upper_left point (p1) of Box1d. More...
|
|
void | bottom_right (const Point< CoordType, 1 > &p2) |
| Accessor/Mutator of the bottom_right point (p2) of Box1d. More...
|
|
Point< CoordType, 1 > & | bottom_right () |
| Accessor/Mutator of the bottom_right point (p2) of Box1d. More...
|
|
const Point< CoordType, 1 > & | bottom_right () const |
| Accessor/Mutator of the bottom_right point (p2) of Box1d. More...
|
|
void | set_coord (const CoordType &x1, const CoordType &x2) |
| Mutator of the coordinates of the Box1d. More...
|
|
|
bool | operator== (const self &other) const |
| compare two Box. More...
|
|
bool | operator!= (const self &other) const |
| compare two Box. More...
|
|
template<typename CoordType>
class slip::Box1d< CoordType >
This is a Box1d class, a specialized version of slip::Box<CoordType,DIM> with DIM = 1.
- Author
- Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
- Version
- 0.0.2
- Date
- 2014/03/15
- Since
- 1.0.0
- Description:
- The box is defined by its two extremal 1d points p1 and p2.
- Parameters
-
CoordType | Type of the coordinates of the Box1d. |
Definition at line 110 of file Box1d.hpp.