#include <vtkDataObject.h>
Inheritance diagram for vtkDataObject:
[NOHEADER] | |
void | GlobalReleaseDataFlagOn () |
void | GlobalReleaseDataFlagOff () |
void | SetGlobalReleaseDataFlag (int val) |
int | GetGlobalReleaseDataFlag () |
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkDataObject * | MakeObject () |
unsigned long int | GetMTime () |
virtual void | Initialize () |
void | ReleaseData () |
int | ShouldIReleaseData () |
void | UnRegister (vtkObject *o) |
virtual int | GetNetReferenceCount () |
virtual void | Update () |
virtual void | UpdateInformation () |
virtual void | PropagateUpdateExtent () |
virtual void | TriggerAsynchronousUpdate () |
virtual void | UpdateData () |
virtual unsigned long | GetEstimatedMemorySize () |
virtual int | GetDataObjectType () |
unsigned long | GetUpdateTime () |
void | SetUpdateExtentToWholeExtent () |
void | SetPipelineMTime (unsigned long time) |
virtual unsigned long | GetPipelineMTime () |
virtual unsigned long | GetActualMemorySize () |
void | CopyInformation (vtkDataObject *data) |
void | DataHasBeenGenerated () |
virtual void | PrepareForNewData () |
virtual vtkSource * | GetSource () |
void | SetSource (vtkSource *s) |
virtual int | GetDataReleased () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
virtual void | ReleaseDataFlagOn () |
virtual void | ReleaseDataFlagOff () |
virtual void | SetFieldData (vtkFieldData *) |
virtual vtkFieldData * | GetFieldData () |
virtual void | SetUpdateExtent (int vtkNotUsed(piece), int vtkNotUsed(numPieces), int vtkNotUsed(ghostLevel)) |
void | SetUpdateExtent (int piece, int numPieces) |
virtual void | SetUpdateExtent (int x1, int x2, int y1, int y2, int z1, int z2) |
virtual void | SetUpdateExtent (int ext[6]) |
virtual int * | GetUpdateExtent () |
virtual void | GetUpdateExtent (int &, int &, int &, int &, int &, int &) |
virtual void | GetUpdateExtent (int[6]) |
virtual void | CopyTypeSpecificInformation (vtkDataObject *data) |
void | SetUpdatePiece (int piece) |
void | SetUpdateNumberOfPieces (int num) |
virtual int | GetUpdatePiece () |
virtual int | GetUpdateNumberOfPieces () |
void | SetUpdateGhostLevel (int level) |
virtual int | GetUpdateGhostLevel () |
void | SetRequestExactExtent (int v) |
virtual int | GetRequestExactExtent () |
virtual void | RequestExactExtentOn () |
virtual void | RequestExactExtentOff () |
virtual void | SetWholeExtent (int, int, int, int, int, int) |
virtual void | SetWholeExtent (int[6]) |
virtual int * | GetWholeExtent () |
virtual void | GetWholeExtent (int &, int &, int &, int &, int &, int &) |
virtual void | GetWholeExtent (int[6]) |
virtual void | SetMaximumNumberOfPieces (int) |
virtual int | GetMaximumNumberOfPieces () |
virtual void | ShallowCopy (vtkDataObject *src) |
virtual void | DeepCopy (vtkDataObject *src) |
virtual void | SetLocality (float) |
virtual float | GetLocality () |
void | SetExtentTranslator (vtkExtentTranslator *translator) |
vtkExtentTranslator * | GetExtentTranslator () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkProcessObject *c) |
void | RemoveConsumer (vtkProcessObject *c) |
vtkProcessObject * | GetConsumer (int i) |
int | IsConsumer (vtkProcessObject *c) |
Static Public Methods | |
vtkDataObject * | New () |
int | IsTypeOf (const char *type) |
vtkDataObject * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkDataObject () | |
~vtkDataObject () | |
int | UpdateExtentIsOutsideOfTheExtent () |
int | UpdateExtentIsEmpty () |
virtual int | VerifyUpdateExtent () |
virtual int | GetExtentType () |
virtual void | Crop () |
Protected Attributes | |
vtkFieldData * | FieldData |
vtkSource * | Source |
int | DataReleased |
int | NumberOfConsumers |
vtkProcessObject ** | Consumers |
int | WholeExtent [6] |
int | Extent [6] |
int | UpdateExtent [6] |
unsigned char | UpdateExtentInitialized |
vtkExtentTranslator * | ExtentTranslator |
int | NumberOfPieces |
int | Piece |
int | MaximumNumberOfPieces |
int | UpdateNumberOfPieces |
int | UpdatePiece |
int | RequestExactExtent |
int | GhostLevel |
int | UpdateGhostLevel |
int | ReleaseDataFlag |
vtkTimeStamp | UpdateTime |
unsigned long | PipelineMTime |
int | LastUpdateExtentWasOutsideOfTheExtent |
float | Locality |
vtkDataObject is an general representation of visualization data. It serves to encapsulate instance variables and methods for visualization network execution, as well as representing data consisting of a field (i.e., just an unstructured pile of data). This is to be compared with a vtkDataSet, which is data with geometric and/or topological structure.
vtkDataObjects are used to represent arbitrary repositories of data via the vtkFieldData instance variable. These data must be eventually mapped into a concrete subclass of vtkDataSet before they can actually be displayed.
Definition at line 75 of file vtkDataObject.h.
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. Referenced by MakeObject().
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. |
|
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 vtkObject. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. |
|
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 vtkObject. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. |
|
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 vtkObject. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkUnstructuredGrid, vtkPiecewiseFunction, vtkImageCanvasSource2D, and vtkImageStencilData. |
|
Create concrete instance of this data object. Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, and vtkImageStencilData. Definition at line 84 of file vtkDataObject.h. |
|
Set/Get the source object creating this data object. |
|
Set/Get the source object creating this data object. |
|
Data objects are composite objects and need to check each part for MTime. The information object also needs to be considered. Reimplemented from vtkObject. Reimplemented in vtkDataSet, vtkPointSet, and vtkPiecewiseFunction. |
|
Reimplemented in vtkDataSet, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkUnstructuredGrid, vtkPiecewiseFunction, and vtkImageStencilData. |
|
Release data back to system to conserve memory resource. Used during visualization network execution. Releasing this data does not make down-stream data invalid, so it does not modify the MTime of this data object. |
|
Return flag indicating whether data should be released after use by a filter. |
|
Get the flag indicating the data has been released. |
|
Turn on/off flag to control whether this object's data is released after being used by a filter. |
|
Turn on/off flag to control whether this object's data is released after being used by a filter. |
|
Turn on/off flag to control whether this object's data is released after being used by a filter. |
|
Turn on/off flag to control whether this object's data is released after being used by a filter. |
|
Turn on/off flag to control whether every object releases its data after being used by a filter. |
|
Definition at line 127 of file vtkDataObject.h. |
|
Definition at line 128 of file vtkDataObject.h. |
|
|
|
Assign or retrieve field data to this data object. |
|
Assign or retrieve field data to this data object. |
|
Decrease the reference count (release by another object). This has the same effect as invoking Delete() (i.e., it reduces the reference count by 1). Reimplemented from vtkObject. Reimplemented in vtkPointSet. |
|
Get the net reference count. That is the count minus any self created loops. This is used in the Source/Data registration to properly free the objects. Reimplemented in vtkPointSet. Definition at line 144 of file vtkDataObject.h. |
|
Provides opportunity for the data object to insure internal consistency before access. Also causes owning source/filter (if any) to update itself. The Update() method is composed of UpdateInformation(), PropagateUpdateExtent(), TriggerAsynchronousUpdate(), and UpdateData(). |
|
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. Update all the "easy to update" information about the object such as the extent which will be used to control the update. This propagates all the way up then back down the pipeline. As a by-product the PipelineMTime is updated. |
|
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. The update extent for this object is propagated up the pipeline. This propagation may early terminate based on the PipelineMTime. Reimplemented in vtkImageStencilData. |
|
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. Propagate back up the pipeline for ports and trigger the update on the other side of the port to allow for asynchronous parallel processing in the pipeline. This propagation may early terminate based on the PipelineMTime. Reimplemented in vtkImageStencilData. |
|
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. Propagate the update back up the pipeline, and perform the actual work of updating on the way down. When the propagate arrives at a port, block and wait for the asynchronous update to finish on the other side. This propagation may early terminate based on the PipelineMTime. Reimplemented in vtkImageData, and vtkImageStencilData. |
|
Get the estimated size of this data object itself. Should be called after UpdateInformation() and PropagateUpdateExtent() have both been called. Should be overridden in a subclass - otherwise the default is to assume that this data object requires no memory. The size is returned in kilobytes. Reimplemented in vtkImageData. |
|
A generic way of specifying an update extent. Subclasses must decide what a piece is. When the NumberOfPieces is zero, then no data is requested, and the source will not execute. Definition at line 192 of file vtkDataObject.h. Referenced by vtkUnstructuredGrid::SetUpdateExtent(), vtkStructuredGrid::SetUpdateExtent(), vtkRectilinearGrid::SetUpdateExtent(), vtkPolyData::SetUpdateExtent(), and vtkImageData::SetUpdateExtent().
|
|
A generic way of specifying an update extent. Subclasses must decide what a piece is. When the NumberOfPieces is zero, then no data is requested, and the source will not execute. Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid. Definition at line 195 of file vtkDataObject.h. |
|
Set the update extent for data objects that use 3D extents. Using this method on data objects that set extents as pieces (such as vtkPolyData or vtkUnstructuredGrid) has no real effect. Don't use the set macro to set the update extent since we don't want this object to be modified just due to a change in update extent. When the volume of the extent is zero (0, -1,..), then no data is requested, and the source will not execute. Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid. |
|
Set the update extent for data objects that use 3D extents. Using this method on data objects that set extents as pieces (such as vtkPolyData or vtkUnstructuredGrid) has no real effect. Don't use the set macro to set the update extent since we don't want this object to be modified just due to a change in update extent. When the volume of the extent is zero (0, -1,..), then no data is requested, and the source will not execute. Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid. |
|
Set the update extent for data objects that use 3D extents. Using this method on data objects that set extents as pieces (such as vtkPolyData or vtkUnstructuredGrid) has no real effect. Don't use the set macro to set the update extent since we don't want this object to be modified just due to a change in update extent. When the volume of the extent is zero (0, -1,..), then no data is requested, and the source will not execute. Reimplemented in vtkPolyData, and vtkUnstructuredGrid. |
|
Set the update extent for data objects that use 3D extents. Using this method on data objects that set extents as pieces (such as vtkPolyData or vtkUnstructuredGrid) has no real effect. Don't use the set macro to set the update extent since we don't want this object to be modified just due to a change in update extent. When the volume of the extent is zero (0, -1,..), then no data is requested, and the source will not execute. Reimplemented in vtkPolyData, and vtkUnstructuredGrid. |
|
Set the update extent for data objects that use 3D extents. Using this method on data objects that set extents as pieces (such as vtkPolyData or vtkUnstructuredGrid) has no real effect. Don't use the set macro to set the update extent since we don't want this object to be modified just due to a change in update extent. When the volume of the extent is zero (0, -1,..), then no data is requested, and the source will not execute. Reimplemented in vtkPolyData, and vtkUnstructuredGrid. |
|
Return class name of data type. This is one of VTK_STRUCTURED_GRID, VTK_STRUCTURED_POINTS, VTK_UNSTRUCTURED_GRID, VTK_POLY_DATA, or VTK_RECTILINEAR_GRID (see vtkSetGet.h for definitions). THIS METHOD IS THREAD SAFE Reimplemented in vtkDataSet, vtkImageData, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkStructuredPoints, vtkUnstructuredGrid, vtkPiecewiseFunction, and vtkImageStencilData. Definition at line 216 of file vtkDataObject.h. |
|
Used by Threaded ports to determine if they should initiate an asynchronous update (still in development). |
|
If the whole input extent is required to generate the requested output extent, this method can be called to set the input update extent to the whole input extent. This method assumes that the whole extent is known (that UpdateInformation has been called) |
|
Definition at line 228 of file vtkDataObject.h. |
|
|
|
Return the actual size of the data in kilobytes. This number is valid only after the pipeline has updated. The memory size returned is guaranteed to be greater than or equal to the memory required to represent the data (e.g., extra space in arrays, etc. are not included in the return value). Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid. |
|
Copy the generic information (WholeExtent ...) |
|
By default, there is no type specific information Reimplemented in vtkImageData. Definition at line 243 of file vtkDataObject.h. |
|
Set / Get the update piece and the update number of pieces. Similar to update extent in 3D. |
|
Set / Get the update piece and the update number of pieces. Similar to update extent in 3D. |
|
Set / Get the update piece and the update number of pieces. Similar to update extent in 3D. |
|
Set / Get the update piece and the update number of pieces. Similar to update extent in 3D. |
|
Set / Get the update ghost level and the update number of ghost levels. Similar to update extent in 3D. |
|
Set / Get the update ghost level and the update number of ghost levels. Similar to update extent in 3D. |
|
This request flag indicates whether the requester can handle more data than requested. Right now it is used in vtkImageData. Image filters can return more data than requested. The the consumer cannot handle this (i.e. DataSetToDataSetFitler) the image will crop itself. This functionality used to be in ImageToStructuredPoints. |
|
This request flag indicates whether the requester can handle more data than requested. Right now it is used in vtkImageData. Image filters can return more data than requested. The the consumer cannot handle this (i.e. DataSetToDataSetFitler) the image will crop itself. This functionality used to be in ImageToStructuredPoints. |
|
This request flag indicates whether the requester can handle more data than requested. Right now it is used in vtkImageData. Image filters can return more data than requested. The the consumer cannot handle this (i.e. DataSetToDataSetFitler) the image will crop itself. This functionality used to be in ImageToStructuredPoints. |
|
This request flag indicates whether the requester can handle more data than requested. Right now it is used in vtkImageData. Image filters can return more data than requested. The the consumer cannot handle this (i.e. DataSetToDataSetFitler) the image will crop itself. This functionality used to be in ImageToStructuredPoints. |
|
Set/Get the whole extent of this data object. The whole extent is meta data for structured data sets. It gets set by the source during the update information call. |
|
Set/Get the whole extent of this data object. The whole extent is meta data for structured data sets. It gets set by the source during the update information call. |
|
Set/Get the whole extent of this data object. The whole extent is meta data for structured data sets. It gets set by the source during the update information call. |
|
Set/Get the whole extent of this data object. The whole extent is meta data for structured data sets. It gets set by the source during the update information call. |
|
Set/Get the whole extent of this data object. The whole extent is meta data for structured data sets. It gets set by the source during the update information call. |
|
Set/Get the maximum number of pieces that can be requested. The maximum number of pieces is meta data for unstructured data sets. It gets set by the source during the update information call. A value of -1 indicates that there is no maximum. A value of |
|
Set/Get the maximum number of pieces that can be requested. The maximum number of pieces is meta data for unstructured data sets. It gets set by the source during the update information call. A value of -1 indicates that there is no maximum. A value of |
|
This method is called by the source when it executes to generate data. It is sort of the opposite of ReleaseData. It sets the DataReleased flag to 0, and sets a new UpdateTime. |
|
make the output data ready for new data to be inserted. For most objects we just call Initialize. But for vtkImageData we leave the old data in case the memory can be reused. Reimplemented in vtkImageData. Definition at line 299 of file vtkDataObject.h. |
|
Shallow and Deep copy. These copy the data, but not any of the pipeline connections. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkUnstructuredGrid, vtkPiecewiseFunction, and vtkImageStencilData. |
|
Shallow and Deep copy. These copy the data, but not any of the pipeline connections. Reimplemented in vtkDataSet, vtkImageData, vtkPointSet, vtkPolyData, vtkRectilinearGrid, vtkStructuredGrid, vtkUnstructuredGrid, vtkPiecewiseFunction, and vtkImageStencilData. |
|
Locality is used internally by the pipeline update mechanism. It is used to get parralel execution when a filter has multiple inputs with ports upstream. |
|
Locality is used internally by the pipeline update mechanism. It is used to get parralel execution when a filter has multiple inputs with ports upstream. |
|
An object that will translate pieces into structured extents. |
|
An object that will translate pieces into structured extents. |
|
Get the number of consumers |
|
Add or remove or get or check a consumer, |
|
Add or remove or get or check a consumer, |
|
Add or remove or get or check a consumer, |
|
Add or remove or get or check a consumer, |
|
Return non zero if the UpdateExtent is outside of the Extent |
|
This detects when the UpdateExtent will generate no data, and UpdateData on the source is not necessary. This condition is satisfied when the UpdateExtent has zero volume (0,-1,...) of the UpdateNumberOfPieces is 0. |
|
Default behavior is to make sure that the update extent lies within the whole extent. If it does not, an error condition occurs and this method returns 0. If it is ok, then 1 is returned. Since uninitialized extents are initialized to the whole extent during UpdateInformation() there should not be errors. If a data object subclass wants to try to take care of errors silently, then this method should be overridden. |
|
Reimplemented in vtkImageData, vtkRectilinearGrid, vtkStructuredGrid, and vtkImageStencilData. Definition at line 378 of file vtkDataObject.h. |
|
Reimplemented in vtkImageData, vtkPolyData, vtkRectilinearGrid, and vtkStructuredGrid. |
|
Definition at line 342 of file vtkDataObject.h. |
|
Definition at line 345 of file vtkDataObject.h. |
|
Definition at line 348 of file vtkDataObject.h. |
|
Definition at line 351 of file vtkDataObject.h. |
|
Definition at line 352 of file vtkDataObject.h. |
|
Definition at line 383 of file vtkDataObject.h. |
|
Definition at line 384 of file vtkDataObject.h. |
|
Definition at line 385 of file vtkDataObject.h. |
|
Definition at line 387 of file vtkDataObject.h. |
|
Definition at line 389 of file vtkDataObject.h. |
|
Definition at line 392 of file vtkDataObject.h. |
|
Definition at line 393 of file vtkDataObject.h. |
|
Definition at line 394 of file vtkDataObject.h. |
|
Definition at line 395 of file vtkDataObject.h. |
|
Definition at line 396 of file vtkDataObject.h. |
|
Definition at line 404 of file vtkDataObject.h. |
|
Definition at line 410 of file vtkDataObject.h. |
|
Definition at line 411 of file vtkDataObject.h. |
|
Definition at line 414 of file vtkDataObject.h. |
|
Definition at line 417 of file vtkDataObject.h. |
|
Definition at line 421 of file vtkDataObject.h. |
|
Definition at line 424 of file vtkDataObject.h. |
|
Definition at line 431 of file vtkDataObject.h. |