#include <vpboundingbox.h>
Public Member Functions | |
VPBoundingBox () | |
Creates an uninitialized bounding box. | |
VPBoundingBox (double minX, double minY, double minZ, double maxX, double maxY, double maxZ) | |
VPBoundingBox (const VPBoundingBox &box) | |
VPBoundingBox & | operator= (const VPBoundingBox &box) |
void | ProcessCenter () |
double | GetGreaterX () const |
double | GetGreaterY () const |
double | GetGreaterZ () const |
double | GetGreaterEdge () const |
Returns the length of the greater edge. | |
void | SetGreaterX (double v) |
void | SetGreaterY (double v) |
void | SetGreaterZ (double v) |
double | GetSmallerX () const |
double | GetSmallerY () const |
double | GetSmallerZ () const |
void | SetSmallerX (double v) |
void | SetSmallerY (double v) |
void | SetSmallerZ (double v) |
void | SetBoundingBox (double minX, double minY, double minZ, double maxX, double maxY, double maxZ) |
const VPPoint4D & | GetCenter () const |
void | ConditionalUpdate (double x, double y, double z) |
Updates the bounding box if any given coordinate is outside it. | |
void | ConditionalUpdate (const VPPoint4D &point) |
Updates the bounding box if any given coordinate is outside it. | |
void | MergeWith (const VPBoundingBox &box) |
Merges a bounding with another, expanding it. | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const VPBoundingBox &box) |
Output operator. |
FixMe: A detailed class description is needed here.
Definition at line 17 of file vpboundingbox.h.
|
Creates an uninitialized bounding box.
Definition at line 24 of file vpboundingbox.cpp. |
|
Definition at line 27 of file vpboundingbox.cpp. References ProcessCenter(). |
|
Definition at line 38 of file vpboundingbox.cpp. References center, greaterX, greaterY, greaterZ, smallerX, smallerY, and smallerZ. |
|
Updates the bounding box if any given coordinate is outside it.
Definition at line 146 of file vpboundingbox.cpp. References ConditionalUpdate(), VPPoint4D::GetX(), VPPoint4D::GetY(), and VPPoint4D::GetZ(). |
|
Updates the bounding box if any given coordinate is outside it.
Definition at line 128 of file vpboundingbox.cpp. Referenced by VPMeshObject::ComputeBoundingBox(), ConditionalUpdate(), and MergeWith(). |
|
Definition at line 124 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Returns the length of the greater edge.
Definition at line 155 of file vpboundingbox.cpp. |
|
Definition at line 65 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Definition at line 69 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Definition at line 73 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Definition at line 89 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Definition at line 93 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Definition at line 97 of file vpboundingbox.cpp. Referenced by VPScene::MakeCameraViewAll(). |
|
Merges a bounding with another, expanding it.
Definition at line 150 of file vpboundingbox.cpp. References ConditionalUpdate(), greaterX, greaterY, greaterZ, smallerX, smallerY, and smallerZ. Referenced by VPScene::ComputeBoundingBox(), and VPGraphicObj::ComputeRecursiveBoundingBox(). |
|
Definition at line 48 of file vpboundingbox.cpp. References center, greaterX, greaterY, greaterZ, smallerX, smallerY, and smallerZ. |
|
Definition at line 59 of file vpboundingbox.cpp. References VPPoint4D::SetXYZW(). Referenced by VPScene::MakeCameraViewAll(), SetBoundingBox(), and VPBoundingBox(). |
|
Definition at line 113 of file vpboundingbox.cpp. References ProcessCenter(). Referenced by VPMeshObject::ComputeBoundingBox(), and VPCylinder::ComputeBoundingBox(). |
|
Definition at line 77 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Definition at line 81 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Definition at line 85 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Definition at line 101 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Definition at line 105 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Definition at line 109 of file vpboundingbox.cpp. Referenced by VPSphere::ComputeBoundingBox(). |
|
Output operator.
|