VTK
vtkAnnotation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAnnotation.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 
36 #ifndef vtkAnnotation_h
37 #define vtkAnnotation_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkDataObject.h"
41 
46 class vtkSelection;
47 
48 class VTKCOMMONDATAMODEL_EXPORT vtkAnnotation : public vtkDataObject
49 {
50 public:
51  vtkTypeMacro(vtkAnnotation, vtkDataObject);
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53  static vtkAnnotation* New();
54 
56 
59  vtkGetObjectMacro(Selection, vtkSelection);
60  virtual void SetSelection(vtkSelection* selection);
62 
64 
70 
75 
81 
87 
92 
98 
103 
108 
112  void Initialize() VTK_OVERRIDE;
113 
118  void ShallowCopy(vtkDataObject* other) VTK_OVERRIDE;
119 
124  void DeepCopy(vtkDataObject* other) VTK_OVERRIDE;
125 
129  vtkMTimeType GetMTime() VTK_OVERRIDE;
130 
131 protected:
133  ~vtkAnnotation() VTK_OVERRIDE;
134 
135  vtkSelection* Selection;
136 
137 private:
138  vtkAnnotation(const vtkAnnotation&) VTK_DELETE_FUNCTION;
139  void operator=(const vtkAnnotation&) VTK_DELETE_FUNCTION;
140 
141 };
142 
143 #endif
144 
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkInformationStringKey
Key for string values in vtkInformation.
Definition: vtkInformationStringKey.h:37
vtkAnnotation::GetData
static vtkAnnotation * GetData(vtkInformation *info)
Retrieve a vtkAnnotation stored inside an information object.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkInformationDataObjectKey
Key for vtkDataObject values.
Definition: vtkInformationDataObjectKey.h:34
vtkAnnotation::New
static vtkAnnotation * New()
vtkAnnotation::COLOR
static vtkInformationDoubleVectorKey * COLOR()
The color for this annotation.
vtkSelection
A node in a selection tree.
Definition: vtkSelection.h:44
vtkInformationDoubleKey
Key for double values in vtkInformation.
Definition: vtkInformationDoubleKey.h:35
vtkAnnotation::DATA
static vtkInformationDataObjectKey * DATA()
Associate a vtkDataObject with this annotation.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:35
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAnnotation::OPACITY
static vtkInformationDoubleKey * OPACITY()
The color for this annotation.
vtkAnnotation::LABEL
static vtkInformationStringKey * LABEL()
The label for this annotation.
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
vtkAnnotation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAnnotation::SetSelection
virtual void SetSelection(vtkSelection *selection)
vtkDataObject.h
vtkInformationDoubleVectorKey
Key for double vector values.
Definition: vtkInformationDoubleVectorKey.h:35
vtkAnnotation::HIDE
static vtkInformationIntegerKey * HIDE()
Whether or not this annotation is visible.
vtkAnnotation::GetData
static vtkAnnotation * GetData(vtkInformationVector *v, int i=0)
vtkAnnotation::ICON_INDEX
static vtkInformationIntegerKey * ICON_INDEX()
An icon index for this annotation.
vtkAnnotation::Initialize
void Initialize() override
Initialize the annotation to an empty state.
vtkInformationIntegerVectorKey
Key for integer vector values.
Definition: vtkInformationIntegerVectorKey.h:35
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkAnnotation::ENABLE
static vtkInformationIntegerKey * ENABLE()
Whether or not this annotation is enabled.