VTK
vtkDataObjectTypes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectTypes.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 =========================================================================*/
26 #ifndef vtkDataObjectTypes_h
27 #define vtkDataObjectTypes_h
28 
29 #include "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class vtkDataObject;
33 
35 {
36 public:
37  static vtkDataObjectTypes *New();
38 
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
44  static const char* GetClassNameFromTypeId(int typeId);
45 
48  static int GetTypeIdFromClassName(const char* classname);
49 
51  static vtkDataObject* NewDataObject(const char* classname);
52 
54  static vtkDataObject* NewDataObject(int typeId);
55 
56 protected:
59 
61  static int Validate();
62 
63 private:
64  vtkDataObjectTypes(const vtkDataObjectTypes&); // Not implemented.
65  void operator=(const vtkDataObjectTypes&); // Not implemented.
66 };
67 
68 #endif
69 
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
general representation of visualization data
Definition: vtkDataObject.h:64
#define VTKCOMMONDATAMODEL_EXPORT