Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

RenderEngine Class Reference

The render engine class draws all drawable objects onto a gtk widget that it creates. More...

#include <renderengine.h>

List of all members.

Public Member Functions

 RenderEngine (int argc, char *argv[])
 ~RenderEngine ()
GtkWidget * getDrawingArea ()
void render ()
void renderSelect ()
void increment ()
void incrementXAngle ()
void incrementCameraAngle ()
void decrementCameraAngle ()
void incrementXCenter ()
void decrementXCenter ()
void incrementYCenter ()
void decrementYCenter ()
void incrementZCenter ()
void decrementZCenter ()
void zoomCameraIn ()
void zoomCameraOut ()
void setupView ()
void setupGlobalMatrix ()
void setupModes ()
void setupSelectView (GLdouble x, GLdouble y, GLint theViewport[])
 this function sets up the view for a special render on a mouse click

int * processHits (GLint hits, GLuint buffer[])
 this function figures out whcih object was clicked on in the OGL view


Private Attributes

GtkWidget * drawingArea
 the actual widget to which the drawning will be done on

GdkGLConfig * glconfig
 a variable for gtk to get to some OGL info

GLfloat xSpeed
 this is the angle at which the whole view is currently rotated

GLfloat xAngle
GLfloat cameraAngle
 this is the angle at which the camera is looking down onto the view

GLfloat cameraAngleSpeed
GLfloat xCenter
 This is the x coordinate od the center of the view.

GLfloat yCenter
 this is the y coordinate of the center of the view

GLfloat zCenter
 This si the z coordinate of the center of the view.

GLfloat cameraOffset
 The initial camera offset from the center.

PositionrotationCenter
 This position is the center around which the camer rotates.

vector< DrawableObject * > * normal
 This vector contains all of the objects to be drawn normally.

vector< DrawableObject * > * selectionCubes
 This is a vector containing all of the current selection cubes.

vector< DrawableObject * > * notDrawn
 This is a vector of items that are not being drawn at the moment.

vector< DrawableObject * > * highlight
 This si the vector of drawable items that are currently highlighted.

FileSystem theFs
 this is the filesystem object that read the data in from the rood directory


Friends

gboolean button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data)


Detailed Description

The render engine class draws all drawable objects onto a gtk widget that it creates.

the render engine creates the gtk widget for drawing openGL stuff onto, it holds vectors of objects to be drawn and not drawn. It contains camera position, and animation information. All of the gtkglext stuff happens here


Constructor & Destructor Documentation

RenderEngine::RenderEngine int  argc,
char *  argv[]
 

RenderEngine::~RenderEngine  ) 
 


Member Function Documentation

void RenderEngine::decrementCameraAngle  ) 
 

void RenderEngine::decrementXCenter  ) 
 

void RenderEngine::decrementYCenter  ) 
 

void RenderEngine::decrementZCenter  ) 
 

GtkWidget * RenderEngine::getDrawingArea  ) 
 

void RenderEngine::increment  ) 
 

void RenderEngine::incrementCameraAngle  ) 
 

void RenderEngine::incrementXAngle  ) 
 

void RenderEngine::incrementXCenter  ) 
 

void RenderEngine::incrementYCenter  ) 
 

void RenderEngine::incrementZCenter  ) 
 

int * RenderEngine::processHits GLint  hits,
GLuint  buffer[]
 

this function figures out whcih object was clicked on in the OGL view

void RenderEngine::render  ) 
 

void RenderEngine::renderSelect  ) 
 

void RenderEngine::setupGlobalMatrix  ) 
 

void RenderEngine::setupModes  ) 
 

void RenderEngine::setupSelectView GLdouble  x,
GLdouble  y,
GLint  theViewport[]
 

this function sets up the view for a special render on a mouse click

void RenderEngine::setupView  ) 
 

void RenderEngine::zoomCameraIn  ) 
 

void RenderEngine::zoomCameraOut  ) 
 


Friends And Related Function Documentation

gboolean button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  data
[friend]
 


Member Data Documentation

GLfloat RenderEngine::cameraAngle [private]
 

this is the angle at which the camera is looking down onto the view

GLfloat RenderEngine::cameraAngleSpeed [private]
 

GLfloat RenderEngine::cameraOffset [private]
 

The initial camera offset from the center.

GtkWidget* RenderEngine::drawingArea [private]
 

the actual widget to which the drawning will be done on

GdkGLConfig* RenderEngine::glconfig [private]
 

a variable for gtk to get to some OGL info

vector<DrawableObject*>* RenderEngine::highlight [private]
 

This si the vector of drawable items that are currently highlighted.

vector<DrawableObject*>* RenderEngine::normal [private]
 

This vector contains all of the objects to be drawn normally.

vector<DrawableObject*>* RenderEngine::notDrawn [private]
 

This is a vector of items that are not being drawn at the moment.

Position* RenderEngine::rotationCenter [private]
 

This position is the center around which the camer rotates.

vector<DrawableObject*>* RenderEngine::selectionCubes [private]
 

This is a vector containing all of the current selection cubes.

FileSystem RenderEngine::theFs [private]
 

this is the filesystem object that read the data in from the rood directory

GLfloat RenderEngine::xAngle [private]
 

GLfloat RenderEngine::xCenter [private]
 

This is the x coordinate od the center of the view.

GLfloat RenderEngine::xSpeed [private]
 

this is the angle at which the whole view is currently rotated

GLfloat RenderEngine::yCenter [private]
 

this is the y coordinate of the center of the view

GLfloat RenderEngine::zCenter [private]
 

This si the z coordinate of the center of the view.


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 10:33:24 2004 by doxygen 1.3.6