AGX Dynamics 2.42.0.2
Loading...
Searching...
No Matches
agxOSG::ExampleApplication Class Reference

Class that encapsulates rendering and simulation using OpenSceneGraph. More...

#include <ExampleApplication.h>

+ Inheritance diagram for agxOSG::ExampleApplication:

Public Types

typedef agx::Event1< bool > AutoStepEvent
 
enum  CameraMask {
  MAIN_SCENE_MASK = 1 << 1 , DEBUG_RENDER_MASK = 1 << 2 , OSG_RENDER_MASK = 1 << 3 , HUD_MASK = 1 << 4 ,
  DECORATOR_MASK = 1 << 5 , CASTS_SHADOWS_MASK = 1 << 6 , RECIEVES_SHADOWS_MASK = 1 << 7
}
 Specifies node masks for different parts of the rendering scene. More...
 
enum  SolverType { MULTI , ITERATIVE , NUM_SOLVERS }
 

Public Member Functions

 ExampleApplication (agxSDK::Simulation *simulation=nullptr)
 Constructor.
 
void addAutoPausePair (const agx::RigidBody *body1, const agx::RigidBody *body2)
 Add/remove a pair of bodies/geometries that when colliding will cause the simulation to pause.
 
void addAutoPausePair (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2)
 
void addListener (ExampleApplicationListener *listener)
 
void addRenderTarget (agxOSG::RenderTarget *rtt, osg::Node *targetSceneNode=nullptr)
 Add a render target to the current viewer.
 
bool addScene (BuildScenePtr sceneFunction, bool isPartofUnitTest=true, float stopAfter=-1, bool isSlowUnittest=false)
 
bool addScene (BuildScenePtr sceneFunction, int key, bool isPartofUnitTest=true, float stopAfter=-1, bool isSlowUnittest=false)
 
bool addScene (const std::string &scriptFile, const std::string &scriptFunction, bool isPartofUnitTest=true, float stopAfter=-1, bool isSlowUnittest=false)
 
bool addScene (const std::string &scriptFile, const std::string &scriptFunction, int key, bool isPartofUnitTest=true, float stopAfter=-1, bool isSlowUnittest=false)
 
bool addScene (SceneDescription sceneDescription)
 
bool addScene (SceneDescription sceneDescription, int key)
 
void applyCameraData (const agxOSG::CameraData &cameraData)
 Apply camera data.
 
bool breakRequested () const
 
void cancelStop ()
 Will cancel the stop if possible. Continue the run loop.
 
void centerScene ()
 
void changeSolver ()
 
void clearAddedScenes ()
 Remove all added scenes.
 
void clearScene ()
 
bool coSimulationCallPython (agxNet::CoSimulationServer *server)
 
void createNextScene ()
 
void createPreviousScene ()
 
bool createSceneFromIndex (int idx, bool firstStartUp=false)
 
bool createSceneFromKey (int key)
 
void createVisual (agxSDK::Assembly *assembly, float detailRatio=1.0f, bool createAxes=false)
 
void createVisual (agxSDK::Simulation *simulation, float detailRatio=1.0f, bool createAxes=false)
 
bool done () const
 If no graphics is used, this method always return false.
 
bool executeOneStepWithGraphics (agx::HighAccuracyTimer &timer)
 This method will take a whole step in AGX, update graphics (but only if target FPS is met based on elapsed time for timer).
 
bool executeOneStepWithoutGraphics ()
 
osg::Group * executePythonScript (const agx::String &file, const agx::String &function, bool &success)
 Execute a python script file with a named function.
 
void fitSceneIntoView ()
 
bool getAllowWindowResizing () const
 Is window resizing allowed?
 
agxIO::ArgumentParsergetArguments ()
 
bool getAutoStepping () const
 Should the application step automatically? False for 'pause', true for 'play'.
 
SceneDescription getCallback (int key)
 
SceneDescription getCallbackIdx (size_t idx)
 
osg::Camera * getCamera ()
 
agxOSG::CameraData getCameraData () const
 
void getCameraHome (agx::Vec3 &eye, agx::Vec3 &center, agx::Vec3 &up)
 
osgGA::MatrixManipulator * getCameraManipulator ()
 
const osgGA::MatrixManipulator * getCameraManipulator () const
 
agx::AffineMatrix4x4 getCoordinateSystemTransform () const
 Gets the transformation for the visual coordinate system and grid.
 
bool getEnableAutoPausing ()
 
bool getEnableCaptureSyncWithSimulation () const
 
bool getEnableCoordinateSystem () const
 Is the visual coordinate system enabled/disabled?
 
bool getEnableDebugRenderer () const
 Is the debug renderer enabled? Will also return false if no simulation exists.
 
bool getEnableGrid () const
 Is the visual grid enabled/disabled?
 
bool getEnableJournalIncrementalStructure () const
 
bool getEnableOSGRenderer ()
 
bool getEnablePauseUpdate () const
 
bool getEnableSimulationDump () const
 
bool getEnableTextDebugRendering () const
 
bool getEnableVSync () const
 
int getExitCode ()
 
agx::MutexgetFrameMutex ()
 
agx::Vec3 getGravity () const
 
agx::Vec2u getGridResolution () const
 Gets the grid resolution for the visual grid.
 
agx::Vec2 getGridSize () const
 Gets the grid size for the visual grid.
 
intptr_t getHWND () const
 
agxOSG::ImageCapturegetImageCapture ()
 
const agxOSG::ImageCapturegetImageCapture () const
 
agx::JournalgetJournal ()
 
const std::string & getJournalConfigurationPath () const
 
agx::UInt getJournalFormat () const
 Gets journal format.
 
const std::string & getJournalPlaybackPath () const
 
size_t getNumScenes () const
 
PickHandlergetPickHandler ()
 
const PickHandlergetPickHandler () const
 
std::string getProfilingJournalPath () const
 
bool getQuitEventSetsDone () const
 
bool getRealTimeSync () const
 
agxOSG::RenderProxyFactorygetRenderProxyFactory ()
 
osg::Group * getRoot ()
 
const std::string & getSaveSceneFilename () const
 
osg::Group * getScene ()
 
osg::Group * getSceneAgxOSGRoot ()
 
agxOSG::SceneDecoratorgetSceneDecorator ()
 
osg::Group * getSceneRoot ()
 
osg::Group * getSceneSwitch ()
 
std::string getScriptFile () const
 
agxSDK::SimulationgetSimulation ()
 
std::string getSolverName (SolverType t) const
 
SolverType getSolverType () const
 
SolverType getSolverType (const std::string &name) const
 
agx::Callback getStepCallback () const
 
double getTargetFPS ()
 Retrieve current number of graphic window updates per second, if <= 0 no throttling is done.
 
osg::Camera * getTextureCamera ()
 
agx::Real getTimeStamp () const
 
agx::Real getTimeStep () const
 
agxOSG::RenderToTexturegetVideoCaptureRendertoTexture ()
 
agxOSG::VideoFFMPEGPipeCapturegetVideoServerCapture ()
 
agx::Vec3 getViewDirection ()
 
osgViewer::Viewer * getViewer ()
 
void handleReactiveScriptErrors (bool abortSimulation=true)
 
bool hasOffscreenWindow () const
 
bool hasRenderContext () const
 This is will return false if -a / –agxOnly is specified.
 
bool init (agxIO::ArgumentParser *arguments, bool agxOnly=false)
 
bool init (int argc, char **argv)
 
void initAppendJournal ()
 
void initGraphics ()
 
bool initialized () const
 
void initRecordJournal ()
 
void initRpc ()
 
void initScene ()
 
void initScene (osg::Group *root)
 
void initSimulation (agxSDK::Simulation *simulation=nullptr, bool initializeGraphics=true)
 
void initViewer (int width, int height, bool osgWindow=true)
 
bool isCameraHomeSet () const
 
void journalPlayback ()
 
void journalRenderLoader (agxSDK::Assembly *assembly, bool keyFrame)
 
void listSessionNames (const std::string &journalToList)
 
void postExecution ()
 
void reloadScene ()
 
void removeAutoPausePair (const agx::RigidBody *body1, const agx::RigidBody *body2)
 
void removeAutoPausePair (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2)
 
bool removeRenderTarget (agxOSG::RenderTarget *rtt)
 Remove a specified renderTarget.
 
bool restoreFromFile (const std::string &filename)
 
virtual int run ()
 
void setAllowWindowResizing (bool flag)
 Set if window resizing should be allowed.
 
void setAutoStepping (bool flag, bool resetTimer=true)
 Should the application step automatically? False for 'pause', true for 'play'.
 
void setCameraHome (const agx::Vec3 &eye, const agx::Vec3 &center, const agx::Vec3 &up=agx::Vec3(0, 0, 1))
 
void setCoordinateSystemTransform (const agx::AffineMatrix4x4 &coordinateSystemTransform)
 Sets the transformation for the visual coordinate system and grid.
 
void setDebugRenderInverseMatrix (const agx::AffineMatrix4x4 &m)
 Transform the debug rendering AND pick handler origin by this matrix.
 
void setEnableAutoPausing (bool flag)
 Enable/disable auto-pausing.
 
void setEnableCaptureSyncWithSimulation (bool enableSync)
 
void setEnableCoordinateSystem (bool flag)
 Enables/disables the visual coordinate system.
 
bool setEnableDebugRenderer (bool flag)
 Set enabling the debug renderer.
 
void setEnableGrid (bool flag)
 Enables/disables the visual grid.
 
void setEnableJournal32bitMode (bool enable)
 Set to true if journal should save data in 32bit float.
 
void setEnableJournalIncrementalStructure (bool enable)
 
void setEnableJournalRecord (bool enable)
 Set if a journal should be recorded from the simulation.
 
