Go to the documentation of this file.
40 #ifndef vtkDataObject_h
41 #define vtkDataObject_h
43 #include "vtkCommonDataModelModule.h"
60 #define VTK_PIECES_EXTENT 0
61 #define VTK_3D_EXTENT 1
62 #define VTK_TIME_EXTENT 2
102 vtkGetMacro(DataReleased,
int);
169 int fieldAssociation,
int attributeType);
177 int fieldAssociation,
const char *
name);
183 int fieldAssociation,
193 int fieldAssociation,
const char *attributeName,
int attributeType);
205 int fieldAssociation,
int attributeType,
const char *
name,
int arrayType,
206 int numComponents,
int numTuples);
213 int arrayType,
int numComponents);
252 virtual void Crop(
const int* updateExtent);
266 NUMBER_OF_ASSOCIATIONS
282 NUMBER_OF_ATTRIBUTE_TYPES
330 FIELD_OPERATION_REMOVED
@ FIELD_ASSOCIATION_EDGES
static vtkInformationStringKey * DATA_TYPE_NAME()
virtual vtkDataSetAttributes * GetAttributes(int type)
Returns the attributes of the data object of the specified attribute type.
static vtkInformationInformationVectorKey * POINT_DATA_VECTOR()
virtual void Initialize()
Restore data object to initial state,.
static vtkInformationIntegerKey * FIELD_ACTIVE_ATTRIBUTE()
static const char * GetAssociationTypeAsString(int associationType)
Given an integer association type, this static method returns a string type for the attribute (i....
static vtkInformationInformationVectorKey * EDGE_DATA_VECTOR()
static vtkInformationDoubleVectorKey * SPACING()
virtual vtkFieldData * GetAttributesAsFieldData(int type)
Returns the attributes of the data object as a vtkFieldData.
static vtkInformationInformationVectorKey * VERTEX_DATA_VECTOR()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate attribute data in a dataset
static void SetPointDataActiveScalarInfo(vtkInformation *info, int arrayType, int numComponents)
Convenience version of previous method for use (primarily) by the Imaging filters.
static vtkInformationDataObjectKey * DATA_OBJECT()
record modification and/or execution time
static vtkInformationIntegerKey * FIELD_ASSOCIATION()
virtual void SetInformation(vtkInformation *)
static vtkInformation * GetNamedFieldInformation(vtkInformation *info, int fieldAssociation, const char *name)
Return the information object within the input information object's field data corresponding to the s...
static vtkInformationIntegerVectorKey * PIECE_EXTENT()
abstract base class for most VTK objects
virtual void CopyInformationFromPipeline(vtkInformation *vtkNotUsed(info))
Copy from the pipeline information to the data object's own information.
static vtkInformationIntegerKey * DATA_NUMBER_OF_GHOST_LEVELS()
vtkInformation * Information
vtkMTimeType GetUpdateTime()
Used by Threaded ports to determine if they should initiate an asynchronous update (still in developm...
virtual int GetDataObjectType()
Return class name of data type.
@ FIELD_ASSOCIATION_POINTS
void GlobalReleaseDataFlagOn()
static vtkInformationDataObjectKey * SIL()
static void RemoveNamedFieldInformation(vtkInformation *info, int fieldAssociation, const char *name)
Remove the info associated with an array.
virtual void DeepCopy(vtkDataObject *src)
static void SetGlobalReleaseDataFlag(int val)
Turn on/off flag to control whether every object releases its data after being used by a filter.
vtkMTimeType GetMTime() override
Data objects are composite objects and need to check each part for MTime.
static vtkInformationIntegerVectorKey * ALL_PIECES_EXTENT()
@ FIELD_ASSOCIATION_VERTICES
represent and manipulate fields of data
void DataHasBeenGenerated()
This method is called by the source when it executes to generate data.
virtual vtkIdType GetNumberOfElements(int type)
Get the number of elements for a specific attribute type (POINT, CELL, etc.).
void GlobalReleaseDataFlagOff()
FieldOperations
Possible values for the FIELD_OPERATION information entry.
@ FIELD_OPERATION_MODIFIED
~vtkDataObject() override
static vtkInformation * SetActiveAttribute(vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType)
Set the named array to be the active field for the specified type (SCALARS, VECTORS,...
@ FIELD_ASSOCIATION_CELLS
static vtkInformationIntegerKey * FIELD_OPERATION()
static vtkInformationIntegerKey * DATA_PIECE_NUMBER()
static vtkInformationIntegerKey * FIELD_NUMBER_OF_COMPONENTS()
a simple class to control print indentation
virtual int GetExtentType()
The ExtentType will be left as VTK_PIECES_EXTENT for data objects such as vtkPolyData and vtkUnstruct...
static vtkInformationDoubleVectorKey * BOUNDING_BOX()
virtual void PrepareForNewData()
make the output data ready for new data to be inserted.
static vtkInformation * GetActiveFieldInformation(vtkInformation *info, int fieldAssociation, int attributeType)
Return the information object within the input information object's field data corresponding to the s...
static void SetActiveAttributeInfo(vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples)
Set the name, array type, number of components, and number of tuples within the passed information ob...
static vtkInformationIntegerKey * DATA_NUMBER_OF_PIECES()
static vtkInformationDoubleVectorKey * FIELD_RANGE()
virtual void Crop(const int *updateExtent)
This method crops the data object (if necessary) so that the extent matches the update extent.
#define VTK_PIECES_EXTENT
static vtkInformationDoubleKey * DATA_TIME_STEP()
virtual void CopyInformationToPipeline(vtkInformation *vtkNotUsed(info))
Copy information from this data object to the pipeline information.
void ReleaseData()
Release data back to system to conserve memory resource.
virtual unsigned long GetActualMemorySize()
Return the actual size of the data in kibibytes (1024 bytes).
Abstract superclass for all arrays.
virtual int GetAttributeTypeForArray(vtkAbstractArray *arr)
Retrieves the attribute type that an array came from.
static int GetAssociationTypeFromString(const char *associationType)
Given an integer association type, this static method returns a string type for the attribute (i....
virtual void SetFieldData(vtkFieldData *)
Assign or retrieve a general field data to this data object.
static vtkDataObject * GetData(vtkInformationVector *v, int i=0)
@ FIELD_OPERATION_REINTERPOLATED
static vtkInformationStringKey * FIELD_NAME()
@ FIELD_ASSOCIATION_POINTS_THEN_CELLS
FieldAssociations
Possible values for the FIELD_ASSOCIATION information entry.
static vtkInformationIntegerKey * FIELD_NUMBER_OF_TUPLES()
static vtkInformationIntegerKey * FIELD_ATTRIBUTE_TYPE()
static vtkInformationDoubleVectorKey * ORIGIN()
general representation of visualization data
static int GetGlobalReleaseDataFlag()
static vtkInformationIntegerKey * FIELD_ARRAY_TYPE()
static vtkInformationInformationVectorKey * CELL_DATA_VECTOR()
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.
static vtkInformationIntegerKey * DATA_EXTENT_TYPE()
static vtkInformationIntegerPointerKey * DATA_EXTENT()
AttributeTypes
Possible attribute types.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
@ FIELD_OPERATION_PRESERVED
static vtkDataObject * New()
vtkTypeUInt32 vtkMTimeType