A 3D box, used as bounding volume for E3DObject class. A box is defined by a center, 3 axis and 3 extent for the 3 axis. A 3D point (x,y,z) is inside the E3DBox if ... By default a E3DBox is an axis aligned unit cube, centered on the origin. More...
#include <eVision/Easy3D/E3DBox.h>
Public Member Functions | |
| E3DBox () | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (float xSize, float ySize, float zSize) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (const eVision::Easy3D::E3DOrthonormalAxisSystem &axes, float xSize, float ySize, float zSize) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (const eVision::Easy3D::E3DBox &other) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (const eVision::Easy3D::E3DPoint ¢er, float xSize, float ySize, float zSize) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (const eVision::EFloatRange &xBounds, const eVision::EFloatRange &yBounds, const eVision::EFloatRange &zBounds) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| E3DBox (const eVision::Easy3D::E3DPoint ¢er, float roll, float pitch, float yaw, float xSize, float ySize, float zSize) | |
| Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin. | |
| virtual | ~E3DBox () throw () |
| eVision::Easy3D::E3DBox & | operator= (const eVision::Easy3D::E3DBox &other) |
| Assignment operator for the E3DBox. | |
| bool | operator== (const eVision::Easy3D::E3DBox &other) const |
| Checks if two E3DBox are strictly equal. | |
| bool | operator!= (const eVision::Easy3D::E3DBox &other) const |
| Checks if two E3DBox are different. | |
| void | Load (const std::string &path) |
| Loads the E3DBox. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the E3DBox. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the E3DBox. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the E3DBox. The given ESerializer must have been created for writing. | |
| eVision::Easy3D::E3DPoint | GetCenter () const |
| 3D box center. | |
| void | SetCenter (const eVision::Easy3D::E3DPoint ¢er) |
| 3D box center. | |
| eVision::Easy3D::E3DPoint | GetXAxis () const |
| X axis of the box. | |
| eVision::Easy3D::E3DPoint | GetYAxis () const |
| Y axis of the box. | |
| eVision::Easy3D::E3DPoint | GetZAxis () const |
| Z axis of the box. | |
| eVision::Easy3D::E3DOrthonormalAxisSystem | GetAxes () const |
| 3D orthonormal axis system of the box. | |
| void | SetAxes (const eVision::Easy3D::E3DOrthonormalAxisSystem &axes) |
| 3D orthonormal axis system of the box. | |
| void | SetXSize (float xSize) |
| Size of the 3D box along its X axis . | |
| float | GetXSize () const |
| Size of the 3D box along its X axis . | |
| void | SetYSize (float ySize) |
| Size of the 3D box along its Y axis. | |
| float | GetYSize () const |
| Size of the 3D box along its Y axis. | |
| void | SetZSize (float zSize) |
| Size of the 3D box along its Z axis. | |
| float | GetZSize () const |
| Size of the 3D box along its Z axis. | |
| eVision::EQuadrangle | GetXYQuadrangle () const |
| 2D quadrangle of the E3DBox in the XY plane | |
| eVision::Easy3D::E3DBox | Transform (const eVision::Easy3D::E3DTransformMatrix &matrix) const |
| Transforms the 3D box with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an anisotropic scaling transform if it is applied before and on an axis aligned E3DBox. | |
| E3DBox (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
A 3D box, used as bounding volume for E3DObject class. A box is defined by a center, 3 axis and 3 extent for the 3 axis. A 3D point (x,y,z) is inside the E3DBox if ... By default a E3DBox is an axis aligned unit cube, centered on the origin.
License(s): Easy3D
| eVision::Easy3D::E3DBox::E3DBox | ( | ) |
| eVision::Easy3D::E3DBox::E3DBox | ( | float | xSize, |
| float | ySize, | ||
| float | zSize ) |
Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin.
| xSize | The full size of the box along the X axis. |
| ySize | The full size of the box along the Y axis. |
| zSize | The full size of the box along the Z axis. |
By convention, roll is applied first and yaw last.
| eVision::Easy3D::E3DBox::E3DBox | ( | const eVision::Easy3D::E3DOrthonormalAxisSystem & | axes, |
| float | xSize, | ||
| float | ySize, | ||
| float | zSize ) |
Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin.
| axes | Axis system. |
| xSize | The full size of the box along the X axis. |
| ySize | The full size of the box along the Y axis. |
| zSize | The full size of the box along the Z axis. |
By convention, roll is applied first and yaw last.
| eVision::Easy3D::E3DBox::E3DBox | ( | const eVision::Easy3D::E3DBox & | other | ) |
| eVision::Easy3D::E3DBox::E3DBox | ( | const eVision::Easy3D::E3DPoint & | center, |
| float | xSize, | ||
| float | ySize, | ||
| float | zSize ) |
Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin.
| center | The 3D coordinate of the box center. |
| xSize | The full size of the box along the X axis. |
| ySize | The full size of the box along the Y axis. |
| zSize | The full size of the box along the Z axis. |
By convention, roll is applied first and yaw last.
| eVision::Easy3D::E3DBox::E3DBox | ( | const eVision::EFloatRange & | xBounds, |
| const eVision::EFloatRange & | yBounds, | ||
| const eVision::EFloatRange & | zBounds ) |
| eVision::Easy3D::E3DBox::E3DBox | ( | const eVision::Easy3D::E3DPoint & | center, |
| float | roll, | ||
| float | pitch, | ||
| float | yaw, | ||
| float | xSize, | ||
| float | ySize, | ||
| float | zSize ) |
Constructs an E3DBox. By default a E3DBox is an axis aligned unit cube, centered on the origin.
| center | The 3D coordinate of the box center. |
| roll | Roll (rotation along the X axis) of the box. |
| pitch | Pitch (rotation along the Y axis) of the box. |
| yaw | Yaw (rotation along the Z axis) of the box. |
| xSize | The full size of the box along the X axis. |
| ySize | The full size of the box along the Y axis. |
| zSize | The full size of the box along the Z axis. |
By convention, roll is applied first and yaw last.
|
virtual | ||||||||||||
| eVision::Easy3D::E3DBox::E3DBox | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::Easy3D::E3DOrthonormalAxisSystem eVision::Easy3D::E3DBox::GetAxes | ( | ) | const |
3D orthonormal axis system of the box.
| eVision::Easy3D::E3DPoint eVision::Easy3D::E3DBox::GetCenter | ( | ) | const |
3D box center.
| eVision::Easy3D::E3DPoint eVision::Easy3D::E3DBox::GetXAxis | ( | ) | const |
X axis of the box.
| float eVision::Easy3D::E3DBox::GetXSize | ( | ) | const |
Size of the 3D box along its X axis .
| eVision::EQuadrangle eVision::Easy3D::E3DBox::GetXYQuadrangle | ( | ) | const |
2D quadrangle of the E3DBox in the XY plane
| eVision::Easy3D::E3DPoint eVision::Easy3D::E3DBox::GetYAxis | ( | ) | const |
Y axis of the box.
| float eVision::Easy3D::E3DBox::GetYSize | ( | ) | const |
Size of the 3D box along its Y axis.
| eVision::Easy3D::E3DPoint eVision::Easy3D::E3DBox::GetZAxis | ( | ) | const |
Z axis of the box.
| float eVision::Easy3D::E3DBox::GetZSize | ( | ) | const |
Size of the 3D box along its Z axis.
| void eVision::Easy3D::E3DBox::Load | ( | const std::string & | path | ) |
Loads the E3DBox. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::E3DBox::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the E3DBox. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| bool eVision::Easy3D::E3DBox::operator!= | ( | const eVision::Easy3D::E3DBox & | other | ) | const |
| eVision::Easy3D::E3DBox & eVision::Easy3D::E3DBox::operator= | ( | const eVision::Easy3D::E3DBox & | other | ) |
| bool eVision::Easy3D::E3DBox::operator== | ( | const eVision::Easy3D::E3DBox & | other | ) | const |
| void eVision::Easy3D::E3DBox::Save | ( | const std::string & | path | ) |
Saves the E3DBox. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::E3DBox::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the E3DBox. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| void eVision::Easy3D::E3DBox::SetAxes | ( | const eVision::Easy3D::E3DOrthonormalAxisSystem & | axes | ) |
3D orthonormal axis system of the box.
| axes | An orthonormal axis system. |
| void eVision::Easy3D::E3DBox::SetCenter | ( | const eVision::Easy3D::E3DPoint & | center | ) |
3D box center.
| void eVision::Easy3D::E3DBox::SetXSize | ( | float | xSize | ) |
Size of the 3D box along its X axis .
| xSize | The full length of the box on the X axis. |
| void eVision::Easy3D::E3DBox::SetYSize | ( | float | ySize | ) |
Size of the 3D box along its Y axis.
| ySize | The full length of the box on the Y axis. |
| void eVision::Easy3D::E3DBox::SetZSize | ( | float | zSize | ) |
Size of the 3D box along its Z axis.
| zSize | The full length of the box on the Z axis. |
| eVision::Easy3D::E3DBox eVision::Easy3D::E3DBox::Transform | ( | const eVision::Easy3D::E3DTransformMatrix & | matrix | ) | const |
Transforms the 3D box with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an anisotropic scaling transform if it is applied before and on an axis aligned E3DBox.
| matrix | The 3D transformation matrix. |
| CppWrapperInternal::WrappedClass eVision::Easy3D::E3DBox::wrappedClass_ |