VTK  9.0.1
vtkAnnotationLink.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAnnotationLink.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
53 #ifndef vtkAnnotationLink_h
54 #define vtkAnnotationLink_h
55 
57 #include "vtkFiltersGeneralModule.h" // For export macro
58 
59 class vtkCommand;
61 class vtkInformation;
63 class vtkSelection;
64 class vtkTable;
65 
66 class VTKFILTERSGENERAL_EXPORT vtkAnnotationLink : public vtkAnnotationLayersAlgorithm
67 {
68 public:
69  static vtkAnnotationLink* New();
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
74 
77  vtkGetObjectMacro(AnnotationLayers, vtkAnnotationLayers);
78  virtual void SetAnnotationLayers(vtkAnnotationLayers* layers);
80 
82 
85  virtual void SetCurrentSelection(vtkSelection* sel);
86  virtual vtkSelection* GetCurrentSelection();
88 
90 
93  void AddDomainMap(vtkTable* map);
94  void RemoveDomainMap(vtkTable* map);
95  void RemoveAllDomainMaps();
96  int GetNumberOfDomainMaps();
97  vtkTable* GetDomainMap(int i);
99 
103  vtkMTimeType GetMTime() override;
104 
105 protected:
107  ~vtkAnnotationLink() override;
108 
112  virtual void ProcessEvents(vtkObject* caller, unsigned long eventId, void* callData);
113 
117  int FillInputPortInformation(int, vtkInformation*) override;
118 
122  int FillOutputPortInformation(int, vtkInformation*) override;
123 
127  void ShallowCopyToOutput(
129 
134  vtkInformationVector* outVector) override;
135 
140 
145 
146 private:
147  vtkAnnotationLink(const vtkAnnotationLink&) = delete;
148  void operator=(const vtkAnnotationLink&) = delete;
149 
150  class Command;
151  friend class Command;
152  Command* Observer;
153 };
154 
155 #endif
vtkCommand
superclass for callback/observer methods
Definition: vtkCommand.h:386
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:31
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:57
vtkAnnotationLayersAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkAnnotationLayers
Stores a ordered collection of annotation sets.
Definition: vtkAnnotationLayers.h:42
vtkAnnotationLayersAlgorithm.h
vtkAnnotationLayersAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAnnotationLayersAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkAnnotationLayersAlgorithm
Superclass for algorithms that produce only vtkAnnotationLayers as output.
Definition: vtkAnnotationLayersAlgorithm.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkAnnotationLayersAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkAnnotationLayersAlgorithm::New
static vtkAnnotationLayersAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293