glotzopengl::GlObject Class Reference

#include <GlObject.h>

Inheritance diagram for glotzopengl::GlObject:

glotzopengl::GlotzGlBaseObject glotzopengl::Arrow glotzopengl::Box glotzopengl::Cylinder glotzopengl::Disk glotzopengl::ImageRectangle glotzopengl::Line glotzopengl::Polygon glotzopengl::SphereBase glotzopengl::Text glotzopengl::WireBox

List of all members.

Public Types

enum  {
  POSITION = 1, COLOR = 2, SCALE = 4, ROTATION = 8,
  GROUP = 16, VISIBLE_ON = 32, VISIBLE_OFF = 64, DELETE = 128
}

Public Member Functions

 GlObject ()
virtual ~GlObject ()
void SetRotation (float *)
void SetColor (float, float, float)
void SetPosition (float, float, float)
void SetPosition (glotz_vec &)
void SetScale (glotz_vec &)
void SetScale (float, float, float)
void SetGroupId (int)
void SetIsVisible (bool)
void SetIsScalable (bool)
virtual void ScaleResolution (GLfloat)
void Scale (GLfloat, GLfloat, GLfloat)
void Delete ()
virtual void Print (std::ostream &)
void Print ()
void WriteBinary (std::ostream &)
void ParseBinary (std::istream &)
bool IsScalable ()
bool IsVisible ()
bool IsRotatable ()
bool IsMarkedForDeletion ()
virtual void Display ()=0
virtual GLfloat GetLargestDisplacement ()
int GetGroupId ()
void ToggleVisibility ()

Protected Attributes

int mObjectType
GLfloat mRotation [4]
bool mIsRotatable
int mGroupId
bool mIsMarkedForDeletion
bool mIsScalable
bool mIsVisible
int mUpdateBit
GLfloat mScaleX
GLfloat mScaleY
GLfloat mScaleZ
GLfloat mPositionX
GLfloat mPositionY
GLfloat mPositionZ
GLfloat mRed
GLfloat mGreen
GLfloat mBlue


Member Enumeration Documentation

anonymous enum

Enumerator:
POSITION 
COLOR 
SCALE 
ROTATION 
GROUP 
VISIBLE_ON 
VISIBLE_OFF 
DELETE 


Constructor & Destructor Documentation

glotzopengl::GlObject::GlObject (  ) 

glotzopengl::GlObject::~GlObject (  )  [virtual]


Member Function Documentation

void glotzopengl::GlObject::SetRotation ( float *   ) 

void glotzopengl::GlObject::SetColor ( float  ,
float  ,
float   
)

void glotzopengl::GlObject::SetPosition ( float  x,
float  y,
float  z 
)

void glotzopengl::GlObject::SetPosition ( glotz_vec v  ) 

void glotzopengl::GlObject::SetScale ( glotz_vec s  ) 

void glotzopengl::GlObject::SetScale ( float  x,
float  y,
float  z 
)

void glotzopengl::GlObject::SetGroupId ( int  groupId  ) 

void glotzopengl::GlObject::SetIsVisible ( bool  isVisible  ) 

void glotzopengl::GlObject::SetIsScalable ( bool  isScalable  ) 

void glotzopengl::GlObject::ScaleResolution ( GLfloat  r  )  [virtual]

Reimplemented in glotzopengl::DlSphere, glotzopengl::Sphere, and glotzopengl::TexturedSphere.

void glotzopengl::GlObject::Scale ( GLfloat  sx,
GLfloat  sy,
GLfloat  sz 
)

void glotzopengl::GlObject::Delete (  ) 

void glotzopengl::GlObject::Print ( std::ostream &  os  )  [virtual]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, glotzopengl::ImageRectangle, and glotzopengl::TexturedSphere.

void glotzopengl::GlObject::Print (  ) 

void glotzopengl::GlObject::WriteBinary ( std::ostream &  os  ) 

void glotzopengl::GlObject::ParseBinary ( std::istream &  is  ) 

bool glotzopengl::GlObject::IsScalable (  ) 

bool glotzopengl::GlObject::IsVisible (  ) 

bool glotzopengl::GlObject::IsRotatable (  ) 

bool glotzopengl::GlObject::IsMarkedForDeletion (  ) 

virtual void glotzopengl::GlObject::Display (  )  [pure virtual]

Implemented in glotzopengl::Arrow, glotzopengl::Cylinder, glotzopengl::Disk, glotzopengl::DlSphere, glotzopengl::ImageRectangle, glotzopengl::Line, glotzopengl::Polygon, glotzopengl::SolidBox, glotzopengl::Sphere, glotzopengl::Text, glotzopengl::TexturedSphere, and glotzopengl::WireBox.

GLfloat glotzopengl::GlObject::GetLargestDisplacement (  )  [virtual]

Reimplemented in glotzopengl::Arrow, glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::SphereBase.

int glotzopengl::GlObject::GetGroupId (  ) 

void glotzopengl::GlObject::ToggleVisibility (  ) 


Member Data Documentation

int glotzopengl::GlObject::mObjectType [protected]

GLfloat glotzopengl::GlObject::mRotation[4] [protected]

Reimplemented in glotzopengl::Box.

bool glotzopengl::GlObject::mIsRotatable [protected]

int glotzopengl::GlObject::mGroupId [protected]

bool glotzopengl::GlObject::mIsMarkedForDeletion [protected]

bool glotzopengl::GlObject::mIsScalable [protected]

Reimplemented in glotzopengl::Box.

bool glotzopengl::GlObject::mIsVisible [protected]

int glotzopengl::GlObject::mUpdateBit [protected]

GLfloat glotzopengl::GlObject::mScaleX [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mScaleY [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mScaleZ [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mPositionX [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mPositionY [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mPositionZ [protected]

Reimplemented in glotzopengl::Box, glotzopengl::Cylinder, glotzopengl::Disk, and glotzopengl::Text.

GLfloat glotzopengl::GlObject::mRed [protected]

GLfloat glotzopengl::GlObject::mGreen [protected]

GLfloat glotzopengl::GlObject::mBlue [protected]


The documentation for this class was generated from the following files:
Generated on Tue Feb 24 20:54:41 2009 by  doxygen 1.5.3