Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkGlyph3D Class Reference
copy oriented and scaled glyph geometry to every input point.
More...
#include <vtkGlyph3D.h>
Inheritance diagram for vtkGlyph3D:
[legend]Collaboration diagram for vtkGlyph3D:
[legend]List of all members.
Detailed Description
copy oriented and scaled glyph geometry to every input point.
-
Date:
-
2000/12/10 20:08:38
-
Revision:
-
1.46
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.
-
Warning:
-
The scaling of the glyphs is controlled by the ScaleFactor ivar multiplied by the scalar value at each point (if VTK_SCALE_BY_SCALAR is set), or multiplied by the vector magnitude (if VTK_SCALE_BY_VECTOR is set), Alternatively (if VTK_SCALE_BY_VECTORCOMPONENTS is set), the scaling may be specified for x,y,z using the vector components. The scale factor can be further controlled by enabling clamping using the Clamping ivar. If clamping is enabled, the scale is normalized by the Range ivar, and then multiplied by the scale factor. The normalization process includes clamping the scale value between (0,1).
-
Warning:
-
Typically this object operates on input data with scalar and/or vector data. However, scalar and/or vector aren't necessary, and it can be used to copy data from a single source to each point. In this case the scale factor can be used to uniformly scale the glyphs.
-
Warning:
-
The object uses "vector" data to scale glyphs, orient glyphs, and/or index into a table of glyphs. You can choose to use either the vector or normal data at each input point. Use the method SetVectorModeToUseVector() to use the vector input data, and SetVectorModeToUseNormal() to use the normal input data.
-
Warning:
-
If you do use a table of glyphs, make sure to set the Range ivar to make sure the index into the glyph table is computed correctly.
-
Warning:
-
You can turn off scaling of the glyphs completely by using the Scaling ivar. You can also turn off scaling due to data (either vector or scalar) by using the SetScaleModeToDataScalingOff() method.
-
See also:
-
vtkTensorGlyph
-
Examples:
-
vtkGlyph3D (examples)
Definition at line 125 of file vtkGlyph3D.h.
Constructor & Destructor Documentation
vtkGlyph3D::vtkGlyph3D |
( |
|
) |
[protected] |
|
vtkGlyph3D::~vtkGlyph3D |
( |
|
) |
[protected] |
|
vtkGlyph3D::vtkGlyph3D |
( |
const vtkGlyph3D & |
|
) |
[inline, protected] |
|
Member Function Documentation
virtual const char* vtkGlyph3D::GetClassName |
( |
|
) |
[virtual] |
|
int vtkGlyph3D::IsTypeOf |
( |
const char * |
type |
) |
[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 vtkDataSetToPolyDataFilter.
Reimplemented in vtkGlyph2D. |
virtual int vtkGlyph3D::IsA |
( |
const char * |
type |
) |
[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 vtkDataSetToPolyDataFilter.
Reimplemented in vtkGlyph2D. |
vtkGlyph3D* vtkGlyph3D::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
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 vtkSource.
Reimplemented in vtkGlyph2D. |
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 vtkPolyDataSource.
Reimplemented in vtkGlyph2D. |
void vtkGlyph3D::SetNumberOfSources |
( |
int |
num |
) |
|
|
|
Get the number of source objects used to define the glyph table. Specify the number of sources before defining a table of glyphs. |
int vtkGlyph3D::GetNumberOfSources |
( |
|
) |
|
|
void vtkGlyph3D::SetSource |
( |
vtkPolyData * |
pd |
) |
[inline] |
|
|
Set the source to use for he glyph.
Definition at line 143 of file vtkGlyph3D.h. |
void vtkGlyph3D::SetSource |
( |
int |
id, |
|
|
vtkPolyData * |
pd |
|
) |
|
|
|
Specify a source object at a specified table location. |
|
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] |
|
virtual void vtkGlyph3D::ScalingOff |
( |
|
) |
[virtual] |
|
virtual int vtkGlyph3D::GetScaling |
( |
|
) |
[virtual] |
|
virtual void vtkGlyph3D::SetScaleMode |
( |
int |
|
) |
[virtual] |
|
|
Either scale by scalar or by vector/normal magnitude. |
virtual int vtkGlyph3D::GetScaleMode |
( |
|
) |
[virtual] |
|
void vtkGlyph3D::SetScaleModeToScaleByScalar |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetScaleModeToScaleByVector |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetScaleModeToScaleByVectorComponents |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetScaleModeToDataScalingOff |
( |
|
) |
[inline] |
|
const char * vtkGlyph3D::GetScaleModeAsString |
( |
void |
|
) |
[inline] |
|
|
Return the method of scaling as a descriptive character string.
Definition at line 242 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] |
|
void vtkGlyph3D::SetColorModeToColorByScale |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetColorModeToColorByScalar |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetColorModeToColorByVector |
( |
|
) |
[inline] |
|
const char * vtkGlyph3D::GetColorModeAsString |
( |
void |
|
) |
[inline] |
|
|
Return the method of coloring as a descriptive character string.
Definition at line 259 of file vtkGlyph3D.h. |
virtual void vtkGlyph3D::SetScaleFactor |
( |
float |
|
) |
[virtual] |
|
|
Specify scale factor to scale object by. |
virtual float vtkGlyph3D::GetScaleFactor |
( |
|
) |
[virtual] |
|
virtual void vtkGlyph3D::SetRange |
( |
float |
, |
|
|
float |
|
|
) |
[virtual] |
|
|
Specify range to map scalar values into. |
void vtkGlyph3D::SetRange |
( |
float |
[2] |
) |
|
|
virtual float* vtkGlyph3D::GetRange |
( |
|
) |
[virtual] |
|
virtual void vtkGlyph3D::GetRange |
( |
float |
data[2] |
) |
[virtual] |
|
virtual void vtkGlyph3D::SetOrient |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off orienting of input geometry along vector/normal. |
virtual void vtkGlyph3D::OrientOn |
( |
|
) |
[virtual] |
|
virtual void vtkGlyph3D::OrientOff |
( |
|
) |
[virtual] |
|
virtual int vtkGlyph3D::GetOrient |
( |
|
) |
[virtual] |
|
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] |
|
virtual void vtkGlyph3D::ClampingOff |
( |
|
) |
[virtual] |
|
virtual int vtkGlyph3D::GetClamping |
( |
|
) |
[virtual] |
|
virtual void vtkGlyph3D::SetVectorMode |
( |
int |
|
) |
[virtual] |
|
|
Specify whether to use vector or normal to perform vector operations. |
virtual int vtkGlyph3D::GetVectorMode |
( |
|
) |
[virtual] |
|
void vtkGlyph3D::SetVectorModeToUseVector |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetVectorModeToUseNormal |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetVectorModeToVectorRotationOff |
( |
|
) |
[inline] |
|
const char * vtkGlyph3D::GetVectorModeAsString |
( |
void |
|
) |
[inline] |
|
|
Return the vector mode as a character string.
Definition at line 276 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. |
virtual int vtkGlyph3D::GetIndexMode |
( |
|
) |
[virtual] |
|
void vtkGlyph3D::SetIndexModeToScalar |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetIndexModeToVector |
( |
|
) |
[inline] |
|
void vtkGlyph3D::SetIndexModeToOff |
( |
|
) |
[inline] |
|
const char * vtkGlyph3D::GetIndexModeAsString |
( |
void |
|
) |
[inline] |
|
|
Return the index mode as a character string.
Definition at line 293 of file vtkGlyph3D.h. |
void vtkGlyph3D::operator= |
( |
const vtkGlyph3D & |
|
) |
[inline, protected] |
|
void vtkGlyph3D::Execute |
( |
|
) |
[protected, virtual] |
|
void vtkGlyph3D::ExecuteInformation |
( |
|
) |
[protected, virtual] |
|
void vtkGlyph3D::ComputeInputUpdateExtents |
( |
vtkDataObject * |
output |
) |
[protected, virtual] |
|
|
What is the input update extent that is required to produce the desired output? By default, the whole input is always required but this is overridden in many subclasses.
Reimplemented from vtkPolyDataSource. |
Member Data Documentation
int vtkGlyph3D::NumberOfSources [protected]
|
|
int vtkGlyph3D::Scaling [protected]
|
|
int vtkGlyph3D::ScaleMode [protected]
|
|
int vtkGlyph3D::ColorMode [protected]
|
|
float vtkGlyph3D::ScaleFactor [protected]
|
|
float vtkGlyph3D::Range[2] [protected]
|
|
int vtkGlyph3D::Orient [protected]
|
|
int vtkGlyph3D::VectorMode [protected]
|
|
int vtkGlyph3D::Clamping [protected]
|
|
int vtkGlyph3D::IndexMode [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:08 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001