OpenGL specific properties for a camera
![]() | lineDisplacementOffset the offset to draw lines on top of rendered objects |
![]() | getLightsName () const return the Tcl names associated with the lights |
![]() | drawBoundingBox (Data3D *obj) const Draw a bounding box around a 3D object |
![]() | redraw (void) Redraw all existing 3D objects in the 3D scene and eventually objects belonging to the camera (clipping planes, spot loghts, |
![]() | initViewport (void) initialize the viewport and basic OpenGL parameters |
![]() | resize (void) sets the viewport to (width,height) and updates camera parameters |
![]() | resize (unsigned int w, unsigned int h) sets the viewport to (width,height) and updates camera parameters |
![]() | setViewingParameters (bool reset=true) updates the internal camera parameters after the camera size has changed |
![]() | setProjectionParameters (bool reset=true) set the OGL projection matrix |
![]() | setFog (bool nfog) set new fog flag value |
![]() | printString (unsigned int posx, unsigned int posy, char *str, GLuint font=0) print a string on the screen |
![]() | setStencilBuffer (bool nstb) set stencilBuffer flag value |
![]() | buildStencilBufferDisplayList () build stencilBufferDisplayList initialize GL_COLOR_WRITEMASK and GL_DEPHT_WRITEMASK to 0x1 |
![]() | getFog (void) const returns fog flag |
![]() | setSpecularity (bool specularity) set new specularity flag value |
![]() | getSpecularity () const returns true specularity flag |
![]() | setRenderFrontAndBack (bool flag) set front or front and back rendering |
![]() | getUseTwoSides () const returns front and back rendering flag |
![]() | rotateCameraObject (Rotation3D &rot) camera callback to catch trackball rotation |
![]() | translateCameraObject (Vec3 camera callback to catch trackball translation |
![]() | setSelectedClippingPlane (ClippingPlane *cp) selects a clipping plane and enable MOVE_CAMERA_OBJECT motion mode |
![]() | unsetSelectedClippingPlane (void) unselects a clipping plane and disable MOVE_CAMERA_OBJECT motion mode |
![]() | setSelectedLight (Light *cl) selects a light and enable MOVE_CAMERA_OBJECT motion mode |
![]() | unsetSelectedLight (void) unselects a light and disable MOVE_CAMERA_OBJECT motion mode |
![]() | setSelectedObject (Data3D *data) selects a scene object |
![]() | applyObjectSelection (Data3D *obj) Eventually install the Tcl menus associated with a 3D objects |
![]() | applyObjectUnselection (Data3D *obj) Eventually Uninstall the Tcl menus associated with a 3D objects |
![]() | bindMouseMotion (bool on) set the action to perform each time the mouse is moved |
![]() | toggleCopyright () change the display of the copyright |
![]() | toggleFrameRate () change the display of the frame rate |
![]() | newClippingPlane (void) creates a new clipping plane in this camera centered on the scene and orthogonal to (0, 0, 1) |
![]() | newClippingPlane (GLdouble *eqn) creates a new clipping plane in this camera with equation equation[0] x + equation[1] y + equation[2] z + equation[3] = 0 |
![]() | newClippingPlane (const Vec3 creates a new clipping plane in this camera passing through P and orthogonal to n |
![]() | newLight (void) creates a new white directional light in this camera |
![]() | addLight (Light *l) add a light in the list of lights |
![]() | addClippingPlane (ClippingPlane *l) add a clipping plane in the list of lights |
![]() | getFirstClippingPlane () returns iterator on first clipping plane |
![]() | getLastClippingPlane () returns iterator on last clipping plane |
![]() | getFirstLight () returns iterator on first clipping plane |
![]() | getLastLight () returns iterator on last clipping plane |
![]() | isCameraBeingDestroyed () const is the camera being destroyed? |
![]() | getFreeClippingPlane (void) const returns an unused OpenGL clipping plane id |
![]() | getFreeLight (void) const returns an unused OpenGL light id |
![]() | grab (const TclString& filename) dump camera window content in an xwd file |
![]() | constructor
| ||
![]() | destructor
|
![]() | beingDestroyed is the camera being deleted ? |
![]() | useTwoSides should we compute the shading on both sides? |
![]() | useTrueSpecularity should we compute the true specularity component in the shading computation |
![]() | fog whether to use fog for inrimage display |
![]() | stencilBuffer whether to use stencil Buffer for display |
![]() | fogRange fog range |
![]() | StereoFlag moved from Togl to implement openGl stereo on capable hardware |
![]() | selectedClippingPlane clipping plane being selected |
![]() | selectedLight light being selected |
![]() | clipPlanes allocated clipping planes |
![]() | lights allocated light |
![]() | eyeOffset vector defining the displacement between the stereo cameras |
![]() | globalTimer Measuring the time between two redraws action |
![]() | count Counting number of redraws |
![]() | stringFrameRate [100] Frame Ratestring |
![]() | stringCopyright [100] copyright string |
![]() | showCopyright if copyright should be displayed |
![]() | showFrameRate if frame rate should be displayed |
![]() | constructor
|
![]() | init (void) constructors common code |
![]() | remove (ClippingPlane *clip) remove one clipping plane from camera clipping planes list |
![]() | remove (Light *light) remove one light from camera lights list |
![]() | redrawScene (void) execute OpenGL calls to redraw complete scene |
OpenGL specific properties for a camera
bool beingDestroyed
bool useTwoSides
bool useTrueSpecularity
bool fog
bool stencilBuffer
double fogRange
int StereoFlag
ClippingPlane* selectedClippingPlane
Light* selectedLight
std::list <ClippingPlane *> clipPlanes
std::list <Light *> lights
Vec3
Timer globalTimer
unsigned int count
char stringFrameRate[100]
char stringCopyright[100]
bool showCopyright
bool showFrameRate
void destroyCamera()
virtual void applyTransformation()
void init(void)
constructor
constructor
destructor
TclString getLightsName() const
virtual void drawBoundingBox(Data3D *obj) const
virtual void redraw(void)
virtual void initViewport(void)
virtual void resize(void)
virtual void resize(unsigned int w, unsigned int h)
virtual void setViewingParameters(bool reset=true)
virtual void setProjectionParameters(bool reset=true)
void setFog(bool nfog)
void printString(unsigned int posx, unsigned int posy, char *str, GLuint font=0)
posx - the position in the window (row index)
str - the null terminated string
font - must be either defaultFont, smallFont or largeFont void setStencilBuffer(bool nstb)
void buildStencilBufferDisplayList()
bool getFog(void) const
void setSpecularity(bool specularity)
bool getSpecularity() const
void setRenderFrontAndBack(bool flag)
bool getUseTwoSides() const
virtual void rotateCameraObject(Rotation3D &rot)
virtual void translateCameraObject(Vec3
virtual void setSelectedClippingPlane(ClippingPlane *cp)
virtual void unsetSelectedClippingPlane(void)
virtual void setSelectedLight(Light *cl)
virtual void unsetSelectedLight(void)
virtual void setSelectedObject(Data3D *data)
virtual void applyObjectSelection(Data3D *obj)
virtual void applyObjectUnselection(Data3D *obj)
virtual void bindMouseMotion(bool on)
void toggleCopyright()
void toggleFrameRate()
virtual ClippingPlane* newClippingPlane(void)
virtual ClippingPlane* newClippingPlane(GLdouble *eqn)
virtual ClippingPlane* newClippingPlane(const Vec3
virtual Light* newLight(void)
void addLight(Light *l)
void addClippingPlane(ClippingPlane *l)
std::list <ClippingPlane *> ::iterator getFirstClippingPlane()
std::list <ClippingPlane *> ::iterator getLastClippingPlane()
std::list <Light *> ::iterator getFirstLight()
std::list <Light *> ::iterator getLastLight()
bool isCameraBeingDestroyed() const
GLenum getFreeClippingPlane(void) const
GLenum getFreeLight(void) const
virtual void grab(const TclString& filename)
void remove(ClippingPlane *clip)
void remove(Light *light)
virtual void redrawScene(void)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de