Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RenderGL Class Reference

Perform 3D rendering using the GL and GLUT libraries. More...

#include <rendergl.h>

Inheritance diagram for RenderGL:

Render List of all members.

Public Methods

 RenderGL ()
 RenderGL (string filepath)
 RenderGL (Scene *s, string filepath)
virtual ~RenderGL ()
virtual void Reset ()
 Reset the renderer.

virtual void Init ()
 Initialized the renderer.

virtual void MainLoop (Gui *g)
 If ControlFreak = true, then MainLoop is entered here.


Public Attributes

GuiG

Static Public Methods

void GlutIdleProcessing ()
void GlutDrawEnvironment ()
void GlutReshape (int w, int h)
void GlutMouse (int button, int state, int x, int y)
void GlutMouseMove ( int x, int y )
void GlutKeyboard (unsigned char Key, int x, int y)

Protected Methods

void LoadConfig ()
void AddBodyObject (mslGLObject * obj)
void AddEnvObject (mslGLObject * obj)
mslGLObjectWhichObject (int id)
void SceneRender ()
void SetLightPos ()
void SetSceneOrientationChange (const vector& oric)
void SetScenePositionChange (const vector& posc)
void SetBodyState (const vector& state)
void SetEnvState (const vector& state)
void DrawBoundingBox ()
void DrawPath ()
 Display an entire path (the specific renderer determines how).

void InitData ()
void InitGeometry (list<Triangle> triangles)
void DrawBodies (const vector &x)
void DrawEnv ()
void NormCrossProduct (float v1[3], float v2[3], float out[3])
void Normalize (float v[3])
void ShowCoordinateFrame ()

Protected Attributes

array<int> EnvIndex
array<int> BodyIndex
float WindowX
float WindowY
float WindowZ
float BoundingBoxMin [3]
float BoundingBoxMax [3]
float Orientation [3]
float Position [3]
float Fov
float AspectRatio
float Near
float Far
float EyeX
float EyeY
float EyeZ
float VpX
float VpY
float VpZ
float VupX
float VupY
float VupZ
float ViewLength
vector VCoordZ
vector VCoordY
vector VCoordX
vector VRpy
vector DefVCoordZ
vector DefVCoordY
vector DefVCoordX
vector DefVRpy
vector RpyModification
vector SCoordZ
vector SCoordY
vector SCoordX
float LightPosX
float LightPosY
float LightPosZ
int NumberOfObject
int NumberOfBody
int NumberOfEnvObj
mslGLObject** SceneBodyLib
mslGLObject** SceneEnvObjLib
vector EnvTransform
vector BodyTransform
int MainWindow
int SelectObjectID
int CurrentObject
int CurrentMouseButton
int CurrentMouseState
int CurrentKeyboard
float LastX
float LastY
float ChangeRate
float AnimationTimeScaleTmp

Detailed Description

Perform 3D rendering using the GL and GLUT libraries.


Constructor & Destructor Documentation

RenderGL::RenderGL ( )
 

RenderGL::RenderGL ( string filepath = "" )
 

RenderGL::RenderGL ( Scene * s,
string filepath )
 

RenderGL::~RenderGL ( ) [virtual]
 


Member Function Documentation

void RenderGL::AddBodyObject ( mslGLObject * obj ) [protected]
 

void RenderGL::AddEnvObject ( mslGLObject * obj ) [protected]
 

void RenderGL::DrawBodies ( const vector & x ) [protected]
 

void RenderGL::DrawBoundingBox ( ) [protected]
 

void RenderGL::DrawEnv ( ) [protected]
 

void RenderGL::DrawPath ( ) [protected, virtual]
 

Display an entire path (the specific renderer determines how).

Reimplemented from Render.

void RenderGL::GlutDrawEnvironment ( ) [static]
 

void RenderGL::GlutIdleProcessing ( ) [static]
 

void RenderGL::GlutKeyboard ( unsigned char Key,
int x,
int y ) [static]
 

void RenderGL::GlutMouse ( int button,
int state,
int x,
int y ) [static]
 

void RenderGL::GlutMouseMove ( int x,
int y ) [static]
 

void RenderGL::GlutReshape ( int w,
int h ) [static]
 

void RenderGL::Init ( ) [virtual]
 

Initialized the renderer.

Reimplemented from Render.

void RenderGL::InitData ( ) [protected]
 

