VTK
vtkObjectIdMap.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkObjectIdMap.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
20 #ifndef vtkObjectIdMap_h
21 #define vtkObjectIdMap_h
22 
23 #include "vtkObject.h"
24 #include "vtkWebCoreModule.h" // needed for exports
25 
27 {
28 public:
29  static vtkObjectIdMap* New();
30  vtkTypeMacro(vtkObjectIdMap, vtkObject);
31  void PrintSelf(ostream& os, vtkIndent indent);
32 
35  vtkTypeUInt32 GetGlobalId(vtkObject* obj);
36 
38  vtkObject* GetVTKObject(vtkTypeUInt32 globalId);
39 
44  vtkTypeUInt32 SetActiveObject(const char* objectType, vtkObject* obj);
45 
47  vtkObject* GetActiveObject(const char* objectType);
48 
50  void FreeObject(vtkObject* obj);
51 
52 //BTX
53 protected:
55  ~vtkObjectIdMap();
56 
57 private:
58  vtkObjectIdMap(const vtkObjectIdMap&); // Not implemented
59  void operator=(const vtkObjectIdMap&); // Not implemented
60 
61  struct vtkInternals;
62  vtkInternals* Internals;
63 //ETX
64 };
65 
66 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
class used to assign Id to any VTK object and be able to retreive it base on its id.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
#define VTKWEBCORE_EXPORT