AGX Dynamics  2.37.2.0
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 (const RenderProxyFactory::ShapeData< T > &data, agxOSG::RenderProxyFactory *factory, agxRender::RenderProxy *proxy)
 
 OSGData (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]

template<typename T>
agxOSG::OSGData< T >::OSGData ( const RenderProxyFactory::ShapeData< T > &  data,
agxOSG::RenderProxyFactory *  factory,
agxRender::RenderProxy *  proxy 
)
inline

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

◆ OSGData() [2/2]

template<typename T>
agxOSG::OSGData< T >::OSGData ( agxOSG::RenderProxyFactory *  factory,
agxRender::RenderProxy *  proxy 
)
inline

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

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.

◆ 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.

◆ 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.

◆ 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.

◆ setEnableOSG()

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

Enable/disable rendering.

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

◆ setRenderModeOSG()

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

Change the render mode.

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

◆ setTransformOSG()

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

Transform a node.

Take the global transform into account

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

Member Data Documentation

◆ m_data

template<typename T>
RenderProxyFactory::ShapeData<T> agxOSG::OSGData< T >::m_data
protected

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

◆ m_factory

template<typename T>
agxOSG::RenderProxyFactory* agxOSG::OSGData< T >::m_factory
protected

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

◆ 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

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

◆ m_transformNode

template<typename T>
osg::ref_ptr<osg::MatrixTransform> agxOSG::OSGData< T >::m_transformNode
protected

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


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