public

Description

Helper structure that keeps data for one export process.

Public Types

   
   
typedef std::function< void( ExporterContext &)> FinalizeAction
A function that allows the execution of arbitrary actions at the end of the export process.

Public Attributes

   
   
SceneManager & sceneManager
   
std::deque< std::unique_ptr< DescriptionMap > > usedPrototypes
   
std::set< std::string > usedPrototypeIds
   
std::unordered_map< Util::StringIdentifier , std::pair< DescriptionMap *, bool > > usedStateIds
   
int tmpNodeCounter
   
bool creatingDefinitions
   
std::deque< FinalizeAction > finalizeActions
   
Util::FileName sceneFile

Public Functions

   
   
  ExporterContext( SceneManager & _m)
   
void addFinalizingAction(const FinalizeAction & action)
   
void addUsedPrototype(const std::string & nodeId, std::unique_ptr< DescriptionMap > d)
   
void executeFinalizingActions()
   
bool isPrototypeUsed(const std::string & nodeId) const

Documentation

typedef
MinSG::SceneManagement::ExporterContext::FinalizeAction

public
 
 
typedef std::function< void( ExporterContext &)> FinalizeAction

A function that allows the execution of arbitrary actions at the end of the export process.

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:48


variable
MinSG::SceneManagement::ExporterContext::sceneManager

public
 
 
SceneManager & sceneManager

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:39


variable
MinSG::SceneManagement::ExporterContext::usedPrototypes

public
 
 
std::deque< std::unique_ptr< DescriptionMap > > usedPrototypes

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:40


variable
MinSG::SceneManagement::ExporterContext::usedPrototypeIds

public
 
 
std::set< std::string > usedPrototypeIds

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:41


variable
MinSG::SceneManagement::ExporterContext::usedStateIds

public
 
 
std::unordered_map< Util::StringIdentifier , std::pair< DescriptionMap *, bool > > usedStateIds

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:42


variable
MinSG::SceneManagement::ExporterContext::tmpNodeCounter

public
 
 
int tmpNodeCounter

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:44


variable
MinSG::SceneManagement::ExporterContext::creatingDefinitions

public
 
 
bool creatingDefinitions

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:45


variable
MinSG::SceneManagement::ExporterContext::finalizeActions

public
 
 
std::deque< FinalizeAction > finalizeActions

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:49


variable
MinSG::SceneManagement::ExporterContext::sceneFile

public
 
 
Util::FileName sceneFile

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:51


function
MinSG::SceneManagement::ExporterContext::ExporterContext

public inline
     
     
ExporterContext( SceneManager & _m )

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:53


function
MinSG::SceneManagement::ExporterContext::addFinalizingAction

public inline
     
     
void addFinalizingAction( const FinalizeAction & action )

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:55


function
MinSG::SceneManagement::ExporterContext::addUsedPrototype

public inline
     
     
void addUsedPrototype( const std::string & nodeId,
  std::unique_ptr< DescriptionMap > d
)    

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:58


function
MinSG::SceneManagement::ExporterContext::executeFinalizingActions

public inline
   
   
void executeFinalizingActions( )

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:63


function
MinSG::SceneManagement::ExporterContext::isPrototypeUsed

public const inline
     
     
bool isPrototypeUsed( const std::string & nodeId ) const

Defined in MinSG/SceneManagement/Exporter/ExporterContext.h:69