|
VTK
|
Object overrides used during testing. More...
#include <vtkTestingObjectFactory.h>
Public Types | |
| typedef vtkObjectFactory | Superclass |
Public Types inherited from vtkObjectFactory | |
| typedef vtkObject *(* | CreateFunction )() |
Public Types inherited from vtkObject | |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| virtual const char * | GetVTKSourceVersion () |
| const char * | GetDescription () |
| void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions inherited from vtkObjectFactory | |
| virtual int | GetNumberOfOverrides () |
| virtual const char * | GetClassOverrideName (int index) |
| virtual const char * | GetClassOverrideWithName (int index) |
| virtual int | GetEnableFlag (int index) |
| virtual const char * | GetOverrideDescription (int index) |
| virtual void | Disable (const char *className) |
| virtual void | SetEnableFlag (int flag, const char *className, const char *subclassName) |
| virtual int | GetEnableFlag (const char *className, const char *subclassName) |
| virtual int | HasOverride (const char *className) |
| virtual int | HasOverride (const char *className, const char *subclassName) |
| virtual char * | GetLibraryPath () |
Public Member Functions inherited from vtkObject | |
| virtual void | DebugOn () |
| virtual void | DebugOff () |
| unsigned char | GetDebug () |
| void | SetDebug (unsigned char debugFlag) |
| virtual void | Modified () |
| virtual unsigned long | GetMTime () |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| vtkCommand * | GetCommand (unsigned long tag) |
| void | RemoveObserver (vtkCommand *) |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| void | RemoveObservers (const char *event, vtkCommand *) |
| int | HasObserver (unsigned long event, vtkCommand *) |
| int | HasObserver (const char *event, vtkCommand *) |
| void | RemoveObserver (unsigned long tag) |
| void | RemoveObservers (unsigned long event) |
| void | RemoveObservers (const char *event) |
| void | RemoveAllObservers () |
| int | HasObserver (unsigned long event) |
| int | HasObserver (const char *event) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| int | InvokeEvent (unsigned long event, void *callData) |
| int | InvokeEvent (const char *event, void *callData) |
| int | InvokeEvent (unsigned long event) |
| int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
| const char * | GetClassName () const |
| virtual void | Delete () |
| virtual void | FastDelete () |
| void | Print (ostream &os) |
| virtual void | Register (vtkObjectBase *o) |
| virtual void | UnRegister (vtkObjectBase *o) |
| void | SetReferenceCount (int) |
| void | PrintRevisions (ostream &os) |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| int | GetReferenceCount () |
Static Public Member Functions | |
| static vtkTestingObjectFactory * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkTestingObjectFactory * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObjectFactory | |
| static vtkObject * | CreateInstance (const char *vtkclassname) |
| static vtkObjectFactoryCollection * | GetRegisteredFactories () |
| static int | HasOverrideAny (const char *className) |
| static void | CreateAllInstance (const char *vtkclassname, vtkCollection *retList) |
| static void | ReHash () |
| static void | RegisterFactory (vtkObjectFactory *) |
| static void | UnRegisterFactory (vtkObjectFactory *) |
| static void | UnRegisterAllFactories () |
| static void | GetOverrideInformation (const char *name, vtkOverrideInformationCollection *) |
| static void | SetAllEnableFlags (int flag, const char *className) |
| static void | SetAllEnableFlags (int flag, const char *className, const char *subclassName) |
Static Public Member Functions inherited from vtkObject | |
| static void | BreakOnError () |
| static void | SetGlobalWarningDisplay (int val) |
| static void | GlobalWarningDisplayOn () |
| static void | GlobalWarningDisplayOff () |
| static int | GetGlobalWarningDisplay () |
Protected Member Functions | |
| vtkTestingObjectFactory () | |
Protected Member Functions inherited from vtkObjectFactory | |
| virtual vtkObject * | CreateObject (const char *vtkclassname) |
| vtkObjectFactory () | |
| ~vtkObjectFactory () | |
| void | RegisterOverride (const char *classOverride, const char *overrideClassName, const char *description, int enableFlag, CreateFunction createFunction) |
Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| virtual | ~vtkObject () |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | CollectRevisions (ostream &os) |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
Protected Attributes inherited from vtkObjectFactory | |
| OverrideInformation * | OverrideArray |
| char ** | OverrideClassNames |
| int | SizeOverrideArray |
| int | OverrideArrayLength |
Protected Attributes inherited from vtkObject | |
| unsigned char | Debug |
| vtkTimeStamp | MTime |
| vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
| int | ReferenceCount |
| vtkWeakPointerBase ** | WeakPointers |
Object overrides used during testing.
Some vtk examples and tests need to perform differently when they are run as tests versus when they are run as individual programs. Many tests/examples are interactive and eventually call vtkRenderWindowInteration::Start() to initialie the interaction. But, when run as tests, these programs should exit. This factory overrides vtkRenderWindowInteractor so that the Start() method just returns. To use this factory:
Definition at line 47 of file vtkTestingObjectFactory.h.
Reimplemented from vtkObjectFactory.
Definition at line 51 of file vtkTestingObjectFactory.h.
|
protected |
Register objects that override vtk objects whem they are run as tests.
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
|
virtual |
Reimplemented from vtkObjectFactory.
|
static |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObjectFactory.
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObjectFactory.
|
static |
Reimplemented from vtkObjectFactory.
|
virtual |
All sub-classes of vtkObjectFactory should must return the version of VTK they were built with. This should be implemented with the macro VTK_SOURCE_VERSION and NOT a call to vtkVersion::GetVTKSourceVersion. As the version needs to be compiled into the file as a string constant. This is critical to determine possible incompatible dynamic factory loads.
Implements vtkObjectFactory.
|
inlinevirtual |
Return a descriptive string describing the factory.
Implements vtkObjectFactory.
Definition at line 53 of file vtkTestingObjectFactory.h.
|
virtual |
Print ObjectFactory to stream.
Reimplemented from vtkObjectFactory.
1.8.1