void setEnableOSGRenderer (bool flag)
 
void setEnablePauseUpdate (bool flag)
 
void setEnableSimulationDump (bool flag)
 
void setEnableTaskProfile (bool flag)
 
void setEnableTextDebugRendering (bool flag)
 
void setEnableThreadTimeline (bool flag)
 
void setEnableVSync (bool flag, bool forceUpdate=false)
 
void setGridResolution (const agx::Vec2u gridResolution)
 Sets the grid resolution for the visual grid.
 
void setGridSize (const agx::Vec2 &gridSize)
 Sets the grid size for the visual grid.
 
void setJournalConfigurationPath (const agx::String &path)
 
void setJournalFormat (agx::UInt journalFormat)
 Sets journal format. Only valid before starting journal recording/playback.
 
void setJournalRecordPath (const agx::String &journalPath)
 Set the path for the recorded journal.
 
void setOrbitCamera (agxOSG::GeometryNode *node, const agx::Vec3 &eye, const agx::Vec3 &center, const agx::Vec3 &up=agx::Vec3::Z_AXIS(), int trackerMode=0)
 Sets an orbit camera following an node.
 
void setOrbitCamera (agxOSG::GeometryNode *node, double heading, double elevation, double distance, int trackerMode=0)
 Sets an orbit camera following an node.
 
void setOsgNotifyLevel (osg::NotifySeverity severity) const
 
void setQuitEventSetsDone (bool flag)
 If set to true (default) pressing the ESC key will exit the run loop and application will shut down.
 
void setRealTimeSync (bool flag)
 Should ExampleApplication try to hold simulation in real time? Will wait for wall clock if going to fast, but might still go too slow if simulation or rendering time take too long.
 
void setRequestedJournalFrequency (agx::Real freq)
 Set the requested recording frequency for attached journal.
 
void setScene (osg::Group *scene)
 
void setSolverType (SolverType t)
 
void setStepCallback (agx::Callback callback)
 
void setTargetFPS (double fps)
 Specify number of graphic window updates per second.
 
void setTimeStep (agx::Real dt)
 
void setupImageCaptureRenderToTexture ()
 
void setupVideoCaptureRenderTotexture ()
 
virtual void setupViewer (bool lightingEnabled=true, bool visibleWindow=true)
 
bool setWindowRectangle (unsigned int x, unsigned int y, unsigned int width, unsigned int height)
 Set the position and size of the window.
 
bool setWindowTitle (const std::string &title)
 Set the title of the window.
 
bool shouldStop () const
 
void step ()
 
void stepSimulation ()
 
void stepWrapper ()
 
void stop (int exitCode=0)
 Stop (=exit) the application at next opportunity.
 
void stopAfter (const agx::Real stopTime)
 Lets the application stop after a certain simulation time.
 
void storeInitialJournalState ()
 
void synchronizedStep (bool blocking=false)
 
void takeScreenShot (const agx::String &filename="")
 Takes a screen shot of the scene.
 
void throttleIdleCpuUsageBySleeping ()
 
void updateCoSimulationServer ()
 
bool updatePythonCoSimulationServer (const agx::String &filename, std::stringstream &buffer)
 
void updateRemoteDebugger ()
 
void updateServices ()
 
bool useCoSimulation () const
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referencedoperator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Static Public Member Functions

static void registerRemovedGeometry (GeometryNode *node)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Public Attributes

AutoStepEvent autoStepEvent
 
std::string m_hostName
 
bool m_isFMU
 
bool m_isLoadingScene
 
bool m_loadedSceneFile
 
agx::Event m_sceneLoadEvent
 

Protected Types

typedef agx::HashTable< int, int > KeyBindings
 
typedef agx::Vector< SceneDescriptionKeyBindingsVector
 

Protected Member Functions

virtual ~ExampleApplication ()
 
void addGranularCreateVisualCallbacks ()
 
void applyInitialParameters (const std::string &filePath)
 
bool attachScripts (osg::Group *root)
 
agx::Real calculateStopTime (const SceneDescription &desc)
 
osg::Group * createScene (const SceneDescription &desc, bool &success)
 
void drawCoordinateSystem ()
 
void drawGrid ()
 
void execute ()
 
osg::Group * executeMPyScript (const agx::String &file, bool &success)
 
bool executeOneStepWithGraphics (bool &saveAfterEnabled, agx::Real saveAfterTime, agx::HighAccuracyTimer &timer)
 
bool executeOneStepWithoutGraphics (bool &saveAfterEnabled, agx::Real saveAfterTime, agx::HighAccuracyTimer &timer)
 
void executeWithGraphics ()
 
void executeWithoutGraphics ()
 
agxJson::Value extractSimulationStructureToJson ()
 
void foundIncrementalArchive (agx::Journal *journal)
 
void generateQuickProfiling ()
 
void granularCreated (agxSDK::Simulation *sim, agx::RigidBody *body)
 
bool initArguments (agxIO::ArgumentParser *arguments, bool agxOnly)
 
void initRemoteCommandServer (agxIO::ArgumentParser *arguments)
 
void initThreadTimeline ()
 
void journalSceneLoader (const agx::String &path)
 
void removeGeometryNode (agxSDK::Simulation *, agxCollide::Geometry *)
 
void setArgumentsPostSceneCreation ()
 
bool timeToStop () const
 
void triggerPostFrameListeners ()
 
void triggerPreFrameListeners ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

agxSDK::Simulation::RigidBodyEvent::CallbackType m_addBodyCallback
 
bool m_agxOnly
 
bool m_allowWindowResizing
 
agxIO::ArgumentParserRef m_arguments
 
agx::Vector< std::pair< std::string, int > > m_attachedScripts
 
bool m_autoCycleThroughScenes
 
bool m_automaticStop
 
agxSDK::ContactEventListenerRef m_autoPauseListener
 
agx::HashSet< agxCollide::GeometryPair > m_autoPausePairs
 
bool m_autoPausingEnabled
 
agxOSG::RigidBodyRenderCacheRef m_cache
 
agx::Vec3 m_cameraHomeCenter
 
agx::Vec3 m_cameraHomeEye
 
bool m_cameraHomeSet
 
agx::Vec3 m_cameraHomeUp
 
agx::ref_ptr< agx::Referencedm_controller
 
osg::ref_ptr< osg::MatrixTransform > m_coordinateSystem
 
bool m_coordinateSystemEnabled
 
agx::AffineMatrix4x4 m_coordinateSystemTransform
 
agx::RealVector m_coSimulationInputData
 
std::string m_coSimulationInputFile
 
agx::RealVector m_coSimulationOutputData
 
std::string m_coSimulationOutputFile
 
agx::ref_ptr< agx::Referencedm_coSimulationServer
 
agx::ref_ptr< agx::Referencedm_debugClient
 
osg::ref_ptr< agxOSG::SceneDecoratorm_decorator
 
bool m_didStep
 
agx::Real m_dt
 
bool m_enableJournalIncrementalStructure
 
bool m_enableJournalRecording
 
bool m_enableStepping
 
bool m_enableTerrainJournalRecording
 
osg::ref_ptr< agxOSG::GuiEventAdapterm_eventAdapter
 
int m_exitCode
 
bool m_explicitFmu
 
bool m_explicitJournalConfigurationPath
 
std::string m_extractSimulationStructureToJsonPath
 
agx::Journal::FrameJumpEvent::CallbackType m_foundIncrementalArchiveCallback
 
agx::Block m_frameBlock
 
agx::Mutex m_frameMutex
 
agx::Timer m_frameSleepTimer
 
bool m_generateTaskProfile
 
bool m_generateThreadTimeline
 
agxSDK::GraphicsThrottler m_gfxThrottler
 
agxGL::CameraRef m_GlCamera
 
agxGL::LightsRef m_GlLights
 
agx::Vec3 m_gravity
 
osg::ref_ptr< osg::Geode > m_grid
 
bool m_gridEnabled
 
agx::Vec2u m_gridResolution
 
agx::Vec2 m_gridSize
 
bool m_haveLicense
 
agxOSG::ImageCaptureRef m_imageCapture
 
RenderToTextureRef m_imageCaptureRenderToTexture
 
bool m_initialized
 
bool m_interactiveRemoteClient
 
agx::ref_ptr< agx::Referencedm_journal
 
bool m_journalAppend
 
std::string m_journalConfigurationPath
 
std::string m_journalEofMode
 
agx::UInt m_journalFormat
 
agx::Real m_journalFrequency
 
std::string m_journalPlaybackPath
 
agx::RealModeEnum m_journalRealMode
 
std::string m_journalRecordPath
 
agx::Real m_journalRecordStartTime
 
std::string m_journalSessionName
 
agx::Real m_journalStartTime
 
agx::Real m_journalStopTime
 
KeyBindings m_keyBindings
 
KeyBindingsVector m_keybindingVector
 
agx::Vector< ExampleApplicationListenerRefm_listeners
 
bool m_newSimulation
 
size_t m_numGfxFrames
 
std::vector< std::string > m_openplxAddBundlePath
 
std::string m_openplxClickServerAddr = "tcp://*:5555"
 
bool m_openplxDebugRenderFrames = false
 
bool m_openplxEnableDebugLogs = false
 
std::string m_openplxModelName
 
bool m_openplxUseClick = false
 
bool m_osgWindow
 
std::string m_parameterFilePath
 
bool m_pauseUpdate
 
osg::ref_ptr< osg::GraphicsContext > m_pBuffer
 
osg::ref_ptr< osg::Camera > m_pBufferCamera
 
PickHandlerRef m_pickHandler
 
agx::Real m_profilingFrequency
 
std::string m_profilingRoot
 
std::string m_pythonFilePath
 
