ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVGlyphFilter Class Reference

extended API for vtkGlyph3D for better control over glyph placement. More...

#include <vtkPVGlyphFilter.h>

Inherits vtkGlyph3D.

Public Types

enum  GlyphModeType { ALL_POINTS, EVERY_NTH_POINT, SPATIALLY_UNIFORM_DISTRIBUTION }
 
typedef vtkGlyph3D Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetController (vtkMultiProcessController *)
 Get/Set the vtkMultiProcessController to use for parallel processing. More...
 
virtual vtkMultiProcessController * GetController ()
 Get/Set the vtkMultiProcessController to use for parallel processing. More...
 
virtual void SetGlyphMode (int)
 Set/Get the mode at which glyphs will be generated. More...
 
virtual int GetGlyphMode ()
 Set/Get the mode at which glyphs will be generated. More...
 
virtual void SetStride (int)
 Set/Get the stride at which to glyph the dataset. More...
 
virtual int GetStride ()
 Set/Get the stride at which to glyph the dataset. More...
 
virtual void SetSeed (int)
 Set/Get Seed used for generating a spatially uniform distribution. More...
 
virtual int GetSeed ()
 Set/Get Seed used for generating a spatially uniform distribution. More...
 
virtual void SetMaximumNumberOfSamplePoints (int)
 Set/Get maximum number of sample points to use to sample the space when GlyphMode is set to SPATIALLY_UNIFORM_DISTRIBUTION. More...
 
virtual int GetMaximumNumberOfSamplePoints ()
 Set/Get maximum number of sample points to use to sample the space when GlyphMode is set to SPATIALLY_UNIFORM_DISTRIBUTION. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPVGlyphFilterSafeDownCast (vtkObject *o)
 
static vtkPVGlyphFilterNew ()
 

Protected Member Functions

virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
virtual int FillOutputPortInformation (int, vtkInformation *)
 
virtual int IsPointVisible (vtkDataSet *ds, vtkIdType ptId)
 Returns 1 if point is to be glyped, otherwise returns 0. More...
 
bool IsInputArrayToProcessValid (vtkDataSet *input)
 Returns true if input Scalars and Vectors are compatible, otherwise returns 0. More...
 
bool UseCellCenters (vtkDataSet *input)
 Returns true if input Scalars and Vectors are cell attributes, otherwise returns 0. More...
 
virtual bool ExecuteWithCellCenters (vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output)
 Method called in RequestData() to do the actual data processing. More...
 

Protected Attributes

int GlyphMode
 
int MaximumNumberOfSamplePoints
 
int Seed
 
int Stride
 
vtkMultiProcessController * Controller
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 Overridden to create output data of appropriate type. More...
 
 vtkPVGlyphFilter ()
 Overridden to create output data of appropriate type. More...
 
 ~vtkPVGlyphFilter ()
 Overridden to create output data of appropriate type. More...
 

Detailed Description

extended API for vtkGlyph3D for better control over glyph placement.

vtkPVGlyphFilter extends vtkGlyph3D for adding control over which points are glyphed using GlyphMode. Three modes are now provided:

Definition at line 48 of file vtkPVGlyphFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkGlyph3D vtkPVGlyphFilter::Superclass

Definition at line 58 of file vtkPVGlyphFilter.h.

Member Enumeration Documentation

◆ GlyphModeType

Enumerator
ALL_POINTS 
EVERY_NTH_POINT 
SPATIALLY_UNIFORM_DISTRIBUTION 

Definition at line 51 of file vtkPVGlyphFilter.h.

Constructor & Destructor Documentation

◆ vtkPVGlyphFilter()

vtkPVGlyphFilter::vtkPVGlyphFilter ( )
protected

Overridden to create output data of appropriate type.

◆ ~vtkPVGlyphFilter()

vtkPVGlyphFilter::~vtkPVGlyphFilter ( )
protected

Overridden to create output data of appropriate type.

Member Function Documentation

◆ GetClassName()

virtual const char* vtkPVGlyphFilter::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVGlyphFilter::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVGlyphFilter::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkPVGlyphFilter* vtkPVGlyphFilter::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkPVGlyphFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ New()

static vtkPVGlyphFilter* vtkPVGlyphFilter::New ( )
static

◆ SetController()

void vtkPVGlyphFilter::SetController ( vtkMultiProcessController *  )

Get/Set the vtkMultiProcessController to use for parallel processing.

By default, the vtkMultiProcessController::GetGlobalController() will be used.

◆ GetController()

