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=========================================================================*/
27#ifndef vtkOverrideInformation_h
28#define vtkOverrideInformation_h
29
30#include "vtkCommonCoreModule.h" // For export macro
31#include "vtkObject.h"
32
34
35class VTKCOMMONCORE_EXPORT vtkOverrideInformation : public vtkObject
36{
37public:
43 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44
51 {
52 return this->ClassOverrideName;
53 }
54
61 {
62 return this->ClassOverrideWithName;
63 }
64
69 const char* GetDescription()
70 {
71 return this->Description;
72 }
73
78 {
79 return this->ObjectFactory;
80 }
81
83
86 vtkSetStringMacro(ClassOverrideName);
87
91 vtkSetStringMacro(ClassOverrideWithName);
92
96 vtkSetStringMacro(Description);
98
99protected:
101
102private:
104 ~vtkOverrideInformation() VTK_OVERRIDE;
105 // allow the object factory to set the values in this
106 // class, but only the object factory
107
108 friend class vtkObjectFactory;
109
110 char* ClassOverrideName;
111 char* ClassOverrideWithName;
112 char* Description;
113 vtkObjectFactory* ObjectFactory;
114private:
115 vtkOverrideInformation(const vtkOverrideInformation&) VTK_DELETE_FUNCTION;
116 void operator=(const vtkOverrideInformation&) VTK_DELETE_FUNCTION;
117};
118
119#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for vtkObjectFactories
abstract base class for most VTK objects
Definition: vtkObject.h:60
Factory object override information.
virtual void SetObjectFactory(vtkObjectFactory *)
const char * GetClassOverrideName()
Returns the name of the class being overriden.
vtkObjectFactory * GetObjectFactory()
Return the specific object factory that this override occurs in.
const char * GetDescription()
Return a human readable or GUI displayable description of this override.
static vtkOverrideInformation * New()
const char * GetClassOverrideWithName()
Returns the name of the class that will override the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.