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

STQGLExampleSphere Class Reference

#include <STQGLExampleObjects.h>

Inheritance diagram for STQGLExampleSphere:

QSceneTreeDrawable QSceneTreeNode GLDrawable CTreeNode STQGLExampleSolidSphere STQGLExampleWiredSphere List of all members.

Public Member Functions

 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 on Sat Mar 26 17:25:11 2005 for QGLViewer by  doxygen 1.4.0