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

Override of diguyGraphicsShape to create OSG geometry for DI-Guy shapes. More...

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

Public Member Functions

 DtDiGuyOsgGraphicsShape (void *internal_data)
 CTOR. More...
 
virtual ~DtDiGuyOsgGraphicsShape ()
 DTOR. More...
 
virtual void build ()
 Create OSG geometry for the shape. More...
 
virtual void unbuild ()
 Remove shape's OSG geometry from the scene graph. More...
 
virtual void show ()
 Make the shape visible. More...
 
virtual void hide ()
 Make the shape hidden. More...
 
virtual void set_graphics_lod_ranges (float *lodRanges)
 Override to set LOD ranges in OSG. More...
 
void update_variation_texture (int num_pixels, unsigned char *pixel_data)
 Override base class. More...
 
virtual void update ()
 Update the OSG scene graph with current DI-Guy state. More...
 
virtual osg::Node * rootNode ()
 
virtual void setAdditionalTboData (const std::vector< float > &tboData)
 
virtual const std::vector
< float > & 
getAdditionalTboData ()
 

Public Attributes

std::vector< osg::Geode * > m_geodes
 

Static Public Attributes

static charUniformLinkMatricesString
 Static name of the bone uniform. More...
 
static osg::ref_ptr
< osg::Texture2D > 
sm_variation_texture
 

Protected Member Functions

void create_shared_variation_texture ()
 
void create_variation_texture (unsigned char *variation_texture_data)
 

Protected Attributes

osg::ref_ptr< osg::Switch > mySwitchNode
 
osg::ref_ptr< osg::LOD > myLodNode
 
osg::ref_ptr< osg::Uniform > myUniformLinkColor
 
osg::ref_ptr< osg::StateSet > myStateSet
 
osg::ref_ptr< osg::Uniform > myUniformLinkMatrices
 
osg::ref_ptr< osg::Uniform > myUniformLinkMatricesAlt
 
osg::ref_ptr< osg::Uniform > myUniformComponentMapRow
 
osg::ref_ptr< osg::Uniform > myUniformPBRReady
 
std::vector< float > myAdditionalTboData
 
diguyCharacter * myCharacter
 

Static Protected Attributes

static bool UsePixelLods
 Whether LOD calculations are based on distance from camera or pixel size in frame. More...
 

Detailed Description

Override of diguyGraphicsShape to create OSG geometry for DI-Guy shapes.

Constructor & Destructor Documentation

makVrv::DtDiGuyOsgGraphicsShape::DtDiGuyOsgGraphicsShape ( void *  internal_data)

CTOR.

virtual makVrv::DtDiGuyOsgGraphicsShape::~DtDiGuyOsgGraphicsShape ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDiGuyOsgGraphicsShape::build ( )
virtual

Create OSG geometry for the shape.

override diguyGraphicsShape::build

virtual void makVrv::DtDiGuyOsgGraphicsShape::unbuild ( )
virtual

Remove shape's OSG geometry from the scene graph.

override diguyGraphicsShape::unbuild

virtual void makVrv::DtDiGuyOsgGraphicsShape::show ( )
virtual

Make the shape visible.

override diguyGraphicsShape::show

virtual void makVrv::DtDiGuyOsgGraphicsShape::hide ( )
virtual

Make the shape hidden.

override diguyGraphicsShape::hide

virtual void makVrv::DtDiGuyOsgGraphicsShape::set_graphics_lod_ranges ( float *  lodRanges)
virtual

Override to set LOD ranges in OSG.

void makVrv::DtDiGuyOsgGraphicsShape::update_variation_texture ( int  num_pixels,
unsigned char pixel_data 
)

Override base class.

virtual void makVrv::DtDiGuyOsgGraphicsShape::update ( )
virtual

Update the OSG scene graph with current DI-Guy state.

override diguyGraphicsShape::update

virtual osg::Node* makVrv::DtDiGuyOsgGraphicsShape::rootNode ( )
virtual
virtual void makVrv::DtDiGuyOsgGraphicsShape::setAdditionalTboData ( const std::vector< float > &  tboData)
virtual
virtual const std::vector<float>& makVrv::DtDiGuyOsgGraphicsShape::getAdditionalTboData ( )
virtual
void makVrv::DtDiGuyOsgGraphicsShape::create_shared_variation_texture ( )
protected
void makVrv::DtDiGuyOsgGraphicsShape::create_variation_texture ( unsigned char variation_texture_data)
protected

Member Data Documentation

char* makVrv::DtDiGuyOsgGraphicsShape::UniformLinkMatricesString
static

Static name of the bone uniform.

std::vector<osg::Geode*> makVrv::DtDiGuyOsgGraphicsShape::m_geodes
osg::ref_ptr<osg::Texture2D> makVrv::DtDiGuyOsgGraphicsShape::sm_variation_texture
static
osg::ref_ptr<osg::Switch> makVrv::DtDiGuyOsgGraphicsShape::mySwitchNode
protected
osg::ref_ptr<osg::LOD> makVrv::DtDiGuyOsgGraphicsShape::myLodNode
protected
bool makVrv::DtDiGuyOsgGraphicsShape::UsePixelLods
staticprotected

Whether LOD calculations are based on distance from camera or pixel size in frame.

osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsShape::myUniformLinkColor
protected
osg::ref_ptr<osg::StateSet> makVrv::DtDiGuyOsgGraphicsShape::myStateSet
protected
osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsShape::myUniformLinkMatrices
protected
osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsShape::myUniformLinkMatricesAlt
protected
osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsShape::myUniformComponentMapRow
protected
osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsShape::myUniformPBRReady
protected
std::vector<float> makVrv::DtDiGuyOsgGraphicsShape::myAdditionalTboData
protected
diguyCharacter* makVrv::DtDiGuyOsgGraphicsShape::myCharacter
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)