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

#include <jive/gl/MeshRenderer.h>

Inheritance diagram for jive::gl::MeshRenderer:
Inheritance graph

Public Types

typedef MeshAttribs Attribs
 

Public Member Functions

 MeshRenderer (const String &name, const AppContext &apx, const ElementGroup &group, const Ref< ShapeTable > &shapes, const Ref< GfxMesher > &mesher, const Ref< Attribs > &attribs=NIL)
 
virtual void getBBox (jem::gl::Box &box) const
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual bool takeGLAction (GfxContext &gtx, int action, const Properties &params)
 
virtual void redraw (GfxContext &gtx)
 
virtual void redrawFast (GfxContext &gtx, double lod)
 
virtual void drawCData (GfxContext &gtx)
 
virtual bool exeCommand (GfxContext &gtx, const String &cmd, const Properties &params)
 
virtual void listOptions (jem::gl::Menu &menu) const
 
void update (const AppContext &apx)
 
void clearColors ()
 
void setNodeColors (const GLfloatVector &colors, const Ref< ColorMap > &colorMap, const AppContext &apx)
 
void setElemColors (const GLubyteMatrix &colors, const AppContext &apx)
 
void trackMeshGeom ()
 
void setNodeCoords (const Matrix &coords, const AppContext &apx)
 
void setNodeCoords (idx_t idim, const Vector &coords, const AppContext &apx)
 
void addToNodeCoords (const Matrix &delta, const AppContext &apx)
 
void addToNodeCoords (idx_t idim, const Vector &delta, const AppContext &apx)
 
idx_t findElement (idx_t &elemID, double x, double y, double z) const
 
VertexSetgetVertices () const
 
IdxVector getVxNodeMap () const
 
IdxVector getNodeVxMap (const AppContext &apx) const
 
AttribsgetAttribs () const
 
IdxVector getElemIndices (const AppContext &apx) const
 
ElementGroup getElemGroup (const AppContext &apx) const
 
ElementSet getElements (const AppContext &apx) const
 
NodeSet getNodes (const AppContext &apx) const
 
- Public Member Functions inherited from jem::gl::LeafNode
 LeafNode (const String &name="")
 
virtual bool takeAction (const String &action, const Properties &params)
 
virtual void getVisibility (bool &viz, Box &vbox, const Transform &proj) 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 Member Functions

static Ref< Self > get (const Properties &viewdat, const String &context)
 
- 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

Event< Self & > newMeshEvent
 
- Public Attributes inherited from jem::gl::LeafNode
bool hidden
 

Protected Member Functions

virtual ~MeshRenderer ()
 
- 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 OwnData_
 

Additional Inherited Members

- Protected Attributes inherited from jem::NamedObject
String myName_
 

Member Typedef Documentation

Constructor & Destructor Documentation

jive::gl::MeshRenderer::MeshRenderer ( const String name,
const AppContext apx,
const ElementGroup group,
const Ref< ShapeTable > &  shapes,
const Ref< GfxMesher > &  mesher,
const Ref< Attribs > &  attribs = NIL 
)
virtual jive::gl::MeshRenderer::~MeshRenderer ( )
protectedvirtual

Member Function Documentation

virtual void jive::gl::MeshRenderer::getBBox ( jem::gl::Box box) const
virtual

Reimplemented from jem::gl::GfxNode.

virtual void jive::gl::MeshRenderer::configure ( const Properties props)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jive::gl::MeshRenderer::getConfig ( const Properties props) const
virtual

Reimplemented from jem::gl::LeafNode.

virtual bool jive::gl::MeshRenderer::takeGLAction ( GfxContext gtx,
int  action,
const Properties params 
)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jive::gl::MeshRenderer::redraw ( GfxContext gtx)
virtual

Implements jem::gl::LeafNode.

virtual void jive::gl::MeshRenderer::redrawFast ( GfxContext gtx,
double  lod 
)
virtual

Implements jem::gl::LeafNode.

virtual void jive::gl::MeshRenderer::drawCData ( GfxContext gtx)
virtual
virtual bool jive::gl::MeshRenderer::exeCommand ( GfxContext gtx,
const String cmd,
const Properties params 
)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jive::gl::MeshRenderer::listOptions ( jem::gl::Menu menu) const
virtual

Reimplemented from jem::gl::LeafNode.

void jive::gl::MeshRenderer::update ( const AppContext apx)
void jive::gl::MeshRenderer::clearColors ( )
void jive::gl::MeshRenderer::setNodeColors ( const GLfloatVector &  colors,
const Ref< ColorMap > &  colorMap,
const AppContext apx 
)
void jive::gl::MeshRenderer::setElemColors ( const GLubyteMatrix &  colors,
const AppContext apx 
)
void jive::gl::MeshRenderer::trackMeshGeom ( )
void jive::gl::MeshRenderer::setNodeCoords ( const Matrix &  coords,
const AppContext apx 
)
void jive::gl::MeshRenderer::setNodeCoords ( idx_t  idim,
const Vector &  coords,
const AppContext apx 
)
void jive::gl::MeshRenderer::addToNodeCoords ( const Matrix &  delta,
const AppContext apx 
)
void jive::gl::MeshRenderer::addToNodeCoords ( idx_t  idim,
const Vector &  delta,
const AppContext apx 
)
idx_t jive::gl::MeshRenderer::findElement ( idx_t &  elemID,
double  x,
double  y,
double  z 
) const
VertexSet* jive::gl::MeshRenderer::getVertices ( ) const
IdxVector jive::gl::MeshRenderer::getVxNodeMap ( ) const
IdxVector jive::gl::MeshRenderer::getNodeVxMap ( const AppContext apx) const
Attribs* jive::gl::MeshRenderer::getAttribs ( ) const
IdxVector jive::gl::MeshRenderer::getElemIndices ( const AppContext apx) const
ElementGroup jive::gl::MeshRenderer::getElemGroup ( const AppContext apx) const
ElementSet jive::gl::MeshRenderer::getElements ( const AppContext apx) const
NodeSet jive::gl::MeshRenderer::getNodes ( const AppContext apx) const
static Ref<Self> jive::gl::MeshRenderer::get ( const Properties viewdat,
const String context 
)
static

Friends And Related Function Documentation

friend class OwnData_
friend

Member Data Documentation

Event< Self& > jive::gl::MeshRenderer::newMeshEvent