VTK
vtkAnnotationLayers.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAnnotationLayers.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
33 #ifndef vtkAnnotationLayers_h
34 #define vtkAnnotationLayers_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkDataObject.h"
38 
39 class vtkAnnotation;
40 class vtkSelection;
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkAnnotationLayers : public vtkDataObject
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  virtual void SetCurrentAnnotation(vtkAnnotation* ann);
54  vtkGetObjectMacro(CurrentAnnotation, vtkAnnotation);
56 
58 
62  virtual void SetCurrentSelection(vtkSelection* sel);
65 
69  unsigned int GetNumberOfAnnotations();
70 
74  vtkAnnotation* GetAnnotation(unsigned int idx);
75 
80 
85 
89  void Initialize() override;
90 
95  void ShallowCopy(vtkDataObject* other) override;
96 
101  void DeepCopy(vtkDataObject* other) override;
102 
104 
110 
114  vtkMTimeType GetMTime() override;
115 
116 protected:
119 
120  class Internals;
121  Internals* Implementation;
123 
124 private:
125  vtkAnnotationLayers(const vtkAnnotationLayers&) = delete;
126  void operator=(const vtkAnnotationLayers&) = delete;
127 
128 };
129 
130 #endif
vtkAnnotationLayers::vtkAnnotationLayers
vtkAnnotationLayers()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkAnnotationLayers::GetCurrentSelection
virtual vtkSelection * GetCurrentSelection()
vtkAnnotationLayers::DeepCopy
void DeepCopy(vtkDataObject *other) override
Copy data from another data object into this one, performing a deep copy of member annotations.
vtkAnnotationLayers::GetAnnotation
vtkAnnotation * GetAnnotation(unsigned int idx)
Retrieve an annotation from a layer.
vtkAnnotationLayers::ShallowCopy
void ShallowCopy(vtkDataObject *other) override
Copy data from another data object into this one which references the same member annotations.
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:64
vtkAnnotationLayers::~vtkAnnotationLayers
~vtkAnnotationLayers() override
vtkAnnotationLayers::GetMTime
vtkMTimeType GetMTime() override
The modified time for this object.
vtkAnnotationLayers::New
static vtkAnnotationLayers * New()
vtkAnnotationLayers::GetData
static vtkAnnotationLayers * GetData(vtkInformationVector *v, int i=0)
vtkAnnotationLayers
Stores a ordered collection of annotation sets.
Definition: vtkAnnotationLayers.h:43
vtkAnnotationLayers::Implementation
Internals * Implementation
Definition: vtkAnnotationLayers.h:120
vtkAnnotationLayers::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAnnotationLayers::RemoveAnnotation
void RemoveAnnotation(vtkAnnotation *ann)
Remove an annotation from a layer.
vtkAnnotationLayers::CurrentAnnotation
vtkAnnotation * CurrentAnnotation
Definition: vtkAnnotationLayers.h:122
vtkAnnotationLayers::Initialize
void Initialize() override
Initialize the data structure to an empty state.
vtkAnnotation
Stores a collection of annotation artifacts.
Definition: vtkAnnotation.h:49
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDataObject.h
vtkAnnotationLayers::AddAnnotation
void AddAnnotation(vtkAnnotation *ann)
Add an annotation to a layer.
vtkAnnotationLayers::GetNumberOfAnnotations
unsigned int GetNumberOfAnnotations()
The number of annotations in a specific layer.
vtkAnnotationLayers::SetCurrentAnnotation
virtual void SetCurrentAnnotation(vtkAnnotation *ann)
The current annotation associated with this annotation link.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkAnnotationLayers::SetCurrentSelection
virtual void SetCurrentSelection(vtkSelection *sel)
The current selection associated with this annotation link.
vtkAnnotationLayers::GetData
static vtkAnnotationLayers * GetData(vtkInformation *info)
Retrieve a vtkAnnotationLayers stored inside an information object.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302