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

STQGLExampleSphere Class Reference

#include <STQGLExampleObjects.h>

Inheritance diagram for STQGLExampleSphere::

QSceneTreeDrawable QSceneTreeNode GLDrawable CTreeNode STQGLExampleSolidSphere STQGLExampleWiredSphere List of all members.

Public Methods

 STQGLExampleSphere (const CP3D &cCenter, float radius, int n1, int n2, float red, float green, float blue, float lw=2.5)
virtual void setCenter (const CP3D &cCenter)
virtual const CP3D getCenter ()
virtual CBoundingBox3D getBoundingBox () const
virtual bool event (const QEvent *pqEvent)

Protected Attributes

float m_radius
float m_lw
float m_red
float m_green
float m_blue
int m_n1
int m_n2

Detailed Description

Base node of a drawable sphere.


Constructor & Destructor Documentation

STQGLExampleSphere::STQGLExampleSphere const CP3D &   cCenter,
float   radius,
int   n1,
int   n2,
float   red,
float   green,
float   blue,
float   lw = 2.5
[inline]
 

Default constructor.


Member Function Documentation

virtual bool STQGLExampleSphere::event const QEvent *   pqEvent [inline, virtual]
 

Reimplented method. Here it manages all double-clicks over a scene object by popping up a dialog.

Reimplemented from QSceneTreeDrawable.

virtual CBoundingBox3D STQGLExampleSphere::getBoundingBox   const [inline, virtual]
 

Returns the bounding box of the sphere.

Reimplemented from QSceneTreeNode.

virtual const CP3D STQGLExampleSphere::getCenter void   [inline, virtual]
 

Returns the center coordinates.

virtual void STQGLExampleSphere::setCenter const CP3D &   cCenter [inline, virtual]
 

Defines the global coordinates of the sphere.


Member Data Documentation

float STQGLExampleSphere::m_blue [protected]
 

float STQGLExampleSphere::m_green [protected]
 

float STQGLExampleSphere::m_lw [protected]
 

int STQGLExampleSphere::m_n1 [protected]
 

int STQGLExampleSphere::m_n2 [protected]
 

float STQGLExampleSphere::m_radius [protected]
 

float STQGLExampleSphere::m_red [protected]
 


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 17:17:33 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001