abstract base class for most VTK objects
More...
#include <vtkObject.h>
Inherits vtkObjectBase.
Inherited by vtkAbstractArray, vtkAbstractContextBufferId, vtkAbstractContextItem, vtkAbstractTransform, vtkAlgorithm, vtkAlgorithmOutput, vtkAmoebaMinimizer, vtkAnimationCue, vtkArray, vtkArrayIterator, vtkAssemblyNode, vtkBrush, vtkBSPIntersections, vtkByteSwap, vtkCellArray, vtkCellLinks, vtkCellTypes, vtkCollection, vtkCollectionIterator, vtkColorSeries, vtkConditionVariable, vtkContext2D, vtkContextDevice2D, vtkContextScene, vtkContourValues, vtkCriticalSection, vtkDataArraySelection, vtkDataObjectTypes, vtkDebugLeaks, vtkDirectory, vtkDynamicLoader, vtkEdgeTable, vtkExecutionScheduler, vtkExtentSplitter, vtkExtentTranslator, vtkFastNumericConversion, vtkFieldData, vtkFunctionParser, vtkFunctionSet, vtkGarbageCollector, vtkGenericEdgeTable, vtkHeap, vtkHyperOctreeCursor, vtkHyperOctreePointsGrabber, vtkIdList, vtkImplicitFunction, vtkInEdgeIterator, vtkInformation, vtkInformationIterator, vtkInformationVector, vtkInitialValueProblemSolver, vtkInstantiator, vtkLocator, vtkMath, vtkMatrix3x3, vtkMatrix4x4, vtkMultiThreader, vtkMutexLock, vtkObjectFactory, vtkOctreePointLocatorNode, vtkOrderedTriangulator, vtkOutEdgeIterator, vtkOutputWindow, vtkOverrideInformation, vtkParametricFunction, vtkPen, vtkPoints, vtkPoints2D, vtkPolynomialSolversUnivariate, vtkPriorityQueue, vtkProcessStatistics, vtkProp, vtkProperty2D, vtkQuadratureSchemeDefinition, vtkRandomSequence, vtkReferenceCount, vtkScalarsToColors, vtkScalarTree, vtkSocket, vtkSortDataArray, vtkSpline, vtkStructuredData, vtkStructuredExtent, vtkStructuredVisibilityConstraint, vtkTensor, vtkThreadMessager, vtkTimePointUtility, vtkTimerLog, vtkTransform2D, vtkTreeBFSIterator, vtkVersion, vtkViewport, vtkVoidArray, vtkWindow, and vtkXMLDataElement.
|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
unsigned char | GetDebug () |
|
void | SetDebug (unsigned char debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
|
|
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) |
|
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 () |
|
abstract base class for most VTK objects
vtkObject is the base class for most objects in the visualization toolkit. vtkObject provides methods for tracking modification time, debugging, printing, and event callbacks. Most objects created within the VTK framework should be a subclass of vtkObject or one of its children. The few exceptions tend to be very small helper classes that usually never get instantiated or situations where multiple inheritance gets in the way. vtkObject also performs reference counting: objects that are reference counted exist as long as another object uses them. Once the last reference to a reference counted object is removed, the object will spontaneously destruct.
- Warning
- Note: in VTK objects should always be created with the New() method and deleted with the Delete() method. VTK objects cannot be allocated off the stack (i.e., automatic objects) because the constructor is a protected method.
- See Also
- vtkCommand vtkTimeStamp
- Events:
- vtkCommand::DeleteEvent vtkCommand::ModifiedEvent
- Examples:
- vtkObject (Examples)
- Tests:
- vtkObject (Tests)
Definition at line 60 of file vtkObject.h.
virtual vtkObject::~vtkObject |
( |
| ) |
|
|
protectedvirtual |
virtual const char* vtkObject::GetClassName |
( |
| ) |
|
|
virtual |
Reimplemented in vtkConditionVariable, vtkFunctionParser, vtkObjectFactory, vtkOrderedTriangulator, vtkCriticalSection, vtkGarbageCollector, vtkMultiThreader, vtkTimerLog, vtkMutexLock, vtkInformation, vtkFastNumericConversion, vtkInstantiator, vtkArray, vtkMath, vtkExecutionScheduler, vtkParametricFunction, vtkAlgorithm, vtkFieldData, vtkImplicitSelectionLoop, vtkLocator, vtkSpline, vtkAbstractArray, vtkTransform, vtkDataSetAttributes, vtkPolynomialSolversUnivariate, vtkPriorityQueue, vtkAssemblyNode, vtkImplicitFunction, vtkPerspectiveTransform, vtkVariantArray, vtkContext2D, vtkLookupTable, vtkPropAssembly, vtkUndirectedGraphAlgorithm, vtkDataArray, vtkPlanes, vtkTreeAlgorithm, vtkHeap, vtkCollection, vtkMatrix4x4, vtkParametricSuperToroid, vtkCellTypes, vtkProcessObject, vtkPlot, vtkAbstractMapper, vtkDataSetAlgorithm, vtkOutEdgeIterator, vtkAbstractTransform, vtkProp, vtkHyperOctreeCursor, vtkImplicitDataSet, vtkPolyDataAlgorithm, vtkSimpleScalarTree, vtkAnimationCue, vtkAbstractCellLocator, vtkCellArray, vtkPlotPoints, vtkArrayIterator, vtkParametricFigure8Klein, vtkParametricKlein, vtkParametricSuperEllipsoid, vtkImplicitVolume, vtkInEdgeIterator, vtkChart, vtkChartXY, vtkContextScene, vtkMatrix3x3, vtkMinimalStandardRandomSequence, vtkTransform2D, vtkStructuredGridAlgorithm, vtkOutputWindow, vtkXMLFileOutputWindow, vtkScalarTree, vtkViewport, vtkAxis, vtkOpenGLContextDevice2D, vtkDoubleArray, vtkFloatArray, vtkIdTypeArray, vtkIntArray, vtkLookupTableWithEnabling, vtkQuadratureSchemeDefinition, vtkStringArray, vtkStructuredData, vtkUnsignedCharArray, vtkActor2D, vtkCellLinks, vtkOctreePointLocatorNode, vtkPointSetAlgorithm, vtkTreeBFSIterator, vtkContextDevice2D, vtkDebugLeaks, vtkParametricEllipsoid, vtkPoints, vtkSphericalTransform, vtkBSPIntersections, vtkAbstractContextBufferId, vtkOpenGL2ContextDevice2D, vtkPlotStacked, vtkAnimationScene, vtkRungeKutta45, vtkScalarsToColors, vtkUnicodeStringArray, vtkGenericEdgeTable, vtkPlotBar, vtkCharArray, vtkEdgeTable, vtkLongArray, vtkParametricBoy, vtkParametricCrossCap, vtkParametricDini, vtkParametricEnneper, vtkParametricRandomHills, vtkShortArray, vtkSignedCharArray, vtkUnsignedIntArray, vtkUnsignedLongArray, vtkUnsignedShortArray, vtkVersion, vtkWindowLevelLookupTable, vtkImplicitSum, vtkChartLegend, vtkPiecewiseControlPointsItem, vtkGeneralTransform, vtkInformationVector, vtkPropCollection, vtkSortDataArray, vtkImplicitWindowFunction, vtkCompositeControlPointsItem, vtkAssemblyPath, vtkBox, vtkCylindricalTransform, vtkMatrixToHomogeneousTransform, vtkMatrixToLinearTransform, vtkParametricConicSpiral, vtkParametricRoman, vtkParametricTorus, vtkPoints2D, vtkRungeKutta4, vtkControlPointsItem, vtkScalarsToColorsItem, vtk__Int64Array, vtkIdList, vtkInitialValueProblemSolver, vtkLongLongArray, vtkParametricMobius, vtkPlane, vtkProperty2D, vtkUnsigned__Int64Array, vtkUnsignedLongLongArray, vtkAlgorithmOutput, vtkImageToStructuredPoints, vtkAbstractContextItem, vtkColorTransferControlPointsItem, vtkPen, vtkPlotParallelCoordinates, vtkPlotPie, vtkTooltipItem, vtkAmoebaMinimizer, vtkDirectory, vtkDynamicLoader, vtkStructuredVisibilityConstraint, vtkWin32OutputWindow, vtkPointData, vtkChartParallelCoordinates, vtkContextTransform, vtkPlotGrid, vtkAssemblyPaths, vtkContourValues, vtkInformationIterator, vtkRandomSequence, vtkTimePointUtility, vtkDataObjectCollection, vtkBlockItem, vtkBrush, vtkChartPie, vtkColorLegend, vtkColorSeries, vtkContextActor, vtkContextMapper2D, vtkImageItem, vtkBitArray, vtkCollectionIterator, vtkExtentSplitter, vtkExtentTranslator, vtkIdentityTransform, vtkLogLookupTable, vtkWindow, vtkDataObjectTypes, vtkImageAlgorithm, vtkSphere, vtkChartHistogram2D, vtkOverrideInformation, vtkOverrideInformationCollection, vtkPlaneCollection, vtkQuadric, vtkTensor, vtkXMLDataElement, vtkPlotHistogram2D, vtkFunctionSet, vtkHomogeneousTransform, vtkRungeKutta2, vtkThreadMessager, vtkTransformCollection, vtkHyperOctreePointsGrabber, vtkMapper2D, vtkTrivialProducer, vtkContextItem, vtkOpenGLContextBufferId, vtkByteSwap, vtkDataArraySelection, vtkFileOutputWindow, vtkObjectFactoryCollection, vtkWin32ProcessOutputWindow, vtkImageInPlaceFilter, vtkContextBufferId, vtkContextClip, vtkDataArrayCollectionIterator, vtkImplicitFunctionCollection, vtkStructuredExtent, vtkVoidArray, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkTemporalDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkDataArrayCollection, vtkIdListCollection, vtkLinearTransform, vtkReferenceCount, vtkSocketCollection, vtkTableExtentTranslator, vtkWarpTransform, vtkDataSetCollection, vtkStructuredPointsCollection, vtkPlotLine, vtkGaussianRandomSequence, vtkOnePieceExtentTranslator, vtkColorTransferFunctionItem, vtkBitArrayIterator, vtkProcessStatistics, vtkServerSocket, vtkSocket, vtkLookupTableItem, vtkCompositeTransferFunctionItem, vtkPiecewiseFunctionItem, and vtkClientSocket.
static int vtkObject::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkObject::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 vtkObjectBase.
Reimplemented in vtkConditionVariable, vtkFunctionParser, vtkObjectFactory, vtkOrderedTriangulator, vtkCriticalSection, vtkGarbageCollector, vtkMultiThreader, vtkTimerLog, vtkMutexLock, vtkInformation, vtkFastNumericConversion, vtkTypeTemplate< vtkSparseArray< T >, vtkTypedArray< T > >, vtkTypeTemplate< vtkTypedArray< T >, vtkArray >, vtkTypeTemplate< vtkDenseArray< T >, vtkTypedArray< T > >, vtkInstantiator, vtkArray, vtkMath, vtkExecutionScheduler, vtkParametricFunction, vtkAlgorithm, vtkFieldData, vtkImplicitSelectionLoop, vtkLocator, vtkSpline, vtkAbstractArray, vtkTransform, vtkDataSetAttributes, vtkPolynomialSolversUnivariate, vtkPriorityQueue, vtkAssemblyNode, vtkImplicitFunction, vtkPerspectiveTransform, vtkVariantArray, vtkContext2D, vtkLookupTable, vtkPropAssembly, vtkUndirectedGraphAlgorithm, vtkDataArray, vtkPlanes, vtkTreeAlgorithm, vtkHeap, vtkCollection, vtkMatrix4x4, vtkParametricSuperToroid, vtkCellTypes, vtkProcessObject, vtkPlot, vtkAbstractMapper, vtkDataSetAlgorithm, vtkOutEdgeIterator, vtkAbstractTransform, vtkProp, vtkHyperOctreeCursor, vtkImplicitDataSet, vtkPolyDataAlgorithm, vtkSimpleScalarTree, vtkAnimationCue, vtkAbstractCellLocator, vtkCellArray, vtkPlotPoints, vtkArrayIterator, vtkParametricFigure8Klein, vtkParametricKlein, vtkParametricSuperEllipsoid, vtkImplicitVolume, vtkInEdgeIterator, vtkChart, vtkChartXY, vtkContextScene, vtkMatrix3x3, vtkMinimalStandardRandomSequence, vtkTransform2D, vtkStructuredGridAlgorithm, vtkOutputWindow, vtkXMLFileOutputWindow, vtkScalarTree, vtkViewport, vtkAxis, vtkOpenGLContextDevice2D, vtkDoubleArray, vtkFloatArray, vtkIdTypeArray, vtkIntArray, vtkLookupTableWithEnabling, vtkQuadratureSchemeDefinition, vtkStringArray, vtkStructuredData, vtkUnsignedCharArray, vtkActor2D, vtkCellLinks, vtkOctreePointLocatorNode, vtkPointSetAlgorithm, vtkTreeBFSIterator, vtkContextDevice2D, vtkDebugLeaks, vtkParametricEllipsoid, vtkPoints, vtkSphericalTransform, vtkBSPIntersections, vtkAbstractContextBufferId, vtkOpenGL2ContextDevice2D, vtkPlotStacked, vtkAnimationScene, vtkRungeKutta45, vtkScalarsToColors, vtkUnicodeStringArray, vtkGenericEdgeTable, vtkPlotBar, vtkCharArray, vtkEdgeTable, vtkLongArray, vtkParametricBoy, vtkParametricCrossCap, vtkParametricDini, vtkParametricEnneper, vtkParametricRandomHills, vtkShortArray, vtkSignedCharArray, vtkUnsignedIntArray, vtkUnsignedLongArray, vtkUnsignedShortArray, vtkVersion, vtkWindowLevelLookupTable, vtkImplicitSum, vtkChartLegend, vtkPiecewiseControlPointsItem, vtkGeneralTransform, vtkInformationVector, vtkPropCollection, vtkSortDataArray, vtkImplicitWindowFunction, vtkCompositeControlPointsItem, vtkAssemblyPath, vtkBox, vtkCylindricalTransform, vtkMatrixToHomogeneousTransform, vtkMatrixToLinearTransform, vtkParametricConicSpiral, vtkParametricRoman, vtkParametricTorus, vtkPoints2D, vtkRungeKutta4, vtkControlPointsItem, vtkScalarsToColorsItem, vtk__Int64Array, vtkIdList, vtkInitialValueProblemSolver, vtkLongLongArray, vtkParametricMobius, vtkPlane, vtkProperty2D, vtkUnsigned__Int64Array, vtkUnsignedLongLongArray, vtkAlgorithmOutput, vtkImageToStructuredPoints, vtkAbstractContextItem, vtkColorTransferControlPointsItem, vtkPen, vtkPlotParallelCoordinates, vtkPlotPie, vtkTooltipItem, vtkAmoebaMinimizer, vtkDirectory, vtkDynamicLoader, vtkStructuredVisibilityConstraint, vtkWin32OutputWindow, vtkPointData, vtkChartParallelCoordinates, vtkContextTransform, vtkPlotGrid, vtkAssemblyPaths, vtkContourValues, vtkInformationIterator, vtkRandomSequence, vtkTimePointUtility, vtkDataObjectCollection, vtkBlockItem, vtkBrush, vtkChartPie, vtkColorLegend, vtkColorSeries, vtkContextActor, vtkContextMapper2D, vtkImageItem, vtkBitArray, vtkCollectionIterator, vtkExtentSplitter, vtkExtentTranslator, vtkIdentityTransform, vtkLogLookupTable, vtkWindow, vtkDataObjectTypes, vtkImageAlgorithm, vtkSphere, vtkChartHistogram2D, vtkOverrideInformation, vtkOverrideInformationCollection, vtkPlaneCollection, vtkQuadric, vtkTensor, vtkXMLDataElement, vtkPlotHistogram2D, vtkFunctionSet, vtkHomogeneousTransform, vtkRungeKutta2, vtkThreadMessager, vtkTransformCollection, vtkHyperOctreePointsGrabber, vtkMapper2D, vtkTrivialProducer, vtkContextItem, vtkOpenGLContextBufferId, vtkByteSwap, vtkDataArraySelection, vtkFileOutputWindow, vtkObjectFactoryCollection, vtkWin32ProcessOutputWindow, vtkImageInPlaceFilter, vtkContextBufferId, vtkContextClip, vtkDataArrayCollectionIterator, vtkImplicitFunctionCollection, vtkStructuredExtent, vtkVoidArray, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkTemporalDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkDataArrayCollection, vtkIdListCollection, vtkLinearTransform, vtkReferenceCount, vtkSocketCollection, vtkTableExtentTranslator, vtkWarpTransform, vtkDataSetCollection, vtkStructuredPointsCollection, vtkPlotLine, vtkGaussianRandomSequence, vtkOnePieceExtentTranslator, vtkColorTransferFunctionItem, vtkBitArrayIterator, vtkProcessStatistics, vtkServerSocket, vtkSocket, vtkLookupTableItem, vtkCompositeTransferFunctionItem, vtkPiecewiseFunctionItem, and vtkClientSocket.
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual void vtkObject::DebugOn |
( |
| ) |
|
|
virtual |
Turn debugging output on.
virtual void vtkObject::DebugOff |
( |
| ) |
|
|
virtual |
Turn debugging output off.
unsigned char vtkObject::GetDebug |
( |
| ) |
|
Get the value of the debug flag.
void vtkObject::SetDebug |
( |
unsigned char |
debugFlag | ) |
|
Set the value of the debug flag. A non-zero value turns debugging on.
static void vtkObject::BreakOnError |
( |
| ) |
|
|
static |
This method is called when vtkErrorMacro executes. It allows the debugger to break on error.
virtual void vtkObject::Modified |
( |
| ) |
|
|
virtual |
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. The modification time is a unique monotonically increasing unsigned long integer.
Reimplemented in vtkInformation.
virtual unsigned long vtkObject::GetMTime |
( |
| ) |
|
|
virtual |
Return this object's modified time.
Reimplemented in vtkPerspectiveTransform, vtkTransform, vtkAbstractTransform, vtkGeneralTransform, vtkFieldData, vtkSpline, vtkTransform2D, vtkActor2D, vtkImplicitSelectionLoop, vtkPropAssembly, vtkImplicitWindowFunction, vtkAssemblyNode, vtkAssemblyPath, vtkImplicitFunction, vtkImplicitDataSet, vtkImplicitVolume, vtkImplicitSum, vtkMatrixToLinearTransform, vtkAbstractMapper, vtkAssemblyPaths, vtkMatrixToHomogeneousTransform, and vtkTrivialProducer.
virtual void vtkObject::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkObjectBase.
Reimplemented in vtkConditionVariable, vtkFunctionParser, vtkObjectFactory, vtkOrderedTriangulator, vtkCriticalSection, vtkGarbageCollector, vtkMultiThreader, vtkTimerLog, vtkMutexLock, vtkInformation, vtkSparseArray< T >, vtkFastNumericConversion, vtkTypedArray< T >, vtkInstantiator, vtkArray, vtkMath, vtkExecutionScheduler, vtkDenseArray< T >, vtkParametricFunction, vtkAlgorithm, vtkFieldData, vtkImplicitSelectionLoop, vtkLocator, vtkSpline, vtkAbstractArray, vtkTransform, vtkDataSetAttributes, vtkPolynomialSolversUnivariate, vtkPriorityQueue, vtkAssemblyNode, vtkImplicitFunction, vtkPerspectiveTransform, vtkVariantArray, vtkContext2D, vtkLookupTable, vtkPropAssembly, vtkUndirectedGraphAlgorithm, vtkDataArray, vtkPlanes, vtkTreeAlgorithm, vtkHeap, vtkCollection, vtkMatrix4x4, vtkParametricSuperToroid, vtkCellTypes, vtkPlanesIntersection, vtkProcessObject, vtkPlot, vtkAbstractMapper, vtkDataSetAlgorithm, vtkOutEdgeIterator, vtkAbstractTransform, vtkProp, vtkHyperOctreeCursor, vtkImplicitDataSet, vtkPolyDataAlgorithm, vtkSimpleScalarTree, vtkAnimationCue, vtkAbstractCellLocator, vtkCellArray, vtkPlotPoints, vtkArrayIterator, vtkParametricFigure8Klein, vtkParametricKlein, vtkParametricSuperEllipsoid, vtkImplicitVolume, vtkInEdgeIterator, vtkChart, vtkChartXY, vtkContextScene, vtkMatrix3x3, vtkMinimalStandardRandomSequence, vtkOutputWindow, vtkTransform2D, vtkStructuredGridAlgorithm, vtkScalarTree, vtkViewport, vtkAxis, vtkOpenGLContextDevice2D, vtkDoubleArray, vtkFloatArray, vtkIdTypeArray, vtkIntArray, vtkLookupTableWithEnabling, vtkQuadratureSchemeDefinition, vtkStringArray, vtkUnsignedCharArray, vtkCellLinks, vtkOctreePointLocatorNode, vtkPointSetAlgorithm, vtkTreeBFSIterator, vtkContextDevice2D, vtkDirectory, vtkParametricEllipsoid, vtkPoints, vtkSphericalTransform, vtkBSPIntersections, vtkAbstractContextBufferId, vtkOpenGL2ContextDevice2D, vtkPlotStacked, vtkAnimationScene, vtkRungeKutta45, vtkScalarsToColors, vtkUnicodeStringArray, vtkActor2D, vtkGenericEdgeTable, vtkPlotBar, vtkCharArray, vtkEdgeTable, vtkLongArray, vtkParametricBoy, vtkParametricCrossCap, vtkParametricDini, vtkParametricEnneper, vtkParametricRandomHills, vtkShortArray, vtkSignedCharArray, vtkSortDataArray, vtkUnsignedIntArray, vtkUnsignedLongArray, vtkUnsignedShortArray, vtkWindowLevelLookupTable, vtkImplicitSum, vtkChartLegend, vtkPiecewiseControlPointsItem, vtkArrayIteratorTemplate< T >, vtkGeneralTransform, vtkInformationVector, vtkImplicitWindowFunction, vtkCompositeControlPointsItem, vtkAssemblyPath, vtkBox, vtkCylindricalTransform, vtkMatrixToHomogeneousTransform, vtkMatrixToLinearTransform, vtkParametricConicSpiral, vtkParametricRoman, vtkParametricTorus, vtkPoints2D, vtkRungeKutta4, vtkControlPointsItem, vtkScalarsToColorsItem, vtk__Int64Array, vtkIdList, vtkInitialValueProblemSolver, vtkLongLongArray, vtkParametricMobius, vtkPlane, vtkProperty2D, vtkUnsigned__Int64Array, vtkUnsignedLongLongArray, vtkAlgorithmOutput, vtkImageToStructuredPoints, vtkAbstractContextItem, vtkColorTransferControlPointsItem, vtkPen, vtkPlotParallelCoordinates, vtkPlotPie, vtkTooltipItem, vtkAmoebaMinimizer, vtkStructuredVisibilityConstraint, vtkWin32OutputWindow, vtkPointData, vtkPointsProjectedHull, vtkChartParallelCoordinates, vtkContextTransform, vtkPlotGrid, vtkContourValues, vtkInformationIterator, vtkRandomSequence, vtkTimePointUtility, vtkBlockItem, vtkBrush, vtkChartPie, vtkColorLegend, vtkColorSeries, vtkContextMapper2D, vtkImageItem, vtkBitArray, vtkCollectionIterator, vtkExtentSplitter, vtkExtentTranslator, vtkFileOutputWindow, vtkIdentityTransform, vtkLogLookupTable, vtkOverrideInformation, vtkWindow, vtkDataObjectTypes, vtkImageAlgorithm, vtkSphere, vtkChartHistogram2D, vtkQuadric, vtkTensor, vtkXMLDataElement, vtkContextActor, vtkPlotHistogram2D, vtkFunctionSet, vtkHomogeneousTransform, vtkThreadMessager, vtkWin32ProcessOutputWindow, vtkHyperOctreePointsGrabber, vtkMapper2D, vtkTrivialProducer, vtkContextItem, vtkOpenGLContextBufferId, vtkDataArraySelection, vtkDataArrayTemplate< T >, vtkImageInPlaceFilter, vtkContextBufferId, vtkContextClip, vtkDataArrayCollectionIterator, vtkStructuredExtent, vtkVoidArray, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkTemporalDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkLinearTransform, vtkReferenceCount, vtkSocketCollection, vtkTableExtentTranslator, vtkWarpTransform, vtkStructuredPointsCollection, vtkPlotLine, vtkGaussianRandomSequence, vtkOnePieceExtentTranslator, vtkColorTransferFunctionItem, vtkBitArrayIterator, vtkServerSocket, vtkSocket, vtkLookupTableItem, vtkCompositeTransferFunctionItem, vtkPiecewiseFunctionItem, and vtkClientSocket.
static void vtkObject::SetGlobalWarningDisplay |
( |
int |
val | ) |
|
|
static |
This is a global flag that controls whether any debug, warning or error messages are displayed.
static void vtkObject::GlobalWarningDisplayOn |
( |
| ) |
|
|
inlinestatic |
This is a global flag that controls whether any debug, warning or error messages are displayed.
Definition at line 110 of file vtkObject.h.
static void vtkObject::GlobalWarningDisplayOff |
( |
| ) |
|
|
inlinestatic |
This is a global flag that controls whether any debug, warning or error messages are displayed.
Definition at line 111 of file vtkObject.h.
static int vtkObject::GetGlobalWarningDisplay |
( |
| ) |
|
|
static |
This is a global flag that controls whether any debug, warning or error messages are displayed.
unsigned long vtkObject::AddObserver |
( |
unsigned long |
event, |
|
|
vtkCommand * |
, |
|
|
float |
priority = 0.0f |
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
unsigned long vtkObject::AddObserver |
( |
const char * |
event, |
|
|
vtkCommand * |
, |
|
|
float |
priority = 0.0f |
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
vtkCommand* vtkObject::GetCommand |
( |
unsigned long |
tag | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveObservers |
( |
unsigned long |
event, |
|
|
vtkCommand * |
|
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveObservers |
( |
const char * |
event, |
|
|
vtkCommand * |
|
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
int vtkObject::HasObserver |
( |
unsigned long |
event, |
|
|
vtkCommand * |
|
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
int vtkObject::HasObserver |
( |
const char * |
event, |
|
|
vtkCommand * |
|
|
) |
| |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveObserver |
( |
unsigned long |
tag | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveObservers |
( |
unsigned long |
event | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveObservers |
( |
const char * |
event | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
void vtkObject::RemoveAllObservers |
( |
| ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
int vtkObject::HasObserver |
( |
unsigned long |
event | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
int vtkObject::HasObserver |
( |
const char * |
event | ) |
|
Allow people to add/remove/invoke observers (callbacks) to any VTK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and a vtkCommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. When events are invoked, the observers are called in the order they were added. If a priority value is specified, then the higher priority commands are called first. A command may set an abort flag to stop processing of the event. (See vtkCommand.h for more information.)
template<class U , class T >
unsigned long vtkObject::AddObserver |
( |
unsigned long |
event, |
|
|
U |
observer, |
|
|
void(T::*)() |
callback, |
|
|
float |
priority = 0.0f |
|
) |
| |
|
inline |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. The callback function can be one of these two types:
If the callback is a member of a vtkObjectBase-derived object, then the callback will automatically be disabled if the object destructs (but the observer will not automatically be removed). If the callback is a member of any other type of object, then the observer must be removed before the object destructs or else its dead pointer will be used the next time the event occurs. Typical usage of these functions is as follows:
SomeClassOfMine* observer = SomeClassOfMine::New();\n
to_observe->AddObserver(event, observer,
\&SomeClassOfMine::SomeMethod);
Note that this does not affect the reference count of a vtkObjectBase-derived observer
, which can be safely deleted with the observer still in place. For non-vtkObjectBase observers, the observer should never be deleted before it is removed. Return value is a tag that can be used to remove the observer.
Definition at line 167 of file vtkObject.h.
template<class U , class T >
unsigned long vtkObject::AddObserver |
( |
unsigned long |
event, |
|
|
U |
observer, |
|
|
void(T::*)(vtkObject *, unsigned long, void *) |
callback, |
|
|
float |
priority = 0.0f |
|
) |
| |
|
inline |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. The callback function can be one of these two types:
If the callback is a member of a vtkObjectBase-derived object, then the callback will automatically be disabled if the object destructs (but the observer will not automatically be removed). If the callback is a member of any other type of object, then the observer must be removed before the object destructs or else its dead pointer will be used the next time the event occurs. Typical usage of these functions is as follows:
SomeClassOfMine* observer = SomeClassOfMine::New();\n
to_observe->AddObserver(event, observer,
\&SomeClassOfMine::SomeMethod);
Note that this does not affect the reference count of a vtkObjectBase-derived observer
, which can be safely deleted with the observer still in place. For non-vtkObjectBase observers, the observer should never be deleted before it is removed. Return value is a tag that can be used to remove the observer.
Definition at line 177 of file vtkObject.h.
int vtkObject::InvokeEvent |
( |
unsigned long |
event, |
|
|
void * |
callData |
|
) |
| |
This method invokes an event and return whether the event was aborted or not. If the event was aborted, the return value is 1, otherwise it is 0.
int vtkObject::InvokeEvent |
( |
const char * |
event, |
|
|
void * |
callData |
|
) |
| |
This method invokes an event and return whether the event was aborted or not. If the event was aborted, the return value is 1, otherwise it is 0.
int vtkObject::InvokeEvent |
( |
unsigned long |
event | ) |
|
|
inline |
This method invokes an event and return whether the event was aborted or not. If the event was aborted, the return value is 1, otherwise it is 0.
Definition at line 198 of file vtkObject.h.
int vtkObject::InvokeEvent |
( |
const char * |
event | ) |
|
|
inline |
This method invokes an event and return whether the event was aborted or not. If the event was aborted, the return value is 1, otherwise it is 0.
Definition at line 199 of file vtkObject.h.
virtual void vtkObject::RegisterInternal |
( |
vtkObjectBase * |
, |
|
|
int |
check |
|
) |
| |
|
protectedvirtual |
virtual void vtkObject::UnRegisterInternal |
( |
vtkObjectBase * |
, |
|
|
int |
check |
|
) |
| |
|
protectedvirtual |
These methods allow a command to exclusively grab all events. (This method is typically used by widgets to grab events once an event sequence begins.) These methods are provided in support of the public methods found in the class vtkInteractorObserver. Note that these methods are designed to support vtkInteractorObservers since they use two separate vtkCommands to watch for mouse and keypress events.
void vtkObject::InternalReleaseFocus |
( |
| ) |
|
|
protected |
These methods allow a command to exclusively grab all events. (This method is typically used by widgets to grab events once an event sequence begins.) These methods are provided in support of the public methods found in the class vtkInteractorObserver. Note that these methods are designed to support vtkInteractorObservers since they use two separate vtkCommands to watch for mouse and keypress events.
friend class vtkObjectCommandInternal |
|
friend |
Called by templated variants of AddObserver.
Definition at line 339 of file vtkObject.h.
unsigned char vtkObject::Debug |
|
protected |
vtkSubjectHelper* vtkObject::SubjectHelper |
|
protected |
The documentation for this class was generated from the following file: