VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

Public Types

typedef vtkPolyDataAlgorithm Superclass
 
- Public Types inherited from vtkPolyDataAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkGlyph3DNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetSourceData (vtkPolyData *pd)
 
void SetSourceData (int id, vtkPolyData *pd)
 
vtkPolyDataGetSource (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 doubleGetRange ()
 
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 vtkTransformGetSourceTransform ()
 
- Public Member Functions inherited from vtkPolyDataAlgorithm
vtkPolyDataAlgorithmNewInstance () const
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
vtkPolyDataGetPolyDataInput (int port)
 
vtkPolyDataGetOutput ()
 
vtkPolyDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkGlyph3DSafeDownCast (vtkObjectBase *o)
 
static vtkGlyph3DNew ()
 
- Static Public Member Functions inherited from vtkPolyDataAlgorithm
static vtkPolyDataAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkGlyph3D ()
 
 ~vtkGlyph3D ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
vtkPolyDataGetSource (int idx, vtkInformationVector *sourceInfo)
 
virtual bool Execute (vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output)
 
- Protected Member Functions inherited from vtkPolyDataAlgorithm
 vtkPolyDataAlgorithm ()
 
 ~vtkPolyDataAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

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
 
vtkTransformSourceTransform
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

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.

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).
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.
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.
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.
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.
You can set what arrays to use for the scalars, vectors, normals, and color scalars by using the SetInputArrayToProcess methods in vtkAlgorithm. The first array is scalars, the next vectors, the next normals and finally color scalars.
See also
vtkTensorGlyph
Examples:
vtkGlyph3D (Examples)
Tests:
vtkGlyph3D (Tests)

Definition at line 110 of file vtkGlyph3D.h.

Member Typedef Documentation

Definition at line 113 of file vtkGlyph3D.h.

Constructor & Destructor Documentation

vtkGlyph3D::vtkGlyph3D ( )
protected
vtkGlyph3D::~vtkGlyph3D ( )
protected

Member Function Documentation

static int vtkGlyph3D::IsTypeOf ( const char *  type)
static
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
virtual vtkObjectBase* vtkGlyph3D::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented in vtkGlyph2D.

vtkGlyph3D* vtkGlyph3D::NewInstance ( ) const
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.

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.

void vtkGlyph3D::SetSourceData ( vtkPolyData pd)
inline

Set the source to use for the glyph. Note that this method does not connect the pipeline. The algorithm will work on the input data as it is without updating the producer of the data. See SetSourceConnection for connecting the pipeline.

Definition at line 126 of file vtkGlyph3D.h.

void vtkGlyph3D::SetSourceData ( int  id,
vtkPolyData pd 
)

Specify a source object at a specified table location. Note that this method does not connect the pipeline. The algorithm will work on the input data as it is without updating the producer of the data. See SetSourceConnection for connecting the pipeline.

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 139 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 159 of file vtkGlyph3D.h.

void vtkGlyph3D::SetScaleModeToScaleByVector ( )
inline

Either scale by scalar or by vector/normal magnitude.

Definition at line 161 of file vtkGlyph3D.h.

void vtkGlyph3D::SetScaleModeToScaleByVectorComponents ( )
inline

Either scale by scalar or by vector/normal magnitude.

Definition at line 163 of file vtkGlyph3D.h.

void vtkGlyph3D::SetScaleModeToDataScalingOff ( )
inline

Either scale by scalar or by vector/normal magnitude.

Definition at line 165 of file vtkGlyph3D.h.

const char * vtkGlyph3D::GetScaleModeAsString ( void  )
inline

Return the method of scaling as a descriptive character string.

Definition at line 319 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 174 of file vtkGlyph3D.h.

void vtkGlyph3D::SetColorModeToColorByScalar ( )
inline

Either color by scale, scalar or by vector/normal magnitude.

Definition at line 176 of file vtkGlyph3D.h.

void vtkGlyph3D::SetColorModeToColorByVector ( )
inline

Either color by scale, scalar or by vector/normal magnitude.

Definition at line 178 of file vtkGlyph3D.h.

const char * vtkGlyph3D::GetColorModeAsString ( void  )
inline

Return the method of coloring as a descriptive character string.

Definition at line 338 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 214 of file vtkGlyph3D.h.

void vtkGlyph3D::SetVectorModeToUseNormal ( )
inline

Specify whether to use vector or normal to perform vector operations.

Definition at line 215 of file vtkGlyph3D.h.

void vtkGlyph3D::SetVectorModeToVectorRotationOff ( )
inline

Specify whether to use vector or normal to perform vector operations.

Definition at line 216 of file vtkGlyph3D.h.

const char * vtkGlyph3D::GetVectorModeAsString ( void  )
inline

Return the vector mode as a character string.

Definition at line 357 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 230 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 231 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 232 of file vtkGlyph3D.h.

const char * vtkGlyph3D::GetIndexModeAsString ( void  )
inline

Return the index mode as a character string.

Definition at line 376 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   
)
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 265 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 
)
protectedvirtual

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  
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkGlyph3D::FillInputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

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
virtual bool vtkGlyph3D::Execute ( vtkDataSet input,
vtkInformationVector sourceVector,
vtkPolyData output 
)
protectedvirtual

Method called in RequestData() to do the actual data processing. This will glyph the input, filling up the output based on the filter parameters.

Member Data Documentation

vtkPolyData** vtkGlyph3D::Source
protected

Definition at line 297 of file vtkGlyph3D.h.

int vtkGlyph3D::Scaling
protected

Definition at line 298 of file vtkGlyph3D.h.

int vtkGlyph3D::ScaleMode
protected

Definition at line 299 of file vtkGlyph3D.h.

int vtkGlyph3D::ColorMode
protected

Definition at line 300 of file vtkGlyph3D.h.

double vtkGlyph3D::ScaleFactor
protected

Definition at line 301 of file vtkGlyph3D.h.

double vtkGlyph3D::Range[2]
protected

Definition at line 302 of file vtkGlyph3D.h.

int vtkGlyph3D::Orient
protected

Definition at line 303 of file vtkGlyph3D.h.

int vtkGlyph3D::VectorMode
protected

Definition at line 304 of file vtkGlyph3D.h.

int vtkGlyph3D::Clamping
protected

Definition at line 305 of file vtkGlyph3D.h.

int vtkGlyph3D::IndexMode
protected

Definition at line 306 of file vtkGlyph3D.h.

int vtkGlyph3D::GeneratePointIds
protected

Definition at line 307 of file vtkGlyph3D.h.

int vtkGlyph3D::FillCellData
protected

Definition at line 308 of file vtkGlyph3D.h.

char* vtkGlyph3D::PointIdsName
protected

Definition at line 309 of file vtkGlyph3D.h.

vtkTransform* vtkGlyph3D::SourceTransform
protected

Definition at line 310 of file vtkGlyph3D.h.


The documentation for this class was generated from the following file: