VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkTestingObjectFactory Class Reference

Object overrides used during testing. More...

#include <vtkTestingObjectFactory.h>

Inheritance diagram for vtkTestingObjectFactory:
[legend]
Collaboration diagram for vtkTestingObjectFactory:
[legend]

Public Types

typedef vtkObjectFactory Superclass
 
- Public Types inherited from vtkObjectFactory
typedef vtkObject Superclass
 
typedef vtkObject *(* CreateFunction )()
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

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)
 
vtkCommandGetCommand (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 vtkTestingObjectFactoryNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTestingObjectFactorySafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObjectFactory
static vtkObjectCreateInstance (const char *vtkclassname)
 
static vtkObjectFactoryCollectionGetRegisteredFactories ()
 
static int HasOverrideAny (const char *className)
 
static int IsTypeOf (const char *type)
 
static vtkObjectFactorySafeDownCast (vtkObject *o)
 
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 int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkTestingObjectFactory ()
 
- Protected Member Functions inherited from vtkObjectFactory
virtual vtkObjectCreateObject (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
OverrideInformationOverrideArray
 
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
 

Detailed Description

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:

Examples:
vtkTestingObjectFactory (Examples)

Definition at line 47 of file vtkTestingObjectFactory.h.

Member Typedef Documentation

Definition at line 51 of file vtkTestingObjectFactory.h.

Constructor & Destructor Documentation

vtkTestingObjectFactory::vtkTestingObjectFactory ( )
protected

Register objects that override vtk objects whem they are run as tests.

Member Function Documentation

static vtkTestingObjectFactory* vtkTestingObjectFactory::New ( )
static
virtual const char* vtkTestingObjectFactory::GetClassName ( )
virtual

Reimplemented from vtkObjectFactory.

static int vtkTestingObjectFactory::IsTypeOf ( const char *  type)
static
virtual int vtkTestingObjectFactory::IsA ( const char *  name)
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 vtkTestingObjectFactory* vtkTestingObjectFactory::SafeDownCast ( vtkObject o)
static
virtual const char* vtkTestingObjectFactory::GetVTKSourceVersion ( )
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.

const char* vtkTestingObjectFactory::GetDescription ( )
inlinevirtual

Return a descriptive string describing the factory.

Implements vtkObjectFactory.

Definition at line 53 of file vtkTestingObjectFactory.h.

void vtkTestingObjectFactory::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Print ObjectFactory to stream.

Reimplemented from vtkObjectFactory.


The documentation for this class was generated from the following file: