eXperiment robotics framework

OpenGL utilities

Collaboration diagram for OpenGL utilities:
classes for opengl operations. More...


Modules

 World Camera
 The default camera class to be used inside a window.
 Constraints on Frames
 An interface class for Frame constraints.
 Frame
 The Frame class represents a coordinate system, defined by a position and an orientation.
 Shader related functions
 Contains functions to make working with shaders easier.
 3D objects drawing functions
 Contains functions draw 3d objects.
 Manager of OpenGL Lists
 contains the OpenGL display lists that represent the objects in the 3D scene.
 Manager of Windows
 Manage windows.
 Quaternions
 The Quaternion class represents 3D rotations and orientations.
 Tags
 labels assigned to identify entities.
 Vec3
 A vector with x,y,z.
 Windows widgets
 Windows where the result of the plugins are drawn to.
 Manager of OpenGL Names and Events
 contains a map of all the Event Handlers available for interaction.

Classes

class  Hit
 A click on the world is a Hit. More...
class  WorldEventHandler
 A world event handler is responsible for handling world actions, i.e. More...
class  Object3D
 describes a pickable object in the world. More...

Functions

void getWindowXY (const GLdouble wx, const GLdouble wy, const GLdouble wz, GLdouble &xp, GLdouble &yp, GLdouble &zp)
 get the projection on the window(2d) of the world coordinates(3d), i.e.
void getWorldXYZ (const GLint xp, const GLint yp, GLdouble &wx, GLdouble &wy, GLdouble &wz)
 get the world coordinates of a point.
void getWorldXYZ (const GLint xp, const GLint yp, const GLdouble zp, GLdouble &wx, GLdouble &wy, GLdouble &wz)
 get the world coordinates of a point.

Detailed Description

classes for opengl operations.

Author:
smogzer_at_gmail.com
Todo:
remake the draw text part of the api to have more consistency.
Todo:
create struct to hold a glbitattrib until deallocated.

Function Documentation

void getWindowXY ( const GLdouble  wx,
const GLdouble  wy,
const GLdouble  wz,
GLdouble &  xp,
GLdouble &  yp,
GLdouble &  zp 
)

get the projection on the window(2d) of the world coordinates(3d), i.e.

3d->2d.

void getWorldXYZ ( const GLint  xp,
const GLint  yp,
const GLdouble  zp,
GLdouble &  wx,
GLdouble &  wy,
GLdouble &  wz 
)

get the world coordinates of a point.

Used for panning, i.e. 2d->3d.

void getWorldXYZ ( const GLint  xp,
const GLint  yp,
GLdouble &  wx,
GLdouble &  wy,
GLdouble &  wz 
)

get the world coordinates of a point.

Used for picking, i.e. 2d->3d.


The miarn project - written by Joao Xavier