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 =========================================================================*/
44 #ifndef vtkAnnotationLink_h
45 #define vtkAnnotationLink_h
46 
47 #include "vtkFiltersGeneralModule.h" // For export macro
49 
50 class vtkCommand;
52 class vtkInformation;
54 class vtkSelection;
55 class vtkTable;
56 
57 class VTKFILTERSGENERAL_EXPORT vtkAnnotationLink : public vtkAnnotationLayersAlgorithm
58 {
59 public:
60  static vtkAnnotationLink *New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
68  vtkGetObjectMacro(AnnotationLayers, vtkAnnotationLayers);
69  virtual void SetAnnotationLayers(vtkAnnotationLayers* layers);
71 
73 
76  virtual void SetCurrentSelection(vtkSelection* sel);
77  virtual vtkSelection* GetCurrentSelection();
79 
81 
84  void AddDomainMap(vtkTable* map);
85  void RemoveDomainMap(vtkTable* map);
86  void RemoveAllDomainMaps();
87  int GetNumberOfDomainMaps();
88  vtkTable* GetDomainMap(int i);
90 
94  vtkMTimeType GetMTime() override;
95 
96 protected:
98  ~vtkAnnotationLink() override;
99 
103  virtual void ProcessEvents(vtkObject* caller, unsigned long eventId,
104  void* callData);
105 
109  int FillInputPortInformation(int, vtkInformation*) override;
110 
114  int FillOutputPortInformation(int, vtkInformation*) override;
115 
119  void ShallowCopyToOutput(
120  vtkAnnotationLayers* input,
121  vtkAnnotationLayers* output,
122  vtkSelection* sel);
123 
127  int RequestData(
129  vtkInformationVector **inVector,
130  vtkInformationVector *outVector) override;
131 
136 
141 
142 
143 private:
144  vtkAnnotationLink(const vtkAnnotationLink&) = delete;
145  void operator=(const vtkAnnotationLink&) = delete;
146 
147  class Command;
148  friend class Command;
149  Command* Observer;
150 
151 };
152 
153 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
maintain an unordered list of data objects
Superclass for algorithms that produce only vtkAnnotationLayers as output.
A node in a selection tree.
Definition: vtkSelection.h:37
superclass for callback/observer methods
Definition: vtkCommand.h:364
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.