vrmlproc & togeom
 
Loading...
Searching...
No Matches
to_geom::action::IndexedLineSetAction Class Reference

Represents an action for IndexedLineSet VRML node. More...

#include <IndexedLineSetAction.hpp>

Inheritance diagram for to_geom::action::IndexedLineSetAction:
to_geom::action::GeometryAction vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >

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::MeshTaskConversionContextExecute () override
 Executes the conversion of the IndexedLineSet node to a mesh representation.
 
- Public Member Functions inherited from to_geom::action::GeometryAction
 GeometryAction (Properties properties)
 Constructs a GeometryAction with specified properties.
 
- Public Member Functions inherited from vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >
virtual ~ConversionContextAction ()=default
 Virtual default destructor.
 

Additional Inherited Members

- Protected Attributes inherited from to_geom::action::GeometryAction
Properties m_geometryProperties
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IndexedLineSetAction()

to_geom::action::IndexedLineSetAction::IndexedLineSetAction ( IndexedLineSetAction::Properties properties,
GeometryAction::Properties geometryProperties )

Constructs a IndexedLineSetAction with specified properties.

Parameters
propertiesproperties for IndexedLineSetAction
geometryPropertiesgeometry properties

Member Function Documentation

◆ Execute()

std::shared_ptr< to_geom::conversion_context::MeshTaskConversionContext > to_geom::action::IndexedLineSetAction::Execute ( )
overridevirtual

Executes the conversion of the IndexedLineSet node to a mesh representation.

Returns
A shared pointer to the generated mesh conversion context.

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.


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