VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDataObjectTypes.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkDataObjectTypes_h 00027 #define __vtkDataObjectTypes_h 00028 00029 #include "vtkCommonDataModelModule.h" // For export macro 00030 #include "vtkObject.h" 00031 00032 class vtkDataObject; 00033 00034 class VTKCOMMONDATAMODEL_EXPORT vtkDataObjectTypes : public vtkObject 00035 { 00036 public: 00037 static vtkDataObjectTypes *New(); 00038 00039 vtkTypeMacro(vtkDataObjectTypes,vtkObject); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00044 static const char* GetClassNameFromTypeId(int typeId); 00045 00048 static int GetTypeIdFromClassName(const char* classname); 00049 00051 static vtkDataObject* NewDataObject(const char* classname); 00052 00054 static vtkDataObject* NewDataObject(int typeId); 00055 00056 protected: 00057 vtkDataObjectTypes() {} 00058 ~vtkDataObjectTypes() {} 00059 00061 static int Validate(); 00062 00063 private: 00064 vtkDataObjectTypes(const vtkDataObjectTypes&); // Not implemented. 00065 void operator=(const vtkDataObjectTypes&); // Not implemented. 00066 }; 00067 00068 #endif 00069