VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkTransferAttributes Class Reference

transfer data from a graph representation to a tree representation using direct mapping or pedigree ids. More...

#include <vtkTransferAttributes.h>

Inheritance diagram for vtkTransferAttributes:
Inheritance graph
[legend]
Collaboration diagram for vtkTransferAttributes:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPassInputTypeAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTransferAttributesNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
int FillInputPortInformation (int port, vtkInformation *info)
virtual void SetDirectMapping (bool)
virtual bool GetDirectMapping ()
virtual void DirectMappingOn ()
virtual void DirectMappingOff ()
virtual char * GetSourceArrayName ()
virtual void SetSourceArrayName (const char *)
virtual char * GetTargetArrayName ()
virtual void SetTargetArrayName (const char *)
virtual int GetSourceFieldType ()
virtual void SetSourceFieldType (int)
virtual int GetTargetFieldType ()
virtual void SetTargetFieldType (int)
vtkVariant GetDefaultValue ()
void SetDefaultValue (vtkVariant value)

Static Public Member Functions

static vtkTransferAttributesNew ()
static int IsTypeOf (const char *type)
static vtkTransferAttributesSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTransferAttributes ()
 ~vtkTransferAttributes ()

Protected Attributes

bool DirectMapping
char * SourceArrayName
char * TargetArrayName
int SourceFieldType
int TargetFieldType
vtkVariant DefaultValue
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Detailed Description

transfer data from a graph representation to a tree representation using direct mapping or pedigree ids.

The filter requires both a vtkGraph and vtkTree as input. The tree vertices must be a superset of the graph vertices. A common example is when the graph vertices correspond to the leaves of the tree, but the internal vertices of the tree represent groupings of graph vertices. The algorithm matches the vertices using the array "PedigreeId". The user may alternately set the DirectMapping flag to indicate that the two structures must have directly corresponding offsets (i.e. node i in the graph must correspond to node i in the tree).

Definition at line 44 of file vtkTransferAttributes.h.


Member Typedef Documentation

Reimplemented from vtkPassInputTypeAlgorithm.

Definition at line 54 of file vtkTransferAttributes.h.


Constructor & Destructor Documentation


Member Function Documentation

Create a vtkTransferAttributes object. Initial values are DirectMapping = false, DefaultValue = 1, SourceArrayName=0, TargetArrayName = 0, SourceFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS, TargetFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS

Reimplemented from vtkPassInputTypeAlgorithm.

static int vtkTransferAttributes::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 vtkPassInputTypeAlgorithm.

virtual int vtkTransferAttributes::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 vtkPassInputTypeAlgorithm.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual vtkObjectBase* vtkTransferAttributes::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPassInputTypeAlgorithm.

Reimplemented from vtkPassInputTypeAlgorithm.

void vtkTransferAttributes::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 vtkPassInputTypeAlgorithm.

virtual void vtkTransferAttributes::SetDirectMapping ( bool  ) [virtual]

If on, uses direct mapping from tree to graph vertices. If off, both the graph and tree must contain PedigreeId arrays which are used to match graph and tree vertices. Default is off.

virtual bool vtkTransferAttributes::GetDirectMapping ( ) [virtual]

If on, uses direct mapping from tree to graph vertices. If off, both the graph and tree must contain PedigreeId arrays which are used to match graph and tree vertices. Default is off.

virtual void vtkTransferAttributes::DirectMappingOn ( ) [virtual]

If on, uses direct mapping from tree to graph vertices. If off, both the graph and tree must contain PedigreeId arrays which are used to match graph and tree vertices. Default is off.

virtual void vtkTransferAttributes::DirectMappingOff ( ) [virtual]

If on, uses direct mapping from tree to graph vertices. If off, both the graph and tree must contain PedigreeId arrays which are used to match graph and tree vertices. Default is off.

virtual char* vtkTransferAttributes::GetSourceArrayName ( ) [virtual]

The field name to use for storing the source array.

virtual void vtkTransferAttributes::SetSourceArrayName ( const char *  ) [virtual]

The field name to use for storing the source array.

virtual char* vtkTransferAttributes::GetTargetArrayName ( ) [virtual]

The field name to use for storing the source array.

virtual void vtkTransferAttributes::SetTargetArrayName ( const char *  ) [virtual]

The field name to use for storing the source array.

The source field type for accessing the source array. Valid values are those from enum vtkDataObject::FieldAssociations.

virtual void vtkTransferAttributes::SetSourceFieldType ( int  ) [virtual]

The source field type for accessing the source array. Valid values are those from enum vtkDataObject::FieldAssociations.

The target field type for accessing the target array. Valid values are those from enum vtkDataObject::FieldAssociations.

virtual void vtkTransferAttributes::SetTargetFieldType ( int  ) [virtual]

The target field type for accessing the target array. Valid values are those from enum vtkDataObject::FieldAssociations.

Method to get/set the default value.

Method to get/set the default value.

Set the input type of the algorithm to vtkGraph.

Reimplemented from vtkPassInputTypeAlgorithm.

Convert the vtkGraph into vtkPolyData.

Reimplemented from vtkPassInputTypeAlgorithm.


Member Data Documentation

Definition at line 105 of file vtkTransferAttributes.h.

Definition at line 106 of file vtkTransferAttributes.h.

Definition at line 107 of file vtkTransferAttributes.h.

Definition at line 108 of file vtkTransferAttributes.h.

Definition at line 109 of file vtkTransferAttributes.h.

Definition at line 111 of file vtkTransferAttributes.h.


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