void RenderGL::InitGeometry ( list< Triangle > triangles ) [protected]
 

void RenderGL::LoadConfig ( ) [protected]
 

void RenderGL::MainLoop ( Gui * g ) [virtual]
 

If ControlFreak = true, then MainLoop is entered here.

Reimplemented from Render.

void RenderGL::NormCrossProduct ( float v1[3],
float v2[3],
float out[3] ) [protected]
 

void RenderGL::Normalize ( float v[3] ) [protected]
 

void RenderGL::Reset ( ) [virtual]
 

Reset the renderer.

Reimplemented from Render.

void RenderGL::SceneRender ( ) [protected]
 

void RenderGL::SetBodyState ( const vector & state ) [protected]
 

void RenderGL::SetEnvState ( const vector & state ) [protected]
 

void RenderGL::SetLightPos ( ) [protected]
 

void RenderGL::SetSceneOrientationChange ( const vector & oric ) [protected]
 

void RenderGL::SetScenePositionChange ( const vector & posc ) [protected]
 

void RenderGL::ShowCoordinateFrame ( ) [protected]
 

mslGLObject * RenderGL::WhichObject ( int id ) [protected]
 


Member Data Documentation

float RenderGL::AnimationTimeScaleTmp [protected]
 

float RenderGL::AspectRatio [protected]
 

array< int > RenderGL::BodyIndex [protected]
 

vector RenderGL::BodyTransform [protected]
 

float RenderGL::BoundingBoxMax[3] [protected]
 

float RenderGL::BoundingBoxMin[3] [protected]
 

float RenderGL::ChangeRate [protected]
 

int RenderGL::CurrentKeyboard [protected]
 

int RenderGL::CurrentMouseButton [protected]
 

int RenderGL::CurrentMouseState [protected]
 

int RenderGL::CurrentObject [protected]
 

vector RenderGL::DefVCoordX [protected]
 

vector RenderGL::DefVCoordY [protected]
 

vector RenderGL::DefVCoordZ [protected]
 

vector RenderGL::DefVRpy [protected]
 

array< int > RenderGL::EnvIndex [protected]
 

vector RenderGL::EnvTransform [protected]
 

float RenderGL::EyeX [protected]
 

float RenderGL::EyeY [protected]
 

float RenderGL::EyeZ [protected]
 

float RenderGL::Far [protected]
 

float RenderGL::Fov [protected]
 

Gui * RenderGL::G
 

float RenderGL::LastX [protected]
 

float RenderGL::LastY [protected]
 

float RenderGL::LightPosX [protected]
 

float RenderGL::LightPosY [protected]
 

float RenderGL::LightPosZ [protected]
 

int RenderGL::MainWindow [protected]
 

float RenderGL::Near [protected]
 

int RenderGL::NumberOfBody [protected]
 

int RenderGL::NumberOfEnvObj [protected]
 

int RenderGL::NumberOfObject [protected]
 

float RenderGL::Orientation[3] [protected]
 

float RenderGL::Position[3] [protected]
 

vector RenderGL::RpyModification [protected]
 

vector RenderGL::SCoordX [protected]
 

vector RenderGL::SCoordY [protected]
 

vector RenderGL::SCoordZ [protected]
 

mslGLObject ** RenderGL::SceneBodyLib [protected]
 

mslGLObject ** RenderGL::SceneEnvObjLib [protected]
 

int RenderGL::SelectObjectID [protected]
 

vector RenderGL::VCoordX [protected]
 

vector RenderGL::VCoordY [protected]
 

vector RenderGL::VCoordZ [protected]
 

vector RenderGL::VRpy [protected]
 

float RenderGL::ViewLength [protected]
 

float RenderGL::VpX [protected]
 

float RenderGL::VpY [protected]
 

float RenderGL::VpZ [protected]
 

float RenderGL::VupX [protected]
 

float RenderGL::VupY [protected]
 

float RenderGL::VupZ [protected]
 

float RenderGL::WindowX [protected]
 

float RenderGL::WindowY [protected]
 

float RenderGL::WindowZ [protected]
 


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


Web page maintained by Steve LaValle
Partial support provided by NSF CAREER Award IRI-970228 (LaValle), Honda Research, and Iowa State University.
Contributors: Anna Atramentov, Peng Cheng, James Kuffner, Steve LaValle, and Libo Yang.