Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GLDrawable Class Reference

#include <GLDrawable.h>

Inheritance diagram for GLDrawable:

QSceneTreeDrawable QCameraInterpolationTool QCameraKeyPathEditorImpl STDisplayList STLightList STQGLExampleInitNode STQGLExampleLightNode STQGLExampleSphere STQGLViewerBoundingBox List of all members.

Public Member Functions

 GLDrawable ()
virtual ~GLDrawable ()
virtual void draw ()=0

Detailed Description

This is a pure abstract class which defines an interface of a drawable object.

Author:
Markus Janich


Constructor & Destructor Documentation

GLDrawable::GLDrawable  ) 
 

Default constructor.

GLDrawable::~GLDrawable  )  [virtual]
 

Virtual destructor.


Member Function Documentation

virtual void GLDrawable::draw  )  [pure virtual]
 

Must be implemented by the inherited class. This method should draw the object to the current OpenGL context and gets called with the GL model matrix set up for the local reference frame of the node. You ought to leave the GL state as it comes in (usually). glPush* and glPop* are your friends.

Implemented in QCameraInterpolationTool, QCameraKeyPathEditorImpl, STLightList, STQGLViewerBoundingBox, STDisplayList, STQGLExampleWiredSphere, STQGLExampleSolidSphere, STQGLExampleInitNode, and STQGLExampleLightNode.


The documentation for this class was generated from the following files:
Generated on Sat Mar 26 17:25:09 2005 for QGLViewer by  doxygen 1.4.0