bool m_quickProfiling
 
bool m_realTime
 
agx::Real m_realTimeRest
 
agx::Real m_relativeStopTime
 
agxSDK::Simulation::GeometryEvent::CallbackType m_removeGeometryCallback
 
agxOSG::RenderProxyFactorym_renderProxyFactory
 
RenderTargetRefVector m_renderTargetSet
 
osg::ref_ptr< osg::Group > m_root
 
osg::ref_ptr< osg::Group > m_scene
 
std::string m_sceneFilename
 
int m_sceneIndex
 
osg::ref_ptr< osg::Group > m_sceneRoot
 
osg::ref_ptr< osg::Switch > m_sceneSwitch
 
std::string m_scriptFile
 
agx::Mutex m_serviceMutex
 
agxCFG::ConfigScriptRef m_settings
 
bool m_shouldLoadXmlPlot
 
bool m_shouldStop
 
agxSDK::SimulationRef m_simulation
 
SolverType m_solverType
 
int m_startScene
 
agx::Real m_startTime
 
StatisticsRendererRef m_statisticsRenderer
 
agx::Callback m_stepCallback
 
agx::HighAccuracyTimer m_stepTimer
 
agx::UInt m_stopFrame
 
agx::Real m_stopTime
 
osg::ref_ptr< osg::Camera > m_textureCamera
 
agx::Vector< agx::Stringm_timelineFormats
 
agx::Real m_timestep
 
bool m_useCoSimulation
 
VideoFFMPEGPipeCaptureRef m_videoCapture
 
RenderToTextureRef m_videoCaptureRenderToTexture
 
std::string m_videoName
 
osg::ref_ptr< osgViewer::Viewer > m_viewer
 
bool m_vSync
 
agx::Vec2T< int > m_windowSize
 
std::string m_xmlPlotFile
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandlergetDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 

Detailed Description

Class that encapsulates rendering and simulation using OpenSceneGraph.

Definition at line 332 of file ExampleApplication.h.

Member Typedef Documentation

◆ AutoStepEvent

◆ KeyBindings

Definition at line 967 of file ExampleApplication.h.

◆ KeyBindingsVector

Member Enumeration Documentation

◆ CameraMask

Specifies node masks for different parts of the rendering scene.

Makes it possible to later disable rendering of certain parts for different cameras. For example the HUD should not be rendered to RenderTargets (sensor cameras) by default.

Enumerator
MAIN_SCENE_MASK 
DEBUG_RENDER_MASK 
OSG_RENDER_MASK 
HUD_MASK 
DECORATOR_MASK 
CASTS_SHADOWS_MASK 
RECIEVES_SHADOWS_MASK 

Definition at line 343 of file ExampleApplication.h.

◆ SolverType

Enumerator
MULTI 
ITERATIVE 
NUM_SOLVERS 

Definition at line 354 of file ExampleApplication.h.

Constructor & Destructor Documentation

◆ ExampleApplication()

agxOSG::ExampleApplication::ExampleApplication ( agxSDK::Simulation simulation = nullptr)

Constructor.

◆ ~ExampleApplication()

virtual agxOSG::ExampleApplication::~ExampleApplication ( )
protectedvirtual

Member Function Documentation

◆ addAutoPausePair() [1/2]

void agxOSG::ExampleApplication::addAutoPausePair ( const agx::RigidBody body1,
const agx::RigidBody body2 
)

Add/remove a pair of bodies/geometries that when colliding will cause the simulation to pause.

◆ addAutoPausePair() [2/2]

void agxOSG::ExampleApplication::addAutoPausePair ( const agxCollide::Geometry geometry1,
const agxCollide::Geometry geometry2 
)

◆ addGranularCreateVisualCallbacks()

void agxOSG::ExampleApplication::addGranularCreateVisualCallbacks ( )
protected

◆ addListener()

void agxOSG::ExampleApplication::addListener ( ExampleApplicationListener listener)

◆ addRenderTarget()

void agxOSG::ExampleApplication::addRenderTarget ( agxOSG::RenderTarget rtt,
osg::Node *  targetSceneNode = nullptr 
)

Add a render target to the current viewer.

This can be used to add an additional camera which renders to a texture.

Parameters
rtt- The RenderTarget to be added to the viewer
targetSceneNode- If specified, this will be the part of the scene which is rendered to the target. Default is getSceneDecorator()

◆ addScene() [1/6]

bool agxOSG::ExampleApplication::addScene ( BuildScenePtr  sceneFunction,
bool  isPartofUnitTest = true,
float  stopAfter = -1,
bool  isSlowUnittest = false 
)

◆ addScene() [2/6]

bool agxOSG::ExampleApplication::addScene ( BuildScenePtr  sceneFunction,
int  key,
bool  isPartofUnitTest = true,
float  stopAfter = -1,
bool  isSlowUnittest = false 
)

◆ addScene() [3/6]

bool agxOSG::ExampleApplication::addScene ( const std::string &  scriptFile,
const std::string &  scriptFunction,
bool  isPartofUnitTest = true,
float  stopAfter = -1,
bool  isSlowUnittest = false 
)

◆ addScene() [4/6]

bool agxOSG::ExampleApplication::addScene ( const std::string &  scriptFile,
const std::string &  scriptFunction,
int  key,
bool  isPartofUnitTest = true,
float  stopAfter = -1,
bool  isSlowUnittest = false 
)

◆ addScene() [5/6]

bool agxOSG::ExampleApplication::addScene ( SceneDescription  sceneDescription)

◆ addScene() [6/6]

bool agxOSG::ExampleApplication::addScene ( SceneDescription  sceneDescription,
int  key 
)

◆ applyCameraData()

void agxOSG::ExampleApplication::applyCameraData ( const agxOSG::CameraData cameraData)

Apply camera data.

Typically: camData = app->getCameraData(); camData.nearClippingPlane = 0.01f; app->applyCameraData( camData );

◆ applyInitialParameters()

void agxOSG::ExampleApplication::applyInitialParameters ( const std::string &  filePath)
protected

◆ attachScripts()

bool agxOSG::ExampleApplication::attachScripts ( osg::Group *  root)
protected

◆ breakRequested()

bool agxOSG::ExampleApplication::breakRequested ( ) const
Returns
true if someone called stop OR viewer indicates we should stop (ESC pressed)

◆ calculateStopTime()

agx::Real agxOSG::ExampleApplication::calculateStopTime ( const SceneDescription desc)
protected

◆ cancelStop()

void agxOSG::ExampleApplication::cancelStop ( )
inline

Will cancel the stop if possible. Continue the run loop.

Definition at line 448 of file ExampleApplication.h.

◆ centerScene()

void agxOSG::ExampleApplication::centerScene ( )

◆ changeSolver()

void agxOSG::ExampleApplication::changeSolver ( )

◆ clearAddedScenes()

void agxOSG::ExampleApplication::clearAddedScenes ( )
inline

Remove all added scenes.

Definition at line 410 of file ExampleApplication.h.

◆ clearScene()

void agxOSG::ExampleApplication::clearScene ( )

◆ coSimulationCallPython()

bool agxOSG::ExampleApplication::coSimulationCallPython ( agxNet::CoSimulationServer server)

◆ createNextScene()

void agxOSG::ExampleApplication::createNextScene ( )

◆ createPreviousScene()

void agxOSG::ExampleApplication::createPreviousScene ( )

◆ createScene()

osg::Group * agxOSG::ExampleApplication::createScene ( const SceneDescription desc,
bool &  success 
)
protected

◆ createSceneFromIndex()

bool agxOSG::ExampleApplication::createSceneFromIndex ( int  idx,
bool  firstStartUp = false 
)

◆ createSceneFromKey()

bool agxOSG::ExampleApplication::createSceneFromKey ( int  key)

◆ createVisual() [1/2]

