abstract base class for most VTK objects
vtkObjectBase is the base class for all reference counted classes in the VTK. These classes include vtkCommand classes, vtkInformationKey classes, and vtkObject classes.
vtkObjectBase 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.
Constructor and destructor of the subclasses of vtkObjectBase should be protected, so that only New() and UnRegister() actually call them. Debug leaks can be used to see if there are any objects left with nonzero reference count.
- Warning
- Note: Objects of subclasses of vtkObjectBase should always be created with the New() method and deleted with the Delete() method. They cannot be allocated off the stack (i.e., automatic objects) because the constructor is a protected method.
- See Also
- vtkObject vtkCommand vtkInformationKey
- Examples:
- vtkObjectBase (Examples)
- Tests:
- vtkObjectBase (Tests)
Definition at line 59 of file vtkObjectBase.h.
virtual int vtkObjectBase::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 in vtkCommand, 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, vtkObject, 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, vtkCallbackCommand, 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, vtkOldStyleCallbackCommand, 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, vtkInformationKey, vtkRandomSequence, vtkTimePointUtility, vtkDataObjectCollection, vtkBlockItem, vtkBrush, vtkChartPie, vtkColorLegend, vtkColorSeries, vtkContextActor, vtkContextMapper2D, vtkImageItem, vtkBitArray, vtkCollectionIterator, vtkExtentSplitter, vtkExtentTranslator, vtkIdentityTransform, vtkLogLookupTable, vtkWindow, vtkDataObjectTypes, vtkImageAlgorithm, vtkSphere, vtkChartHistogram2D, vtkInformationQuadratureSchemeDefinitionVectorKey, vtkOverrideInformation, vtkOverrideInformationCollection, vtkPlaneCollection, vtkQuadric, vtkTensor, vtkXMLDataElement, vtkPlotHistogram2D, vtkFunctionSet, vtkHomogeneousTransform, vtkRungeKutta2, vtkThreadMessager, vtkTransformCollection, vtkHyperOctreePointsGrabber, vtkMapper2D, vtkTrivialProducer, vtkContextItem, vtkOpenGLContextBufferId, vtkByteSwap, vtkDataArraySelection, vtkEventForwarderCommand, vtkFileOutputWindow, vtkInformationObjectBaseVectorKey, vtkObjectFactoryCollection, vtkWin32ProcessOutputWindow, vtkImageInPlaceFilter, vtkContextBufferId, vtkContextClip, vtkDataArrayCollectionIterator, vtkImplicitFunctionCollection, vtkInformationDataObjectKey, vtkInformationInformationVectorKey, vtkInformationObjectBaseKey, vtkStructuredExtent, vtkVoidArray, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkTemporalDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkDataArrayCollection, vtkIdListCollection, vtkLinearTransform, vtkReferenceCount, vtkSocketCollection, vtkTableExtentTranslator, vtkWarpTransform, vtkDataSetCollection, vtkStructuredPointsCollection, vtkPlotLine, vtkGaussianRandomSequence, vtkInformationDoubleKey, vtkInformationDoubleVectorKey, vtkInformationIdTypeKey, vtkInformationInformationKey, vtkInformationIntegerKey, vtkInformationIntegerPointerKey, vtkInformationIntegerVectorKey, vtkInformationKeyVectorKey, vtkInformationRequestKey, vtkInformationStringKey, vtkInformationStringVectorKey, vtkInformationUnsignedLongKey, vtkOnePieceExtentTranslator, vtkColorTransferFunctionItem, vtkBitArrayIterator, vtkProcessStatistics, vtkServerSocket, vtkSocket, vtkLookupTableItem, vtkCompositeTransferFunctionItem, vtkPiecewiseFunctionItem, vtkClientSocket, and vtkPythonCommand.
virtual void vtkObjectBase::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 in vtkConditionVariable, vtkFunctionParser, vtkObjectFactory, vtkOrderedTriangulator, vtkCriticalSection, vtkObject, 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, vtkInformationKey, vtkRandomSequence, vtkTimePointUtility, vtkBlockItem, vtkBrush, vtkChartPie, vtkColorLegend, vtkColorSeries, vtkContextMapper2D, vtkImageItem, vtkBitArray, vtkCollectionIterator, vtkExtentSplitter, vtkExtentTranslator, vtkFileOutputWindow, vtkIdentityTransform, vtkLogLookupTable, vtkOverrideInformation, vtkWindow, vtkDataObjectTypes, vtkImageAlgorithm, vtkSphere, vtkChartHistogram2D, vtkInformationQuadratureSchemeDefinitionVectorKey, vtkQuadric, vtkTensor, vtkXMLDataElement, vtkContextActor, vtkPlotHistogram2D, vtkFunctionSet, vtkHomogeneousTransform, vtkThreadMessager, vtkWin32ProcessOutputWindow, vtkHyperOctreePointsGrabber, vtkMapper2D, vtkTrivialProducer, vtkContextItem, vtkOpenGLContextBufferId, vtkDataArraySelection, vtkDataArrayTemplate< T >, vtkInformationObjectBaseVectorKey, vtkImageInPlaceFilter, vtkContextBufferId, vtkContextClip, vtkDataArrayCollectionIterator, vtkInformationDataObjectKey, vtkInformationInformationVectorKey, vtkInformationObjectBaseKey, vtkStructuredExtent, vtkVoidArray, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkTemporalDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkLinearTransform, vtkReferenceCount, vtkSocketCollection, vtkTableExtentTranslator, vtkWarpTransform, vtkStructuredPointsCollection, vtkPlotLine, vtkGaussianRandomSequence, vtkInformationDoubleKey, vtkInformationDoubleVectorKey, vtkInformationIdTypeKey, vtkInformationInformationKey, vtkInformationIntegerKey, vtkInformationIntegerPointerKey, vtkInformationIntegerVectorKey, vtkInformationKeyVectorKey, vtkInformationRequestKey, vtkInformationStringKey, vtkInformationStringVectorKey, vtkInformationUnsignedLongKey, vtkOnePieceExtentTranslator, vtkColorTransferFunctionItem, vtkBitArrayIterator, vtkServerSocket, vtkSocket, vtkLookupTableItem, vtkCompositeTransferFunctionItem, vtkPiecewiseFunctionItem, and vtkClientSocket.