VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTransferAttributes Class Reference

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)
 
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 vtkObjectBase * NewInstanceInternal () 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

typedef vtkPassInputTypeAlgorithm vtkTransferAttributes::Superclass

Definition at line 54 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=vtkDataObject::FIELD_ASSOCIATION_POINTS, TargetFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS

static int vtkTransferAttributes::IsTypeOf ( const char *  type)
static
virtual int vtkTransferAttributes::IsA ( const char *  type)
virtual
static vtkTransferAttributes* vtkTransferAttributes::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkTransferAttributes::NewInstanceInternal ( ) const
protectedvirtual
vtkTransferAttributes* vtkTransferAttributes::NewInstance ( ) const
void vtkTransferAttributes::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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.

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.

int vtkTransferAttributes::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Convert the vtkGraph into vtkPolyData.

Member Data Documentation

bool vtkTransferAttributes::DirectMapping
protected

Definition at line 105 of file vtkTransferAttributes.h.

char* vtkTransferAttributes::SourceArrayName
protected

Definition at line 106 of file vtkTransferAttributes.h.

char* vtkTransferAttributes::TargetArrayName
protected

Definition at line 107 of file vtkTransferAttributes.h.

int vtkTransferAttributes::SourceFieldType
protected

Definition at line 108 of file vtkTransferAttributes.h.

int vtkTransferAttributes::TargetFieldType
protected

Definition at line 109 of file vtkTransferAttributes.h.

vtkVariant vtkTransferAttributes::DefaultValue
protected

Definition at line 111 of file vtkTransferAttributes.h.


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