Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
jive::gl::MeshAttribs Class Reference

#include <jive/gl/MeshAttribs.h>

Inheritance diagram for jive::gl::MeshAttribs:
Inheritance graph

Public Types

typedef jem::gl::Attributes Attributes
 

Public Member Functions

 MeshAttribs ()
 
 MeshAttribs (const Self &rhs)
 
virtual Ref< Objectclone () const
 
virtual int copyFrom (const Properties &props)
 
virtual void copyTo (const Properties &props, int fields) const
 
virtual void setDefaults ()
 
void setOption (int what, bool yesno=true)
 
bool testOption (int what) const
 
Color getEdgeColor () const
 
void setEdgeColor (const Color &color)
 
Color getNodeColor () const
 
void setNodeColor (const Color &color)
 
- Public Member Functions inherited from jem::gl::StdAttribs
 StdAttribs ()
 
 StdAttribs (const Self &rhs)
 
virtual void listProps (const Properties &props) const
 
virtual void setCurrent (int fields) const
 
virtual void getCurrent (int fields)
 
GLfloat getPointSize () const
 
void setPointSize (GLfloat size)
 
GLfloat getLineWidth () const
 
void setLineWidth (GLfloat width)
 
GLenum getShadeModel () const
 
void setShadeModel (GLenum mode)
 
Color getColor () const
 
void setColor (const Color &color)
 
Color getSpecular () const
 
void setSpecular (const Color &color)
 
GLfloat getShininess () const
 
void setShininess (GLfloat shine)
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Attributes

static const int EDGE_COLOR = Super::LAST_FIELD << 1
 
static const int NODE_COLOR = EDGE_COLOR << 1
 
static const int SHOW_EDGES = NODE_COLOR << 1
 
static const int SHOW_LINES = SHOW_EDGES << 1
 
static const int SHOW_FACES = SHOW_LINES << 1
 
static const int LAST_FIELD = SHOW_FACES
 
static const char * EDGE_COLOR_NAME
 
static const char * NODE_COLOR_NAME
 
static const char * SHOW_EDGES_NAME
 
static const char * SHOW_LINES_NAME
 
static const char * SHOW_FACES_NAME
 
- Static Public Attributes inherited from jem::gl::StdAttribs
static const int POINT_SIZE = 1 << 0
 
static const int LINE_WIDTH = 1 << 1
 
static const int SHADE_MODEL = 1 << 2
 
static const int COLOR = 1 << 3
 
static const int SPECULAR = 1 << 4
 
static const int SHININESS = 1 << 5
 
static const int LAST_FIELD = SHININESS
 
static const char * POINT_SIZE_NAME
 
static const char * LINE_WIDTH_NAME
 
static const char * SHADE_MODEL_NAME
 
static const char * COLOR_NAME
 
static const char * MATERIAL_NAME
 
static const char * SPECULAR_NAME
 
static const char * SHININESS_NAME
 
- Static Public Attributes inherited from jem::gl::Attributes
static const int ALL_FIELDS
 

Protected Member Functions

virtual ~MeshAttribs ()
 
- Protected Member Functions inherited from jem::gl::StdAttribs
virtual ~StdAttribs ()
 
- Protected Member Functions inherited from jem::gl::Attributes
virtual ~Attributes ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::Clonable
virtual ~Clonable ()
 
virtual void emitVTable_ ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Protected Attributes

int options_
 
Color edgeColor_
 
Color nodeColor_
 
- Protected Attributes inherited from jem::gl::StdAttribs
GLfloat pointSize_
 
GLfloat lineWidth_
 
GLenum shadeModel_
 
Color color_
 
Color specular_
 
GLfloat shininess_
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Public Attributes inherited from jem::gl::Attributes
util::Event< int, Self & > newValuesEvent
 

Member Typedef Documentation

Constructor & Destructor Documentation

jive::gl::MeshAttribs::MeshAttribs ( )
jive::gl::MeshAttribs::MeshAttribs ( const Self &  rhs)
virtual jive::gl::MeshAttribs::~MeshAttribs ( )
protectedvirtual

Member Function Documentation

virtual Ref<Object> jive::gl::MeshAttribs::clone ( ) const
virtual

Reimplemented from jem::gl::StdAttribs.

virtual int jive::gl::MeshAttribs::copyFrom ( const Properties props)
virtual

Reimplemented from jem::gl::StdAttribs.

virtual void jive::gl::MeshAttribs::copyTo ( const Properties props,
int  fields 
) const
virtual

Reimplemented from jem::gl::StdAttribs.

virtual void jive::gl::MeshAttribs::setDefaults ( )
virtual

Reimplemented from jem::gl::StdAttribs.

void jive::gl::MeshAttribs::setOption ( int  what,
bool  yesno = true 
)
bool jive::gl::MeshAttribs::testOption ( int  what) const
jem::gl::Color jive::gl::MeshAttribs::getEdgeColor ( ) const
void jive::gl::MeshAttribs::setEdgeColor ( const Color color)
jem::gl::Color jive::gl::MeshAttribs::getNodeColor ( ) const
void jive::gl::MeshAttribs::setNodeColor ( const Color color)

Member Data Documentation

const int jive::gl::MeshAttribs::EDGE_COLOR = Super::LAST_FIELD << 1
static
const int jive::gl::MeshAttribs::NODE_COLOR = EDGE_COLOR << 1
static
const int jive::gl::MeshAttribs::SHOW_EDGES = NODE_COLOR << 1
static
const int jive::gl::MeshAttribs::SHOW_LINES = SHOW_EDGES << 1
static
const int jive::gl::MeshAttribs::SHOW_FACES = SHOW_LINES << 1
static
const int jive::gl::MeshAttribs::LAST_FIELD = SHOW_FACES
static
const char* jive::gl::MeshAttribs::EDGE_COLOR_NAME
static
const char* jive::gl::MeshAttribs::NODE_COLOR_NAME
static
const char* jive::gl::MeshAttribs::SHOW_EDGES_NAME
static
const char* jive::gl::MeshAttribs::SHOW_LINES_NAME
static
const char* jive::gl::MeshAttribs::SHOW_FACES_NAME
static
int jive::gl::MeshAttribs::options_
protected
Color jive::gl::MeshAttribs::edgeColor_
protected
Color jive::gl::MeshAttribs::nodeColor_
protected