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 
35 #ifndef vtkAnnotation_h
36 #define vtkAnnotation_h
37 
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkDataObject.h"
40 
45 class vtkSelection;
46 
48 {
49 public:
50  vtkTypeMacro(vtkAnnotation, vtkDataObject);
51  void PrintSelf(ostream& os, vtkIndent indent);
52  static vtkAnnotation* New();
53 
55 
56  vtkGetObjectMacro(Selection, vtkSelection);
57  virtual void SetSelection(vtkSelection* selection);
59 
61 
63  static vtkAnnotation* GetData(vtkInformationVector* v, int i=0);
65 
67  static vtkInformationStringKey* LABEL();
68 
71  static vtkInformationDoubleVectorKey* COLOR();
72 
75  static vtkInformationDoubleKey* OPACITY();
76 
78  static vtkInformationIntegerKey* ICON_INDEX();
79 
82  static vtkInformationIntegerKey* ENABLE();
83 
85  static vtkInformationIntegerKey* HIDE();
86 
88  static vtkInformationDataObjectKey* DATA();
89 
91  virtual void Initialize();
92 
95  virtual void ShallowCopy(vtkDataObject* other);
96 
99  virtual void DeepCopy(vtkDataObject* other);
100 
102  virtual unsigned long GetMTime();
103 
104 //BTX
105 protected:
106  vtkAnnotation();
107  ~vtkAnnotation();
108 
110 
111 private:
112  vtkAnnotation(const vtkAnnotation&); // Not implemented.
113  void operator=(const vtkAnnotation&); // Not implemented.
114 //ETX
115 };
116 
117 #endif
118 
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
Key for vtkDataObject values.
unsigned long int GetMTime()
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
virtual void Initialize()
Key for string values in vtkInformation.
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for integer values in vtkInformation.
void PrintSelf(ostream &os, vtkIndent indent)
vtkSelection * Selection
Stores a collection of annotation artifacts.
Definition: vtkAnnotation.h:47
Key for double values in vtkInformation.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual void DeepCopy(vtkDataObject *src)
#define VTKCOMMONDATAMODEL_EXPORT
virtual void ShallowCopy(vtkDataObject *src)