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 =========================================================================*/
21 #ifndef vtkObjectIdMap_h
22 #define vtkObjectIdMap_h
23 
24 #include "vtkObject.h"
25 #include "vtkWebCoreModule.h" // needed for exports
26 
27 class VTKWEBCORE_EXPORT vtkObjectIdMap : public vtkObject
28 {
29 public:
30  static vtkObjectIdMap* New();
31  vtkTypeMacro(vtkObjectIdMap, vtkObject);
32  void PrintSelf(ostream& os, vtkIndent indent);
33 
38  vtkTypeUInt32 GetGlobalId(vtkObject* obj);
39 
43  vtkObject* GetVTKObject(vtkTypeUInt32 globalId);
44 
51  vtkTypeUInt32 SetActiveObject(const char* objectType, vtkObject* obj);
52 
56  vtkObject* GetActiveObject(const char* objectType);
57 
61  void FreeObject(vtkObject* obj);
62 
63 protected:
65  ~vtkObjectIdMap();
66 
67 private:
68  vtkObjectIdMap(const vtkObjectIdMap&) VTK_DELETE_FUNCTION;
69  void operator=(const vtkObjectIdMap&) VTK_DELETE_FUNCTION;
70 
71  struct vtkInternals;
72  vtkInternals* Internals;
73 
74 };
75 
76 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
class used to assign Id to any VTK object and be able to retreive it base on its id.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...