OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WMSuperquadricGlyphs::GlyphGeometryNodeCallback Class Reference

Node callback to handle updates in the glyph tensor data. More...

+ Inheritance diagram for WMSuperquadricGlyphs::GlyphGeometryNodeCallback:
+ Collaboration diagram for WMSuperquadricGlyphs::GlyphGeometryNodeCallback:

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...
 

Detailed Description

Node callback to handle updates in the glyph tensor data.

Definition at line 249 of file WMSuperquadricGlyphs.h.

Constructor & Destructor Documentation

◆ GlyphGeometryNodeCallback()

WMSuperquadricGlyphs::GlyphGeometryNodeCallback::GlyphGeometryNodeCallback ( osg::Geometry *  geo)
inlineexplicit

Constructor.

Parameters
geothe geometry object to handle

Definition at line 257 of file WMSuperquadricGlyphs.h.

Member Function Documentation

◆ setNewTensorData()

void WMSuperquadricGlyphs::GlyphGeometryNodeCallback::setNewTensorData ( osg::ref_ptr< osg::Vec3Array >  diag,
osg::ref_ptr< osg::Vec3Array >  offdiag 
)

Updates the tensor data in the glyph slice.

Parameters
diagthe diagonal elements as texture coords
offdiagthe off diagonal elements as texture coords

Definition at line 366 of file WMSuperquadricGlyphs.cpp.

◆ update()

void WMSuperquadricGlyphs::GlyphGeometryNodeCallback::update ( osg::NodeVisitor *  nv,
osg::Drawable *  d 
)
virtual

This operator gets called by OSG every update cycle.

Parameters
dthe osg drawable
nvthe node visitor

Definition at line 354 of file WMSuperquadricGlyphs.cpp.

References m_dirty, m_geometry, m_tensorDiag, and m_tensorOffDiag.

Member Data Documentation

◆ m_dirty

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().

◆ m_geometry

osg::Geometry* WMSuperquadricGlyphs::GlyphGeometryNodeCallback::m_geometry

The geometry node to handle here.

Definition at line 282 of file WMSuperquadricGlyphs.h.

Referenced by update().

◆ m_tensorDiag

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().

◆ m_tensorOffDiag

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().


The documentation for this class was generated from the following files: