VTK
|
copy oriented and scaled glyph geometry to every input point More...
#include <vtkGlyph3D.h>
copy oriented and scaled glyph geometry to every input point
vtkGlyph3D is a filter that copies a geometric representation (called a glyph) to every point in the input dataset. The glyph is defined with polygonal data from a source filter input. The glyph may be oriented along the input vectors or normals, and it may be scaled according to scalar data or vector magnitude. More than one glyph may be used by creating a table of source objects, each defining a different glyph. If a table of glyphs is defined, then the table can be indexed into by using either scalar value or vector magnitude.
To use this object you'll have to provide an input dataset and a source to define the glyph. Then decide whether you want to scale the glyph and how to scale the glyph (using scalar value or vector magnitude). Next decide whether you want to orient the glyph, and whether to use the vector data or normal data to orient it. Finally, decide whether to use a table of glyphs, or just a single glyph. If you use a table of glyphs, you'll have to decide whether to index into it with scalar value or with vector magnitude.
Definition at line 110 of file vtkGlyph3D.h.
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
Definition at line 113 of file vtkGlyph3D.h.
vtkGlyph3D::vtkGlyph3D | ( | ) | [protected] |
vtkGlyph3D::~vtkGlyph3D | ( | ) | [protected] |
static int vtkGlyph3D::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 vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
virtual int vtkGlyph3D::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 vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
static vtkGlyph3D* vtkGlyph3D::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
virtual vtkObjectBase* vtkGlyph3D::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
vtkGlyph3D* vtkGlyph3D::NewInstance | ( | ) | const |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
void vtkGlyph3D::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 vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
static vtkGlyph3D* vtkGlyph3D::New | ( | ) | [static] |
Construct object with scaling on, scaling mode is by scalar value, scale factor = 1.0, the range is (0,1), orient geometry is on, and orientation is by vector. Clamping and indexing are turned off. No initial sources are defined.
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
void vtkGlyph3D::SetSourceData | ( | vtkPolyData * | pd | ) | [inline] |
Set the source to use for he glyph. Old style. See SetSourceConnection.
Definition at line 124 of file vtkGlyph3D.h.
void vtkGlyph3D::SetSourceData | ( | int | id, |
vtkPolyData * | pd | ||
) |
Specify a source object at a specified table location. Old style. See SetSourceConnection.
void vtkGlyph3D::SetSourceConnection | ( | int | id, |
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 vtkGlyph3D::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 135 of file vtkGlyph3D.h.
vtkPolyData* vtkGlyph3D::GetSource | ( | int | id = 0 | ) |
Get a pointer to a source object at a specified table location.
virtual void vtkGlyph3D::SetScaling | ( | int | ) | [virtual] |
Turn on/off scaling of source geometry.
virtual void vtkGlyph3D::ScalingOn | ( | ) | [virtual] |
Turn on/off scaling of source geometry.
virtual void vtkGlyph3D::ScalingOff | ( | ) | [virtual] |
Turn on/off scaling of source geometry.
virtual int vtkGlyph3D::GetScaling | ( | ) | [virtual] |
Turn on/off scaling of source geometry.
virtual void vtkGlyph3D::SetScaleMode | ( | int | ) | [virtual] |
Either scale by scalar or by vector/normal magnitude.
virtual int vtkGlyph3D::GetScaleMode | ( | ) | [virtual] |
Either scale by scalar or by vector/normal magnitude.
void vtkGlyph3D::SetScaleModeToScaleByScalar | ( | ) | [inline] |
Either scale by scalar or by vector/normal magnitude.
Definition at line 155 of file vtkGlyph3D.h.
void vtkGlyph3D::SetScaleModeToScaleByVector | ( | ) | [inline] |
Either scale by scalar or by vector/normal magnitude.
Definition at line 157 of file vtkGlyph3D.h.
void vtkGlyph3D::SetScaleModeToScaleByVectorComponents | ( | ) | [inline] |
Either scale by scalar or by vector/normal magnitude.
Definition at line 159 of file vtkGlyph3D.h.
void vtkGlyph3D::SetScaleModeToDataScalingOff | ( | ) | [inline] |
Either scale by scalar or by vector/normal magnitude.
Definition at line 161 of file vtkGlyph3D.h.
const char * vtkGlyph3D::GetScaleModeAsString | ( | void | ) | [inline] |
Return the method of scaling as a descriptive character string.
Definition at line 306 of file vtkGlyph3D.h.
virtual void vtkGlyph3D::SetColorMode | ( | int | ) | [virtual] |
Either color by scale, scalar or by vector/normal magnitude.
virtual int vtkGlyph3D::GetColorMode | ( | ) | [virtual] |
Either color by scale, scalar or by vector/normal magnitude.
void vtkGlyph3D::SetColorModeToColorByScale | ( | ) | [inline] |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 170 of file vtkGlyph3D.h.
void vtkGlyph3D::SetColorModeToColorByScalar | ( | ) | [inline] |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 172 of file vtkGlyph3D.h.
void vtkGlyph3D::SetColorModeToColorByVector | ( | ) | [inline] |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 174 of file vtkGlyph3D.h.
const char * vtkGlyph3D::GetColorModeAsString | ( | void | ) | [inline] |
Return the method of coloring as a descriptive character string.
Definition at line 325 of file vtkGlyph3D.h.
virtual void vtkGlyph3D::SetScaleFactor | ( | double | ) | [virtual] |
Specify scale factor to scale object by.
virtual double vtkGlyph3D::GetScaleFactor | ( | ) | [virtual] |
Specify scale factor to scale object by.
virtual void vtkGlyph3D::SetRange | ( | double | , |
double | |||
) | [virtual] |
Specify range to map scalar values into.
void vtkGlyph3D::SetRange | ( | double | [2] | ) |
Specify range to map scalar values into.
virtual double* vtkGlyph3D::GetRange | ( | ) | [virtual] |
Specify range to map scalar values into.
virtual void vtkGlyph3D::GetRange | ( | double | data[2] | ) | [virtual] |
Specify range to map scalar values into.
virtual void vtkGlyph3D::SetOrient | ( | int | ) | [virtual] |
Turn on/off orienting of input geometry along vector/normal.
virtual void vtkGlyph3D::OrientOn | ( | ) | [virtual] |
Turn on/off orienting of input geometry along vector/normal.
virtual void vtkGlyph3D::OrientOff | ( | ) | [virtual] |
Turn on/off orienting of input geometry along vector/normal.
virtual int vtkGlyph3D::GetOrient | ( | ) | [virtual] |
Turn on/off orienting of input geometry along vector/normal.
virtual void vtkGlyph3D::SetClamping | ( | int | ) | [virtual] |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
virtual void vtkGlyph3D::ClampingOn | ( | ) | [virtual] |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
virtual void vtkGlyph3D::ClampingOff | ( | ) | [virtual] |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
virtual int vtkGlyph3D::GetClamping | ( | ) | [virtual] |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
virtual void vtkGlyph3D::SetVectorMode | ( | int | ) | [virtual] |
Specify whether to use vector or normal to perform vector operations.
virtual int vtkGlyph3D::GetVectorMode | ( | ) | [virtual] |
Specify whether to use vector or normal to perform vector operations.
void vtkGlyph3D::SetVectorModeToUseVector | ( | ) | [inline] |
Specify whether to use vector or normal to perform vector operations.
Definition at line 210 of file vtkGlyph3D.h.
void vtkGlyph3D::SetVectorModeToUseNormal | ( | ) | [inline] |
Specify whether to use vector or normal to perform vector operations.
Definition at line 211 of file vtkGlyph3D.h.
void vtkGlyph3D::SetVectorModeToVectorRotationOff | ( | ) | [inline] |
Specify whether to use vector or normal to perform vector operations.
Definition at line 212 of file vtkGlyph3D.h.
const char * vtkGlyph3D::GetVectorModeAsString | ( | void | ) | [inline] |
Return the vector mode as a character string.
Definition at line 344 of file vtkGlyph3D.h.
virtual void vtkGlyph3D::SetIndexMode | ( | int | ) | [virtual] |
Index into table of sources by scalar, by vector/normal magnitude, or no indexing. If indexing is turned off, then the first source glyph in the table of glyphs is used. Note that indexing mode will only use the InputScalarsSelection array and not the InputColorScalarsSelection as the scalar source if an array is specified.
virtual int vtkGlyph3D::GetIndexMode | ( | ) | [virtual] |
Index into table of sources by scalar, by vector/normal magnitude, or no indexing. If indexing is turned off, then the first source glyph in the table of glyphs is used. Note that indexing mode will only use the InputScalarsSelection array and not the InputColorScalarsSelection as the scalar source if an array is specified.
void vtkGlyph3D::SetIndexModeToScalar | ( | ) | [inline] |
Index into table of sources by scalar, by vector/normal magnitude, or no indexing. If indexing is turned off, then the first source glyph in the table of glyphs is used. Note that indexing mode will only use the InputScalarsSelection array and not the InputColorScalarsSelection as the scalar source if an array is specified.
Definition at line 226 of file vtkGlyph3D.h.
void vtkGlyph3D::SetIndexModeToVector | ( | ) | [inline] |
Index into table of sources by scalar, by vector/normal magnitude, or no indexing. If indexing is turned off, then the first source glyph in the table of glyphs is used. Note that indexing mode will only use the InputScalarsSelection array and not the InputColorScalarsSelection as the scalar source if an array is specified.
Definition at line 227 of file vtkGlyph3D.h.
void vtkGlyph3D::SetIndexModeToOff | ( | ) | [inline] |
Index into table of sources by scalar, by vector/normal magnitude, or no indexing. If indexing is turned off, then the first source glyph in the table of glyphs is used. Note that indexing mode will only use the InputScalarsSelection array and not the InputColorScalarsSelection as the scalar source if an array is specified.
Definition at line 228 of file vtkGlyph3D.h.
const char * vtkGlyph3D::GetIndexModeAsString | ( | void | ) | [inline] |
Return the index mode as a character string.
Definition at line 363 of file vtkGlyph3D.h.
virtual void vtkGlyph3D::SetGeneratePointIds | ( | int | ) | [virtual] |
Enable/disable the generation of point ids as part of the output. The point ids are the id of the input generating point. The point ids are stored in the output point field data and named "InputPointIds". Point generation is useful for debugging and pick operations.
virtual int vtkGlyph3D::GetGeneratePointIds | ( | ) | [virtual] |
Enable/disable the generation of point ids as part of the output. The point ids are the id of the input generating point. The point ids are stored in the output point field data and named "InputPointIds". Point generation is useful for debugging and pick operations.
virtual void vtkGlyph3D::GeneratePointIdsOn | ( | ) | [virtual] |
Enable/disable the generation of point ids as part of the output. The point ids are the id of the input generating point. The point ids are stored in the output point field data and named "InputPointIds". Point generation is useful for debugging and pick operations.
virtual void vtkGlyph3D::GeneratePointIdsOff | ( | ) | [virtual] |
Enable/disable the generation of point ids as part of the output. The point ids are the id of the input generating point. The point ids are stored in the output point field data and named "InputPointIds". Point generation is useful for debugging and pick operations.
virtual void vtkGlyph3D::SetPointIdsName | ( | const char * | ) | [virtual] |
Set/Get the name of the PointIds array if generated. By default the Ids are named "InputPointIds", but this can be changed with this function.
virtual char* vtkGlyph3D::GetPointIdsName | ( | ) | [virtual] |
Set/Get the name of the PointIds array if generated. By default the Ids are named "InputPointIds", but this can be changed with this function.
virtual void vtkGlyph3D::SetFillCellData | ( | int | ) | [virtual] |
Enable/disable the generation of cell data as part of the output. The cell data at each cell will match the point data of the input at the glyphed point.
virtual int vtkGlyph3D::GetFillCellData | ( | ) | [virtual] |
Enable/disable the generation of cell data as part of the output. The cell data at each cell will match the point data of the input at the glyphed point.
virtual void vtkGlyph3D::FillCellDataOn | ( | ) | [virtual] |
Enable/disable the generation of cell data as part of the output. The cell data at each cell will match the point data of the input at the glyphed point.
virtual void vtkGlyph3D::FillCellDataOff | ( | ) | [virtual] |
Enable/disable the generation of cell data as part of the output. The cell data at each cell will match the point data of the input at the glyphed point.
virtual int vtkGlyph3D::IsPointVisible | ( | vtkDataSet * | , |
vtkIdType | |||
) | [inline, virtual] |
This can be overwritten by subclass to return 0 when a point is blanked. Default implementation is to always return 1;
Definition at line 261 of file vtkGlyph3D.h.
void vtkGlyph3D::SetSourceTransform | ( | vtkTransform * | ) |
When set, this is use to transform the source polydata before using it to generate the glyph. This is useful if one wanted to reorient the source, for example.
virtual vtkTransform* vtkGlyph3D::GetSourceTransform | ( | ) | [virtual] |
When set, this is use to transform the source polydata before using it to generate the glyph. This is useful if one wanted to reorient the source, for example.
virtual unsigned long vtkGlyph3D::GetMTime | ( | ) | [virtual] |
Overridden to include SourceTransform's MTime.
Reimplemented from vtkObject.
virtual int vtkGlyph3D::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented in vtkGlyph2D.
virtual int vtkGlyph3D::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkGlyph3D::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 vtkPolyDataAlgorithm.
vtkPolyData* vtkGlyph3D::GetSource | ( | int | idx, |
vtkInformationVector * | sourceInfo | ||
) | [protected] |
vtkPolyData** vtkGlyph3D::Source [protected] |
Definition at line 284 of file vtkGlyph3D.h.
int vtkGlyph3D::Scaling [protected] |
Definition at line 285 of file vtkGlyph3D.h.
int vtkGlyph3D::ScaleMode [protected] |
Definition at line 286 of file vtkGlyph3D.h.
int vtkGlyph3D::ColorMode [protected] |
Definition at line 287 of file vtkGlyph3D.h.
double vtkGlyph3D::ScaleFactor [protected] |
Definition at line 288 of file vtkGlyph3D.h.
double vtkGlyph3D::Range[2] [protected] |
Definition at line 289 of file vtkGlyph3D.h.
int vtkGlyph3D::Orient [protected] |
Definition at line 290 of file vtkGlyph3D.h.
int vtkGlyph3D::VectorMode [protected] |
Definition at line 291 of file vtkGlyph3D.h.
int vtkGlyph3D::Clamping [protected] |
Definition at line 292 of file vtkGlyph3D.h.
int vtkGlyph3D::IndexMode [protected] |
Definition at line 293 of file vtkGlyph3D.h.
int vtkGlyph3D::GeneratePointIds [protected] |
Definition at line 294 of file vtkGlyph3D.h.
int vtkGlyph3D::FillCellData [protected] |
Definition at line 295 of file vtkGlyph3D.h.
char* vtkGlyph3D::PointIdsName [protected] |
Definition at line 296 of file vtkGlyph3D.h.
vtkTransform* vtkGlyph3D::SourceTransform [protected] |
Definition at line 297 of file vtkGlyph3D.h.