VTK
|
copy oriented and scaled glyph geometry to every input point More...
#include <vtkGlyph3D.h>
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGlyph3D * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetSourceData (vtkPolyData *pd) |
void | SetSourceData (int id, vtkPolyData *pd) |
vtkPolyData * | GetSource (int id=0) |
virtual int | IsPointVisible (vtkDataSet *, vtkIdType) |
virtual unsigned long | GetMTime () |
void | SetSourceConnection (int id, vtkAlgorithmOutput *algOutput) |
void | SetSourceConnection (vtkAlgorithmOutput *algOutput) |
virtual void | SetScaling (int) |
virtual void | ScalingOn () |
virtual void | ScalingOff () |
virtual int | GetScaling () |
virtual void | SetScaleMode (int) |
virtual int | GetScaleMode () |
void | SetScaleModeToScaleByScalar () |
void | SetScaleModeToScaleByVector () |
void | SetScaleModeToScaleByVectorComponents () |
void | SetScaleModeToDataScalingOff () |
const char * | GetScaleModeAsString () |
virtual void | SetColorMode (int) |
virtual int | GetColorMode () |
void | SetColorModeToColorByScale () |
void | SetColorModeToColorByScalar () |
void | SetColorModeToColorByVector () |
const char * | GetColorModeAsString () |
virtual void | SetScaleFactor (double) |
virtual double | GetScaleFactor () |
virtual void | SetRange (double, double) |
void | SetRange (double[2]) |
virtual double * | GetRange () |
virtual void | GetRange (double data[2]) |
virtual void | SetOrient (int) |
virtual void | OrientOn () |
virtual void | OrientOff () |
virtual int | GetOrient () |
virtual void | SetClamping (int) |
virtual void | ClampingOn () |
virtual void | ClampingOff () |
virtual int | GetClamping () |
virtual void | SetVectorMode (int) |
virtual int | GetVectorMode () |
void | SetVectorModeToUseVector () |
void | SetVectorModeToUseNormal () |
void | SetVectorModeToVectorRotationOff () |
const char * | GetVectorModeAsString () |
virtual void | SetIndexMode (int) |
virtual int | GetIndexMode () |
void | SetIndexModeToScalar () |
void | SetIndexModeToVector () |
void | SetIndexModeToOff () |
const char * | GetIndexModeAsString () |
virtual void | SetGeneratePointIds (int) |
virtual int | GetGeneratePointIds () |
virtual void | GeneratePointIdsOn () |
virtual void | GeneratePointIdsOff () |
virtual void | SetPointIdsName (const char *) |
virtual char * | GetPointIdsName () |
virtual void | SetFillCellData (int) |
virtual int | GetFillCellData () |
virtual void | FillCellDataOn () |
virtual void | FillCellDataOff () |
void | SetSourceTransform (vtkTransform *) |
virtual vtkTransform * | GetSourceTransform () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGlyph3D * | SafeDownCast (vtkObjectBase *o) |
static vtkGlyph3D * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGlyph3D () | |
~vtkGlyph3D () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int, vtkInformation *) |
vtkPolyData * | GetSource (int idx, vtkInformationVector *sourceInfo) |
Protected Attributes | |
vtkPolyData ** | Source |
int | Scaling |
int | ScaleMode |
int | ColorMode |
double | ScaleFactor |
double | Range [2] |
int | Orient |
int | VectorMode |
int | Clamping |
int | IndexMode |
int | GeneratePointIds |
int | FillCellData |
char * | PointIdsName |
vtkTransform * | SourceTransform |
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.
typedef vtkPolyDataAlgorithm vtkGlyph3D::Superclass |
Definition at line 113 of file vtkGlyph3D.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented in vtkGlyph2D.
|
static |
|
protectedvirtual |
Reimplemented in vtkGlyph2D.
vtkGlyph3D* vtkGlyph3D::NewInstance | ( | ) | const |
void vtkGlyph3D::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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.
|
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).
|
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 |
Turn on/off scaling of source geometry.
|
virtual |
Turn on/off scaling of source geometry.
|
virtual |
Turn on/off scaling of source geometry.
|
virtual |
Turn on/off scaling of source geometry.
|
virtual |
Either scale by scalar or by vector/normal magnitude.
|
virtual |
Either scale by scalar or by vector/normal magnitude.
|
inline |
Either scale by scalar or by vector/normal magnitude.
Definition at line 155 of file vtkGlyph3D.h.
|
inline |
Either scale by scalar or by vector/normal magnitude.
Definition at line 157 of file vtkGlyph3D.h.
|
inline |
Either scale by scalar or by vector/normal magnitude.
Definition at line 159 of file vtkGlyph3D.h.
|
inline |
Either scale by scalar or by vector/normal magnitude.
Definition at line 161 of file vtkGlyph3D.h.
|
inline |
Return the method of scaling as a descriptive character string.
Definition at line 306 of file vtkGlyph3D.h.
|
virtual |
Either color by scale, scalar or by vector/normal magnitude.
|
virtual |
Either color by scale, scalar or by vector/normal magnitude.
|
inline |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 170 of file vtkGlyph3D.h.
|
inline |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 172 of file vtkGlyph3D.h.
|
inline |
Either color by scale, scalar or by vector/normal magnitude.
Definition at line 174 of file vtkGlyph3D.h.
|
inline |
Return the method of coloring as a descriptive character string.
Definition at line 325 of file vtkGlyph3D.h.
|
virtual |
Specify scale factor to scale object by.
|
virtual |
Specify scale factor to scale object by.
|
virtual |
Specify range to map scalar values into.
void vtkGlyph3D::SetRange | ( | double | [2] | ) |
Specify range to map scalar values into.
|
virtual |
Specify range to map scalar values into.
|
virtual |
Specify range to map scalar values into.
|
virtual |
Turn on/off orienting of input geometry along vector/normal.
|
virtual |
Turn on/off orienting of input geometry along vector/normal.
|
virtual |
Turn on/off orienting of input geometry along vector/normal.
|
virtual |
Turn on/off orienting of input geometry along vector/normal.
|
virtual |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
|
virtual |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
|
virtual |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
|
virtual |
Turn on/off clamping of "scalar" values to range. (Scalar value may be vector magnitude if ScaleByVector() is enabled.)
|
virtual |
Specify whether to use vector or normal to perform vector operations.
|
virtual |
Specify whether to use vector or normal to perform vector operations.
|
inline |
Specify whether to use vector or normal to perform vector operations.
Definition at line 210 of file vtkGlyph3D.h.
|
inline |
Specify whether to use vector or normal to perform vector operations.
Definition at line 211 of file vtkGlyph3D.h.
|
inline |
Specify whether to use vector or normal to perform vector operations.
Definition at line 212 of file vtkGlyph3D.h.
|
inline |
Return the vector mode as a character string.
Definition at line 344 of file vtkGlyph3D.h.
|
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 |
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.
|
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.
|
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.
|
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.
|
inline |
Return the index mode as a character string.
Definition at line 363 of file vtkGlyph3D.h.
|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.
|
inlinevirtual |
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 |
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 |
Overridden to include SourceTransform's MTime.
|
protectedvirtual |
Reimplemented in vtkGlyph2D.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 284 of file vtkGlyph3D.h.
|
protected |
Definition at line 285 of file vtkGlyph3D.h.
|
protected |
Definition at line 286 of file vtkGlyph3D.h.
|
protected |
Definition at line 287 of file vtkGlyph3D.h.
|
protected |
Definition at line 288 of file vtkGlyph3D.h.
|
protected |
Definition at line 289 of file vtkGlyph3D.h.
|
protected |
Definition at line 290 of file vtkGlyph3D.h.
|
protected |
Definition at line 291 of file vtkGlyph3D.h.
|
protected |
Definition at line 292 of file vtkGlyph3D.h.
|
protected |
Definition at line 293 of file vtkGlyph3D.h.
|
protected |
Definition at line 294 of file vtkGlyph3D.h.
|
protected |
Definition at line 295 of file vtkGlyph3D.h.
|
protected |
Definition at line 296 of file vtkGlyph3D.h.
|
protected |
Definition at line 297 of file vtkGlyph3D.h.