Represents an action for IndexedLineSet VRML node. More...
#include <IndexedLineSetAction.hpp>
Classes | |
struct | Properties |
Properties for IndexedLineSetAction . See VRML 2.0 specification for more information. More... | |
Public Member Functions | |
IndexedLineSetAction (Properties properties, GeometryAction::Properties geometryProperties) | |
Constructs a IndexedLineSetAction with specified properties. | |
std::shared_ptr< to_geom::conversion_context::MeshTaskConversionContext > | Execute () override |
Executes the conversion of the IndexedLineSet node to a mesh representation. | |
![]() | |
GeometryAction (Properties properties) | |
Constructs a GeometryAction with specified properties. | |
![]() | |
virtual | ~ConversionContextAction ()=default |
Virtual default destructor. | |
Additional Inherited Members | |
![]() | |
Properties | m_geometryProperties |
Represents an action for IndexedLineSet VRML node.
Converts a VRML IndexedLineSet
node into a geometric representation. Inherits from GeometryAction
to integrate with the conversion system.
to_geom::action::IndexedLineSetAction::IndexedLineSetAction | ( | IndexedLineSetAction::Properties | properties, |
GeometryAction::Properties | geometryProperties ) |
Constructs a IndexedLineSetAction with specified properties.
properties | properties for IndexedLineSetAction |
geometryProperties | geometry properties |
|
overridevirtual |
Executes the conversion of the IndexedLineSet node to a mesh representation.
It is necessary to traverse Coordinate VRML node, which is geometry primitive node (and thus has not been traversed yet). We need to construct a manager and CC map for it and then traverse it. Result is of type Vec3fArrayConversionContext, which stores a reference to data we need. Note that this geometry primitive node should have been validated already in the IndexedLineSet handler.
Geometry primitive node has been traversed, so we can check if it has any data.
Implements to_geom::action::GeometryAction.