Simbody  3.7
SimTK::Visualizer::FrameController Class Referenceabstract

This abstract class represents an object that will be invoked by the Visualizer just prior to rendering each frame. More...

+ Inheritance diagram for SimTK::Visualizer::FrameController:

Public Member Functions

virtual void generateControls (const Visualizer &viz, const State &state, Array_< DecorativeGeometry > &geometry)=0
 The Visualizer is just about to generate and render a frame corresponding to the given State. More...
 
virtual ~FrameController ()
 Destructor is virtual; be sure to override it if you have something to clean up at the end. More...
 

Detailed Description

This abstract class represents an object that will be invoked by the Visualizer just prior to rendering each frame.

You can use this to call any of the const (runtime) methods of the Visualizer, typically to control the camera, and you can also add some geometry to the scene, print messages to the console, and so on.

Constructor & Destructor Documentation

◆ ~FrameController()

virtual SimTK::Visualizer::FrameController::~FrameController ( )
inlinevirtual

Destructor is virtual; be sure to override it if you have something to clean up at the end.

Member Function Documentation

◆ generateControls()

virtual void SimTK::Visualizer::FrameController::generateControls ( const Visualizer viz,
const State state,
Array_< DecorativeGeometry > &  geometry 
)
pure virtual

The Visualizer is just about to generate and render a frame corresponding to the given State.

Parameters
[in]viz
The Visualizer that is doing the rendering.
[in]state
The State that is being used to generate the frame about to be rendered by viz.
[in,out]geometryDecorativeGeometry being accumulated for rendering in this frame; be sure to append if you have anything to add.

Implemented in SimTK::Visualizer::BodyFollower.


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