#include <STQGLExampleObjects.h>
Inheritance diagram for STQGLExampleSphere:

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 |
| STQGLExampleSphere::STQGLExampleSphere | ( | const CP3D & | cCenter, | |
| float | radius, | |||
| int | n1, | |||
| int | n2, | |||
| float | red, | |||
| float | green, | |||
| float | blue, | |||
| float | lw = 2.5 | |||
| ) | [inline] |
Default constructor.
| 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.
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] |
1.4.7