raSystem  1.0 bata
raNode Class Reference

#include <raNode.h>

Inheritance diagram for raNode:
raRender raAnimatedNode

Public Member Functions

 raNode (raSmartPointer< raDirectX > dx, LPCSTR strName="raNode", raNode *pParent=NULL)
 
 ~raNode ()
 
void SetChild (raNode *pChild)
 
void SetSibling (raNode *pSibling)
 
virtual raMatrixGetWorldMatrix ()
 
virtual void SetWorldMatrix (const raMatrix &value)
 
virtual bool Create ()
 
virtual void Destroy ()
 
virtual bool Render (UINT drawOrder, const raMatrix &pView, const raMatrix &pProj, const raLight *pLight, LPCSTR techniqueName="")
 
virtual bool Update (float fTime, float fElapsedTime)
 
virtual void SetVisible (bool bVisible)
 
virtual void SetSelected (bool bSelected)
 
virtual void Update (raFrameMap &m_FrameData, float fTime, UINT subScriptionNo)
 
virtual void TransformFrame (raMatrix *pParentWorld)
 
virtual void TransformFrame (raMatrix *pParentWorld, UINT instanceNo)
 
raNodeFindNode (LPCSTR strName)
 
raNodeFindRoot ()
 
raVisualGetVisual ()
 
void SetVisual (raVisual *pVisual)
 
raVisualGetVisual (UINT n)
 
UINT GetNumVisuals ()
 
virtual bool Intersects (const raVector3 *pRayPos, const raVector3 *pRayDir, float *pDist)
 
void SetLocatorMarkers (raGroup *pGroup)
 
- Public Member Functions inherited from raRender
 raRender (raSmartPointer< raDirectX > dx, const raMatrix *mWorld=NULL, LPCSTR Name="Render")
 
virtual ~raRender (void)
 
LPCSTR GetName ()
 
void SetName (LPCSTR Name)
 
virtual const float GetBoundingsphereRadius ()
 

Public Attributes

std::vector< raVisual * > m_Meshes
 

Protected Member Functions

 raNode (const GUID &raguid, raSmartPointer< raDirectX > dx, LPCSTR strName="raNode", raNode *pParent=NULL)
 

Protected Attributes

raMatrix m_WorldTransformed
 
raNodem_pParent
 
raNodem_pSibling
 
raNodem_pChild
 
raVisualm_pMesh
 
- Protected Attributes inherited from raRender
raSmartPointer< raDirectXm_dx
 
raMatrix m_World
 
LPCSTR m_Name
 

Detailed Description

Definition at line 8 of file raNode.h.

Constructor & Destructor Documentation

◆ raNode() [1/2]

raNode::raNode ( const GUID &  raguid,
raSmartPointer< raDirectX dx,
LPCSTR  strName = "raNode",
raNode pParent = NULL 
)
protected

◆ raNode() [2/2]

raNode::raNode ( raSmartPointer< raDirectX dx,
LPCSTR  strName = "raNode",
raNode pParent = NULL 
)

Definition at line 4 of file raNode.cpp.

◆ ~raNode()

raNode::~raNode ( )

Definition at line 20 of file raNode.cpp.

Member Function Documentation

◆ Create()

bool raNode::Create ( void  )
virtual

Reimplemented from raRender.

Definition at line 122 of file raNode.cpp.

◆ Destroy()

void raNode::Destroy ( void  )
virtual

Reimplemented from raRender.

Definition at line 13 of file raNode.cpp.

◆ FindNode()

raNode * raNode::FindNode ( LPCSTR  strName)

Definition at line 177 of file raNode.cpp.

◆ FindRoot()

raNode * raNode::FindRoot ( )

Definition at line 171 of file raNode.cpp.

◆ GetNumVisuals()

UINT raNode::GetNumVisuals ( )
inline

Definition at line 42 of file raNode.h.

◆ GetVisual() [1/2]

raVisual* raNode::GetVisual ( )
inline

Definition at line 39 of file raNode.h.

◆ GetVisual() [2/2]

raVisual* raNode::GetVisual ( UINT  n)
inline

Definition at line 41 of file raNode.h.

◆ GetWorldMatrix()

virtual raMatrix* raNode::GetWorldMatrix ( void  )
inlinevirtual

Reimplemented from raRender.

Definition at line 19 of file raNode.h.

◆ Intersects()

bool raNode::Intersects ( const raVector3 pRayPos,
const raVector3 pRayDir,
float *  pDist 
)
virtual

Reimplemented from raRender.

Definition at line 201 of file raNode.cpp.

◆ Render()

bool raNode::Render ( UINT  drawOrder,
const raMatrix pView,
const raMatrix pProj,
const raLight pLight,
LPCSTR  techniqueName = "" 
)
virtual

Reimplemented from raRender.

Definition at line 137 of file raNode.cpp.

◆ SetChild()

void raNode::SetChild ( raNode pChild)

Definition at line 33 of file raNode.cpp.

◆ SetLocatorMarkers()

void raNode::SetLocatorMarkers ( raGroup pGroup)

Definition at line 41 of file raNode.cpp.

◆ SetSelected()

void raNode::SetSelected ( bool  bSelected)
virtual

Reimplemented from raRender.

Definition at line 57 of file raNode.cpp.

◆ SetSibling()

void raNode::SetSibling ( raNode pSibling)

Definition at line 69 of file raNode.cpp.

◆ SetVisible()

void raNode::SetVisible ( bool  bVisible)
virtual

Reimplemented from raRender.

Definition at line 108 of file raNode.cpp.

◆ SetVisual()

void raNode::SetVisual ( raVisual pVisual)

Definition at line 27 of file raNode.cpp.

◆ SetWorldMatrix()

void raNode::SetWorldMatrix ( const raMatrix value)
virtual

Reimplemented from raRender.

Definition at line 95 of file raNode.cpp.

◆ TransformFrame() [1/2]

void raNode::TransformFrame ( raMatrix pParentWorld)
virtual

Definition at line 77 of file raNode.cpp.

◆ TransformFrame() [2/2]

void raNode::TransformFrame ( raMatrix pParentWorld,
UINT  instanceNo 
)
virtual

Definition at line 248 of file raNode.cpp.

◆ Update() [1/2]

bool raNode::Update ( float  fTime,
float  fElapsedTime 
)
virtual

Reimplemented from raRender.

Definition at line 156 of file raNode.cpp.

◆ Update() [2/2]

virtual void raNode::Update ( raFrameMap m_FrameData,
float  fTime,
UINT  subScriptionNo 
)
inlinevirtual

Reimplemented in raAnimatedNode.

Definition at line 31 of file raNode.h.

Member Data Documentation

◆ m_Meshes

std::vector<raVisual*> raNode::m_Meshes

Definition at line 60 of file raNode.h.

◆ m_pChild

raNode* raNode::m_pChild
protected

Definition at line 55 of file raNode.h.

◆ m_pMesh

raVisual* raNode::m_pMesh
protected

Definition at line 57 of file raNode.h.

◆ m_pParent

raNode* raNode::m_pParent
protected

Definition at line 53 of file raNode.h.

◆ m_pSibling

raNode* raNode::m_pSibling
protected

Definition at line 54 of file raNode.h.

◆ m_WorldTransformed

raMatrix raNode::m_WorldTransformed
protected

Definition at line 51 of file raNode.h.


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