PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::SceneGraphFactory Class Reference

#include <SceneGraphFactory.h>

Public Member Functions

std::shared_ptr< SceneGraphactive ()
 
std::shared_ptr< SceneGraphcreateNewScene ()
 Create a new SceneGraph.
 
std::shared_ptr< SceneGraphcreateDefaultScene ()
 
void setDefaultCreator (SceneGraphCreator creator)
 
void pushScene (std::shared_ptr< SceneGraph > scn)
 
void popScene ()
 
void popAllScenes ()
 

Static Public Member Functions

static SceneGraphFactoryinstance ()
 

Private Member Functions

 SceneGraphFactory ()=default
 
 ~SceneGraphFactory ()=default
 
 SceneGraphFactory (const SceneGraphFactory &)=delete
 
SceneGraphFactoryoperator= (const SceneGraphFactory &)=delete
 

Private Attributes

std::stack< std::shared_ptr< SceneGraph > > mSceneGraphs
 
SceneGraphCreator mDefaultCreator
 

Static Private Attributes

static std::atomic< SceneGraphFactory * > pInstance
 
static std::mutex mMutex
 

Detailed Description

Definition at line 26 of file SceneGraphFactory.h.

Constructor & Destructor Documentation

◆ SceneGraphFactory() [1/2]

dyno::SceneGraphFactory::SceneGraphFactory ( )
privatedefault
Here is the caller graph for this function:

◆ ~SceneGraphFactory()

dyno::SceneGraphFactory::~SceneGraphFactory ( )
privatedefault

◆ SceneGraphFactory() [2/2]

dyno::SceneGraphFactory::SceneGraphFactory ( const SceneGraphFactory & )
privatedelete
Here is the call graph for this function:

Member Function Documentation

◆ active()

std::shared_ptr< SceneGraph > dyno::SceneGraphFactory::active ( )

Definition at line 24 of file SceneGraphFactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDefaultScene()

std::shared_ptr< SceneGraph > dyno::SceneGraphFactory::createDefaultScene ( )

Definition at line 40 of file SceneGraphFactory.cpp.

◆ createNewScene()

std::shared_ptr< SceneGraph > dyno::SceneGraphFactory::createNewScene ( )

Create a new SceneGraph.

Returns
std::shared_ptr<SceneGraph>

Definition at line 33 of file SceneGraphFactory.cpp.

Here is the caller graph for this function:

◆ instance()

SceneGraphFactory * dyno::SceneGraphFactory::instance ( )
static

Definition at line 9 of file SceneGraphFactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

SceneGraphFactory & dyno::SceneGraphFactory::operator= ( const SceneGraphFactory & )
privatedelete
Here is the call graph for this function:

◆ popAllScenes()

void dyno::SceneGraphFactory::popAllScenes ( )

Definition at line 63 of file SceneGraphFactory.cpp.

Here is the caller graph for this function:

◆ popScene()

void dyno::SceneGraphFactory::popScene ( )

Definition at line 58 of file SceneGraphFactory.cpp.

Here is the caller graph for this function:

◆ pushScene()

void dyno::SceneGraphFactory::pushScene ( std::shared_ptr< SceneGraph > scn)

Definition at line 53 of file SceneGraphFactory.cpp.

Here is the caller graph for this function:

◆ setDefaultCreator()

void dyno::SceneGraphFactory::setDefaultCreator ( SceneGraphCreator creator)

Definition at line 48 of file SceneGraphFactory.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ mDefaultCreator

SceneGraphCreator dyno::SceneGraphFactory::mDefaultCreator
private

Definition at line 61 of file SceneGraphFactory.h.

◆ mMutex

std::mutex dyno::SceneGraphFactory::mMutex
staticprivate

Definition at line 59 of file SceneGraphFactory.h.

◆ mSceneGraphs

std::stack<std::shared_ptr<SceneGraph> > dyno::SceneGraphFactory::mSceneGraphs
private

Definition at line 55 of file SceneGraphFactory.h.

◆ pInstance

std::atomic< SceneGraphFactory * > dyno::SceneGraphFactory::pInstance
staticprivate

Definition at line 58 of file SceneGraphFactory.h.


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