Jive reference manual
List of all members | Public Types | Public Member Functions | Protected Member Functions | Friends
jem::gl::TriangleSet Class Reference

#include <jem/gl/TriangleSet.h>

Inheritance diagram for jem::gl::TriangleSet:
Inheritance graph

Public Types

enum  ColorMode {
  NO_COLORS,
  TRIANG_COLORS,
  VERTEX_COLORS
}
 
enum  NormalMode {
  AUTO_NORMALS,
  TRIANG_NORMALS,
  VERTEX_NORMALS
}
 

Public Member Functions

 TriangleSet (const String &name, const Ref< VertexSet > &vx)
 
virtual void getBBox (Box &box) const
 
virtual void redraw (GfxContext &gtx)
 
virtual void redrawFast (GfxContext &gtx, double lod)
 
virtual bool exeCommand (GfxContext &gtx, const String &cmd, const Properties &params)
 
virtual void listOptions (Menu &menu) const
 
idx_t size () const
 
IdxMatrix getTopology () const
 
void setTopology (const IdxMatrix &topo)
 
void setNoColors ()
 
void setTriangColors (const GLubyteMatrix &colors)
 
void setVertexColors (const GLfloatVector &colors, const Ref< ColorMap > &colorMap)
 
ColorMode getColorMode () const
 
GLubyteMatrix getTriangColors () const
 
GLfloatVector getVertexColors () const
 
ColorMapgetColorMap () const
 
void setAutoNormals ()
 
void setTriangNormals (const GLbyteMatrix &normals)
 
void setVertexNormals (const GLbyteMatrix &normals)
 
NormalMode getNormalMode () const
 
GLbyteMatrix getNormals () const
 
void findTriangle (idx_t &index, GLfloat &dist, GLfloat x, GLfloat y, GLfloat z=0.0F) const
 
- Public Member Functions inherited from jem::gl::LeafNode
 LeafNode (const String &name="")
 
virtual bool takeAction (const String &action, const Properties &params)
 
virtual bool takeGLAction (GfxContext &gtx, int action, const Properties &params)
 
virtual void getVisibility (bool &viz, Box &vbox, const Transform &proj) const
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual void listProps (const Properties &props) const
 
virtual bool setFont ()
 
- Public Member Functions inherited from jem::gl::GfxNode
 GfxNode (const String &name="")
 
virtual String getContext () const
 
virtual GfxNodefindNode (const String &name) const
 
virtual bool takeNRAction (const String &action, const Properties &params)
 
GfxNodegetParent () const
 
void setParent (GfxNode *parent)
 
void clearParent ()
 
- Public Member Functions inherited from jem::NamedObject
 NamedObject (const String &name="")
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
String getName () const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class 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...
 

Protected Member Functions

virtual ~TriangleSet ()
 
- Protected Member Functions inherited from jem::gl::LeafNode
virtual ~LeafNode ()
 
- Protected Member Functions inherited from jem::gl::GfxNode
virtual ~GfxNode ()
 
- Protected Member Functions inherited from jem::NamedObject
virtual ~NamedObject ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Friends

class Work_
 
class Work2D_
 
class Work3D_
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::NamedObject
static String makeContext (const String &kind, const String &name)
 
- 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::LeafNode
bool hidden
 
- Protected Attributes inherited from jem::NamedObject
String myName_
 

Member Enumeration Documentation

Enumerator
NO_COLORS 
TRIANG_COLORS 
VERTEX_COLORS 
Enumerator
AUTO_NORMALS 
TRIANG_NORMALS 
VERTEX_NORMALS 

Constructor & Destructor Documentation

jem::gl::TriangleSet::TriangleSet ( const String name,
const Ref< VertexSet > &  vx 
)
virtual jem::gl::TriangleSet::~TriangleSet ( )
protectedvirtual

Member Function Documentation

virtual void jem::gl::TriangleSet::getBBox ( Box box) const
virtual

Reimplemented from jem::gl::GfxNode.

virtual void jem::gl::TriangleSet::redraw ( GfxContext gtx)
virtual

Implements jem::gl::LeafNode.

virtual void jem::gl::TriangleSet::redrawFast ( GfxContext gtx,
double  lod 
)
virtual

Implements jem::gl::LeafNode.

virtual bool jem::gl::TriangleSet::exeCommand ( GfxContext gtx,
const String cmd,
const Properties params 
)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jem::gl::TriangleSet::listOptions ( Menu menu) const
virtual

Reimplemented from jem::gl::LeafNode.

idx_t jem::gl::TriangleSet::size ( ) const
IdxMatrix jem::gl::TriangleSet::getTopology ( ) const
void jem::gl::TriangleSet::setTopology ( const IdxMatrix topo)
void jem::gl::TriangleSet::setNoColors ( )
void jem::gl::TriangleSet::setTriangColors ( const GLubyteMatrix colors)
void jem::gl::TriangleSet::setVertexColors ( const GLfloatVector colors,
const Ref< ColorMap > &  colorMap 
)
TriangleSet::ColorMode jem::gl::TriangleSet::getColorMode ( ) const
GLubyteMatrix jem::gl::TriangleSet::getTriangColors ( ) const
GLfloatVector jem::gl::TriangleSet::getVertexColors ( ) const
ColorMap * jem::gl::TriangleSet::getColorMap ( ) const
void jem::gl::TriangleSet::setAutoNormals ( )
void jem::gl::TriangleSet::setTriangNormals ( const GLbyteMatrix normals)
void jem::gl::TriangleSet::setVertexNormals ( const GLbyteMatrix normals)
TriangleSet::NormalMode jem::gl::TriangleSet::getNormalMode ( ) const
GLbyteMatrix jem::gl::TriangleSet::getNormals ( ) const
void jem::gl::TriangleSet::findTriangle ( idx_t &  index,
GLfloat &  dist,
GLfloat  x,
GLfloat  y,
GLfloat  z = 0.0F 
) const

Friends And Related Function Documentation

friend class Work_
friend
friend class Work2D_
friend
friend class Work3D_
friend