virtual vtkMultiProcessController* vtkPVGlyphFilter::GetController ( )
virtual

Get/Set the vtkMultiProcessController to use for parallel processing.

By default, the vtkMultiProcessController::GetGlobalController() will be used.

◆ SetGlyphMode()

virtual void vtkPVGlyphFilter::SetGlyphMode ( int  )
virtual

Set/Get the mode at which glyphs will be generated.

◆ GetGlyphMode()

virtual int vtkPVGlyphFilter::GetGlyphMode ( )
virtual

Set/Get the mode at which glyphs will be generated.

◆ SetStride()

virtual void vtkPVGlyphFilter::SetStride ( int  )
virtual

Set/Get the stride at which to glyph the dataset.

Note, only applicable with EVERY_NTH_POINT GlyphMode.

◆ GetStride()

virtual int vtkPVGlyphFilter::GetStride ( )
virtual

Set/Get the stride at which to glyph the dataset.

Note, only applicable with EVERY_NTH_POINT GlyphMode.

◆ SetSeed()

virtual void vtkPVGlyphFilter::SetSeed ( int  )
virtual

Set/Get Seed used for generating a spatially uniform distribution.

◆ GetSeed()

virtual int vtkPVGlyphFilter::GetSeed ( )
virtual

Set/Get Seed used for generating a spatially uniform distribution.

◆ SetMaximumNumberOfSamplePoints()

virtual void vtkPVGlyphFilter::SetMaximumNumberOfSamplePoints ( int  )
virtual

Set/Get maximum number of sample points to use to sample the space when GlyphMode is set to SPATIALLY_UNIFORM_DISTRIBUTION.

◆ GetMaximumNumberOfSamplePoints()

virtual int vtkPVGlyphFilter::GetMaximumNumberOfSamplePoints ( )
virtual

Set/Get maximum number of sample points to use to sample the space when GlyphMode is set to SPATIALLY_UNIFORM_DISTRIBUTION.

◆ ProcessRequest()

virtual int vtkPVGlyphFilter::ProcessRequest ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
virtual

Overridden to create output data of appropriate type.

◆ RequestData()

virtual int vtkPVGlyphFilter::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

◆ RequestDataObject()

virtual int vtkPVGlyphFilter::RequestDataObject ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

◆ FillInputPortInformation()

virtual int vtkPVGlyphFilter::FillInputPortInformation ( int  ,
vtkInformation *   
)
protectedvirtual

◆ FillOutputPortInformation()

virtual int vtkPVGlyphFilter::FillOutputPortInformation ( int  ,
vtkInformation *   
)
protectedvirtual

◆ IsPointVisible()

virtual int vtkPVGlyphFilter::IsPointVisible ( vtkDataSet *  ds,
vtkIdType  ptId 
)
protectedvirtual

Returns 1 if point is to be glyped, otherwise returns 0.

◆ IsInputArrayToProcessValid()

bool vtkPVGlyphFilter::IsInputArrayToProcessValid ( vtkDataSet *  input)
protected

Returns true if input Scalars and Vectors are compatible, otherwise returns 0.

◆ UseCellCenters()

bool vtkPVGlyphFilter::UseCellCenters ( vtkDataSet *  input)
protected

Returns true if input Scalars and Vectors are cell attributes, otherwise returns 0.

◆ ExecuteWithCellCenters()

virtual bool vtkPVGlyphFilter::ExecuteWithCellCenters ( vtkDataSet *  input,
vtkInformationVector *  sourceVector,
vtkPolyData *  output 
)
protectedvirtual

Method called in RequestData() to do the actual data processing.

This will apply a Cell Centers before the Glyph. The input, filling up the output based on the filter parameters.

Member Data Documentation

◆ GlyphMode

int vtkPVGlyphFilter::GlyphMode
protected

Definition at line 145 of file vtkPVGlyphFilter.h.

◆ MaximumNumberOfSamplePoints

int vtkPVGlyphFilter::MaximumNumberOfSamplePoints
protected

Definition at line 146 of file vtkPVGlyphFilter.h.

◆ Seed

int vtkPVGlyphFilter::Seed
protected

Definition at line 147 of file vtkPVGlyphFilter.h.

◆ Stride

int vtkPVGlyphFilter::Stride
protected

Definition at line 148 of file vtkPVGlyphFilter.h.

◆ Controller

vtkMultiProcessController* vtkPVGlyphFilter::Controller
protected

Definition at line 149 of file vtkPVGlyphFilter.h.


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