|
AGX Dynamics
2.37.2.0
|
Base class for batch rendering of any shape or shape composite. More...
#include <RenderProxy.h>
Inheritance diagram for agxOSG::ShapeBatchRenderer< TransformType >:Public Member Functions | |
| void | clear () |
| Clear the root transform node from all child transforms. More... | |
| float | getScale () const |
| void | setScale (float scale) |
| Assign transform scale. More... | |
Protected Member Functions | |
| ShapeBatchRenderer (osg::Shape *shape, agxOSG::RenderProxyFactory *factory, agxRender::RenderProxy *proxy) | |
| Construct given single shape. More... | |
| ShapeBatchRenderer (osg::Geode *geode, agxOSG::RenderProxyFactory *factory, agxRender::RenderProxy *proxy) | |
| Construct given geode. More... | |
| virtual | ~ShapeBatchRenderer () |
| Destructor. More... | |
| void | prepare (size_t numObjects) |
| Prepare the root transform with the current amount of child nodes. More... | |
| void | prepareWithScale (size_t numObjects) |
| Including scale transform. More... | |
| void | setTransform (TransformType *obj, const agx::AffineMatrix4x4 &transform, const agx::Vec3f &scale) |
| Assign transform (given agx type) to a supported osg transform. More... | |
Protected Attributes | |
| osg::ref_ptr< osg::Geode > | m_geode |
| float | m_scale |
Base class for batch rendering of any shape or shape composite.
This class currently handles osg::MatrixTransform and osg::AutoTransform.
Definition at line 615 of file agxOSG/RenderProxy.h.
|
protected |
Construct given single shape.
| shape | - only instantiated shape |
| factory | - the render proxy factory |
| proxy | - render proxy (often the subclass) |
|
protected |
Construct given geode.
| geode | - geode with one or many shapes |
| factory | - the render proxy factory |
| proxy | - render proxy (often the subclass) |
|
inlineprotectedvirtual |
Destructor.
Definition at line 654 of file agxOSG/RenderProxy.h.
References agxTerrain::Profiler::clear(), and agxData::transform().
| void agxOSG::ShapeBatchRenderer< TransformType >::clear | ( | ) |
Clear the root transform node from all child transforms.
Definition at line 857 of file agxOSG/RenderProxy.h.
| float agxOSG::ShapeBatchRenderer< TransformType >::getScale | ( | ) | const |
Definition at line 870 of file agxOSG/RenderProxy.h.
Referenced by agxOSG::ContainerShapeBatchRenderer< ContainerType, TransformType >::findScale().
|
protected |
Prepare the root transform with the current amount of child nodes.
| numObjects | - number of child transforms |
|
protected |
Including scale transform.
| void agxOSG::ShapeBatchRenderer< TransformType >::setScale | ( | float | scale | ) |
Assign transform scale.
Default: 1.
| scale | - new scale |
Definition at line 864 of file agxOSG/RenderProxy.h.
|
protected |
Assign transform (given agx type) to a supported osg transform.
| obj | - transform object to be assigned |
| transform | - transform to a assign |
| scale | - scale factor |
|
protected |
Definition at line 676 of file agxOSG/RenderProxy.h.
|
protected |
Definition at line 677 of file agxOSG/RenderProxy.h.