24 #ifndef __evBoundingBox_h 25 #define __evBoundingBox_h 144 evVector uniform_grid(num_dimensions);
146 for (
unsigned int component = 0; component < num_dimensions;
148 uniform_grid[component] =
150 ((double)grid_coordinates[component] / (size[component] - 1)) +
152 return(uniform_grid);
158 double pixel_size = -MAXDOUBLE;
162 for (
unsigned int component = 0; component < num_dimensions;
164 if (size[component] > 1)
165 pixel_size = std::max(pixel_size,
168 (size[component] - 1));
190 double radius = diagonal.
Norm() / 2;
193 for (
unsigned int plane = 0; plane < 6; plane++)
196 frustum[plane * 4 + 0] * center[0] +
197 frustum[plane * 4 + 1] * center[1] +
198 frustum[plane * 4 + 2] * center[2] +
199 frustum[plane * 4 + 3];
200 if (distance < -radius)
204 for (
unsigned int plane = 0; plane < 4; plane++)
207 frustum[plane * 4 + 0] * center[0] +
208 frustum[plane * 4 + 1] * center[1] +
209 frustum[plane * 4 + 3];
210 if (distance < -radius)
evVector LowerBound
Definition: evBoundingBox.h:68
void evPrintWithTab(const int tabbing, const char *format,...)
unsigned int Dimension(void) const
Definition: evVector.h:149
evVector GetLowerBound(void) const
Definition: evBoundingBox.h:102
double CalcPixelSize(const evAddress &size) const
Definition: evBoundingBox.h:156
void PrintSelf(const int tabbing) const
Definition: evBoundingBox.h:174
evBoundingBox(void)
Definition: evBoundingBox.h:73
evBoundingBox operator=(const evBoundingBox &bounding_box)
Definition: evBoundingBox.h:128
virtual void PrintSelf(const int tabbing) const
Definition: evVector.h:36
Definition: evAddress.h:37
void SetBounds(const evVector &lower_bound, const evVector &upper_bound)
Definition: evBoundingBox.h:120
Definition: evBoundingBox.h:32
void SetUpperBound(const evVector &upper_bound)
Definition: evBoundingBox.h:108
void SetLowerBound(const evVector &lower_bound)
Definition: evBoundingBox.h:96
Definition: evDataObject.h:31
virtual const evString GetClassName(void) const
Definition: evBoundingBox.h:40
evVector GetUpperBound(void) const
Definition: evBoundingBox.h:114
evVector CalcUniformGrid(const evAddress &grid_coordinates, const evAddress &size) const
Definition: evBoundingBox.h:138
#define EVPRINT_NOFORMAT
Definition: evMiscRoutines.h:34
double Norm(void) const
Definition: evVector.h:395
evVector UpperBound
Definition: evBoundingBox.h:69
int InsideViewFrustum(const evVector &frustum) const
Definition: evBoundingBox.h:185
virtual ~evBoundingBox(void)
Definition: evBoundingBox.h:91
Definition: evString.h:30