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 "vtkDataObject.h"
39 
44 class vtkSelection;
45 
47 {
48 public:
49  vtkTypeMacro(vtkAnnotation, vtkDataObject);
50  void PrintSelf(ostream& os, vtkIndent indent);
51  static vtkAnnotation* New();
52 
54 
55  vtkGetObjectMacro(Selection, vtkSelection);
56  virtual void SetSelection(vtkSelection* selection);
58 
60 
61  static vtkAnnotation* GetData(vtkInformation* info);
62  static vtkAnnotation* GetData(vtkInformationVector* v, int i=0);
64 
66  static vtkInformationStringKey* LABEL();
67 
70  static vtkInformationDoubleVectorKey* COLOR();
71 
74  static vtkInformationDoubleKey* OPACITY();
75 
77  static vtkInformationIntegerKey* ICON_INDEX();
78 
81  static vtkInformationIntegerKey* ENABLE();
82 
84  static vtkInformationIntegerKey* HIDE();
85 
87  static vtkInformationDataObjectKey* DATA();
88 
90  virtual void Initialize();
91 
94  virtual void ShallowCopy(vtkDataObject* other);
95 
98  virtual void DeepCopy(vtkDataObject* other);
99 
101  virtual unsigned long GetMTime();
102 
103 //BTX
104 protected:
105  vtkAnnotation();
106  ~vtkAnnotation();
107 
109 
110 private:
111  vtkAnnotation(const vtkAnnotation&); // Not implemented.
112  void operator=(const vtkAnnotation&); // Not implemented.
113 //ETX
114 };
115 
116 #endif
117 
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
Key for vtkDataObject values.
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
Key for string values in vtkInformation.
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:37
Key for integer values in vtkInformation.
vtkSelection * Selection
Stores a collection of annotation artifacts.
Definition: vtkAnnotation.h:46
Key for double values in vtkInformation.
Store zero or more vtkInformation instances.
helper class to get VTK data object types as string and instantiate them