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 =========================================================================*/
47 #ifndef vtkAnnotationLink_h
48 #define vtkAnnotationLink_h
49 
51 #include "vtkFiltersGeneralModule.h" // For export macro
52 
53 class vtkCommand;
55 class vtkInformation;
57 class vtkSelection;
58 class vtkTable;
59 
60 class VTKFILTERSGENERAL_EXPORT vtkAnnotationLink : public vtkAnnotationLayersAlgorithm
61 {
62 public:
63  static vtkAnnotationLink* New();
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
68 
71  vtkGetObjectMacro(AnnotationLayers, vtkAnnotationLayers);
72  virtual void SetAnnotationLayers(vtkAnnotationLayers* layers);
74 
76 
79  virtual void SetCurrentSelection(vtkSelection* sel);
80  virtual vtkSelection* GetCurrentSelection();
82 
84 
87  void AddDomainMap(vtkTable* map);
88  void RemoveDomainMap(vtkTable* map);
89  void RemoveAllDomainMaps();
90  int GetNumberOfDomainMaps();
91  vtkTable* GetDomainMap(int i);
93 
97  vtkMTimeType GetMTime() override;
98 
99 protected:
101  ~vtkAnnotationLink() override;
102 
106  virtual void ProcessEvents(vtkObject* caller, unsigned long eventId, void* callData);
107 
111  int FillInputPortInformation(int, vtkInformation*) override;
112 
116  int FillOutputPortInformation(int, vtkInformation*) override;
117 
121  void ShallowCopyToOutput(
123 
128  vtkInformationVector* outVector) override;
129 
134 
139 
140 private:
141  vtkAnnotationLink(const vtkAnnotationLink&) = delete;
142  void operator=(const vtkAnnotationLink&) = delete;
143 
144  class Command;
145  friend class Command;
146  Command* Observer;
147 };
148 
149 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:56
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
maintain an unordered list of data objects
Superclass for algorithms that produce only vtkAnnotationLayers as output.
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:57
superclass for callback/observer methods
Definition: vtkCommand.h:377
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
static vtkAnnotationLayersAlgorithm * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Stores a ordered collection of annotation sets.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.