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

#include <jem/gl/LineSet.h>

Inheritance diagram for jem::gl::LineSet:
Inheritance graph

Public Types

enum  ColorMode {
  NO_COLORS,
  LINE_COLORS,
  VERTEX_COLORS
}
 

Public Member Functions

 LineSet (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
 
void setTopology (const IdxVector &offsets, const IdxVector &indices)
 
IdxVector getLineOffsets () const
 
IdxVector getVertexIndices () const
 
void setNoColors ()
 
void setLineColors (const GLubyteMatrix &colors)
 
void setVertexColors (const GLfloatVector &colors, const Ref< ColorMap > &colorMap)
 
ColorMode getColorMode () const
 
GLubyteMatrix getLineColors () const
 
GLfloatVector getVertexColors () const
 
ColorMapgetColorMap () const
 
void findLine (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...
 

Static Public Attributes

static const int SAMPLE_COUNT
 

Protected Member Functions

virtual ~LineSet ()
 
- 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_
 

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 
LINE_COLORS 
VERTEX_COLORS 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from jem::gl::GfxNode.

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

Implements jem::gl::LeafNode.

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

Implements jem::gl::LeafNode.

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

Reimplemented from jem::gl::LeafNode.

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

Reimplemented from jem::gl::LeafNode.

idx_t jem::gl::LineSet::size ( ) const
void jem::gl::LineSet::setTopology ( const IdxVector offsets,
const IdxVector indices 
)
IdxVector jem::gl::LineSet::getLineOffsets ( ) const
IdxVector jem::gl::LineSet::getVertexIndices ( ) const
void jem::gl::LineSet::setNoColors ( )
void jem::gl::LineSet::setLineColors ( const GLubyteMatrix colors)
void jem::gl::LineSet::setVertexColors ( const GLfloatVector colors,
const Ref< ColorMap > &  colorMap 
)
LineSet::ColorMode jem::gl::LineSet::getColorMode ( ) const
GLubyteMatrix jem::gl::LineSet::getLineColors ( ) const
GLfloatVector jem::gl::LineSet::getVertexColors ( ) const
ColorMap * jem::gl::LineSet::getColorMap ( ) const
void jem::gl::LineSet::findLine ( idx_t &  index,
GLfloat &  dist,
GLfloat  x,
GLfloat  y,
GLfloat  z = 0.0F 
) const

Friends And Related Function Documentation

friend class Work_
friend

Member Data Documentation

const int jem::gl::LineSet::SAMPLE_COUNT
static