AGX Dynamics  2.37.3.2
agxOSG::SceneDescription Struct Reference

A pod-struct for holding information about scenes to load by the application. More...

#include <ExampleApplication.h>

Public Member Functions

 SceneDescription ()
 A non-valid scene. More...
 
 SceneDescription (BuildScenePtr sc, bool isTest=false, float stop=-1, bool isSlowUnittest=false)
 Creates a scene from a function pointer. More...
 
 SceneDescription (const std::string &scriptFileName, const std::string &scriptFunctionName, bool isTest=false, float stop=-1, bool isSlowUnittest=false)
 Creates a scene from a script file and a function within the file. More...
 
 SceneDescription (const std::string &sceneFile, bool isTest=false, float stop=-1, bool isSlowUnittest=false)
 Creates a scene from any kind of agx-readable file. More...
 
bool isValid () const
 

Public Attributes

std::string fileName
 
BuildScenePtr scene
 
std::string scriptFunction
 
bool slowUnittest
 
float stopAfter
 
bool unittest
 
bool valid
 

Detailed Description

A pod-struct for holding information about scenes to load by the application.

Definition at line 120 of file ExampleApplication.h.

Constructor & Destructor Documentation

◆ SceneDescription() [1/4]

agxOSG::SceneDescription::SceneDescription ( )

A non-valid scene.

◆ SceneDescription() [2/4]

agxOSG::SceneDescription::SceneDescription ( BuildScenePtr  sc,
bool  isTest = false,
float  stop = -1,
bool  isSlowUnittest = false 
)

Creates a scene from a function pointer.

◆ SceneDescription() [3/4]

agxOSG::SceneDescription::SceneDescription ( const std::string &  scriptFileName,
const std::string &  scriptFunctionName,
bool  isTest = false,
float  stop = -1,
bool  isSlowUnittest = false 
)

Creates a scene from a script file and a function within the file.

◆ SceneDescription() [4/4]

agxOSG::SceneDescription::SceneDescription ( const std::string &  sceneFile,
bool  isTest = false,
float  stop = -1,
bool  isSlowUnittest = false 
)

Creates a scene from any kind of agx-readable file.

Member Function Documentation

◆ isValid()

bool agxOSG::SceneDescription::isValid ( ) const
inline

Definition at line 134 of file ExampleApplication.h.

Member Data Documentation

◆ fileName

std::string agxOSG::SceneDescription::fileName

Definition at line 143 of file ExampleApplication.h.

◆ scene

BuildScenePtr agxOSG::SceneDescription::scene

Definition at line 137 of file ExampleApplication.h.

◆ scriptFunction

std::string agxOSG::SceneDescription::scriptFunction

Definition at line 142 of file ExampleApplication.h.

◆ slowUnittest

bool agxOSG::SceneDescription::slowUnittest

Definition at line 140 of file ExampleApplication.h.

◆ stopAfter

float agxOSG::SceneDescription::stopAfter

Definition at line 139 of file ExampleApplication.h.

◆ unittest

bool agxOSG::SceneDescription::unittest

Definition at line 138 of file ExampleApplication.h.

◆ valid

bool agxOSG::SceneDescription::valid

Definition at line 141 of file ExampleApplication.h.


The documentation for this struct was generated from the following file: