VTK
|
vtkGlyph3D on the GPU. More...
#include <vtkGlyph3DMapper.h>
vtkGlyph3D on the GPU.
Do the same job than vtkGlyph3D but on the GPU. For this reason, it is a mapper not a vtkPolyDataAlgorithm. Also, some methods of vtkGlyph3D don't make sense in vtkGlyph3DMapper: GeneratePointIds, old-style SetSource, PointIdsName, IsPointVisible.
Definition at line 38 of file vtkGlyph3DMapper.h.
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
Definition at line 42 of file vtkGlyph3DMapper.h.
Definition at line 45 of file vtkGlyph3DMapper.h.
Definition at line 105 of file vtkGlyph3DMapper.h.
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
Definition at line 146 of file vtkGlyph3DMapper.h.
vtkGlyph3DMapper::vtkGlyph3DMapper | ( | ) | [protected] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection.
vtkGlyph3DMapper::~vtkGlyph3DMapper | ( | ) | [protected] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection.
static vtkGlyph3DMapper* vtkGlyph3DMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkOpenGLGlyph3DMapper.
static int vtkGlyph3DMapper::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
virtual int vtkGlyph3DMapper::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
static vtkGlyph3DMapper* vtkGlyph3DMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
virtual vtkObjectBase* vtkGlyph3DMapper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
vtkGlyph3DMapper* vtkGlyph3DMapper::NewInstance | ( | ) | const |
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
void vtkGlyph3DMapper::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
void vtkGlyph3DMapper::SetSourceConnection | ( | int | idx, |
vtkAlgorithmOutput * | algOutput | ||
) |
Specify a source object at a specified table location. New style. Source connection is stored in port 1. This method is equivalent to SetInputConnection(1, id, outputPort).
void vtkGlyph3DMapper::SetSourceConnection | ( | vtkAlgorithmOutput * | algOutput | ) | [inline] |
Specify a source object at a specified table location. New style. Source connection is stored in port 1. This method is equivalent to SetInputConnection(1, id, outputPort).
Definition at line 60 of file vtkGlyph3DMapper.h.
void vtkGlyph3DMapper::SetInputData | ( | vtkDataObject * | ) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use SetInputConnection() to setup a pipeline connection.
void vtkGlyph3DMapper::SetSourceData | ( | int | idx, |
vtkPolyData * | pd | ||
) |
Specify a source object at a specified table location.
void vtkGlyph3DMapper::SetSourceData | ( | vtkPolyData * | pd | ) |
Set the source to use for he glyph. Old style. See SetSourceConnection.
vtkPolyData* vtkGlyph3DMapper::GetSource | ( | int | idx = 0 | ) |
Get a pointer to a source object at a specified table location.
virtual void vtkGlyph3DMapper::SetScaling | ( | bool | ) | [virtual] |
Turn on/off scaling of source geometry. When turned on, ScaleFactor controls the scale applied. To scale with some data array, ScaleMode should be set accordingly.
virtual void vtkGlyph3DMapper::ScalingOn | ( | ) | [virtual] |
Turn on/off scaling of source geometry. When turned on, ScaleFactor controls the scale applied. To scale with some data array, ScaleMode should be set accordingly.
virtual void vtkGlyph3DMapper::ScalingOff | ( | ) | [virtual] |
Turn on/off scaling of source geometry. When turned on, ScaleFactor controls the scale applied. To scale with some data array, ScaleMode should be set accordingly.
virtual bool vtkGlyph3DMapper::GetScaling | ( | ) | [virtual] |
Turn on/off scaling of source geometry. When turned on, ScaleFactor controls the scale applied. To scale with some data array, ScaleMode should be set accordingly.
virtual void vtkGlyph3DMapper::SetScaleMode | ( | int | ) | [virtual] |
Either scale by individual components (SCALE_BY_COMPONENTS) or magnitude (SCALE_BY_MAGNITUDE) of the chosen array to SCALE with or disable scaling using data array all together (NO_DATA_SCALING). Default is NO_DATA_SCALING.
virtual int vtkGlyph3DMapper::GetScaleMode | ( | ) | [virtual] |
Either scale by individual components (SCALE_BY_COMPONENTS) or magnitude (SCALE_BY_MAGNITUDE) of the chosen array to SCALE with or disable scaling using data array all together (NO_DATA_SCALING). Default is NO_DATA_SCALING.
virtual void vtkGlyph3DMapper::SetScaleFactor | ( | double | ) | [virtual] |
Specify scale factor to scale object by. This is used only when Scaling is On.
virtual double vtkGlyph3DMapper::GetScaleFactor | ( | ) | [virtual] |
Specify scale factor to scale object by. This is used only when Scaling is On.
void vtkGlyph3DMapper::SetScaleModeToScaleByMagnitude | ( | ) | [inline] |
Definition at line 112 of file vtkGlyph3DMapper.h.
void vtkGlyph3DMapper::SetScaleModeToScaleByVectorComponents | ( | ) | [inline] |
Definition at line 114 of file vtkGlyph3DMapper.h.
void vtkGlyph3DMapper::SetScaleModeToNoDataScaling | ( | ) | [inline] |
Definition at line 116 of file vtkGlyph3DMapper.h.
const char* vtkGlyph3DMapper::GetScaleModeAsString | ( | ) |
virtual void vtkGlyph3DMapper::SetRange | ( | double | , |
double | |||
) | [virtual] |
Specify range to map scalar values into.
void vtkGlyph3DMapper::SetRange | ( | double | [2] | ) |
Specify range to map scalar values into.
virtual double* vtkGlyph3DMapper::GetRange | ( | ) | [virtual] |
Specify range to map scalar values into.
virtual void vtkGlyph3DMapper::GetRange | ( | double | data[2] | ) | [virtual] |
Specify range to map scalar values into.
virtual void vtkGlyph3DMapper::SetOrient | ( | bool | ) | [virtual] |
Turn on/off orienting of input geometry. When turned on, the orientation array specified using SetOrientationArray() will be used.
virtual bool vtkGlyph3DMapper::GetOrient | ( | ) | [virtual] |
Turn on/off orienting of input geometry. When turned on, the orientation array specified using SetOrientationArray() will be used.
virtual void vtkGlyph3DMapper::OrientOn | ( | ) | [virtual] |
Turn on/off orienting of input geometry. When turned on, the orientation array specified using SetOrientationArray() will be used.
virtual void vtkGlyph3DMapper::OrientOff | ( | ) | [virtual] |
Turn on/off orienting of input geometry. When turned on, the orientation array specified using SetOrientationArray() will be used.
virtual void vtkGlyph3DMapper::SetOrientationMode | ( | int | ) | [virtual] |
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
virtual int vtkGlyph3DMapper::GetOrientationMode | ( | ) | [virtual] |
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
void vtkGlyph3DMapper::SetOrientationModeToDirection | ( | ) | [inline] |
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
Definition at line 140 of file vtkGlyph3DMapper.h.
void vtkGlyph3DMapper::SetOrientationModeToRotation | ( | ) | [inline] |
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
Definition at line 142 of file vtkGlyph3DMapper.h.
const char* vtkGlyph3DMapper::GetOrientationModeAsString | ( | ) |
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes. Default is DIRECTION
virtual void vtkGlyph3DMapper::SetClamping | ( | bool | ) | [virtual] |
Turn on/off clamping of data values to scale with to the specified range.
virtual bool vtkGlyph3DMapper::GetClamping | ( | ) | [virtual] |
Turn on/off clamping of data values to scale with to the specified range.
virtual void vtkGlyph3DMapper::ClampingOn | ( | ) | [virtual] |
Turn on/off clamping of data values to scale with to the specified range.
virtual void vtkGlyph3DMapper::ClampingOff | ( | ) | [virtual] |
Turn on/off clamping of data values to scale with to the specified range.
virtual void vtkGlyph3DMapper::SetSourceIndexing | ( | bool | ) | [virtual] |
Enable/disable indexing into table of the glyph sources. When disabled, only the 1st source input will be used to generate the glyph. Otherwise the source index array will be used to select the glyph source. The source index array can be specified using SetSourceIndexArray().
virtual bool vtkGlyph3DMapper::GetSourceIndexing | ( | ) | [virtual] |
Enable/disable indexing into table of the glyph sources. When disabled, only the 1st source input will be used to generate the glyph. Otherwise the source index array will be used to select the glyph source. The source index array can be specified using SetSourceIndexArray().
virtual void vtkGlyph3DMapper::SourceIndexingOn | ( | ) | [virtual] |
Enable/disable indexing into table of the glyph sources. When disabled, only the 1st source input will be used to generate the glyph. Otherwise the source index array will be used to select the glyph source. The source index array can be specified using SetSourceIndexArray().
virtual void vtkGlyph3DMapper::SourceIndexingOff | ( | ) | [virtual] |
Enable/disable indexing into table of the glyph sources. When disabled, only the 1st source input will be used to generate the glyph. Otherwise the source index array will be used to select the glyph source. The source index array can be specified using SetSourceIndexArray().
virtual void vtkGlyph3DMapper::SetUseSelectionIds | ( | bool | ) | [virtual] |
Turn on/off custom selection ids. If enabled, the id values set with SetSelectionIdArray are returned from pick events.
virtual void vtkGlyph3DMapper::UseSelectionIdsOn | ( | ) | [virtual] |
Turn on/off custom selection ids. If enabled, the id values set with SetSelectionIdArray are returned from pick events.
virtual void vtkGlyph3DMapper::UseSelectionIdsOff | ( | ) | [virtual] |
Turn on/off custom selection ids. If enabled, the id values set with SetSelectionIdArray are returned from pick events.
virtual bool vtkGlyph3DMapper::GetUseSelectionIds | ( | ) | [virtual] |
Turn on/off custom selection ids. If enabled, the id values set with SetSelectionIdArray are returned from pick events.
virtual double* vtkGlyph3DMapper::GetBounds | ( | ) | [virtual] |
Redefined to take into account the bounds of the scaled glyphs.
Reimplemented from vtkMapper.
virtual void vtkGlyph3DMapper::GetBounds | ( | double | bounds[6] | ) | [virtual] |
Same as superclass. Appear again to stop warnings about hidden method.
Reimplemented from vtkMapper.
virtual void vtkGlyph3DMapper::Render | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
All the work is done is derived classes.
Implements vtkMapper.
Reimplemented in vtkOpenGLGlyph3DMapper.
virtual void vtkGlyph3DMapper::SetNestedDisplayLists | ( | bool | ) | [virtual] |
If immediate mode is off, if NestedDisplayLists is false, only the mappers of each glyph use display lists. If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
virtual bool vtkGlyph3DMapper::GetNestedDisplayLists | ( | ) | [virtual] |
If immediate mode is off, if NestedDisplayLists is false, only the mappers of each glyph use display lists. If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
virtual void vtkGlyph3DMapper::NestedDisplayListsOn | ( | ) | [virtual] |
If immediate mode is off, if NestedDisplayLists is false, only the mappers of each glyph use display lists. If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
virtual void vtkGlyph3DMapper::NestedDisplayListsOff | ( | ) | [virtual] |
If immediate mode is off, if NestedDisplayLists is false, only the mappers of each glyph use display lists. If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
virtual void vtkGlyph3DMapper::SetMasking | ( | bool | ) | [virtual] |
Tells the mapper to skip glyphing input points that haves false values in the mask array. If there is no mask array (id access mode is set and there is no such id, or array name access mode is set and the there is no such name), masking is silently ignored. A mask array is a vtkBitArray with only one component. Initial value is false.
virtual bool vtkGlyph3DMapper::GetMasking | ( | ) | [virtual] |
Tells the mapper to skip glyphing input points that haves false values in the mask array. If there is no mask array (id access mode is set and there is no such id, or array name access mode is set and the there is no such name), masking is silently ignored. A mask array is a vtkBitArray with only one component. Initial value is false.
virtual void vtkGlyph3DMapper::MaskingOn | ( | ) | [virtual] |
Tells the mapper to skip glyphing input points that haves false values in the mask array. If there is no mask array (id access mode is set and there is no such id, or array name access mode is set and the there is no such name), masking is silently ignored. A mask array is a vtkBitArray with only one component. Initial value is false.
virtual void vtkGlyph3DMapper::MaskingOff | ( | ) | [virtual] |
Tells the mapper to skip glyphing input points that haves false values in the mask array. If there is no mask array (id access mode is set and there is no such id, or array name access mode is set and the there is no such name), masking is silently ignored. A mask array is a vtkBitArray with only one component. Initial value is false.
void vtkGlyph3DMapper::SetMaskArray | ( | const char * | maskarrayname | ) |
Set the name of the point array to use as a mask for generating the glyphs. This is a convenience method. The same effect can be achieved by using SetInputArrayToProcess(vtkGlyph3DMapper::MASK, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, maskarrayname)
void vtkGlyph3DMapper::SetMaskArray | ( | int | fieldAttributeType | ) |
Set the point attribute to use as a mask for generating the glyphs. fieldAttributeType
is one of the following:
void vtkGlyph3DMapper::SetOrientationArray | ( | const char * | orientationarrayname | ) |
Tells the mapper to use an orientation array if Orient is true. An orientation array is a vtkDataArray with 3 components. The first component is the angle of rotation along the X axis. The second component is the angle of rotation along the Y axis. The third component is the angle of rotation along the Z axis. Orientation is specified in X,Y,Z order but the rotations are performed in Z,X an Y. This definition is compliant with SetOrientation method on vtkProp3D. By using vector or normal there is a degree of freedom or rotation left (underconstrained). With the orientation array, there is no degree of freedom left. This is convenience method. The same effect can be achieved by using SetInputArrayToProcess(vtkGlyph3DMapper::ORIENTATION, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, orientationarrayname);
void vtkGlyph3DMapper::SetOrientationArray | ( | int | fieldAttributeType | ) |
Tells the mapper to use an orientation array if Orient is true. An orientation array is a vtkDataArray with 3 components. The first component is the angle of rotation along the X axis. The second component is the angle of rotation along the Y axis. The third component is the angle of rotation along the Z axis. Orientation is specified in X,Y,Z order but the rotations are performed in Z,X an Y. This definition is compliant with SetOrientation method on vtkProp3D. By using vector or normal there is a degree of freedom or rotation left (underconstrained). With the orientation array, there is no degree of freedom left. fieldAttributeType
is one of the following:
void vtkGlyph3DMapper::SetScaleArray | ( | const char * | scalarsarrayname | ) |
Convenience method to set the array to scale with. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SCALE, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, scalarsarrayname).
void vtkGlyph3DMapper::SetScaleArray | ( | int | fieldAttributeType | ) |
Convenience method to set the array to scale with. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SCALE, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldAttributeType).
void vtkGlyph3DMapper::SetSourceIndexArray | ( | const char * | arrayname | ) |
Convenience method to set the array to use as index within the sources. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SOURCE_INDEX, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, arrayname).
void vtkGlyph3DMapper::SetSourceIndexArray | ( | int | fieldAttributeType | ) |
Convenience method to set the array to use as index within the sources. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SOURCE_INDEX, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldAttributeType).
void vtkGlyph3DMapper::SetSelectionIdArray | ( | const char * | selectionIdArrayName | ) |
Convenience method to set the array used for selection IDs. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SELECTIONID, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, selectionidarrayname). If no selection id array is specified, the index of the glyph point is used.
void vtkGlyph3DMapper::SetSelectionIdArray | ( | int | fieldAttributeType | ) |
Convenience method to set the array used for selection IDs. This is same as calling SetInputArrayToProcess(vtkGlyph3DMapper::SELECTIONID, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldAttributeType). If no selection id array is specified, the index of the glyph point is used.
virtual void vtkGlyph3DMapper::SetSelectionColorId | ( | unsigned | int | ) | [virtual] |
For selection by color id mode (not for end-user, called by vtkGlyphSelectionRenderMode). 0 is reserved for miss. it has to start at 1. Initial value is 1.
virtual unsigned int vtkGlyph3DMapper::GetSelectionColorId | ( | ) | [virtual] |
For selection by color id mode (not for end-user, called by vtkGlyphSelectionRenderMode). 0 is reserved for miss. it has to start at 1. Initial value is 1.
virtual void vtkGlyph3DMapper::SetSelectMode | ( | int | ) | [virtual] |
Called by vtkGlyphSelectionRenderMode.
virtual bool vtkGlyph3DMapper::GetSupportsSelection | ( | ) | [inline, virtual] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection.
Reimplemented from vtkMapper.
Definition at line 316 of file vtkGlyph3DMapper.h.
virtual int vtkGlyph3DMapper::RequestUpdateExtent | ( | vtkInformation * | request, |
vtkInformationVector ** | inInfo, | ||
vtkInformationVector * | outInfo | ||
) | [protected, virtual] |
virtual int vtkGlyph3DMapper::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
vtkPolyData* vtkGlyph3DMapper::GetSource | ( | int | idx, |
vtkInformationVector * | sourceInfo | ||
) | [protected] |
vtkDataArray* vtkGlyph3DMapper::GetMaskArray | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
vtkDataArray* vtkGlyph3DMapper::GetSourceIndexArray | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
vtkDataArray* vtkGlyph3DMapper::GetOrientationArray | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
vtkDataArray* vtkGlyph3DMapper::GetScaleArray | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
vtkDataArray* vtkGlyph3DMapper::GetSelectionIdArray | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
vtkUnsignedCharArray* vtkGlyph3DMapper::GetColors | ( | vtkDataSet * | input | ) | [protected] |
Convenience methods to get each of the arrays.
bool vtkGlyph3DMapper::Scaling [protected] |
Definition at line 342 of file vtkGlyph3DMapper.h.
double vtkGlyph3DMapper::ScaleFactor [protected] |
Definition at line 343 of file vtkGlyph3DMapper.h.
int vtkGlyph3DMapper::ScaleMode [protected] |
Definition at line 344 of file vtkGlyph3DMapper.h.
double vtkGlyph3DMapper::Range[2] [protected] |
Definition at line 346 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::Orient [protected] |
Definition at line 347 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::Clamping [protected] |
Definition at line 348 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::SourceIndexing [protected] |
Definition at line 349 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::UseSelectionIds [protected] |
Definition at line 350 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::Masking [protected] |
Definition at line 351 of file vtkGlyph3DMapper.h.
int vtkGlyph3DMapper::OrientationMode [protected] |
Definition at line 352 of file vtkGlyph3DMapper.h.
bool vtkGlyph3DMapper::NestedDisplayLists [protected] |
Definition at line 353 of file vtkGlyph3DMapper.h.
unsigned int vtkGlyph3DMapper::SelectionColorId [protected] |
Definition at line 355 of file vtkGlyph3DMapper.h.
int vtkGlyph3DMapper::SelectMode [protected] |
Definition at line 356 of file vtkGlyph3DMapper.h.