Ignore:
Timestamp:
Jul 16, 2012 11:37:07 AM (12 years ago)
Author:
ldelgass
Message:

Add ability to specify field used for orienting glyphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpGlyphs.cpp

    r3092 r3095  
    298298
    299299#ifdef HAVE_GLYPH3D_MAPPER
     300/**
     301 * \brief Turn on/off orienting glyphs from a vector field
     302 */
     303void Glyphs::setOrientMode(bool mode, const char *name)
     304{
     305    if (_glyphMapper != NULL) {
     306        _glyphMapper->SetOrient(mode ? 1 : 0);
     307        if (name != NULL && strlen(name) > 0) {
     308            _glyphMapper->SetOrientationArray(name);
     309        } else {
     310            _glyphMapper->SetOrientationArray(vtkDataSetAttributes::VECTORS);
     311        }
     312    }
     313}
     314
    300315/**
    301316 * \brief Control how glyphs are scaled
Note: See TracChangeset for help on using the changeset viewer.