VTK  9.2.5
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) override;
44
50 const char* GetClassOverrideName() { return this->ClassOverrideName; }
51
57 const char* GetClassOverrideWithName() { return this->ClassOverrideWithName; }
58
63 const char* GetDescription() { return this->Description; }
64
68 vtkObjectFactory* GetObjectFactory() { return this->ObjectFactory; }
69
71
74 vtkSetStringMacro(ClassOverrideName);
75
79 vtkSetStringMacro(ClassOverrideWithName);
80
84 vtkSetStringMacro(Description);
86
87protected:
89
90private:
92 ~vtkOverrideInformation() override;
93 // allow the object factory to set the values in this
94 // class, but only the object factory
95
96 friend class vtkObjectFactory;
97
98 char* ClassOverrideName;
99 char* ClassOverrideWithName;
100 char* Description;
101 vtkObjectFactory* ObjectFactory;
102
103private:
105 void operator=(const vtkOverrideInformation&) = delete;
106};
107
108#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:63
Factory object override information.
virtual void SetObjectFactory(vtkObjectFactory *)
const char * GetClassOverrideName()
Returns the name of the class being overridden.
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.