VTK
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 =========================================================================*/
50 #ifndef vtkAnnotationLink_h
51 #define vtkAnnotationLink_h
52 
53 #include "vtkFiltersGeneralModule.h" // For export macro
55 
56 class vtkCommand;
58 class vtkInformation;
60 class vtkSelection;
61 class vtkTable;
62 
63 class VTKFILTERSGENERAL_EXPORT vtkAnnotationLink : public vtkAnnotationLayersAlgorithm
64 {
65 public:
66  static vtkAnnotationLink *New();
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
74  vtkGetObjectMacro(AnnotationLayers, vtkAnnotationLayers);
75  virtual void SetAnnotationLayers(vtkAnnotationLayers* layers);
77 
79 
82  virtual void SetCurrentSelection(vtkSelection* sel);
83  virtual vtkSelection* GetCurrentSelection();
85 
87 
90  void AddDomainMap(vtkTable* map);
91  void RemoveDomainMap(vtkTable* map);
92  void RemoveAllDomainMaps();
93  int GetNumberOfDomainMaps();
94  vtkTable* GetDomainMap(int i);
96 
100  vtkMTimeType GetMTime() override;
101 
102 protected:
104  ~vtkAnnotationLink() override;
105 
109  virtual void ProcessEvents(vtkObject* caller, unsigned long eventId,
110  void* callData);
111 
115  int FillInputPortInformation(int, vtkInformation*) override;
116 
120  int FillOutputPortInformation(int, vtkInformation*) override;
121 
125  void ShallowCopyToOutput(
126  vtkAnnotationLayers* input,
127  vtkAnnotationLayers* output,
128  vtkSelection* sel);
129 
133  int RequestData(
135  vtkInformationVector **inVector,
136  vtkInformationVector *outVector) override;
137 
142 
147 
148 
149 private:
150  vtkAnnotationLink(const vtkAnnotationLink&) = delete;
151  void operator=(const vtkAnnotationLink&) = delete;
152 
153  class Command;
154  friend class Command;
155  Command* Observer;
156 
157 };
158 
159 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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:63
superclass for callback/observer methods
Definition: vtkCommand.h:370
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
static vtkAnnotationLayersAlgorithm * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
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.