AGX Dynamics  2.35.0.1
agxOSG::OSGData< T > Class Template Reference

Class for handling methods related to OSG such as setColor, setTransform etc. More...

#include <RenderProxy.h>

Public Member Functions

 OSGData (agxOSG::RenderProxyFactory *factory, agxRender::RenderProxy *proxy)
 
 OSGData (const RenderProxyFactory::ShapeData< T > &data, agxOSG::RenderProxyFactory *factory, agxRender::RenderProxy *proxy)
 
osg::MatrixTransform * getNode ()
 \ return the node for this RenderProxy More...
 
void onRemoveOSG ()
 Remove the node from all its parents. More...
 
void setAlphaOSG (float transparency)
 Set the alpha value. More...
 
void setColorOSG (const agx::Vec3 &color, float alpha)
 Set the color and alpha value. More...
 
void setEnableOSG (bool flag)
 Enable/disable rendering. More...
 
void setRenderModeOSG (agxRender::RenderProxy::RenderMode mode)
 Change the render mode. More...
 
void setTransformOSG (const agx::AffineMatrix4x4 &transform)
 Transform a node. More...
 

Protected Attributes

RenderProxyFactory::ShapeData< T > m_data
 
agxOSG::RenderProxyFactory * m_factory
 
agx::AffineMatrix4x4 m_invTransform
 
agxRender::RenderProxy * m_proxy
 
osg::ref_ptr< osg::MatrixTransform > m_transformNode
 

Detailed Description

template<typename T>
class agxOSG::OSGData< T >

Class for handling methods related to OSG such as setColor, setTransform etc.

Definition at line 299 of file agxOSG/RenderProxy.h.

Constructor & Destructor Documentation

◆ OSGData() [1/2]

◆ OSGData() [2/2]

Member Function Documentation

◆ getNode()

template<typename T >
osg::MatrixTransform* agxOSG::OSGData< T >::getNode ( )
inline

\ return the node for this RenderProxy

Definition at line 396 of file agxOSG/RenderProxy.h.

References agxOSG::OSGData< T >::m_transformNode.

◆ onRemoveOSG()

template<typename T >
void agxOSG::OSGData< T >::onRemoveOSG ( )
inline

Remove the node from all its parents.

Definition at line 380 of file agxOSG/RenderProxy.h.

References agxOSG::OSGData< T >::m_transformNode.

◆ setAlphaOSG()

template<typename T >
void agxOSG::OSGData< T >::setAlphaOSG ( float  transparency)
inline

Set the alpha value.

Definition at line 354 of file agxOSG/RenderProxy.h.

References agxOSG::OSGData< T >::m_data.

◆ setColorOSG()

template<typename T >
void agxOSG::OSGData< T >::setColorOSG ( const agx::Vec3 &  color,
float  alpha 
)
inline

Set the color and alpha value.

Definition at line 360 of file agxOSG/RenderProxy.h.

References agx::equivalent(), and agxOSG::OSGData< T >::m_data.

Referenced by agxOSG::OSGData< T >::OSGData().

◆ setEnableOSG()

template<typename T >
void agxOSG::OSGData< T >::setEnableOSG ( bool  flag)
inline

◆ setRenderModeOSG()

template<typename T >
void agxOSG::OSGData< T >::setRenderModeOSG ( agxRender::RenderProxy::RenderMode  mode)
inline

◆ setTransformOSG()

template<typename T >
void agxOSG::OSGData< T >::setTransformOSG ( const agx::AffineMatrix4x4 &  transform)
inline

Member Data Documentation

◆ m_data

◆ m_factory

◆ m_invTransform

template<typename T >
agx::AffineMatrix4x4 agxOSG::OSGData< T >::m_invTransform
protected

Definition at line 402 of file agxOSG/RenderProxy.h.

◆ m_proxy

template<typename T >
agxRender::RenderProxy* agxOSG::OSGData< T >::m_proxy
protected

◆ m_transformNode


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