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

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

#include <SwitchAction.hpp>

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

Classes

struct  SwitchProperties
 Properties for SwitchAction. See VRML 2.0 specification for more information. More...
 

Public Member Functions

 SwitchAction (SwitchProperties properties)
 Constructs a SwitchAction with specified properties.
 
std::shared_ptr< to_geom::conversion_context::MeshTaskConversionContextExecute () override
 Overriden implemented interface method from BaseConversionContextAction. The method simply merges choice into new conversion context and returns it.
 
- Public Member Functions inherited from vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >
virtual ~ConversionContextAction ()=default
 Virtual default destructor.
 

Detailed Description

Represents an action for Switch VRML node.

Process a VRML Switch node. Inherits from ConversionContextAction<MeshTaskConversionContext> to integrate with the conversion system.

Constructor & Destructor Documentation

◆ SwitchAction()

to_geom::action::SwitchAction::SwitchAction ( SwitchProperties properties)

Constructs a SwitchAction with specified properties.

Parameters
propertiesproperties for SwitchAction

Member Function Documentation

◆ Execute()

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

Overriden implemented interface method from BaseConversionContextAction. The method simply merges choice into new conversion context and returns it.

Returns
shared pointer owning the object of merged ConversionContext objects

Implements vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >.


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