VTK
vtkOverrideInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOverrideInformation.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 vtkOverrideInformation_h
27 #define vtkOverrideInformation_h
28 
29 #include "vtkCommonCoreModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class vtkObjectFactory;
33 
35 {
36 public:
37  static vtkOverrideInformation* New();
40  virtual void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
46  const char* GetClassOverrideName()
47  {
48  return this->ClassOverrideName;
49  }
51 
53 
57  {
58  return this->ClassOverrideWithName;
59  }
61 
63 
65  const char* GetDescription()
66  {
67  return this->Description;
68  }
70 
72 
74  {
75  return this->ObjectFactory;
76  }
78 
79 
80  vtkSetStringMacro(ClassOverrideName);
81  // Set the class override with name
82  vtkSetStringMacro(ClassOverrideWithName);
83  // Set the description
84  vtkSetStringMacro(Description);
85 protected:
86  virtual void SetObjectFactory(vtkObjectFactory*);
88 
89 private:
92  // allow the object factory to set the values in this
93  // class, but only the object factory
94 //BTX
95  friend class vtkObjectFactory;
96 //ETX
97 
98  char* ClassOverrideName;
99  char* ClassOverrideWithName;
100  char* Description;
101  vtkObjectFactory* ObjectFactory;
102 private:
103  vtkOverrideInformation(const vtkOverrideInformation&); // Not implemented.
104  void operator=(const vtkOverrideInformation&); // Not implemented.
105 };
106 
107 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
const char * GetClassOverrideWithName()
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkObjectFactory * GetObjectFactory()
abstract base class for vtkObjectFactories
Factory object override information.
static vtkObject * New()