OpenWalnut
1.5.0dev
|
Node callback to handle updates in the glyph tensor data. More...
Public Member Functions | |
GlyphGeometryNodeCallback (osg::Geometry *geo) | |
Constructor. More... | |
virtual void | update (osg::NodeVisitor *nv, osg::Drawable *d) |
This operator gets called by OSG every update cycle. More... | |
void | setNewTensorData (osg::ref_ptr< osg::Vec3Array > diag, osg::ref_ptr< osg::Vec3Array > offdiag) |
Updates the tensor data in the glyph slice. More... | |
Public Attributes | |
osg::Geometry * | m_geometry |
The geometry node to handle here. More... | |
bool | m_dirty |
Dirty flag. More... | |
osg::ref_ptr< osg::Vec3Array > | m_tensorDiag |
Diagonal tensor elements in texture coordinate array. More... | |
osg::ref_ptr< osg::Vec3Array > | m_tensorOffDiag |
Off-diagonal tensor elements in texture coordinate array. More... | |
Node callback to handle updates in the glyph tensor data.
Definition at line 249 of file WMSuperquadricGlyphs.h.
|
inlineexplicit |
Constructor.
geo | the geometry object to handle |
Definition at line 257 of file WMSuperquadricGlyphs.h.
void WMSuperquadricGlyphs::GlyphGeometryNodeCallback::setNewTensorData | ( | osg::ref_ptr< osg::Vec3Array > | diag, |
osg::ref_ptr< osg::Vec3Array > | offdiag | ||
) |
Updates the tensor data in the glyph slice.
diag | the diagonal elements as texture coords |
offdiag | the off diagonal elements as texture coords |
Definition at line 366 of file WMSuperquadricGlyphs.cpp.
|
virtual |
This operator gets called by OSG every update cycle.
d | the osg drawable |
nv | the node visitor |
Definition at line 354 of file WMSuperquadricGlyphs.cpp.
References m_dirty, m_geometry, m_tensorDiag, and m_tensorOffDiag.
bool WMSuperquadricGlyphs::GlyphGeometryNodeCallback::m_dirty |
Dirty flag.
If true, the m_tensorDiag and m_tensorOffDiag get set
Definition at line 287 of file WMSuperquadricGlyphs.h.
Referenced by update().
osg::Geometry* WMSuperquadricGlyphs::GlyphGeometryNodeCallback::m_geometry |
The geometry node to handle here.
Definition at line 282 of file WMSuperquadricGlyphs.h.
Referenced by update().
osg::ref_ptr< osg::Vec3Array > WMSuperquadricGlyphs::GlyphGeometryNodeCallback::m_tensorDiag |
Diagonal tensor elements in texture coordinate array.
Definition at line 292 of file WMSuperquadricGlyphs.h.
Referenced by update().
osg::ref_ptr< osg::Vec3Array > WMSuperquadricGlyphs::GlyphGeometryNodeCallback::m_tensorOffDiag |
Off-diagonal tensor elements in texture coordinate array.
Definition at line 297 of file WMSuperquadricGlyphs.h.
Referenced by update().