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

#include <GteVisual.h>

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

Public Member Functions

std::shared_ptr< VisualEffect > const & GetEffect () const
 
std::shared_ptr< IndexBuffer > const & GetIndexBuffer () const
 
std::shared_ptr< VertexBuffer > const & GetVertexBuffer () const
 
void SetEffect (std::shared_ptr< VisualEffect > const &effect)
 
void SetIndexBuffer (std::shared_ptr< IndexBuffer > const &ibuffer)
 
void SetVertexBuffer (std::shared_ptr< VertexBuffer > const &vbuffer)
 
bool UpdateModelBound ()
 
bool UpdateModelNormals ()
 
 Visual (std::shared_ptr< VertexBuffer > const &vbuffer=std::shared_ptr< VertexBuffer >(), std::shared_ptr< IndexBuffer > const &ibuffer=std::shared_ptr< IndexBuffer >(), std::shared_ptr< VisualEffect > const &effect=std::shared_ptr< VisualEffect >())
 
virtual ~Visual ()
 
- 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 ()
 

Public Attributes

BoundingSphere modelBound
 
- Public Attributes inherited from gte::Spatial
CullingMode culling
 
Transform localTransform
 
std::string name
 
BoundingSphere worldBound
 
bool worldBoundIsCurrent
 
Transform worldTransform
 
bool worldTransformIsCurrent
 

Protected Member Functions

virtual void GetVisibleSet (Culler &culler, std::shared_ptr< Camera > const &camera, bool noCull)
 
virtual void UpdateWorldBound ()
 
- Protected Member Functions inherited from gte::Spatial
void PropagateBoundToRoot ()
 
 Spatial ()
 
virtual void UpdateWorldData (double applicationTime)
 
- Protected Member Functions inherited from gte::ControlledObject
 ControlledObject ()
 

Protected Attributes

std::shared_ptr< VisualEffectmEffect
 
std::shared_ptr< IndexBuffermIBuffer
 
std::shared_ptr< VertexBuffermVBuffer
 

Additional Inherited Members

- Public Types inherited from gte::ControlledObject
typedef std::list< std::shared_ptr< Controller > > List
 

Detailed Description

Definition at line 18 of file GteVisual.h.

Constructor & Destructor Documentation

Visual::~Visual ( )
virtual

Definition at line 12 of file GteVisual.cpp.

Visual::Visual ( std::shared_ptr< VertexBuffer > const &  vbuffer = std::shared_ptr<VertexBuffer>(),
std::shared_ptr< IndexBuffer > const &  ibuffer = std::shared_ptr<IndexBuffer>(),
std::shared_ptr< VisualEffect > const &  effect = std::shared_ptr<VisualEffect>() 
)

Definition at line 16 of file GteVisual.cpp.

Member Function Documentation

std::shared_ptr< VisualEffect > const & gte::Visual::GetEffect ( ) const
inline

Definition at line 87 of file GteVisual.h.

std::shared_ptr< IndexBuffer > const & gte::Visual::GetIndexBuffer ( ) const
inline

Definition at line 82 of file GteVisual.h.

std::shared_ptr< VertexBuffer > const & gte::Visual::GetVertexBuffer ( ) const
inline

Definition at line 77 of file GteVisual.h.

void gte::Visual::GetVisibleSet ( Culler culler,
std::shared_ptr< Camera > const &  camera,
bool  noCull 
)
inlineprotectedvirtual

Implements gte::Spatial.

Definition at line 97 of file GteVisual.h.

void gte::Visual::SetEffect ( std::shared_ptr< VisualEffect > const &  effect)
inline

Definition at line 72 of file GteVisual.h.

void gte::Visual::SetIndexBuffer ( std::shared_ptr< IndexBuffer > const &  ibuffer)
inline

Definition at line 66 of file GteVisual.h.

void gte::Visual::SetVertexBuffer ( std::shared_ptr< VertexBuffer > const &  vbuffer)
inline

Definition at line 60 of file GteVisual.h.

bool Visual::UpdateModelBound ( )

Definition at line 27 of file GteVisual.cpp.

bool Visual::UpdateModelNormals ( )

Definition at line 50 of file GteVisual.cpp.

void gte::Visual::UpdateWorldBound ( )
inlineprotectedvirtual

Implements gte::Spatial.

Definition at line 92 of file GteVisual.h.

Member Data Documentation

std::shared_ptr<VisualEffect> gte::Visual::mEffect
protected

Definition at line 56 of file GteVisual.h.

std::shared_ptr<IndexBuffer> gte::Visual::mIBuffer
protected

Definition at line 55 of file GteVisual.h.

BoundingSphere gte::Visual::modelBound

Definition at line 44 of file GteVisual.h.

std::shared_ptr<VertexBuffer> gte::Visual::mVBuffer
protected

Definition at line 54 of file GteVisual.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:07