#include <render.h>
Inheritance diagram for Render:
Public Methods | |
Render () | |
Render (string filepath) | |
Render (Scene *s, string filepath) | |
virtual | ~Render () |
virtual void | Init () |
Initialized the renderer. More... | |
virtual void | HandleEvents () |
Process IO events. More... | |
virtual void | MainLoop (Gui *g) |
If ControlFreak = true, then MainLoop is entered here. More... | |
virtual void | Reset () |
Reset the renderer. More... | |
virtual void | Terminate () |
Implement functions upon termination of the renderer. More... | |
virtual void | SetFrameList () |
Make the set of frames from StateList and TimeList. More... | |
virtual void | MakeAnimationFrames (const list< MSLVector > &xlist, double deltat) |
Generate FrameList and set AnimationActive to true. More... | |
virtual void | MakeAnimationFrames (const list< MSLVector > &xlist, const list< double > &timelist) |
virtual void | DrawPath () |
Display an entire path (the specific renderer determines how). More... | |
virtual void | ButtonHandle (int b) |
Execute actions for render control window choices. More... | |
void | SetScene (Scene *s) |
Change the associated scene. More... | |
Public Attributes | |
string | FilePath |
The path name for accessing files. More... | |
list< MSLVector > | FrameList |
The animation frames; each element is a SceneConfiguration. More... | |
double | FrameTime |
The amount of time for which a frame is shown. More... | |
float | LastFrameTime |
The time stamp of the last frame change. More... | |
float | FrameStuckTime |
The amount of time since the last frame change. More... | |
int | NumFrames |
The number of frames in the animation. More... | |
double | AnimationStartPause |
Number of seconds to wait at the start of an animation. More... | |
double | AnimationEndPause |
Number of seconds to wait at the end of an animation. More... | |
double | AnimationTimeScale |
The speedup factor for the animation (1.0 = normal speed). More... | |
double | realAnimationTimeScale |
double | AnimationTimeScale_prev |
double | realAnimationTimeScale_prev |
int | AnimationFrameIndex |
The index in FrameList of the frame that should be currently shown. More... | |
MSLVector | CurrentAnimationFrame |
The frame that should be shown currently. More... | |
bool | AnimationActive |
Set to true to start the animation. More... | |
bool | ControlFreak |
Set to true if the renderer needs main loop control; otherwise, iterated polling of HandleEvents will be performed automatically. More... | |
bool | RenderCtlWindowOn |
Is teh rendering control window currently displayed? More... | |
bool | AttachedCameraOn |
Set to true for the viewpoint to be attached to a body. More... | |
bool | BoundingBoxOn |
Set to true to draw a bounding box using S->LowerWorld and S->UpperWorld. More... | |
bool | MultipleViewsOn |
Set to true to show multiple views simultaneously. More... | |
bool | ShowPathOn |
Set to true to show the entire path. More... | |
double | AmbientLight |
A parameter that controls the amount of light. More... | |
Protected Methods | |
virtual void | SetCurrentAnimationFrame () |
This uses the FrameList to return the SceneConfiguration that is supposed to be shown at the present time. More... | |
virtual void | ShowCurrentAnimationFrame () |
Display the current animation frame in a rendering window. More... | |
Protected Attributes | |
Scene * | S |
Allow information from a Scene to be accessed. More... | |
list< MSLVector > | StateList |
A sequence of state to use for animation (should be generated by Gui). More... | |
list< double > | TimeList |
The time stamps for the state sequence. More... | |
list< string > | EnvList |
list< string > | BodyList |
float | RGBRed [RENDERCOLORS] |
RGB color values. More... | |
float | RGBGreen [RENDERCOLORS] |
float | RGBBlue [RENDERCOLORS] |
This hierarchy of classes contains different implementations of graphical rendering requests. For example, when a graphical user interface (GUI) requests that the a solution path is animated, a method in a Render class displays the bodies in motion using configurations obtained from the Scene class. Each derived class in Render corresponds to a different graphics system. Presently, there are renderers for Open Inventor and Open GL. The flexibility provided by these classes enables easy extensions to be made for other graphics libraries and platforms, such as Open Inventor.
The rendering is expressed in terms of a Scene, in which the scene configuration gives the configuration of a collection of Bodies in a static Environment.
|
|
|
|
|
|
|
|
|
Execute actions for render control window choices.
|
|
Display an entire path (the specific renderer determines how).
Reimplemented in RenderGL. |
|
Process IO events.
Reimplemented in RenderPerformer. |
|
Initialized the renderer.
Reimplemented in RenderGL. |
|
If ControlFreak = true, then MainLoop is entered here.
Reimplemented in RenderGL. |
|
|
|
Generate FrameList and set AnimationActive to true.
|
|
Reset the renderer.
Reimplemented in RenderGL. |
|
This uses the FrameList to return the SceneConfiguration that is supposed to be shown at the present time.
|
|
Make the set of frames from StateList and TimeList.
|
|
Change the associated scene.
|
|
Display the current animation frame in a rendering window.
Reimplemented in RenderPerformer. |
|
Implement functions upon termination of the renderer.
Reimplemented in RenderPerformer. |
|
A parameter that controls the amount of light.
|
|
Set to true to start the animation.
|
|
Number of seconds to wait at the end of an animation.
|
|
The index in FrameList of the frame that should be currently shown.
|
|
Number of seconds to wait at the start of an animation.
|
|
The speedup factor for the animation (1.0 = normal speed).
|
|
|
|
Set to true for the viewpoint to be attached to a body.
|
|
|
|
Set to true to draw a bounding box using S->LowerWorld and S->UpperWorld.
|
|
Set to true if the renderer needs main loop control; otherwise, iterated polling of HandleEvents will be performed automatically.
|
|
The frame that should be shown currently.
|
|
|
|
The path name for accessing files.
|
|
The animation frames; each element is a SceneConfiguration.
|
|
The amount of time since the last frame change.
|
|
The amount of time for which a frame is shown.
|
|
The time stamp of the last frame change.
|
|
Set to true to show multiple views simultaneously.
|
|
The number of frames in the animation.
|
|
|
|
|
|
Is teh rendering control window currently displayed?
|
|
|
|
|
|
RGB color values.
|
|
Allow information from a Scene to be accessed.
|
|
Set to true to show the entire path.
|
|
A sequence of state to use for animation (should be generated by Gui).
|
|
The time stamps for the state sequence.
|