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 
32 #ifndef __vtkAnnotationLayers_h
33 #define __vtkAnnotationLayers_h
34 
35 #include "vtkDataObject.h"
36 
37 class vtkAnnotation;
38 class vtkSelection;
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45  static vtkAnnotationLayers* New();
46 
48 
49  virtual void SetCurrentAnnotation(vtkAnnotation* ann);
50  vtkGetObjectMacro(CurrentAnnotation, vtkAnnotation);
52 
54 
56  virtual void SetCurrentSelection(vtkSelection* sel);
57  virtual vtkSelection* GetCurrentSelection();
59 
61  unsigned int GetNumberOfAnnotations();
62 
64  vtkAnnotation* GetAnnotation(unsigned int idx);
65 
67  void AddAnnotation(vtkAnnotation* ann);
68 
70  void RemoveAnnotation(vtkAnnotation* ann);
71 
73  virtual void Initialize();
74 
77  virtual void ShallowCopy(vtkDataObject* other);
78 
81  virtual void DeepCopy(vtkDataObject* other);
82 
84 
85  static vtkAnnotationLayers* GetData(vtkInformation* info);
86  static vtkAnnotationLayers* GetData(vtkInformationVector* v, int i=0);
88 
90  virtual unsigned long GetMTime();
91 
92 //BTX
93 protected:
96 
97  class Internals;
98  Internals* Implementation;
100 
101 private:
102  vtkAnnotationLayers(const vtkAnnotationLayers&); // Not implemented.
103  void operator=(const vtkAnnotationLayers&); // Not implemented.
104 //ETX
105 };
106 
107 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
vtkAnnotation * CurrentAnnotation
a simple class to control print indentation
Definition: vtkIndent.h:37
Stores a collection of annotation artifacts.
Definition: vtkAnnotation.h:46
Stores a ordered collection of annotation sets.
Store zero or more vtkInformation instances.
helper class to get VTK data object types as string and instantiate them