VTK  9.3.1
vtkAnnotationLink.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
41 #ifndef vtkAnnotationLink_h
42 #define vtkAnnotationLink_h
43 
45 #include "vtkFiltersGeneralModule.h" // For export macro
46 
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkCommand;
50 class vtkInformation;
52 class vtkSelection;
53 class vtkTable;
54 
55 class VTKFILTERSGENERAL_EXPORT vtkAnnotationLink : public vtkAnnotationLayersAlgorithm
56 {
57 public:
58  static vtkAnnotationLink* New();
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkGetObjectMacro(AnnotationLayers, vtkAnnotationLayers);
67  virtual void SetAnnotationLayers(vtkAnnotationLayers* layers);
69 
71 
74  virtual void SetCurrentSelection(vtkSelection* sel);
75  virtual vtkSelection* GetCurrentSelection();
77 
79 
82  void AddDomainMap(vtkTable* map);
83  void RemoveDomainMap(vtkTable* map);
84  void RemoveAllDomainMaps();
85  int GetNumberOfDomainMaps();
86  vtkTable* GetDomainMap(int i);
88 
92  vtkMTimeType GetMTime() override;
93 
94 protected:
96  ~vtkAnnotationLink() override;
97 
101  virtual void ProcessEvents(vtkObject* caller, unsigned long eventId, void* callData);
102 
106  int FillInputPortInformation(int, vtkInformation*) override;
107 
111  int FillOutputPortInformation(int, vtkInformation*) override;
112 
116  void ShallowCopyToOutput(
118 
123  vtkInformationVector* outVector) override;
124 
129 
134 
135 private:
136  vtkAnnotationLink(const vtkAnnotationLink&) = delete;
137  void operator=(const vtkAnnotationLink&) = delete;
138 
139  class Command;
140  friend class Command;
141  Command* Observer;
142 };
143 
144 VTK_ABI_NAMESPACE_END
145 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
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:49
superclass for callback/observer methods
Definition: vtkCommand.h:383
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
static vtkAnnotationLayersAlgorithm * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
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.