void agxOSG::ExampleApplication::createVisual ( agxSDK::Assembly assembly,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

◆ createVisual() [2/2]

void agxOSG::ExampleApplication::createVisual ( agxSDK::Simulation simulation,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

◆ done()

bool agxOSG::ExampleApplication::done ( ) const

If no graphics is used, this method always return false.

Returns
true when ESC key has been pressed in the graphics window, indicating that the application is shutting down.

◆ drawCoordinateSystem()

void agxOSG::ExampleApplication::drawCoordinateSystem ( )
protected

◆ drawGrid()

void agxOSG::ExampleApplication::drawGrid ( )
protected

◆ execute()

void agxOSG::ExampleApplication::execute ( )
protected

◆ executeMPyScript()

osg::Group * agxOSG::ExampleApplication::executeMPyScript ( const agx::String file,
bool &  success 
)
protected

◆ executeOneStepWithGraphics() [1/2]

bool agxOSG::ExampleApplication::executeOneStepWithGraphics ( agx::HighAccuracyTimer timer)

This method will take a whole step in AGX, update graphics (but only if target FPS is met based on elapsed time for timer).

Note
The timer must be started for any rendering to occur.
Parameters
timer- Timer that will be used to determine if it is time to update the Graphics to meet the target FPS.

◆ executeOneStepWithGraphics() [2/2]

bool agxOSG::ExampleApplication::executeOneStepWithGraphics ( bool &  saveAfterEnabled,
agx::Real  saveAfterTime,
agx::HighAccuracyTimer timer 
)
protected

◆ executeOneStepWithoutGraphics() [1/2]

bool agxOSG::ExampleApplication::executeOneStepWithoutGraphics ( )

◆ executeOneStepWithoutGraphics() [2/2]

bool agxOSG::ExampleApplication::executeOneStepWithoutGraphics ( bool &  saveAfterEnabled,
agx::Real  saveAfterTime,
agx::HighAccuracyTimer timer 
)
protected

◆ executePythonScript()

osg::Group * agxOSG::ExampleApplication::executePythonScript ( const agx::String file,
const agx::String function,
bool &  success 
)

Execute a python script file with a named function.

This function will load the python script, if that can be done without errors, the named function will be called. This can be used for building models in Python which are then accessed from C++ through named constraints, bodies etc. This function is called whenever agxViewer application load a .agxPy file and the buildScene() function is called.

Parameters
file- Full path to python script
functionname of function (without any parameters) that should be executed.
success- if executing the named function in the specified script is successful this variable will be set to true otherwise false.
Returns
pointer to the graphics scene that should be added to the visual scene.

◆ executeWithGraphics()

void agxOSG::ExampleApplication::executeWithGraphics ( )
protected

◆ executeWithoutGraphics()

void agxOSG::ExampleApplication::executeWithoutGraphics ( )
protected

◆ extractSimulationStructureToJson()

agxJson::Value agxOSG::ExampleApplication::extractSimulationStructureToJson ( )
protected

◆ fitSceneIntoView()

void agxOSG::ExampleApplication::fitSceneIntoView ( )

◆ foundIncrementalArchive()

void agxOSG::ExampleApplication::foundIncrementalArchive ( agx::Journal journal)
protected

◆ generateQuickProfiling()

void agxOSG::ExampleApplication::generateQuickProfiling ( )
protected

◆ getAllowWindowResizing()

bool agxOSG::ExampleApplication::getAllowWindowResizing ( ) const

Is window resizing allowed?

◆ getArguments()

agxIO::ArgumentParser * agxOSG::ExampleApplication::getArguments ( )
inline

Definition at line 393 of file ExampleApplication.h.

◆ getAutoStepping()

bool agxOSG::ExampleApplication::getAutoStepping ( ) const

Should the application step automatically? False for 'pause', true for 'play'.

◆ getCallback()

SceneDescription agxOSG::ExampleApplication::getCallback ( int  key)

◆ getCallbackIdx()

SceneDescription agxOSG::ExampleApplication::getCallbackIdx ( size_t  idx)

◆ getCamera()

osg::Camera * agxOSG::ExampleApplication::getCamera ( )
inline

Definition at line 630 of file ExampleApplication.h.

◆ getCameraData()

agxOSG::CameraData agxOSG::ExampleApplication::getCameraData ( ) const
Returns
the camera data for main camera

◆ getCameraHome()

void agxOSG::ExampleApplication::getCameraHome ( agx::Vec3 eye,
agx::Vec3 center,
agx::Vec3 up 
)

◆ getCameraManipulator() [1/2]

osgGA::MatrixManipulator * agxOSG::ExampleApplication::getCameraManipulator ( )

◆ getCameraManipulator() [2/2]

const osgGA::MatrixManipulator * agxOSG::ExampleApplication::getCameraManipulator ( ) const

◆ getCoordinateSystemTransform()

agx::AffineMatrix4x4 agxOSG::ExampleApplication::getCoordinateSystemTransform ( ) const

Gets the transformation for the visual coordinate system and grid.

◆ getEnableAutoPausing()

bool agxOSG::ExampleApplication::getEnableAutoPausing ( )

◆ getEnableCaptureSyncWithSimulation()

bool agxOSG::ExampleApplication::getEnableCaptureSyncWithSimulation ( ) const

◆ getEnableCoordinateSystem()

bool agxOSG::ExampleApplication::getEnableCoordinateSystem ( ) const

Is the visual coordinate system enabled/disabled?

◆ getEnableDebugRenderer()

bool agxOSG::ExampleApplication::getEnableDebugRenderer ( ) const

Is the debug renderer enabled? Will also return false if no simulation exists.

◆ getEnableGrid()

bool agxOSG::ExampleApplication::getEnableGrid ( ) const

Is the visual grid enabled/disabled?

◆ getEnableJournalIncrementalStructure()

bool agxOSG::ExampleApplication::getEnableJournalIncrementalStructure ( ) const

◆ getEnableOSGRenderer()

bool agxOSG::ExampleApplication::getEnableOSGRenderer ( )

◆ getEnablePauseUpdate()

bool agxOSG::ExampleApplication::getEnablePauseUpdate ( ) const
inline

Definition at line 575 of file ExampleApplication.h.

◆ getEnableSimulationDump()

bool agxOSG::ExampleApplication::getEnableSimulationDump ( ) const

◆ getEnableTextDebugRendering()

bool agxOSG::ExampleApplication::getEnableTextDebugRendering ( ) const

◆ getEnableVSync()

bool agxOSG::ExampleApplication::getEnableVSync ( ) const

◆ getExitCode()

int agxOSG::ExampleApplication::getExitCode ( )
inline

Definition at line 837 of file ExampleApplication.h.

◆ getFrameMutex()

agx::Mutex & agxOSG::ExampleApplication::getFrameMutex ( )
inline

Definition at line 845 of file ExampleApplication.h.

◆ getGravity()

agx::Vec3 agxOSG::ExampleApplication::getGravity ( ) const
inline

Definition at line 672 of file ExampleApplication.h.

◆ getGridResolution()

agx::Vec2u agxOSG::ExampleApplication::getGridResolution ( ) const

Gets the grid resolution for the visual grid.

◆ getGridSize()

agx::Vec2 agxOSG::ExampleApplication::getGridSize ( ) const

Gets the grid size for the visual grid.

◆ getHWND()

intptr_t agxOSG::ExampleApplication::getHWND ( ) const

◆ getImageCapture() [1/2]

agxOSG::ImageCapture * agxOSG::ExampleApplication::getImageCapture ( )
inline

Definition at line 675 of file ExampleApplication.h.

◆ getImageCapture() [2/2]

const agxOSG::ImageCapture * agxOSG::ExampleApplication::getImageCapture ( ) const
inline

Definition at line 676 of file ExampleApplication.h.

◆ getJournal()

agx::Journal * agxOSG::ExampleApplication::getJournal ( )

◆ getJournalConfigurationPath()

const std::string & agxOSG::ExampleApplication::getJournalConfigurationPath ( ) const

◆ getJournalFormat()

agx::UInt agxOSG::ExampleApplication::getJournalFormat ( ) const

Gets journal format.

◆ getJournalPlaybackPath()

const std::string & agxOSG::ExampleApplication::getJournalPlaybackPath ( ) const

◆ getNumScenes()

size_t agxOSG::ExampleApplication::getNumScenes ( ) const

◆ getPickHandler() [1/2]

PickHandler * agxOSG::ExampleApplication::getPickHandler ( )
inline

Definition at line 648 of file ExampleApplication.h.

◆ getPickHandler() [2/2]

const PickHandler * agxOSG::ExampleApplication::getPickHandler ( ) const
inline

Definition at line 649 of file ExampleApplication.h.

◆ getProfilingJournalPath()

std::string agxOSG::ExampleApplication::getProfilingJournalPath ( ) const

◆ getQuitEventSetsDone()

bool agxOSG::ExampleApplication::getQuitEventSetsDone ( ) const

◆ getRealTimeSync()

bool agxOSG::ExampleApplication::getRealTimeSync ( ) const

◆ getRenderProxyFactory()

agxOSG::RenderProxyFactory * agxOSG::ExampleApplication::getRenderProxyFactory ( )
inline

Definition at line 395 of file ExampleApplication.h.

◆ getRoot()

osg::Group * agxOSG::ExampleApplication::getRoot ( )
inline

Definition at line 613 of file ExampleApplication.h.

◆ getSaveSceneFilename()

const std::string & agxOSG::ExampleApplication::getSaveSceneFilename ( ) const
inline

Definition at line 611 of file ExampleApplication.h.

◆ getScene()

osg::Group * agxOSG::ExampleApplication::getScene ( )
inline

Definition at line 478 of file ExampleApplication.h.

◆ getSceneAgxOSGRoot()

osg::Group * agxOSG::ExampleApplication::getSceneAgxOSGRoot ( )

◆ getSceneDecorator()

agxOSG::SceneDecorator * agxOSG::ExampleApplication::getSceneDecorator ( )
inline

Definition at line 422 of file ExampleApplication.h.

◆ getSceneRoot()

osg::Group * agxOSG::ExampleApplication::getSceneRoot ( )
inline

Definition at line 480 of file ExampleApplication.h.

◆ getSceneSwitch()

osg::Group * agxOSG::ExampleApplication::getSceneSwitch ( )
inline

Definition at line 482 of file ExampleApplication.h.

◆ getScriptFile()

std::string agxOSG::ExampleApplication::getScriptFile ( ) const
inline

Definition at line 651 of file ExampleApplication.h.

◆ getSimulation()

agxSDK::Simulation * agxOSG::ExampleApplication::getSimulation ( )
inline

Definition at line 556 of file ExampleApplication.h.

◆ getSolverName()

std::string agxOSG::ExampleApplication::getSolverName ( SolverType  t) const

◆ getSolverType() [1/2]

SolverType agxOSG::ExampleApplication::getSolverType ( ) const
inline

Definition at line 363 of file ExampleApplication.h.

◆ getSolverType() [2/2]

SolverType agxOSG::ExampleApplication::getSolverType ( const std::string &  name) const

◆ getStepCallback()

agx::Callback agxOSG::ExampleApplication::getStepCallback ( ) const
inline

Definition at line 417 of file ExampleApplication.h.

◆ getTargetFPS()

double agxOSG::ExampleApplication::getTargetFPS ( )

Retrieve current number of graphic window updates per second, if <= 0 no throttling is done.

◆ getTextureCamera()

osg::Camera * agxOSG::ExampleApplication::getTextureCamera ( )
inline

Definition at line 680 of file ExampleApplication.h.

◆ getTimeStamp()

agx::Real agxOSG::ExampleApplication::getTimeStamp ( ) const

◆ getTimeStep()

agx::Real agxOSG::ExampleApplication::getTimeStep ( ) const

◆ getVideoCaptureRendertoTexture()

agxOSG::RenderToTexture * agxOSG::ExampleApplication::getVideoCaptureRendertoTexture ( )
inline

Definition at line 821 of file ExampleApplication.h.

◆ getVideoServerCapture()

agxOSG::VideoFFMPEGPipeCapture * agxOSG::ExampleApplication::getVideoServerCapture ( )
inline

Definition at line 678 of file ExampleApplication.h.

◆ getViewDirection()

agx::Vec3 agxOSG::ExampleApplication::getViewDirection ( )

◆ getViewer()

osgViewer::Viewer * agxOSG::ExampleApplication::getViewer ( )
inline

Definition at line 629 of file ExampleApplication.h.

◆ granularCreated()

void agxOSG::ExampleApplication::granularCreated ( agxSDK::Simulation sim,
agx::RigidBody body 
)
protected

◆ handleReactiveScriptErrors()

void agxOSG::ExampleApplication::handleReactiveScriptErrors ( bool  abortSimulation = true)

◆ hasOffscreenWindow()

bool agxOSG::ExampleApplication::hasOffscreenWindow ( ) const

◆ hasRenderContext()

bool agxOSG::ExampleApplication::hasRenderContext ( ) const

This is will return false if -a / –agxOnly is specified.

No graphics context will be available for rendering.

Returns
true if a render context is available..

◆ init() [1/2]

bool agxOSG::ExampleApplication::init ( agxIO::ArgumentParser arguments,
bool  agxOnly = false 
)

◆ init() [2/2]

bool agxOSG::ExampleApplication::init ( int  argc,
char **  argv 
)

◆ initAppendJournal()

void agxOSG::ExampleApplication::initAppendJournal ( )

◆ initArguments()

bool agxOSG::ExampleApplication::initArguments ( agxIO::ArgumentParser arguments,
bool  agxOnly 
)
protected

◆ initGraphics()

void agxOSG::ExampleApplication::initGraphics ( )

◆ initialized()

bool agxOSG::ExampleApplication::initialized ( ) const
inline

Definition at line 420 of file ExampleApplication.h.

◆ initRecordJournal()

void agxOSG::ExampleApplication::initRecordJournal ( )

◆ initRemoteCommandServer()

void agxOSG::ExampleApplication::initRemoteCommandServer ( agxIO::ArgumentParser arguments)
protected

◆ initRpc()

void agxOSG::ExampleApplication::initRpc ( )

◆ initScene() [1/2]

void agxOSG::ExampleApplication::initScene ( )

◆ initScene() [2/2]

void agxOSG::ExampleApplication::initScene ( osg::Group *  root)

◆ initSimulation()

void agxOSG::ExampleApplication::initSimulation ( agxSDK::Simulation simulation = nullptr,
bool  initializeGraphics = true 
)

◆ initThreadTimeline()

void agxOSG::ExampleApplication::initThreadTimeline ( )
protected

◆ initViewer()

void agxOSG::ExampleApplication::initViewer ( int  width,
int  height,
bool  osgWindow = true 
)

◆ isCameraHomeSet()

bool agxOSG::ExampleApplication::isCameraHomeSet ( ) const
inline

Definition at line 683 of file ExampleApplication.h.

◆ journalPlayback()

void agxOSG::ExampleApplication::journalPlayback ( )

◆ journalRenderLoader()

void agxOSG::ExampleApplication::journalRenderLoader ( agxSDK::Assembly assembly,
bool  keyFrame 
)

◆ journalSceneLoader()

void agxOSG::ExampleApplication::journalSceneLoader ( const agx::String path)
protected

◆ listSessionNames()

void agxOSG::ExampleApplication::listSessionNames ( const std::string &  journalToList)

◆ postExecution()

void agxOSG::ExampleApplication::postExecution ( )

◆ registerRemovedGeometry()

static void agxOSG::ExampleApplication::registerRemovedGeometry ( GeometryNode node)
static

◆ reloadScene()

void agxOSG::ExampleApplication::reloadScene ( )

◆ removeAutoPausePair() [1/2]

void agxOSG::ExampleApplication::removeAutoPausePair ( const agx::RigidBody body1,
const agx::RigidBody body2 
)

◆ removeAutoPausePair() [2/2]

void agxOSG::ExampleApplication::removeAutoPausePair ( const agxCollide::Geometry geometry1,
const agxCollide::Geometry geometry2 
)

◆ removeGeometryNode()

void agxOSG::ExampleApplication::removeGeometryNode ( agxSDK::Simulation ,
agxCollide::Geometry  
)
protected

◆ removeRenderTarget()

bool agxOSG::ExampleApplication::removeRenderTarget ( agxOSG::RenderTarget rtt)

Remove a specified renderTarget.

Returns
true if target is removed

◆ restoreFromFile()

bool agxOSG::ExampleApplication::restoreFromFile ( const std::string &  filename)

◆ run()

virtual int agxOSG::ExampleApplication::run ( )
virtual

◆ setAllowWindowResizing()

void agxOSG::ExampleApplication::setAllowWindowResizing ( bool  flag)

Set if window resizing should be allowed.

◆ setArgumentsPostSceneCreation()

void agxOSG::ExampleApplication::setArgumentsPostSceneCreation ( )
protected

◆ setAutoStepping()

void agxOSG::ExampleApplication::setAutoStepping ( bool  flag,
bool  resetTimer = true 
)

Should the application step automatically? False for 'pause', true for 'play'.

By default setAutoStepping resets the time to next simulation step, so that it will take place in timeStep seconds after the setAutoStepping call. (See setTimeStep()) To prevent this timer reset, use resetTimer=false. The next simulation step will take place in whatever time is left.

◆ setCameraHome()

void agxOSG::ExampleApplication::setCameraHome ( const agx::Vec3 eye,
const agx::Vec3 center,
const agx::Vec3 up = agx::Vec3(0, 0, 1) 
)

◆ setCoordinateSystemTransform()

void agxOSG::ExampleApplication::setCoordinateSystemTransform ( const agx::AffineMatrix4x4 coordinateSystemTransform)

Sets the transformation for the visual coordinate system and grid.

◆ setDebugRenderInverseMatrix()

void agxOSG::ExampleApplication::setDebugRenderInverseMatrix ( const agx::AffineMatrix4x4 m)

Transform the debug rendering AND pick handler origin by this matrix.

This is handy when you are creating scenes which have coordinates which are very large. For example on the surface of the earth. Find the object which you want to transform into origin, get its translation and call this method with its inverse transform (usually translation only).

◆ setEnableAutoPausing()

void agxOSG::ExampleApplication::setEnableAutoPausing ( bool  flag)

Enable/disable auto-pausing.

◆ setEnableCaptureSyncWithSimulation()

void agxOSG::ExampleApplication::setEnableCaptureSyncWithSimulation ( bool  enableSync)

◆ setEnableCoordinateSystem()

void agxOSG::ExampleApplication::setEnableCoordinateSystem ( bool  flag)

Enables/disables the visual coordinate system.

◆ setEnableDebugRenderer()

bool agxOSG::ExampleApplication::setEnableDebugRenderer ( bool  flag)

Set enabling the debug renderer.

Works only when running with graphics (no –agxOnly) and a simulation exists.

Parameters
flagShould the debug renderer be enabled or not?
Return values
Wassetting the value successful? Will e.g. return false if running without graphics, or if no simulation exists.

◆ setEnableGrid()

void agxOSG::ExampleApplication::setEnableGrid ( bool  flag)

Enables/disables the visual grid.

◆ setEnableJournal32bitMode()

void agxOSG::ExampleApplication::setEnableJournal32bitMode ( bool  enable)

Set to true if journal should save data in 32bit float.

◆ setEnableJournalIncrementalStructure()

void agxOSG::ExampleApplication::setEnableJournalIncrementalStructure ( bool  enable)

◆ setEnableJournalRecord()

void agxOSG::ExampleApplication::setEnableJournalRecord ( bool  enable)

Set if a journal should be recorded from the simulation.

◆ setEnableOSGRenderer()

void agxOSG::ExampleApplication::setEnableOSGRenderer ( bool  flag)

◆ setEnablePauseUpdate()

void agxOSG::ExampleApplication::setEnablePauseUpdate ( bool  flag)
inline

Definition at line 574 of file ExampleApplication.h.

◆ setEnableSimulationDump()

void agxOSG::ExampleApplication::setEnableSimulationDump ( bool  flag)

◆ setEnableTaskProfile()

void agxOSG::ExampleApplication::setEnableTaskProfile ( bool  flag)

◆ setEnableTextDebugRendering()

void agxOSG::ExampleApplication::setEnableTextDebugRendering ( bool  flag)

◆ setEnableThreadTimeline()

void agxOSG::ExampleApplication::setEnableThreadTimeline ( bool  flag)

◆ setEnableVSync()

void agxOSG::ExampleApplication::setEnableVSync ( bool  flag,
bool  forceUpdate = false 
)

◆ setGridResolution()

void agxOSG::ExampleApplication::setGridResolution ( const agx::Vec2u  gridResolution)

Sets the grid resolution for the visual grid.

◆ setGridSize()

void agxOSG::ExampleApplication::setGridSize ( const agx::Vec2 gridSize)

Sets the grid size for the visual grid.

◆ setJournalConfigurationPath()

void agxOSG::ExampleApplication::setJournalConfigurationPath ( const agx::String path)

◆ setJournalFormat()

void agxOSG::ExampleApplication::setJournalFormat ( agx::UInt  journalFormat)

Sets journal format. Only valid before starting journal recording/playback.

◆ setJournalRecordPath()

void agxOSG::ExampleApplication::setJournalRecordPath ( const agx::String journalPath)

Set the path for the recorded journal.

◆ setOrbitCamera() [1/2]

void agxOSG::ExampleApplication::setOrbitCamera ( agxOSG::GeometryNode node,
const agx::Vec3 eye,
const agx::Vec3 center,
const agx::Vec3 up = agx::Vec3::Z_AXIS(),
int  trackerMode = 0 
)

Sets an orbit camera following an node.

Parameters
nodeThe node.
eyeThe camera eye.
centerThe camera center relative geometry center.
upThe camera up vector
trackerModeSee osgGA::NodeTrackerManipulator::TrackerNode.

◆ setOrbitCamera() [2/2]

void agxOSG::ExampleApplication::setOrbitCamera ( agxOSG::GeometryNode node,
double  heading,
double  elevation,
double  distance,
int  trackerMode = 0 
)

Sets an orbit camera following an node.

Parameters
nodeThe node.
headingThe camera heading.
elevationThe camera elevation.
distanceThe camera distance
trackerModeSee osgGA::NodeTrackerManipulator::TrackerNode.

◆ setOsgNotifyLevel()

void agxOSG::ExampleApplication::setOsgNotifyLevel ( osg::NotifySeverity  severity) const

◆ setQuitEventSetsDone()

void agxOSG::ExampleApplication::setQuitEventSetsDone ( bool  flag)

If set to true (default) pressing the ESC key will exit the run loop and application will shut down.

If false, pressing esc will not quit the application.

◆ setRealTimeSync()

void agxOSG::ExampleApplication::setRealTimeSync ( bool  flag)

Should ExampleApplication try to hold simulation in real time? Will wait for wall clock if going to fast, but might still go too slow if simulation or rendering time take too long.

◆ setRequestedJournalFrequency()

void agxOSG::ExampleApplication::setRequestedJournalFrequency ( agx::Real  freq)

Set the requested recording frequency for attached journal.

◆ setScene()

void agxOSG::ExampleApplication::setScene ( osg::Group *  scene)
inline

Definition at line 479 of file ExampleApplication.h.

◆ setSolverType()

void agxOSG::ExampleApplication::setSolverType ( SolverType  t)
inline

Definition at line 362 of file ExampleApplication.h.

◆ setStepCallback()

void agxOSG::ExampleApplication::setStepCallback ( agx::Callback  callback)
inline

Definition at line 418 of file ExampleApplication.h.

◆ setTargetFPS()

void agxOSG::ExampleApplication::setTargetFPS ( double  fps)

Specify number of graphic window updates per second.

Parameters
fpstarget frames per second, if <= 0 no throttling will be done

◆ setTimeStep()

void agxOSG::ExampleApplication::setTimeStep ( agx::Real  dt)

◆ setupImageCaptureRenderToTexture()

void agxOSG::ExampleApplication::setupImageCaptureRenderToTexture ( )

◆ setupVideoCaptureRenderTotexture()

void agxOSG::ExampleApplication::setupVideoCaptureRenderTotexture ( )

◆ setupViewer()

virtual void agxOSG::ExampleApplication::setupViewer ( bool  lightingEnabled = true,
bool  visibleWindow = true 
)
virtual

◆ setWindowRectangle()

bool agxOSG::ExampleApplication::setWindowRectangle ( unsigned int  x,
unsigned int  y,
unsigned int  width,
unsigned int  height 
)

Set the position and size of the window.

Parameters
x,y- X/Y position in pixels of the graphics window
width,height- size in pixels of the graphics window
Returns
true if the window is present and the resize was successful. False if there are no windows to be modified.

◆ setWindowTitle()

bool agxOSG::ExampleApplication::setWindowTitle ( const std::string &  title)

Set the title of the window.

Parameters
title- Title string to set on the window
Returns
true if the window is present and the title was successfully updated. False if there are no windows to be modified.

◆ shouldStop()

bool agxOSG::ExampleApplication::shouldStop ( ) const
inline
Returns
true if someone has called stop.

Definition at line 451 of file ExampleApplication.h.

◆ step()

void agxOSG::ExampleApplication::step ( )

◆ stepSimulation()

void agxOSG::ExampleApplication::stepSimulation ( )

◆ stepWrapper()

void agxOSG::ExampleApplication::stepWrapper ( )

◆ stop()

void agxOSG::ExampleApplication::stop ( int  exitCode = 0)
inline

Stop (=exit) the application at next opportunity.

Meaning, exit the run loop.

Parameters
exitCode- The exit code that will be used when returning from the run loop.

Definition at line 445 of file ExampleApplication.h.

◆ stopAfter()

void agxOSG::ExampleApplication::stopAfter ( const agx::Real  stopTime)

Lets the application stop after a certain simulation time.

Same as using –stopAfter command line argument.

Parameters
stopTimeSimulation time after which the application should stop.

◆ storeInitialJournalState()

void agxOSG::ExampleApplication::storeInitialJournalState ( )

◆ synchronizedStep()

void agxOSG::ExampleApplication::synchronizedStep ( bool  blocking = false)

◆ takeScreenShot()

void agxOSG::ExampleApplication::takeScreenShot ( const agx::String filename = "")

Takes a screen shot of the scene.

If filename is left empty, it will default to "agx_screen_%05d.png".

◆ throttleIdleCpuUsageBySleeping()

void agxOSG::ExampleApplication::throttleIdleCpuUsageBySleeping ( )

◆ timeToStop()

bool agxOSG::ExampleApplication::timeToStop ( ) const
protected
Returns
true if we have simulated long enough given stop time and or stop frames

◆ triggerPostFrameListeners()

void agxOSG::ExampleApplication::triggerPostFrameListeners ( )
protected

◆ triggerPreFrameListeners()

void agxOSG::ExampleApplication::triggerPreFrameListeners ( )
protected

◆ updateCoSimulationServer()

void agxOSG::ExampleApplication::updateCoSimulationServer ( )

◆ updatePythonCoSimulationServer()

bool agxOSG::ExampleApplication::updatePythonCoSimulationServer ( const agx::String filename,
std::stringstream &  buffer 
)

◆ updateRemoteDebugger()

void agxOSG::ExampleApplication::updateRemoteDebugger ( )

◆ updateServices()

void agxOSG::ExampleApplication::updateServices ( )

◆ useCoSimulation()

bool agxOSG::ExampleApplication::useCoSimulation ( ) const
inline

Definition at line 670 of file ExampleApplication.h.

Member Data Documentation

◆ autoStepEvent

AutoStepEvent agxOSG::ExampleApplication::autoStepEvent

Definition at line 336 of file ExampleApplication.h.

◆ m_addBodyCallback

agxSDK::Simulation::RigidBodyEvent::CallbackType agxOSG::ExampleApplication::m_addBodyCallback
protected

Definition at line 1057 of file ExampleApplication.h.

◆ m_agxOnly

bool agxOSG::ExampleApplication::m_agxOnly
protected

Definition at line 992 of file ExampleApplication.h.

◆ m_allowWindowResizing

bool agxOSG::ExampleApplication::m_allowWindowResizing
protected

Definition at line 1073 of file ExampleApplication.h.

◆ m_arguments

agxIO::ArgumentParserRef agxOSG::ExampleApplication::m_arguments
protected

Definition at line 975 of file ExampleApplication.h.

◆ m_attachedScripts

agx::Vector<std::pair<std::string, int> > agxOSG::ExampleApplication::m_attachedScripts
protected

Definition at line 1054 of file ExampleApplication.h.

◆ m_autoCycleThroughScenes

bool agxOSG::ExampleApplication::m_autoCycleThroughScenes
protected

Definition at line 991 of file ExampleApplication.h.

◆ m_automaticStop

bool agxOSG::ExampleApplication::m_automaticStop
protected

Definition at line 984 of file ExampleApplication.h.

◆ m_autoPauseListener

agxSDK::ContactEventListenerRef agxOSG::ExampleApplication::m_autoPauseListener
protected

Definition at line 1002 of file ExampleApplication.h.

◆ m_autoPausePairs

agx::HashSet<agxCollide::GeometryPair> agxOSG::ExampleApplication::m_autoPausePairs
protected

Definition at line 1001 of file ExampleApplication.h.

◆ m_autoPausingEnabled

bool agxOSG::ExampleApplication::m_autoPausingEnabled
protected

Definition at line 1000 of file ExampleApplication.h.

◆ m_cache

agxOSG::RigidBodyRenderCacheRef agxOSG::ExampleApplication::m_cache
protected

Definition at line 1126 of file ExampleApplication.h.

◆ m_cameraHomeCenter

agx::Vec3 agxOSG::ExampleApplication::m_cameraHomeCenter
protected

Definition at line 1024 of file ExampleApplication.h.

◆ m_cameraHomeEye

agx::Vec3 agxOSG::ExampleApplication::m_cameraHomeEye
protected

Definition at line 1023 of file ExampleApplication.h.

◆ m_cameraHomeSet

bool agxOSG::ExampleApplication::m_cameraHomeSet
protected

Definition at line 1022 of file ExampleApplication.h.

◆ m_cameraHomeUp

agx::Vec3 agxOSG::ExampleApplication::m_cameraHomeUp
protected

Definition at line 1025 of file ExampleApplication.h.

◆ m_controller

agx::ref_ptr<agx::Referenced> agxOSG::ExampleApplication::m_controller
protected

Definition at line 1055 of file ExampleApplication.h.

◆ m_coordinateSystem

osg::ref_ptr<osg::MatrixTransform> agxOSG::ExampleApplication::m_coordinateSystem
protected

Definition at line 1110 of file ExampleApplication.h.

◆ m_coordinateSystemEnabled

bool agxOSG::ExampleApplication::m_coordinateSystemEnabled
protected

Definition at line 1107 of file ExampleApplication.h.

◆ m_coordinateSystemTransform

agx::AffineMatrix4x4 agxOSG::ExampleApplication::m_coordinateSystemTransform
protected

Definition at line 1104 of file ExampleApplication.h.

◆ m_coSimulationInputData

agx::RealVector agxOSG::ExampleApplication::m_coSimulationInputData
protected

Definition at line 1034 of file ExampleApplication.h.

◆ m_coSimulationInputFile

std::string agxOSG::ExampleApplication::m_coSimulationInputFile
protected

Definition at line 1032 of file ExampleApplication.h.

◆ m_coSimulationOutputData

agx::RealVector agxOSG::ExampleApplication::m_coSimulationOutputData
protected

Definition at line 1035 of file ExampleApplication.h.

◆ m_coSimulationOutputFile

std::string agxOSG::ExampleApplication::m_coSimulationOutputFile
protected

Definition at line 1033 of file ExampleApplication.h.

◆ m_coSimulationServer

agx::ref_ptr<agx::Referenced> agxOSG::ExampleApplication::m_coSimulationServer
protected

Definition at line 1014 of file ExampleApplication.h.

◆ m_debugClient

agx::ref_ptr<agx::Referenced> agxOSG::ExampleApplication::m_debugClient
protected

Definition at line 1015 of file ExampleApplication.h.

◆ m_decorator

osg::ref_ptr<agxOSG::SceneDecorator> agxOSG::ExampleApplication::m_decorator
protected

Definition at line 951 of file ExampleApplication.h.

◆ m_didStep

bool agxOSG::ExampleApplication::m_didStep
protected

Definition at line 1078 of file ExampleApplication.h.

◆ m_dt

agx::Real agxOSG::ExampleApplication::m_dt
protected

Definition at line 1074 of file ExampleApplication.h.

◆ m_enableJournalIncrementalStructure

bool agxOSG::ExampleApplication::m_enableJournalIncrementalStructure
protected

Definition at line 1113 of file ExampleApplication.h.

◆ m_enableJournalRecording

bool agxOSG::ExampleApplication::m_enableJournalRecording
protected

Definition at line 1112 of file ExampleApplication.h.

◆ m_enableStepping

bool agxOSG::ExampleApplication::m_enableStepping
protected

Definition at line 1065 of file ExampleApplication.h.

◆ m_enableTerrainJournalRecording

bool agxOSG::ExampleApplication::m_enableTerrainJournalRecording
protected

Definition at line 1118 of file ExampleApplication.h.

◆ m_eventAdapter

osg::ref_ptr<agxOSG::GuiEventAdapter> agxOSG::ExampleApplication::m_eventAdapter
protected

Definition at line 953 of file ExampleApplication.h.

◆ m_exitCode

int agxOSG::ExampleApplication::m_exitCode
protected

Definition at line 1013 of file ExampleApplication.h.

◆ m_explicitFmu

bool agxOSG::ExampleApplication::m_explicitFmu
protected

Definition at line 1115 of file ExampleApplication.h.

◆ m_explicitJournalConfigurationPath

bool agxOSG::ExampleApplication::m_explicitJournalConfigurationPath
protected

Definition at line 1040 of file ExampleApplication.h.

◆ m_extractSimulationStructureToJsonPath

std::string agxOSG::ExampleApplication::m_extractSimulationStructureToJsonPath
protected

Definition at line 1047 of file ExampleApplication.h.

◆ m_foundIncrementalArchiveCallback

agx::Journal::FrameJumpEvent::CallbackType agxOSG::ExampleApplication::m_foundIncrementalArchiveCallback
protected

Definition at line 1059 of file ExampleApplication.h.

◆ m_frameBlock

agx::Block agxOSG::ExampleApplication::m_frameBlock
protected

Definition at line 1071 of file ExampleApplication.h.

◆ m_frameMutex

agx::Mutex agxOSG::ExampleApplication::m_frameMutex
protected

Definition at line 1069 of file ExampleApplication.h.

◆ m_frameSleepTimer

agx::Timer agxOSG::ExampleApplication::m_frameSleepTimer
protected

Definition at line 1077 of file ExampleApplication.h.

◆ m_generateTaskProfile

bool agxOSG::ExampleApplication::m_generateTaskProfile
protected

Definition at line 1030 of file ExampleApplication.h.

◆ m_generateThreadTimeline

bool agxOSG::ExampleApplication::m_generateThreadTimeline
protected

Definition at line 1027 of file ExampleApplication.h.

◆ m_gfxThrottler

agxSDK::GraphicsThrottler agxOSG::ExampleApplication::m_gfxThrottler
protected

Definition at line 1128 of file ExampleApplication.h.

◆ m_GlCamera

agxGL::CameraRef agxOSG::ExampleApplication::m_GlCamera
protected

Definition at line 1019 of file ExampleApplication.h.

◆ m_GlLights

agxGL::LightsRef agxOSG::ExampleApplication::m_GlLights
protected

Definition at line 1020 of file ExampleApplication.h.

◆ m_gravity

agx::Vec3 agxOSG::ExampleApplication::m_gravity
protected

Definition at line 1017 of file ExampleApplication.h.

◆ m_grid

osg::ref_ptr<osg::Geode> agxOSG::ExampleApplication::m_grid
protected

Definition at line 1109 of file ExampleApplication.h.

◆ m_gridEnabled

bool agxOSG::ExampleApplication::m_gridEnabled
protected

Definition at line 1108 of file ExampleApplication.h.

◆ m_gridResolution

agx::Vec2u agxOSG::ExampleApplication::m_gridResolution
protected

Definition at line 1105 of file ExampleApplication.h.

◆ m_gridSize

agx::Vec2 agxOSG::ExampleApplication::m_gridSize
protected

Definition at line 1106 of file ExampleApplication.h.

◆ m_haveLicense

bool agxOSG::ExampleApplication::m_haveLicense
protected

Definition at line 1072 of file ExampleApplication.h.

◆ m_hostName

std::string agxOSG::ExampleApplication::m_hostName

Definition at line 1101 of file ExampleApplication.h.

◆ m_imageCapture

agxOSG::ImageCaptureRef agxOSG::ExampleApplication::m_imageCapture
protected

Definition at line 956 of file ExampleApplication.h.

◆ m_imageCaptureRenderToTexture

RenderToTextureRef agxOSG::ExampleApplication::m_imageCaptureRenderToTexture
protected

Definition at line 1123 of file ExampleApplication.h.

◆ m_initialized

bool agxOSG::ExampleApplication::m_initialized
protected

Definition at line 980 of file ExampleApplication.h.

◆ m_interactiveRemoteClient

bool agxOSG::ExampleApplication::m_interactiveRemoteClient
protected

Definition at line 1114 of file ExampleApplication.h.

◆ m_isFMU

bool agxOSG::ExampleApplication::m_isFMU

Definition at line 1099 of file ExampleApplication.h.

◆ m_isLoadingScene

bool agxOSG::ExampleApplication::m_isLoadingScene

Definition at line 1098 of file ExampleApplication.h.

◆ m_journal

agx::ref_ptr<agx::Referenced> agxOSG::ExampleApplication::m_journal
protected

Definition at line 1052 of file ExampleApplication.h.

◆ m_journalAppend

bool agxOSG::ExampleApplication::m_journalAppend
protected

Definition at line 1117 of file ExampleApplication.h.

◆ m_journalConfigurationPath

std::string agxOSG::ExampleApplication::m_journalConfigurationPath
protected

Definition at line 1039 of file ExampleApplication.h.

◆ m_journalEofMode

std::string agxOSG::ExampleApplication::m_journalEofMode
protected

Definition at line 1044 of file ExampleApplication.h.

◆ m_journalFormat

agx::UInt agxOSG::ExampleApplication::m_journalFormat
protected

Definition at line 1041 of file ExampleApplication.h.

◆ m_journalFrequency

agx::Real agxOSG::ExampleApplication::m_journalFrequency
protected

Definition at line 1050 of file ExampleApplication.h.

◆ m_journalPlaybackPath

std::string agxOSG::ExampleApplication::m_journalPlaybackPath
protected

Definition at line 1038 of file ExampleApplication.h.

◆ m_journalRealMode

agx::RealModeEnum agxOSG::ExampleApplication::m_journalRealMode
protected

Definition at line 1051 of file ExampleApplication.h.

◆ m_journalRecordPath

std::string agxOSG::ExampleApplication::m_journalRecordPath
protected

Definition at line 1045 of file ExampleApplication.h.

◆ m_journalRecordStartTime

agx::Real agxOSG::ExampleApplication::m_journalRecordStartTime
protected

Definition at line 1048 of file ExampleApplication.h.

◆ m_journalSessionName

std::string agxOSG::ExampleApplication::m_journalSessionName
protected

Definition at line 1046 of file ExampleApplication.h.

◆ m_journalStartTime

agx::Real agxOSG::ExampleApplication::m_journalStartTime
protected

Definition at line 1042 of file ExampleApplication.h.

◆ m_journalStopTime

agx::Real agxOSG::ExampleApplication::m_journalStopTime
protected

Definition at line 1043 of file ExampleApplication.h.

◆ m_keyBindings

KeyBindings agxOSG::ExampleApplication::m_keyBindings
protected

Definition at line 971 of file ExampleApplication.h.

◆ m_keybindingVector

KeyBindingsVector agxOSG::ExampleApplication::m_keybindingVector
protected

Definition at line 972 of file ExampleApplication.h.

◆ m_listeners

agx::Vector<ExampleApplicationListenerRef> agxOSG::ExampleApplication::m_listeners
protected

Definition at line 1124 of file ExampleApplication.h.

◆ m_loadedSceneFile

bool agxOSG::ExampleApplication::m_loadedSceneFile

Definition at line 1097 of file ExampleApplication.h.

◆ m_newSimulation

bool agxOSG::ExampleApplication::m_newSimulation
protected

Definition at line 990 of file ExampleApplication.h.

◆ m_numGfxFrames

size_t agxOSG::ExampleApplication::m_numGfxFrames
protected

Definition at line 1127 of file ExampleApplication.h.

◆ m_openplxAddBundlePath

std::vector<std::string> agxOSG::ExampleApplication::m_openplxAddBundlePath
protected

Definition at line 1087 of file ExampleApplication.h.

◆ m_openplxClickServerAddr

std::string agxOSG::ExampleApplication::m_openplxClickServerAddr = "tcp://*:5555"
protected

Definition at line 1086 of file ExampleApplication.h.

◆ m_openplxDebugRenderFrames

bool agxOSG::ExampleApplication::m_openplxDebugRenderFrames = false
protected

Definition at line 1088 of file ExampleApplication.h.

◆ m_openplxEnableDebugLogs

bool agxOSG::ExampleApplication::m_openplxEnableDebugLogs = false
protected

Definition at line 1089 of file ExampleApplication.h.

◆ m_openplxModelName

std::string agxOSG::ExampleApplication::m_openplxModelName
protected

Definition at line 1090 of file ExampleApplication.h.

◆ m_openplxUseClick

bool agxOSG::ExampleApplication::m_openplxUseClick = false
protected

Definition at line 1085 of file ExampleApplication.h.

◆ m_osgWindow

bool agxOSG::ExampleApplication::m_osgWindow
protected

Definition at line 963 of file ExampleApplication.h.

◆ m_parameterFilePath

std::string agxOSG::ExampleApplication::m_parameterFilePath
protected

Definition at line 978 of file ExampleApplication.h.

◆ m_pauseUpdate

bool agxOSG::ExampleApplication::m_pauseUpdate
protected

Definition at line 1111 of file ExampleApplication.h.

◆ m_pBuffer

osg::ref_ptr<osg::GraphicsContext> agxOSG::ExampleApplication::m_pBuffer
protected

Definition at line 1080 of file ExampleApplication.h.

◆ m_pBufferCamera

osg::ref_ptr<osg::Camera> agxOSG::ExampleApplication::m_pBufferCamera
protected

Definition at line 1081 of file ExampleApplication.h.

◆ m_pickHandler

PickHandlerRef agxOSG::ExampleApplication::m_pickHandler
protected

Definition at line 1004 of file ExampleApplication.h.

◆ m_profilingFrequency

agx::Real agxOSG::ExampleApplication::m_profilingFrequency
protected

Definition at line 1082 of file ExampleApplication.h.

◆ m_profilingRoot

std::string agxOSG::ExampleApplication::m_profilingRoot
protected

Definition at line 1028 of file ExampleApplication.h.

◆ m_pythonFilePath

std::string agxOSG::ExampleApplication::m_pythonFilePath
protected

Definition at line 1037 of file ExampleApplication.h.

◆ m_quickProfiling

bool agxOSG::ExampleApplication::m_quickProfiling
protected

Definition at line 1026 of file ExampleApplication.h.

◆ m_realTime

bool agxOSG::ExampleApplication::m_realTime
protected

Definition at line 985 of file ExampleApplication.h.

◆ m_realTimeRest

agx::Real agxOSG::ExampleApplication::m_realTimeRest
protected

Definition at line 1075 of file ExampleApplication.h.

◆ m_relativeStopTime

agx::Real agxOSG::ExampleApplication::m_relativeStopTime
protected

Definition at line 986 of file ExampleApplication.h.

◆ m_removeGeometryCallback

agxSDK::Simulation::GeometryEvent::CallbackType agxOSG::ExampleApplication::m_removeGeometryCallback
protected

Definition at line 1067 of file ExampleApplication.h.

◆ m_renderProxyFactory

agxOSG::RenderProxyFactory* agxOSG::ExampleApplication::m_renderProxyFactory
protected

Definition at line 1064 of file ExampleApplication.h.

◆ m_renderTargetSet

RenderTargetRefVector agxOSG::ExampleApplication::m_renderTargetSet
protected

Definition at line 1079 of file ExampleApplication.h.

◆ m_root

osg::ref_ptr<osg::Group> agxOSG::ExampleApplication::m_root
protected

Definition at line 958 of file ExampleApplication.h.

◆ m_scene

osg::ref_ptr<osg::Group> agxOSG::ExampleApplication::m_scene
protected

Definition at line 960 of file ExampleApplication.h.

◆ m_sceneFilename

std::string agxOSG::ExampleApplication::m_sceneFilename
protected

Definition at line 977 of file ExampleApplication.h.

◆ m_sceneIndex

int agxOSG::ExampleApplication::m_sceneIndex
protected

Definition at line 965 of file ExampleApplication.h.

◆ m_sceneLoadEvent

agx::Event agxOSG::ExampleApplication::m_sceneLoadEvent

Definition at line 1100 of file ExampleApplication.h.

◆ m_sceneRoot

osg::ref_ptr<osg::Group> agxOSG::ExampleApplication::m_sceneRoot
protected

Definition at line 959 of file ExampleApplication.h.

◆ m_sceneSwitch

osg::ref_ptr<osg::Switch> agxOSG::ExampleApplication::m_sceneSwitch
protected

Definition at line 961 of file ExampleApplication.h.

◆ m_scriptFile

std::string agxOSG::ExampleApplication::m_scriptFile
protected

Definition at line 1011 of file ExampleApplication.h.

◆ m_serviceMutex

agx::Mutex agxOSG::ExampleApplication::m_serviceMutex
protected

Definition at line 1070 of file ExampleApplication.h.

◆ m_settings

agxCFG::ConfigScriptRef agxOSG::ExampleApplication::m_settings
protected

Definition at line 1006 of file ExampleApplication.h.

◆ m_shouldLoadXmlPlot

bool agxOSG::ExampleApplication::m_shouldLoadXmlPlot
protected

Definition at line 1009 of file ExampleApplication.h.

◆ m_shouldStop

bool agxOSG::ExampleApplication::m_shouldStop
protected

Definition at line 1012 of file ExampleApplication.h.

◆ m_simulation

agxSDK::SimulationRef agxOSG::ExampleApplication::m_simulation
protected

Definition at line 952 of file ExampleApplication.h.

◆ m_solverType

SolverType agxOSG::ExampleApplication::m_solverType
protected

Definition at line 974 of file ExampleApplication.h.

◆ m_startScene

int agxOSG::ExampleApplication::m_startScene
protected

Definition at line 1066 of file ExampleApplication.h.

◆ m_startTime

agx::Real agxOSG::ExampleApplication::m_startTime
protected

Definition at line 987 of file ExampleApplication.h.

◆ m_statisticsRenderer

StatisticsRendererRef agxOSG::ExampleApplication::m_statisticsRenderer
protected

Definition at line 993 of file ExampleApplication.h.

◆ m_stepCallback

agx::Callback agxOSG::ExampleApplication::m_stepCallback
protected

Definition at line 1116 of file ExampleApplication.h.

◆ m_stepTimer

agx::HighAccuracyTimer agxOSG::ExampleApplication::m_stepTimer
protected

Definition at line 1076 of file ExampleApplication.h.

◆ m_stopFrame

agx::UInt agxOSG::ExampleApplication::m_stopFrame
protected

Definition at line 989 of file ExampleApplication.h.

◆ m_stopTime

agx::Real agxOSG::ExampleApplication::m_stopTime
protected

Definition at line 988 of file ExampleApplication.h.

◆ m_textureCamera

osg::ref_ptr<osg::Camera> agxOSG::ExampleApplication::m_textureCamera
protected

Definition at line 1068 of file ExampleApplication.h.

◆ m_timelineFormats

agx::Vector<agx::String> agxOSG::ExampleApplication::m_timelineFormats
protected

Definition at line 1029 of file ExampleApplication.h.

◆ m_timestep

agx::Real agxOSG::ExampleApplication::m_timestep
mutableprotected

Definition at line 982 of file ExampleApplication.h.

◆ m_useCoSimulation

bool agxOSG::ExampleApplication::m_useCoSimulation
protected

Definition at line 1031 of file ExampleApplication.h.

◆ m_videoCapture

VideoFFMPEGPipeCaptureRef agxOSG::ExampleApplication::m_videoCapture
protected

Definition at line 1121 of file ExampleApplication.h.

◆ m_videoCaptureRenderToTexture

RenderToTextureRef agxOSG::ExampleApplication::m_videoCaptureRenderToTexture
protected

Definition at line 1122 of file ExampleApplication.h.

◆ m_videoName

std::string agxOSG::ExampleApplication::m_videoName
protected

Definition at line 1120 of file ExampleApplication.h.

◆ m_viewer

osg::ref_ptr<osgViewer::Viewer> agxOSG::ExampleApplication::m_viewer
protected

Definition at line 954 of file ExampleApplication.h.

◆ m_vSync

bool agxOSG::ExampleApplication::m_vSync
protected

Definition at line 1036 of file ExampleApplication.h.

◆ m_windowSize

agx::Vec2T<int> agxOSG::ExampleApplication::m_windowSize
protected

Definition at line 1129 of file ExampleApplication.h.

◆ m_xmlPlotFile

std::string agxOSG::ExampleApplication::m_xmlPlotFile
protected

Definition at line 1008 of file ExampleApplication.h.


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