VTK
|
transfer data from a graph representation to a tree representation using direct mapping or pedigree ids. More...
#include <vtkTransferAttributes.h>
Inherits vtkPassInputTypeAlgorithm.
Public Types | |
typedef vtkPassInputTypeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTransferAttributes * | NewInstance () 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 vtkTransferAttributes * | New () |
static int | IsTypeOf (const char *type) |
static vtkTransferAttributes * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkTransferAttributes () | |
~vtkTransferAttributes () | |
Protected Attributes | |
bool | DirectMapping |
char * | SourceArrayName |
char * | TargetArrayName |
int | SourceFieldType |
int | TargetFieldType |
vtkVariant | DefaultValue |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
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.
typedef vtkPassInputTypeAlgorithm vtkTransferAttributes::Superclass |
Definition at line 54 of file vtkTransferAttributes.h.
|
protected |
|
protected |
|
static |
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
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkTransferAttributes* vtkTransferAttributes::NewInstance | ( | ) | const |
void vtkTransferAttributes::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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 |
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 |
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 |
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 |
The field name to use for storing the source array.
|
virtual |
The field name to use for storing the source array.
|
virtual |
The field name to use for storing the source array.
|
virtual |
The field name to use for storing the source array.
|
virtual |
The source field type for accessing the source array. Valid values are those from enum vtkDataObject::FieldAssociations.
|
virtual |
The source field type for accessing the source array. Valid values are those from enum vtkDataObject::FieldAssociations.
|
virtual |
The target field type for accessing the target array. Valid values are those from enum vtkDataObject::FieldAssociations.
|
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.
void vtkTransferAttributes::SetDefaultValue | ( | vtkVariant | value | ) |
Method to get/set the default value.
int vtkTransferAttributes::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) |
Set the input type of the algorithm to vtkGraph.
|
protected |
Convert the vtkGraph into vtkPolyData.
|
protected |
Definition at line 105 of file vtkTransferAttributes.h.
|
protected |
Definition at line 106 of file vtkTransferAttributes.h.
|
protected |
Definition at line 107 of file vtkTransferAttributes.h.
|
protected |
Definition at line 108 of file vtkTransferAttributes.h.
|
protected |
Definition at line 109 of file vtkTransferAttributes.h.
|
protected |
Definition at line 111 of file vtkTransferAttributes.h.