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

FXGLSphere Class Reference

OpenGL Sphere Object.

#include <FXGLSphere.h>

Inheritance diagram for FXGLSphere:

FXGLShape FXGLObject FXObject List of all members.

Public Types

enum  { ID_LAST = FXGLShape::ID_LAST }

Public Methods

 FXGLSphere ()
virtual void drawshape (FXGLViewer *viewer)
 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r=1.0f)
 Construct with specified origin and radius.

 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r, const FXMaterial &mtl)
 Construct with specified origin, radius and material.

 FXGLSphere (const FXGLSphere &orig)
 Copy constructor.

virtual FXGLObjectcopy ()
 Copy this object.

void setRadius (FXfloat r)
 Change radius.

FXfloat getRadius () const
void setSlices (FXint s)
 Change slices.

FXint getSlices () const
void setStacks (FXint s)
 Change stacks.

FXint getStacks () const
virtual void save (FXStream &store) const
 Save to a stream.

virtual void load (FXStream &store)
 Load from a stream.

virtual ~FXGLSphere ()
 Destroy.


Public Attributes

FXfloat radius
FXint slices
FXint stacks