Fraxinus  16.5.0-fx-rc3
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::IntBoundingBox3D Class Reference

Representation of an integer bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk. More...

#include <cxBoundingBox3D.h>

Inheritance diagram for cx::IntBoundingBox3D:

Public Member Functions

 IntBoundingBox3D ()
 
 IntBoundingBox3D (int x0, int x1, int y0, int y1, int z0=0, int z1=0)
 
 IntBoundingBox3D (const Vector3D &a, const Vector3D &b)
 
 IntBoundingBox3D (const Eigen::Vector3i &a, const Eigen::Vector3i &b)
 
 IntBoundingBox3D (const double *data)
 
 IntBoundingBox3D (const int *data)
 
Eigen::Vector3i bottomLeft () const
 
Eigen::Vector3i topRight () const
 
Eigen::Vector3i center () const
 
Eigen::Vector3i range () const
 
Eigen::Vector3i corner (int x, int y, int z) const
 
bool contains (const Eigen::Vector3i &p) const
 

Detailed Description

Representation of an integer bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.

Definition at line 59 of file cxBoundingBox3D.h.

Constructor & Destructor Documentation

cx::IntBoundingBox3D::IntBoundingBox3D ( )

Definition at line 47 of file cxBoundingBox3D.cpp.

cx::IntBoundingBox3D::IntBoundingBox3D ( int  x0,
int  x1,
int  y0,
int  y1,
int  z0 = 0,
int  z1 = 0 
)
explicit

Definition at line 50 of file cxBoundingBox3D.cpp.

cx::IntBoundingBox3D::IntBoundingBox3D ( const Vector3D a,
const Vector3D b 
)
explicit

Create a bounding box describing the volume spanned by the two points a and b.

Definition at line 61 of file cxBoundingBox3D.cpp.

cx::IntBoundingBox3D::IntBoundingBox3D ( const Eigen::Vector3i &  a,
const Eigen::Vector3i &  b 
)
explicit

Definition at line 78 of file cxBoundingBox3D.cpp.

cx::IntBoundingBox3D::IntBoundingBox3D ( const double *  data)
explicit

Definition at line 95 of file cxBoundingBox3D.cpp.

cx::IntBoundingBox3D::IntBoundingBox3D ( const int *  data)
explicit

Definition at line 101 of file cxBoundingBox3D.cpp.

Member Function Documentation

Eigen::Vector3i cx::IntBoundingBox3D::bottomLeft ( ) const

Definition at line 106 of file cxBoundingBox3D.cpp.

Eigen::Vector3i cx::IntBoundingBox3D::center ( ) const

Definition at line 114 of file cxBoundingBox3D.cpp.

bool cx::IntBoundingBox3D::contains ( const Eigen::Vector3i &  p) const

return true if p is inside or on the edge of the bounding box

Definition at line 138 of file cxBoundingBox3D.cpp.

Eigen::Vector3i cx::IntBoundingBox3D::corner ( int  x,
int  y,
int  z 
) const

Return the coordinate value of a given corner. Insert 0 or 1 for each of the 3 axis in order to get start or stop corner along that axis.

Definition at line 126 of file cxBoundingBox3D.cpp.

Eigen::Vector3i cx::IntBoundingBox3D::range ( ) const

Definition at line 118 of file cxBoundingBox3D.cpp.

Eigen::Vector3i cx::IntBoundingBox3D::topRight ( ) const

Definition at line 110 of file cxBoundingBox3D.cpp.


The documentation for this class was generated from the following files: