|
AGX Dynamics
2.37.2.0
|
This class traverses a subgraph, accumulates transformations and execute a functor (TriangleExtractOperator per triangle. More...
#include <TriangleExtractor.h>
Inheritance diagram for agxOSG::TriangleExtractor:Public Member Functions | |
| TriangleExtractor (TriangleExtractOperator &op) | |
| virtual | ~TriangleExtractor () |
| Destructor. More... | |
| void | extract (osg::Node &node) |
| void | extract (osg::Geode &node) |
| void | extract (osg::MatrixTransform &node) |
Protected Member Functions | |
| virtual void | apply (osg::Node &) |
| virtual void | apply (osg::Geode &node) |
| virtual void | apply (osg::Billboard &node) |
| virtual void | apply (osg::Group &node) |
| virtual void | apply (osg::MatrixTransform &node) |
| virtual void | apply (osg::Switch &node) |
| virtual void | apply (osg::LOD &node) |
| void | apply (osg::Geometry &geom) |
| void | popMatrix () |
| void | pushMatrix (const osg::Matrix &matrix) |
Protected Attributes | |
| TriangleExtractOperator & | m_tri_op |
This class traverses a subgraph, accumulates transformations and execute a functor (TriangleExtractOperator per triangle.
The functor which is a descendant from TriangleExtractOperator has a method triangle, which will be executed per triangle. The triangle will have the coordinates in world coordinates, that is the matrix which is accumulated during the path through the scene graph to the triangle.
Definition at line 148 of file TriangleExtractor.h.
| agxOSG::TriangleExtractor::TriangleExtractor | ( | TriangleExtractOperator & | op | ) |
Constructor.
| op | - Is the functor operator which triangle method will be executed for each triangle found during traversal. |
|
inlinevirtual |
Destructor.
Definition at line 159 of file TriangleExtractor.h.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
| void agxOSG::TriangleExtractor::extract | ( | osg::Node & | node | ) |
Begins the triangle extraction on the subgraph node.
| node | - The subgraph from which the triangles will be extracted. |
|
inline |
Begins the triangle extraction on the subgraph node which is a geode
| node | - The subgraph from which the triangles will be extracted. |
Definition at line 169 of file TriangleExtractor.h.
|
inline |
Begins the triangle extraction on the subgraph node.
| node | - The subgraph from which the triangles will be extracted. |
Definition at line 176 of file TriangleExtractor.h.
|
protected |
|
protected |
|
protected |
Definition at line 196 of file TriangleExtractor.h.