VTK
|
return a subtree from a vtkTree More...
#include <vtkExtractSelectedTree.h>
Public Types | |
typedef vtkTreeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkExtractSelectedTree * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetSelectionConnection (vtkAlgorithmOutput *in) |
int | FillInputPortInformation (int port, vtkInformation *info) |
Static Public Member Functions | |
static vtkExtractSelectedTree * | New () |
static int | IsTypeOf (const char *type) |
static vtkExtractSelectedTree * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkExtractSelectedTree () | |
~vtkExtractSelectedTree () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
int | BuildTree (vtkTree *inputTree, vtkIdTypeArray *list, vtkMutableDirectedGraph *builder) |
return a subtree from a vtkTree
input 0 --- a vtkTree input 1 --- a vtkSelection, containing selected vertices. It may have FILED_type set to POINTS ( a vertex selection) or CELLS (an edge selection). A vertex selection preserves the edges that connect selected vertices. An edge selection perserves the vertices that are adjacent to at least one selected edges.
Definition at line 40 of file vtkExtractSelectedTree.h.
Reimplemented from vtkTreeAlgorithm.
Definition at line 44 of file vtkExtractSelectedTree.h.
vtkExtractSelectedTree::vtkExtractSelectedTree | ( | ) | [protected] |
vtkExtractSelectedTree::~vtkExtractSelectedTree | ( | ) | [protected] |
static vtkExtractSelectedTree* vtkExtractSelectedTree::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTreeAlgorithm.
static int vtkExtractSelectedTree::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 vtkTreeAlgorithm.
virtual int vtkExtractSelectedTree::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 vtkTreeAlgorithm.
static vtkExtractSelectedTree* vtkExtractSelectedTree::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTreeAlgorithm.
virtual vtkObjectBase* vtkExtractSelectedTree::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTreeAlgorithm.
Reimplemented from vtkTreeAlgorithm.
void vtkExtractSelectedTree::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 vtkTreeAlgorithm.
A convenience method for setting the second input (i.e. the selection).
int vtkExtractSelectedTree::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkTreeAlgorithm.
int vtkExtractSelectedTree::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTreeAlgorithm.
int vtkExtractSelectedTree::BuildTree | ( | vtkTree * | inputTree, |
vtkIdTypeArray * | list, | ||
vtkMutableDirectedGraph * | builder | ||
) | [protected] |