VTK  9.2.6
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 
33 class vtkObjectFactory;
34 
35 class VTKCOMMONCORE_EXPORT vtkOverrideInformation : public vtkObject
36 {
37 public:
38  static vtkOverrideInformation* New();
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 
87 protected:
88  virtual void SetObjectFactory(vtkObjectFactory*);
89 
90 private:
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 
103 private:
105  void operator=(const vtkOverrideInformation&) = delete;
106 };
107 
108 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetClassOverrideWithName()
Returns the name of the class that will override the class.
const char * GetDescription()
Return a human readable or GUI displayable description of this override.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkObjectFactory * GetObjectFactory()
Return the specific object factory that this override occurs in.
abstract base class for vtkObjectFactories
Factory object override information.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
const char * GetClassOverrideName()
Returns the name of the class being overridden.