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
- Tests:
- vtkObjectBase (Tests)
Definition at line 57 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, vtkHyperTree, vtkFunctionParser, vtkOrderedTriangulator, vtkObjectFactory, vtkCriticalSection, vtkGarbageCollector, vtkMultiThreader, vtkInformation, vtkTableToGraph, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkMutexLock, vtkTimerLog, vtkFastNumericConversion, vtkMath, vtkDistributedGraphHelper, vtkPBGLRMATGraphSource, vtkTypeTemplate< vtkSparseArray< T >, vtkTypedArray< T > >, vtkTypeTemplate< vtkTypedArray< T >, vtkArray >, vtkTypeTemplate< vtkDenseArray< T >, vtkTypedArray< T > >, vtkInstantiator, vtkNamedColors, vtkSpanTreeLayoutStrategy, vtkDataRepresentation, vtkSimpleCellTessellator, vtkDotProductSimilarity, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkArray, vtkLookupTable, vtkSelectionNode, vtkBoostSplitTableField, vtkIncrementalOctreeNode, vtkParallelCoordinatesHistogramRepresentation, vtkConvexHull2D, vtkPBGLCollectGraph, vtkCompositeDataPipeline, vtkKCoreLayout, vtkGeoView, vtkQtTreeView, vtkAbstractArray, vtkGraphAnnotationLayersFilter, vtkMergeGraphs, vtkRenderView, vtkQtTableRepresentation, vtkQuaternionInterpolator, vtkView, vtkGraphHierarchicalBundleEdges, vtkObject, vtkScalarsToColors, vtkSpline, vtkAlgorithm, vtkExecutionScheduler, vtkTransform, vtkCirclePackLayout, vtkQtTableView, vtkGraphLayoutView, vtkPriorityQueue, vtkPolynomialSolversUnivariate, vtkBoostPrimMinimumSpanningTree, vtkTableToSparseArray, vtkConeLayoutStrategy, vtkFieldData, vtkGenericCellTessellator, vtkBoostBiconnectedComponents, vtkCirclePackFrontChainLayoutStrategy, vtkRenderedTreeAreaRepresentation, vtkEdgeListIterator, vtkPerspectiveTransform, vtkKCoreDecomposition, vtkFast2DLayoutStrategy, vtkTreeLayoutStrategy, vtkStreamGraph, vtkConstrained2DLayoutStrategy, vtkSimple3DCirclesStrategy, vtkTreeMapLayout, vtkHierarchicalGraphView, vtkCastToConcrete, vtkGraphAlgorithm, vtkThreadedStreamingPipeline, vtkPBGLDistributedGraphHelper, vtkColorSeries, vtkDataArray, vtkVariantArray, vtkGraphInternals, vtkArrayDataAlgorithm, vtkHeap, vtkTableToArray, vtkSimple2DLayoutStrategy, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkQtListView, vtkCollection, vtkCellTypes, vtkDirectedGraphAlgorithm, vtkStreamingDemandDrivenPipeline, vtkMatrix4x4, vtkBoostDividedEdgeBundling, vtkExtractSelectedGraph, vtkGenerateIndexArray, vtkPBGLBreadthFirstSearch, vtkRenderedSurfaceRepresentation, vtkOutEdgeIterator, vtkComputingResources, vtkDataSetAlgorithm, vtkThinPlateSplineTransform, vtkBoostBreadthFirstSearch, vtkBoostBreadthFirstSearchTree, vtkStringToCategory, vtkTransferAttributes, vtkCirclePackLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkTreeRingView, vtkStructuredData, vtkPassInputTypeAlgorithm, vtkSimpleScalarTree, vtkAbstractTransform, vtkSparseArrayToTable, vtkAttributeClustering2DLayoutStrategy, vtkClustering2DLayoutStrategy, vtkGraphLayout, vtkTreeMapLayoutStrategy, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkHierarchicalGraphPipeline, vtkAnimationCue, vtkCallbackCommand, vtkExecutiveCollection, vtkUndirectedGraphAlgorithm, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkExpandSelectedGraph, vtkPBGLShortestPaths, vtkConvertSelectionDomain, vtkRenderViewBase, vtkQtAnnotationView, vtkArrayIterator, vtkAMRInformation, vtkInEdgeIterator, vtkExecutive, vtkTableAlgorithm, vtkTreeAlgorithm, vtkMergeColumns, vtkMergeTables, vtkTreeFieldAggregator, vtkSquarifyLayoutStrategy, vtkPBGLMinimumSpanningTree, vtkViewTheme, vtkQtRecordView, vtkMinimalStandardRandomSequence, vtkDemandDrivenPipeline, vtkMatrix3x3, vtkTransform2D, vtkBoostKruskalMinimumSpanningTree, vtkArrayNorm, vtkMutableGraphHelper, vtkRandomGraphSource, vtkTreeLevelsFilter, vtkAreaLayoutStrategy, vtkStackedTreeLayoutStrategy, vtkOutputWindow, vtkXMLFileOutputWindow, vtkScalarTree, vtkSelectionAlgorithm, vtkBoostConnectedComponents, vtkBoostLogWeighting, vtkVertexDegree, vtkAreaLayout, vtkPBGLConnectedComponents, vtkTreeMapView, vtkDebugLeaks, vtkDoubleArray, vtkFloatArray, vtkIdTypeArray, vtkIntArray, vtkStringArray, vtkUnsignedCharArray, vtkGenericCellIterator, vtkHyperTreeGridAlgorithm, vtkSimpleImageToImageFilter, vtkAdjacencyMatrixToEdgeTable, vtkRemoveHiddenData, vtkCosmicTreeLayoutStrategy, vtkGeoEdgeStrategy, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkPoints, vtkKdNode, vtkPolyDataAlgorithm, vtkSphericalTransform, vtkTableToTreeFilter, vtkTreeDifferenceFilter, vtkAssignCoordinates, vtkCirclePackToPolyData, vtkForceDirectedLayoutStrategy, vtkGraphLayoutStrategy, vtkSliceAndDiceLayoutStrategy, vtkContextView, vtkIdList, vtkUnicodeStringArray, vtkAnimationScene, vtkDataObjectAlgorithm, vtkPiecewiseFunctionAlgorithm, vtkPointSetAlgorithm, vtkRectilinearGridAlgorithm, vtkRungeKutta45, vtkLandmarkTransform, vtkThresholdTable, vtkIcicleView, vtkViewUpdater, vtkCharArray, vtkLongArray, vtkShortArray, vtkSignedCharArray, vtkUnsignedIntArray, vtkUnsignedLongArray, vtkUnsignedShortArray, vtkEdgeTable, vtkAnnotationLayersAlgorithm, vtkUniformGridPartitioner, vtkNetworkHierarchy, vtkArcParallelEdgeStrategy, vtkBoxLayoutStrategy, vtkRandomLayoutStrategy, vtkTreeRingToPolyData, vtkRenderedRepresentation, vtkInformationVector, vtkSortDataArray, vtkStructuredGridAlgorithm, vtkGeneralTransform, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkDataObjectToTable, vtkExtractSelectedTree, vtkGroupLeafVertices, vtkPruneTreeFilter, vtkStringToNumeric, vtkEdgeLayout, vtkIncrementalForceLayout, vtkPerturbCoincidentVertices, vtkOldStyleCallbackCommand, vtkPoints2D, vtkCompositeDataIterator, vtkGenericAttributeCollection, vtkHyperOctreeAlgorithm, vtkUnstructuredGridAlgorithm, vtkRungeKutta4, vtkCylindricalTransform, vtkMatrixToHomogeneousTransform, vtkMatrixToLinearTransform, vtkBoostRandomSparseArraySource, vtkArrayToTable, vtkEdgeCenters, vtkPassThroughLayoutStrategy, vtk__Int64Array, vtkLongLongArray, vtkUnsigned__Int64Array, vtkUnsignedLongLongArray, vtkGraphEdge, vtkUniformGridAMRDataIterator, vtkAlgorithmOutput, vtkImageAlgorithm, vtkImageToStructuredGrid, vtkImageToStructuredPoints, vtkInitialValueProblemSolver, vtkAddMembershipArray, vtkRemoveIsolatedVertices, vtkTransposeMatrix, vtkTreeMapToPolyData, vtkDynamicLoader, vtkWin32OutputWindow, vtkMultiTimeStepAlgorithm, vtkAmoebaMinimizer, vtkDirectory, vtkCircularLayoutStrategy, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkInformationIterator, vtkInformationKey, vtkRandomSequence, vtkTimePointUtility, vtkVersion, vtkTrivialProducer, vtkContourValues, vtkAssignCoordinatesLayoutStrategy, vtkPassThroughEdgeStrategy, vtkBitArray, vtkCollectionIterator, vtkWindow, vtkDataObjectTypes, vtkExtentTranslator, vtkPointsProjectedHull, vtkExtentSplitter, vtkOverlappingAMRAlgorithm, vtkThreadedImageAlgorithm, vtkIdentityTransform, vtkBoostExtractLargestComponent, vtkInformationVariantKey, vtkInformationVariantVectorKey, vtkOverrideInformation, vtkOverrideInformationCollection, vtkInformationQuadratureSchemeDefinitionVectorKey, vtkPlaneCollection, vtkTensor, vtkUniformGridAMRAlgorithm, vtkEdgeLayoutStrategy, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, vtkFunctionSet, vtkRungeKutta2, vtkThreadMessager, vtkHomogeneousTransform, vtkTransformCollection, vtkGeoMath, vtkTreeOrbitLayoutStrategy, vtkByteSwap, vtkDataArraySelection, vtkEventForwarderCommand, vtkFileOutputWindow, vtkInformationDoubleKey, vtkInformationDoubleVectorKey, vtkInformationObjectBaseVectorKey, vtkInformationStringKey, vtkInformationStringVectorKey, vtkObjectFactoryCollection, vtkWin32ProcessOutputWindow, vtkCachedStreamingDemandDrivenPipeline, vtkInformationExecutivePortKey, vtkInformationExecutivePortVectorKey, vtkNonOverlappingAMRAlgorithm, vtkQtView, vtkDataArrayCollectionIterator, vtkInformationDataObjectKey, vtkInformationInformationVectorKey, vtkInformationObjectBaseKey, vtkVoidArray, vtkImplicitFunctionCollection, vtkCompositeDataSetAlgorithm, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkBoxMuellerRandomSequence, vtkDataArrayCollection, vtkIdListCollection, vtkReferenceCount, vtkDataSetCollection, vtkExtentRCBPartitioner, vtkTableExtentTranslator, vtkSocketCollection, vtkLinearTransform, vtkWarpTransform, vtkPipelineGraphSource, vtkThresholdGraph, vtkTestNewVar, vtkGaussianRandomSequence, vtkInformationIdTypeKey, vtkInformationInformationKey, vtkInformationIntegerKey, vtkInformationIntegerPointerKey, vtkInformationIntegerVectorKey, vtkInformationKeyVectorKey, vtkInformationRequestKey, vtkInformationUnsignedLongKey, vtkImageInPlaceFilter, vtkOnePieceExtentTranslator, vtkPiecewiseFunctionShiftScale, vtkBitArrayIterator, vtkServerSocket, vtkSocket, and vtkClientSocket.
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, vtkOrderedTriangulator, vtkObjectFactory, vtkCriticalSection, vtkObject, vtkGarbageCollector, vtkMultiThreader, vtkInformation, vtkTableToGraph, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkMutexLock, vtkTimerLog, vtkSparseArray< T >, vtkFastNumericConversion, vtkMath, vtkPBGLDistributedGraphHelper, vtkDistributedGraphHelper, vtkNamedColors, vtkPBGLRMATGraphSource, vtkInstantiator, vtkTypedArray< T >, vtkSpanTreeLayoutStrategy, vtkDataRepresentation, vtkSimpleCellTessellator, vtkDotProductSimilarity, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkArray, vtkLookupTable, vtkSelectionNode, vtkBoostSplitTableField, vtkIncrementalOctreeNode, vtkParallelCoordinatesHistogramRepresentation, vtkConvexHull2D, vtkPBGLCollectGraph, vtkCompositeDataPipeline, vtkKCoreLayout, vtkGeoView, vtkQtTreeView, vtkAbstractArray, vtkGraphAnnotationLayersFilter, vtkMergeGraphs, vtkRenderView, vtkQtTableRepresentation, vtkQuaternionInterpolator, vtkView, vtkGraphHierarchicalBundleEdges, vtkDenseArray< T >, vtkScalarsToColors, vtkSpline, vtkAlgorithm, vtkExecutionScheduler, vtkTransform, vtkCirclePackLayout, vtkQtTableView, vtkGraphLayoutView, vtkPriorityQueue, vtkPolynomialSolversUnivariate, vtkBoostPrimMinimumSpanningTree, vtkTableToSparseArray, vtkConeLayoutStrategy, vtkFieldData, vtkGenericCellTessellator, vtkBoostBiconnectedComponents, vtkCirclePackFrontChainLayoutStrategy, vtkRenderedTreeAreaRepresentation, vtkEdgeListIterator, vtkPerspectiveTransform, vtkKCoreDecomposition, vtkFast2DLayoutStrategy, vtkTreeLayoutStrategy, vtkStreamGraph, vtkConstrained2DLayoutStrategy, vtkSimple3DCirclesStrategy, vtkTreeMapLayout, vtkHierarchicalGraphView, vtkCastToConcrete, vtkGraphAlgorithm, vtkThreadedStreamingPipeline, vtkParallelCoordinatesView, vtkColorSeries, vtkDataArray, vtkVariantArray, vtkArrayDataAlgorithm, vtkHeap, vtkTableToArray, vtkSimple2DLayoutStrategy, vtkGeoView2D, vtkTreeAreaView, vtkQtListView, vtkCollection, vtkCellTypes, vtkDirectedGraphAlgorithm, vtkStreamingDemandDrivenPipeline, vtkMatrix4x4, vtkBoostDividedEdgeBundling, vtkExtractSelectedGraph, vtkGenerateIndexArray, vtkPBGLBreadthFirstSearch, vtkRenderedSurfaceRepresentation, vtkOutEdgeIterator, vtkComputingResources, vtkDataSetAlgorithm, vtkThinPlateSplineTransform, vtkBoostBreadthFirstSearch, vtkBoostBreadthFirstSearchTree, vtkStringToCategory, vtkTransferAttributes, vtkCirclePackLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkTreeRingView, vtkPassInputTypeAlgorithm, vtkSimpleScalarTree, vtkAbstractTransform, vtkSparseArrayToTable, vtkAttributeClustering2DLayoutStrategy, vtkClustering2DLayoutStrategy, vtkGraphLayout, vtkTreeMapLayoutStrategy, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkHierarchicalGraphPipeline, vtkAnimationCue, vtkAMRInformation, vtkExecutiveCollection, vtkUndirectedGraphAlgorithm, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkExpandSelectedGraph, vtkNetworkHierarchy, vtkPBGLShortestPaths, vtkConvertSelectionDomain, vtkRenderViewBase, vtkQtAnnotationView, vtkArrayIterator, vtkInEdgeIterator, vtkExecutive, vtkTableAlgorithm, vtkTreeAlgorithm, vtkMergeColumns, vtkMergeTables, vtkTreeFieldAggregator, vtkSquarifyLayoutStrategy, vtkPBGLMinimumSpanningTree, vtkViewTheme, vtkQtRecordView, vtkMinimalStandardRandomSequence, vtkOutputWindow, vtkDemandDrivenPipeline, vtkMatrix3x3, vtkTransform2D, vtkBoostKruskalMinimumSpanningTree, vtkArrayNorm, vtkMutableGraphHelper, vtkRandomGraphSource, vtkTreeLevelsFilter, vtkAreaLayoutStrategy, vtkStackedTreeLayoutStrategy, vtkScalarTree, vtkSelectionAlgorithm, vtkBoostConnectedComponents, vtkBoostLogWeighting, vtkVertexDegree, vtkAreaLayout, vtkPBGLConnectedComponents, vtkTreeMapView, vtkDoubleArray, vtkFloatArray, vtkIdTypeArray, vtkIntArray, vtkStringArray, vtkUnsignedCharArray, vtkGenericCellIterator, vtkHyperTreeGridAlgorithm, vtkSimpleImageToImageFilter, vtkAdjacencyMatrixToEdgeTable, vtkRemoveHiddenData, vtkGeoEdgeStrategy, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkPoints, vtkKdNode, vtkPolyDataAlgorithm, vtkDirectory, vtkSphericalTransform, vtkTableToTreeFilter, vtkTreeDifferenceFilter, vtkAssignCoordinates, vtkCirclePackToPolyData, vtkForceDirectedLayoutStrategy, vtkGraphLayoutStrategy, vtkSliceAndDiceLayoutStrategy, vtkIdList, vtkUnicodeStringArray, vtkAnimationScene, vtkDataObjectAlgorithm, vtkPiecewiseFunctionAlgorithm, vtkPointSetAlgorithm, vtkRectilinearGridAlgorithm, vtkRungeKutta45, vtkLandmarkTransform, vtkThresholdTable, vtkCosmicTreeLayoutStrategy, vtkIcicleView, vtkViewUpdater, vtkCharArray, vtkLongArray, vtkShortArray, vtkSignedCharArray, vtkSortDataArray, vtkUnsignedIntArray, vtkUnsignedLongArray, vtkUnsignedShortArray, vtkEdgeTable, vtkAnnotationLayersAlgorithm, vtkUniformGridPartitioner, vtkCollapseVerticesByArray, vtkArcParallelEdgeStrategy, vtkBoxLayoutStrategy, vtkRandomLayoutStrategy, vtkTreeRingToPolyData, vtkContextView, vtkRenderedRepresentation, vtkArrayIteratorTemplate< T >, vtkInformationVector, vtkStructuredGridAlgorithm, vtkGeneralTransform, vtkBoostBetweennessClustering, vtkDataObjectToTable, vtkExtractSelectedTree, vtkGroupLeafVertices, vtkPruneTreeFilter, vtkStringToNumeric, vtkEdgeLayout, vtkIncrementalForceLayout, vtkPerturbCoincidentVertices, vtkPoints2D, vtkCompositeDataIterator, vtkGenericAttributeCollection, vtkHyperOctreeAlgorithm, vtkUnstructuredGridAlgorithm, vtkRungeKutta4, vtkCylindricalTransform, vtkMatrixToHomogeneousTransform, vtkMatrixToLinearTransform, vtkBoostRandomSparseArraySource, vtkArrayToTable, vtkEdgeCenters, vtkPassThroughLayoutStrategy, vtk__Int64Array, vtkLongLongArray, vtkUnsigned__Int64Array, vtkUnsignedLongLongArray, vtkGraphEdge, vtkUniformGridAMRDataIterator, vtkAlgorithmOutput, vtkImageAlgorithm, vtkImageToStructuredGrid, vtkImageToStructuredPoints, vtkInitialValueProblemSolver, vtkAddMembershipArray, vtkRemoveIsolatedVertices, vtkTransposeMatrix, vtkTreeMapToPolyData, vtkWin32OutputWindow, vtkPointsProjectedHull, vtkMultiTimeStepAlgorithm, vtkAmoebaMinimizer, vtkCircularLayoutStrategy, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkInformationIterator, vtkInformationKey, vtkRandomSequence, vtkTimePointUtility, vtkTrivialProducer, vtkContourValues, vtkAssignCoordinatesLayoutStrategy, vtkPassThroughEdgeStrategy, vtkBitArray, vtkCollectionIterator, vtkFileOutputWindow, vtkOverrideInformation, vtkWindow, vtkDataObjectTypes, vtkExtentTranslator, vtkExtentSplitter, vtkOverlappingAMRAlgorithm, vtkThreadedImageAlgorithm, vtkIdentityTransform, vtkBoostExtractLargestComponent, vtkInformationVariantKey, vtkInformationVariantVectorKey, vtkInformationQuadratureSchemeDefinitionVectorKey, vtkTensor, vtkUniformGridAMRAlgorithm, vtkEdgeLayoutStrategy, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, vtkWin32ProcessOutputWindow, vtkFunctionSet, vtkThreadMessager, vtkHomogeneousTransform, vtkGeoMath, vtkTreeOrbitLayoutStrategy, vtkDataArraySelection, vtkDataArrayTemplate< T >, vtkInformationDoubleKey, vtkInformationDoubleVectorKey, vtkInformationObjectBaseVectorKey, vtkInformationStringKey, vtkInformationStringVectorKey, vtkCachedStreamingDemandDrivenPipeline, vtkInformationExecutivePortKey, vtkInformationExecutivePortVectorKey, vtkNonOverlappingAMRAlgorithm, vtkQtView, vtkDataArrayCollectionIterator, vtkInformationDataObjectKey, vtkInformationInformationVectorKey, vtkInformationObjectBaseKey, vtkVoidArray, vtkCompositeDataSetAlgorithm, vtkHierarchicalBoxDataSetAlgorithm, vtkMultiBlockDataSetAlgorithm, vtkThresholdGraph, vtkBoxMuellerRandomSequence, vtkReferenceCount, vtkExtentRCBPartitioner, vtkTableExtentTranslator, vtkSocketCollection, vtkLinearTransform, vtkWarpTransform, vtkPipelineGraphSource, vtkTestNewVar, vtkGaussianRandomSequence, vtkInformationIdTypeKey, vtkInformationInformationKey, vtkInformationIntegerKey, vtkInformationIntegerPointerKey, vtkInformationIntegerVectorKey, vtkInformationKeyVectorKey, vtkInformationRequestKey, vtkInformationUnsignedLongKey, vtkImageInPlaceFilter, vtkOnePieceExtentTranslator, vtkPiecewiseFunctionShiftScale, vtkBitArrayIterator, vtkServerSocket, vtkSocket, and vtkClientSocket.