VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
makVrv::DtDiGuyOsgGraphicsLink Class Reference

Derived diguyGraphicsLink to create OSG transforms and base node to hang shape objects on. More...

Inheritance diagram for makVrv::DtDiGuyOsgGraphicsLink:
Inheritance graph
[legend]

Public Member Functions

 DtDiGuyOsgGraphicsLink (void *internal_data)
 CTOR.
virtual ~DtDiGuyOsgGraphicsLink ()
 DTOR.
virtual void build ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state.
virtual void unbuild ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state.
virtual void update ()
 Update matrices per DI-Guy state.
virtual void update_position ()
virtual void attach_to_scene ()
 Add link's nodes to the scene graph under the DI-Guy root.
virtual void detach_from_scene ()
 Remove link's nodes from the DI-Guy root.
virtual void attach_to_link (diguyGraphicsLink *link)
 Attach this link to another link.
virtual void detach_from_link ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state.
virtual void set_shader_instance (diguyGraphicsShaderInstance *shader_instance)
 Build transform node(s) to position/orient shape geometry per DI-Guy state.
virtual void instancing_state_changed (int is_instanced)
osg::MatrixTransform * getDofNode ()
 Get the root DOF node for this link.
virtual void setPosition (const DtVector &pos)
 Set the link's base position in cig coordinates.
virtual void setOrientation (const DtTaitBryan &ori)
 Set the link's base orientation in cig coordinates.
virtual void setCollisionUniqueId (DtUniqueID id)
 Set a unique ID on this object's collision box for intersection testing.

Static Public Member Functions

static void setDiGuyAttachGroup (osg::Group *diguy_attach_pt)
static osg::Group * getDiGuyAttachGroup ()
static osg::Group * get_instancing_attach_node ()
static osgViewer::View * getView ()
static void setView (osgViewer::View *view)
static void setDe (DtDe *de)

Protected Member Functions

osg::Geode * makeBoundingSphereVisual (osg::Vec3 &center, float radius)
 Make geometry corresponding to the character's bounding sphere.
osg::ref_ptr< osg::Texture2D > defaultVariationTexture ()
 Get the 1x1 placeholder variation texture.

Protected Attributes

osg::ref_ptr
< osg::MatrixTransform > 
m_dof_node
osg::ref_ptr< osg::Uniform > m_ufrm_link_matrix
osg::ref_ptr< osg::Group > myCollisionBoxGroup
osg::ref_ptr< osg::Geode > myBoundingSphereVisual
DtDiGuyOsgGraphicsShaderInstancemyShaderInstance
DtVector myPosition
DtTaitBryan myOrientation
DtUniqueID myUniqueId

Static Protected Attributes

static osg::Group * DiguyAttachGroup
static osgViewer::View * staticView
static osg::Group * s_diguy_instancing_attach_pt
static DtDes_myDe
static osg::ref_ptr
< osg::Texture2D > 
staticDegenerateTexture

Friends

class DtDiGuyOsgGraphicsShape
class DtDiguyOsgRootNode

Detailed Description

Derived diguyGraphicsLink to create OSG transforms and base node to hang shape objects on.

Constructor & Destructor Documentation

makVrv::DtDiGuyOsgGraphicsLink::DtDiGuyOsgGraphicsLink ( void *  internal_data)

CTOR.

virtual makVrv::DtDiGuyOsgGraphicsLink::~DtDiGuyOsgGraphicsLink ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDiGuyOsgGraphicsLink::build ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::build()

virtual void makVrv::DtDiGuyOsgGraphicsLink::unbuild ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::unbuild()

virtual void makVrv::DtDiGuyOsgGraphicsLink::update ( )
virtual

Update matrices per DI-Guy state.

overrides diguyGraphicsLink::update()

virtual void makVrv::DtDiGuyOsgGraphicsLink::update_position ( )
virtual
virtual void makVrv::DtDiGuyOsgGraphicsLink::attach_to_scene ( )
virtual

Add link's nodes to the scene graph under the DI-Guy root.

overrides diguyGraphicsLink::attach_to_scene()

virtual void makVrv::DtDiGuyOsgGraphicsLink::detach_from_scene ( )
virtual

Remove link's nodes from the DI-Guy root.

overrides diguyGraphicsLink::detach_from_scene()

