#include <vpgraphicobj.h>
Inheritance diagram for VPGraphicObj:
Public Member Functions | |
VPGraphicObj () | |
void | Show () |
Makes the object visible. | |
void | Hide () |
Makes the object invisible. | |
void | ToggleVisibility () |
Toggles the object's visibility. | |
bool | IsVisible () |
Checks whether the object is visible. | |
virtual void | ComputeBoundingBox ()=0 |
Computes the bounding box. | |
void | ComputeRecursiveBoundingBox () |
Computes the recursive bounding box. | |
const VPBoundingBox & | GetBoundingBox () const |
Returns the bounding box. | |
const VPBoundingBox & | GetRecursiveBoundingBox () const |
Returns the recursive bounding box. | |
Protected Attributes | |
bool | show |
VPBoundingBox | bBox |
VPBoundingBox | recBBox |
Abstract class for graphical objects, that is, objects that have shapes to be drawn. A graphical object may, or may not, be visible without affecting scene graph traversal.
Definition at line 19 of file vpgraphicobj.h.
|
Definition at line 28 of file vpgraphicobj.cpp. References show. |
|
Computes the bounding box.
Implemented in VPCylinder, VPMeshObject, and VPSphere. |
|
Computes the recursive bounding box. This method requires a correct bounding box, therefore it should usually be called after ComputeBoundingBox. Definition at line 48 of file vpgraphicobj.cpp. References bBox, VPSceneNode::childList, GetRecursiveBoundingBox(), VPBoundingBox::MergeWith(), and recBBox. Referenced by VPMeshObject::MakeBox(), VPMeshObject::MergeWith(), VPMeshObject::SetVertices(), and VPMeshObject::Transform(). |
|
Returns the bounding box.
Definition at line 41 of file vpgraphicobj.h. References bBox. |
|
Returns the recursive bounding box.
Definition at line 44 of file vpgraphicobj.h. References recBBox. Referenced by VPScene::ComputeBoundingBox(), and ComputeRecursiveBoundingBox(). |
|
Makes the object invisible.
Definition at line 36 of file vpgraphicobj.cpp. References show. |
|
Checks whether the object is visible.
Definition at line 44 of file vpgraphicobj.cpp. References show. |
|
Makes the object visible.
Definition at line 32 of file vpgraphicobj.cpp. References show. |
|
Toggles the object's visibility.
Definition at line 40 of file vpgraphicobj.cpp. References show. |
|
Definition at line 47 of file vpgraphicobj.h. Referenced by VPSphere::ComputeBoundingBox(), VPMeshObject::ComputeBoundingBox(), VPCylinder::ComputeBoundingBox(), ComputeRecursiveBoundingBox(), and GetBoundingBox(). |
|
Definition at line 48 of file vpgraphicobj.h. Referenced by ComputeRecursiveBoundingBox(), and GetRecursiveBoundingBox(). |
|
Definition at line 46 of file vpgraphicobj.h. Referenced by VPMeshObject::DrawInstanceOGL(), Hide(), IsVisible(), Show(), ToggleVisibility(), and VPGraphicObj(). |