VTK
|
An algorithm for linking annotations among objects. More...
#include <vtkAnnotationLink.h>
An algorithm for linking annotations among objects.
vtkAnnotationLink is a simple source filter which outputs the vtkAnnotationLayers object stored internally. Multiple objects may share the same annotation link filter and connect it to an internal pipeline so that if one object changes the annotation set, it will be pulled into all the other objects when their pipelines update.
The shared vtkAnnotationLayers object (a collection of annotations) is shallow copied to output port 0.
vtkAnnotationLink can also store a set of domain maps. A domain map is simply a table associating values between domains. The domain of each column is defined by the array name of the column. The domain maps are sent to a multi-block dataset in output port 1.
Output ports 0 and 1 can be set as input ports 0 and 1 to vtkConvertSelectionDomain, which can use the domain maps to convert the domains of selections in the vtkAnnotationLayers to match a particular data object (set as port 2 on vtkConvertSelectionDomain).
The shared vtkAnnotationLayers object also stores a "current selection" normally interpreted as the interactive selection of an application. As a convenience, this selection is sent to output port 2 so that it can be connected to pipelines requiring a vtkSelection.
Definition at line 65 of file vtkAnnotationLink.h.
Reimplemented from vtkAnnotationLayersAlgorithm.
Definition at line 69 of file vtkAnnotationLink.h.
vtkAnnotationLink::vtkAnnotationLink | ( | ) | [protected] |
vtkAnnotationLink::~vtkAnnotationLink | ( | ) | [protected] |
static vtkAnnotationLink* vtkAnnotationLink::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAnnotationLayersAlgorithm.
static int vtkAnnotationLink::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 vtkAnnotationLayersAlgorithm.
virtual int vtkAnnotationLink::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 vtkAnnotationLayersAlgorithm.
static vtkAnnotationLink* vtkAnnotationLink::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAnnotationLayersAlgorithm.
virtual vtkObjectBase* vtkAnnotationLink::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAnnotationLayersAlgorithm.
vtkAnnotationLink* vtkAnnotationLink::NewInstance | ( | ) | const |
Reimplemented from vtkAnnotationLayersAlgorithm.
void vtkAnnotationLink::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 vtkAnnotationLayersAlgorithm.
virtual vtkAnnotationLayers* vtkAnnotationLink::GetAnnotationLayers | ( | ) | [virtual] |
The annotations to be shared.
virtual void vtkAnnotationLink::SetAnnotationLayers | ( | vtkAnnotationLayers * | layers | ) | [virtual] |
The annotations to be shared.
virtual void vtkAnnotationLink::SetCurrentSelection | ( | vtkSelection * | sel | ) | [virtual] |
Set or get the current selection in the annotation layers.
virtual vtkSelection* vtkAnnotationLink::GetCurrentSelection | ( | ) | [virtual] |
Set or get the current selection in the annotation layers.
void vtkAnnotationLink::AddDomainMap | ( | vtkTable * | map | ) |
The domain mappings.
void vtkAnnotationLink::RemoveDomainMap | ( | vtkTable * | map | ) |
The domain mappings.
The domain mappings.
The domain mappings.
The domain mappings.
virtual unsigned long vtkAnnotationLink::GetMTime | ( | ) | [virtual] |
Get the mtime of this object.
Reimplemented from vtkObject.
virtual void vtkAnnotationLink::ProcessEvents | ( | vtkObject * | caller, |
unsigned long | eventId, | ||
void * | callData | ||
) | [protected, virtual] |
Called to process modified events from its vtkAnnotationLayers.
virtual int vtkAnnotationLink::FillInputPortInformation | ( | int | , |
vtkInformation * | |||
) | [protected, virtual] |
Set up input ports.
Reimplemented from vtkAnnotationLayersAlgorithm.
virtual int vtkAnnotationLink::FillOutputPortInformation | ( | int | , |
vtkInformation * | |||
) | [protected, virtual] |
Set up output ports.
Reimplemented from vtkAnnotationLayersAlgorithm.
void vtkAnnotationLink::ShallowCopyToOutput | ( | vtkAnnotationLayers * | input, |
vtkAnnotationLayers * | output, | ||
vtkSelection * | sel | ||
) | [protected] |
Copy the data to the output objects.
virtual int vtkAnnotationLink::RequestData | ( | vtkInformation * | info, |
vtkInformationVector ** | inVector, | ||
vtkInformationVector * | outVector | ||
) | [protected, virtual] |
Shallow copy the internal selection to the output.
Reimplemented from vtkAnnotationLayersAlgorithm.
friend class Command [friend] |
Definition at line 140 of file vtkAnnotationLink.h.
vtkAnnotationLayers* vtkAnnotationLink::AnnotationLayers [protected] |
The shared selection.
Definition at line 129 of file vtkAnnotationLink.h.
vtkDataObjectCollection* vtkAnnotationLink::DomainMaps [protected] |
The mappings between domains.
Definition at line 132 of file vtkAnnotationLink.h.