virtual void makVrv::DtDiGuyOsgGraphicsLink::attach_to_link ( diguyGraphicsLink link)
virtual

Attach this link to another link.

overrides diguyGraphicsLink::attach_to_link()

virtual void makVrv::DtDiGuyOsgGraphicsLink::detach_from_link ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::build()

virtual void makVrv::DtDiGuyOsgGraphicsLink::set_shader_instance ( diguyGraphicsShaderInstance shader_instance)
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::set_shader_instance()

virtual void makVrv::DtDiGuyOsgGraphicsLink::instancing_state_changed ( int  is_instanced)
virtual
osg::MatrixTransform* makVrv::DtDiGuyOsgGraphicsLink::getDofNode ( )
inline

Get the root DOF node for this link.

References m_dof_node.

static void makVrv::DtDiGuyOsgGraphicsLink::setDiGuyAttachGroup ( osg::Group *  diguy_attach_pt)
static
static osg::Group* makVrv::DtDiGuyOsgGraphicsLink::getDiGuyAttachGroup ( )
inlinestatic
static osg::Group* makVrv::DtDiGuyOsgGraphicsLink::get_instancing_attach_node ( )
inlinestatic
static osgViewer::View* makVrv::DtDiGuyOsgGraphicsLink::getView ( )
inlinestatic

References staticView.

static void makVrv::DtDiGuyOsgGraphicsLink::setView ( osgViewer::View *  view)
inlinestatic

References staticView.

virtual void makVrv::DtDiGuyOsgGraphicsLink::setPosition ( const DtVector pos)
virtual

Set the link's base position in cig coordinates.

virtual void makVrv::DtDiGuyOsgGraphicsLink::setOrientation ( const DtTaitBryan &  ori)
virtual

Set the link's base orientation in cig coordinates.

virtual void makVrv::DtDiGuyOsgGraphicsLink::setCollisionUniqueId ( DtUniqueID  id)
virtual

Set a unique ID on this object's collision box for intersection testing.

static void makVrv::DtDiGuyOsgGraphicsLink::setDe ( DtDe de)
inlinestatic

References s_myDe.

osg::Geode* makVrv::DtDiGuyOsgGraphicsLink::makeBoundingSphereVisual ( osg::Vec3 &  center,
float  radius 
)
protected

Make geometry corresponding to the character's bounding sphere.

osg::ref_ptr<osg::Texture2D> makVrv::DtDiGuyOsgGraphicsLink::defaultVariationTexture ( )
protected

Get the 1x1 placeholder variation texture.

Friends And Related Function Documentation

friend class DtDiGuyOsgGraphicsShape
friend
friend class DtDiguyOsgRootNode
friend

Member Data Documentation

osg::ref_ptr<osg::MatrixTransform> makVrv::DtDiGuyOsgGraphicsLink::m_dof_node
protected

Referenced by getDofNode().

osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsLink::m_ufrm_link_matrix
protected
osg::ref_ptr<osg::Group> makVrv::DtDiGuyOsgGraphicsLink::myCollisionBoxGroup
protected
osg::ref_ptr<osg::Geode> makVrv::DtDiGuyOsgGraphicsLink::myBoundingSphereVisual
protected
osg::Group* makVrv::DtDiGuyOsgGraphicsLink::DiguyAttachGroup
staticprotected

Referenced by getDiGuyAttachGroup().

osgViewer::View* makVrv::DtDiGuyOsgGraphicsLink::staticView
staticprotected

Referenced by getView(), and setView().

osg::Group* makVrv::DtDiGuyOsgGraphicsLink::s_diguy_instancing_attach_pt
staticprotected
DtDe* makVrv::DtDiGuyOsgGraphicsLink::s_myDe
staticprotected

Referenced by setDe().

DtDiGuyOsgGraphicsShaderInstance* makVrv::DtDiGuyOsgGraphicsLink::myShaderInstance
protected
osg::ref_ptr<osg::Texture2D> makVrv::DtDiGuyOsgGraphicsLink::staticDegenerateTexture
staticprotected
DtVector makVrv::DtDiGuyOsgGraphicsLink::myPosition
protected
DtTaitBryan makVrv::DtDiGuyOsgGraphicsLink::myOrientation
protected
DtUniqueID makVrv::DtDiGuyOsgGraphicsLink::myUniqueId
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)