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 "vtkObject.h"
30 
31 class vtkDataObject;
32 
34 {
35 public:
36  static vtkDataObjectTypes *New();
37 
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
43  static const char* GetClassNameFromTypeId(int typeId);
44 
47  static int GetTypeIdFromClassName(const char* classname);
48 
50  static vtkDataObject* NewDataObject(const char* classname);
51 
53  static vtkDataObject* NewDataObject(int typeId);
54 
55 protected:
58 
59 private:
60  vtkDataObjectTypes(const vtkDataObjectTypes&); // Not implemented.
61  void operator=(const vtkDataObjectTypes&); // Not implemented.
62 };
63 
64 #endif
65 
abstract base class for most VTK objects
Definition: vtkObject.h:60
#define VTK_FILTERING_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkObject * New()
helper class to get VTK data object types as string and instantiate them