Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::BspNode Class Reference

#include <GteBspNode.h>

Inheritance diagram for gte::BspNode:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< SpatialAttachCoplanarChild (std::shared_ptr< Spatial > const &child)
 
std::shared_ptr< SpatialAttachNegativeChild (std::shared_ptr< Spatial > const &child)
 
std::shared_ptr< SpatialAttachPositiveChild (std::shared_ptr< Spatial > const &child)
 
 BspNode ()
 
 BspNode (Plane3< float > const &modelPlane)
 
std::shared_ptr< SpatialDetachCoplanarChild ()
 
std::shared_ptr< SpatialDetachNegativeChild ()
 
std::shared_ptr< SpatialDetachPositiveChild ()
 
SpatialGetContainingNode (Vector4< float > const &point)
 
std::shared_ptr< SpatialGetCoplanarChild ()
 
Plane3< float > GetModelPlane () const
 
std::shared_ptr< SpatialGetNegativeChild ()
 
std::shared_ptr< SpatialGetPositiveChild ()
 
Plane3< float > GetWorldPlane () const
 
void SetModelPlane (Plane3< float > const &plane)
 
- Public Member Functions inherited from gte::Node
int AttachChild (std::shared_ptr< Spatial > const &child)
 
void DetachAllChildren ()
 
int DetachChild (std::shared_ptr< Spatial > const &child)
 
std::shared_ptr< SpatialDetachChildAt (int i)
 
std::shared_ptr< SpatialGetChild (int i)
 
int GetNumChildren () const
 
 Node ()
 
std::shared_ptr< SpatialSetChild (int i, std::shared_ptr< Spatial > const &child)
 
virtual ~Node ()
 
- Public Member Functions inherited from gte::Spatial
SpatialGetParent ()
 
void OnGetVisibleSet (Culler &culler, std::shared_ptr< Camera > const &camera, bool noCull)
 
void SetParent (Spatial *parent)
 
void Update (double applicationTime=0.0, bool initiator=true)
 
virtual ~Spatial ()
 
- Public Member Functions inherited from gte::ControlledObject
void AttachController (std::shared_ptr< Controller > const &controller)
 
void DetachAllControllers ()
 
void DetachController (std::shared_ptr< Controller > const &controller)
 
List const & GetControllers () const
 
bool UpdateControllers (double applicationTime)
 
virtual ~ControlledObject ()
 

Protected Member Functions

virtual void GetVisibleSet (Culler &culler, std::shared_ptr< Camera > const &camera, bool noCull)
 
void NormalizePlane (Vector4< float > &plane)
 
void SetWorldPlane (Plane3< float > const &plane)
 
virtual void UpdateWorldData (double applicationTime)
 
int WhichSide (Vector4< float > const &point) const
 
int WhichSide (std::shared_ptr< Camera > const &camera) const
 
- Protected Member Functions inherited from gte::Node
virtual void UpdateWorldBound ()
 
- Protected Member Functions inherited from gte::Spatial
void PropagateBoundToRoot ()
 
 Spatial ()
 
- Protected Member Functions inherited from gte::ControlledObject
 ControlledObject ()
 

Protected Attributes

Vector4< float > mModelPlane
 
Vector4< float > mWorldPlane
 
- Protected Attributes inherited from gte::Node
std::vector< std::shared_ptr< Spatial > > mChild
 

Additional Inherited Members

- Public Types inherited from gte::ControlledObject
typedef std::list< std::shared_ptr< Controller > > List
 
- Public Attributes inherited from gte::Spatial
CullingMode culling
 
Transform localTransform
 
std::string name
 
BoundingSphere worldBound
 
bool worldBoundIsCurrent
 
Transform worldTransform
 
bool worldTransformIsCurrent
 

Detailed Description

Definition at line 20 of file GteBspNode.h.

Constructor & Destructor Documentation

BspNode::BspNode ( )

Definition at line 14 of file GteBspNode.cpp.

BspNode::BspNode ( Plane3< float > const &  modelPlane)

Definition at line 24 of file GteBspNode.cpp.

Member Function Documentation

std::shared_ptr< Spatial > gte::BspNode::AttachCoplanarChild ( std::shared_ptr< Spatial > const &  child)
inline

Definition at line 94 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::AttachNegativeChild ( std::shared_ptr< Spatial > const &  child)
inline

Definition at line 100 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::AttachPositiveChild ( std::shared_ptr< Spatial > const &  child)
inline

Definition at line 88 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::DetachCoplanarChild ( )
inline

Definition at line 111 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::DetachNegativeChild ( )
inline

Definition at line 116 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::DetachPositiveChild ( )
inline

Definition at line 106 of file GteBspNode.h.

Spatial * BspNode::GetContainingNode ( Vector4< float > const &  point)

Definition at line 62 of file GteBspNode.cpp.

std::shared_ptr< Spatial > gte::BspNode::GetCoplanarChild ( )
inline

Definition at line 126 of file GteBspNode.h.

Plane3< float > BspNode::GetModelPlane ( ) const

Definition at line 42 of file GteBspNode.cpp.

std::shared_ptr< Spatial > gte::BspNode::GetNegativeChild ( )
inline

Definition at line 131 of file GteBspNode.h.

std::shared_ptr< Spatial > gte::BspNode::GetPositiveChild ( )
inline

Definition at line 121 of file GteBspNode.h.

void BspNode::GetVisibleSet ( Culler culler,
std::shared_ptr< Camera > const &  camera,
bool  noCull 
)
protectedvirtual

Reimplemented from gte::Node.

Definition at line 132 of file GteBspNode.cpp.

Plane3< float > BspNode::GetWorldPlane ( ) const

Definition at line 52 of file GteBspNode.cpp.

void BspNode::NormalizePlane ( Vector4< float > &  plane)
protected

Definition at line 100 of file GteBspNode.cpp.

void BspNode::SetModelPlane ( Plane3< float > const &  plane)

Definition at line 33 of file GteBspNode.cpp.

void BspNode::SetWorldPlane ( Plane3< float > const &  plane)
protected

Definition at line 111 of file GteBspNode.cpp.

void BspNode::UpdateWorldData ( double  applicationTime)
protectedvirtual

Reimplemented from gte::Node.

Definition at line 120 of file GteBspNode.cpp.

int BspNode::WhichSide ( Vector4< float > const &  point) const
protected

Definition at line 260 of file GteBspNode.cpp.

int BspNode::WhichSide ( std::shared_ptr< Camera > const &  camera) const
protected

Definition at line 266 of file GteBspNode.cpp.

Member Data Documentation

Vector4<float> gte::BspNode::mModelPlane
protected

Definition at line 84 of file GteBspNode.h.

Vector4<float> gte::BspNode::mWorldPlane
protected

Definition at line 84 of file GteBspNode.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05