vtkTransferAttributes Class Reference

#include <vtkTransferAttributes.h>

Inheritance diagram for vtkTransferAttributes:

Inheritance graph
[legend]
Collaboration diagram for vtkTransferAttributes:

Collaboration graph
[legend]

List of all members.


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 43 of file vtkTransferAttributes.h.


Public Types

typedef vtkPassInputTypeAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 (vtkObject *o)

Protected Member Functions

 vtkTransferAttributes ()
 ~vtkTransferAttributes ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

bool DirectMapping
char * SourceArrayName
char * TargetArrayName
int SourceFieldType
int TargetFieldType
vtkVariant DefaultValue

Member Typedef Documentation

Reimplemented from vtkPassInputTypeAlgorithm.

Definition at line 53 of file vtkTransferAttributes.h.


Constructor & Destructor Documentation

vtkTransferAttributes::vtkTransferAttributes (  )  [protected]

vtkTransferAttributes::~vtkTransferAttributes (  )  [protected]


Member Function Documentation

static vtkTransferAttributes* vtkTransferAttributes::New (  )  [static]

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

Reimplemented from vtkPassInputTypeAlgorithm.

virtual const char* vtkTransferAttributes::GetClassName (  )  [virtual]

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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPassInputTypeAlgorithm.

static vtkTransferAttributes* vtkTransferAttributes::SafeDownCast ( vtkObject o  )  [static]

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.

virtual int vtkTransferAttributes::GetSourceFieldType (  )  [virtual]

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.

virtual int vtkTransferAttributes::GetTargetFieldType (  )  [virtual]

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.

vtkVariant vtkTransferAttributes::GetDefaultValue (  ) 

Method to get/set the default value. BTX

void vtkTransferAttributes::SetDefaultValue ( vtkVariant  value  ) 

Method to get/set the default value. BTX

int vtkTransferAttributes::FillInputPortInformation ( int  port,
vtkInformation info 
) [virtual]

Set the input type of the algorithm to vtkGraph.

Reimplemented from vtkPassInputTypeAlgorithm.

int vtkTransferAttributes::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

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 112 of file vtkTransferAttributes.h.


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

Generated on Wed Jun 3 19:40:27 2009 for VTK by  doxygen 1.5.6