VTK  9.5.20251009
vtkAnnotation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
19#ifndef vtkAnnotation_h
20#define vtkAnnotation_h
21
22#include "vtkCommonDataModelModule.h" // For export macro
23#include "vtkDataObject.h"
24
25VTK_ABI_NAMESPACE_BEGIN
30class vtkSelection;
31
32class VTKCOMMONDATAMODEL_EXPORT vtkAnnotation : public vtkDataObject
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37 static vtkAnnotation* New();
38
42 int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_ANNOTATION; }
43
45
48 vtkGetObjectMacro(Selection, vtkSelection);
49 virtual void SetSelection(vtkSelection* selection);
51
53
59
65
72
79
85
92
98
104
108 void Initialize() override;
109
114 void ShallowCopy(vtkDataObject* other) override;
115
120 void DeepCopy(vtkDataObject* other) override;
121
126
127protected:
129 ~vtkAnnotation() override;
130
132
133private:
134 vtkAnnotation(const vtkAnnotation&) = delete;
135 void operator=(const vtkAnnotation&) = delete;
136};
137
138VTK_ABI_NAMESPACE_END
139#endif
Stores a collection of annotation artifacts.
static vtkAnnotation * New()
static vtkAnnotation * GetData(vtkInformationVector *v, int i=0)
Retrieve a vtkAnnotation stored inside an information object.
void ShallowCopy(vtkDataObject *other) override
Make this annotation have the same properties and have the same selection of another annotation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeepCopy(vtkDataObject *other) override
Make this annotation have the same properties and have a copy of the selection of another annotation.
~vtkAnnotation() override
vtkMTimeType GetMTime() override
Get the modified time of this object.
void Initialize() override
Initialize the annotation to an empty state.
int GetDataObjectType() VTK_FUTURE_CONST override
Returns VTK_ANNOTATION.
static vtkAnnotation * GetData(vtkInformation *info)
Retrieve a vtkAnnotation stored inside an information object.
virtual void SetSelection(vtkSelection *selection)
The selection to which this set of annotations will apply.
vtkSelection * Selection
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Key for vtkDataObject values.
Key for double values in vtkInformation.
Key for integer values in vtkInformation.
Key for string values in vtkInformation.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
data object that represents a "selection" in VTK.
static vtkInformationIntegerKey * ENABLE()
Whether or not this annotation is enabled.
static vtkInformationIntegerKey * ICON_INDEX()
An icon index for this annotation.
static vtkInformationIntegerKey * HIDE()
Whether or not this annotation is visible.
static vtkInformationDoubleVectorKey * COLOR()
The color for this annotation.
static vtkInformationDataObjectKey * DATA()
Associate a vtkDataObject with this annotation.
static vtkInformationDoubleKey * OPACITY()
The color for this annotation.
static vtkInformationStringKey * LABEL()
The label for this annotation.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
@ VTK_ANNOTATION
Definition vtkType.h:158