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 "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkDataObject.h"
37 
38 class vtkAnnotation;
39 class vtkSelection;
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46  static vtkAnnotationLayers* New();
47 
49 
50  virtual void SetCurrentAnnotation(vtkAnnotation* ann);
51  vtkGetObjectMacro(CurrentAnnotation, vtkAnnotation);
53 
55 
57  virtual void SetCurrentSelection(vtkSelection* sel);
58  virtual vtkSelection* GetCurrentSelection();
60 
62  unsigned int GetNumberOfAnnotations();
63 
65  vtkAnnotation* GetAnnotation(unsigned int idx);
66 
68  void AddAnnotation(vtkAnnotation* ann);
69 
71  void RemoveAnnotation(vtkAnnotation* ann);
72 
74  virtual void Initialize();
75 
78  virtual void ShallowCopy(vtkDataObject* other);
79 
82  virtual void DeepCopy(vtkDataObject* other);
83 
85 
89 
91  virtual unsigned long GetMTime();
92 
93 //BTX
94 protected:
97 
98  class Internals;
99  Internals* Implementation;
101 
102 private:
103  vtkAnnotationLayers(const vtkAnnotationLayers&); // Not implemented.
104  void operator=(const vtkAnnotationLayers&); // Not implemented.
105 //ETX
106 };
107 
108 #endif
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
unsigned long int GetMTime()
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
virtual void Initialize()
vtkAnnotation * CurrentAnnotation
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Stores a collection of annotation artifacts.
Definition: vtkAnnotation.h:47
Stores a ordered collection of annotation sets.
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)