This is a Box3d class, a specialized version of slip::Box<CoordType,DIM> with DIM = 3.
More...
|
std::string | name () const |
| Returns the name of the class. More...
|
|
CoordType | volume () const |
| compute the volume of the Box3d. More...
|
|
CoordType | width () const |
| compute the width of the Box3d. More...
|
|
CoordType | height () const |
| compute the height of the Box3d. More...
|
|
CoordType | depth () const |
| compute the depth of the Box3d. 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...
|
|
|
| Box3d () |
| Constructs a Box3d. More...
|
|
| Box3d (const Point< CoordType, 3 > &p1, const Point< CoordType, 3 > &p2) |
| Constructs a Box3d from a CoordType array. More...
|
|
| Box3d (const CoordType &x11, const CoordType &x12, const CoordType &x13, const CoordType &x21, const CoordType &x22, const CoordType &x23) |
| Constructs a Box3d. More...
|
|
| Box3d (const CoordType &xc, const CoordType &yc, const CoordType &zc, const CoordType &w) |
| Constructs a square Box3d using a central point and a width. More...
|
|
| Box3d (const Point< CoordType, 3 > &pc, const CoordType &w) |
| Constructs a square Box3d using a central point and a width. More...
|
|
| Box3d (const Point< CoordType, 3 > &pc, const CoordType &w1, const CoordType &w2, const CoordType &w3) |
| Constructs a square Box3d using a central point and two widths. More...
|
|
|
void | front_upper_left (Point< CoordType, 3 >) |
| Accessor/Mutator of the front_upper_left point (p1) of Box3d. More...
|
|
Point< CoordType, 3 > & | front_upper_left () |
| Accessor/Mutator of the front_upper_left point (p1) of Box3d. More...
|
|
const Point< CoordType, 3 > & | front_upper_left () const |
| Accessor/Mutator of the front_upper_left point (p1) of Box3d. More...
|
|
void | back_bottom_right (Point< CoordType, 3 >) |
| Accessor/Mutator of the back_bottom_right point (p2) of Box3d. More...
|
|
Point< CoordType, 3 > & | back_bottom_right () |
| Accessor/Mutator of the back_bottom_right point (p2) of Box3d. More...
|
|
const Point< CoordType, 3 > & | back_bottom_right () const |
| Accessor/Mutator of the back_bottom_right point (p2) of Box3d. More...
|
|
void | set_coord (const CoordType &x11, const CoordType &x12, const CoordType &x13, const CoordType &x21, const CoordType &x22, const CoordType &x23) |
| Mutator of the coordinates of the Box3d. 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::Box3d< CoordType >
This is a Box3d class, a specialized version of slip::Box<CoordType,DIM> with DIM = 3.
- Author
- Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
- Date
- 2014/03/15
- Version
- 0.0.2
- Since
- 1.0.0
- Description:
- The box is defined by its front-upper-left and back-bottom-right points p1 and p2.
-------- _
/ /| x1 /
/ / | /
p1-------- | /
| | | /
| | | O------------> x3
| | p2 |
| |/ |
---------- |
|
\|
x2
- Parameters
-
CoordType | Type of the coordinates of the Box3d |
Definition at line 121 of file Box3d.hpp.