5 #ifndef VART_BOUNDINGBOX_H
6 #define VART_BOUNDINGBOX_H
31 double maxX,
double maxY,
double maxZ);
50 double GetEdgeX()
const {
return greaterX-smallerX; }
52 double GetEdgeY()
const {
return greaterY-smallerY; }
54 double GetEdgeZ()
const {
return greaterZ-smallerZ; }
69 double maxX,
double maxY,
double maxZ);
99 double greaterX, greaterY, greaterZ;
100 double smallerX, smallerY, smallerZ;
105 #endif // VART_BOUNDINGBOX_H
bool DrawInstanceOGL() const
Draws a bounding box.
BoundingBox()
Creates an uninitialized bounding box.
Points and vectors using homogeneous coordinates.
bool visible
Indicates wether the bounding box is visible.
void CutBBox(const BoundingBox &box)
Test against other bounding box and update itself if its outside the given bbox.
void SetBoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
void ConditionalUpdate(double x, double y, double z)
Updates the bounding box if any given coordinate is outside it.
void CopyGeometryFrom(const BoundingBox &box)
Copies geometry data from other bounding box.
void MergeWith(const BoundingBox &box)
Merges a bounding with another, expanding it.
RGBA color representation.
Axis aligned bounding box.
BoundingBox & operator=(const BoundingBox &box)
void SetColor(const Color &value)
Sets the bounding box color.
double GetGreaterZ() const
double GetSmallerX() const
bool testPoint(VART::Point4D p)
Test if a point is included in the bbox.
double GetEdgeY() const
Returns the length of the Y edge.
double GetEdgeZ() const
Returns the length of the Z edge.
double GetSmallerY() const
void SetGreaterY(double v)
double GetGreaterY() const
Header file for V-ART class "Color".
void ToggleVisibility()
Toggles the visibility.
double GetSmallerEdge() const
Returns the length of the smaller edge.
void SetSmallerZ(double v)
void SetGreaterX(double v)
void SetVisibility(const bool value)
Sets the bounding box visibility.
double GetEdgeX() const
Returns the length of the X edge.
const Point4D & GetCenter() const
void ApplyTransform(const Transform &trans)
Applies transformation to a BoundingBox.
double GetGreaterEdge() const
Returns the length of the greater edge.
Header file for V-ART class "Point4D".
bool testAABBAABB(BoundingBox &b)
Test intersection among AABBs.
friend std::ostream & operator<<(std::ostream &output, const BoundingBox &box)
Output operator.
void SetSmallerX(double v)
void SetSmallerY(double v)
double GetGreaterX() const
void SetGreaterZ(double v)
double GetSmallerZ() const