|
virtual int | IsA (const char *type) |
|
vtkDataObject * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
unsigned long int | GetMTime () |
|
virtual void | Initialize () |
|
void | ReleaseData () |
|
virtual int | GetDataObjectType () |
|
unsigned long | GetUpdateTime () |
|
virtual unsigned long | GetActualMemorySize () |
|
virtual void | CopyInformationToPipeline (vtkInformation *vtkNotUsed(info)) |
|
void | DataHasBeenGenerated () |
|
virtual void | PrepareForNewData () |
|
virtual int | GetExtentType () |
|
virtual void | Crop (const int *updateExtent) |
|
virtual vtkDataSetAttributes * | GetAttributes (int type) |
|
virtual vtkFieldData * | GetAttributesAsFieldData (int type) |
|
virtual int | GetAttributeTypeForArray (vtkAbstractArray *arr) |
|
virtual vtkIdType | GetNumberOfElements (int type) |
|
|
virtual vtkInformation * | GetInformation () |
|
virtual void | SetInformation (vtkInformation *) |
|
|
virtual int | GetDataReleased () |
|
|
virtual void | SetFieldData (vtkFieldData *) |
|
virtual vtkFieldData * | GetFieldData () |
|
|
virtual void | CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info)) |
|
|
virtual void | ShallowCopy (vtkDataObject *src) |
|
virtual void | DeepCopy (vtkDataObject *src) |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
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) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(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 &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
|
static vtkDataObject * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkDataObject * | SafeDownCast (vtkObjectBase *o) |
|
static const char * | GetAssociationTypeAsString (int associationType) |
|
static int | GetAssociationTypeFromString (const char *associationType) |
|
static vtkInformationStringKey * | DATA_TYPE_NAME () |
|
static vtkInformationDataObjectKey * | DATA_OBJECT () |
|
static vtkInformationIntegerKey * | DATA_EXTENT_TYPE () |
|
static vtkInformationIntegerPointerKey * | DATA_EXTENT () |
|
static vtkInformationIntegerVectorKey * | ALL_PIECES_EXTENT () |
|
static vtkInformationIntegerKey * | DATA_PIECE_NUMBER () |
|
static vtkInformationIntegerKey * | DATA_NUMBER_OF_PIECES () |
|
static vtkInformationIntegerKey * | DATA_NUMBER_OF_GHOST_LEVELS () |
|
static vtkInformationDoubleKey * | DATA_TIME_STEP () |
|
static vtkInformationInformationVectorKey * | POINT_DATA_VECTOR () |
|
static vtkInformationInformationVectorKey * | CELL_DATA_VECTOR () |
|
static vtkInformationInformationVectorKey * | VERTEX_DATA_VECTOR () |
|
static vtkInformationInformationVectorKey * | EDGE_DATA_VECTOR () |
|
static vtkInformationIntegerKey * | FIELD_ARRAY_TYPE () |
|
static vtkInformationIntegerKey * | FIELD_ASSOCIATION () |
|
static vtkInformationIntegerKey * | FIELD_ATTRIBUTE_TYPE () |
|
static vtkInformationIntegerKey * | FIELD_ACTIVE_ATTRIBUTE () |
|
static vtkInformationIntegerKey * | FIELD_NUMBER_OF_COMPONENTS () |
|
static vtkInformationIntegerKey * | FIELD_NUMBER_OF_TUPLES () |
|
static vtkInformationIntegerKey * | FIELD_OPERATION () |
|
static vtkInformationDoubleVectorKey * | FIELD_RANGE () |
|
static vtkInformationIntegerVectorKey * | PIECE_EXTENT () |
|
static vtkInformationStringKey * | FIELD_NAME () |
|
static vtkInformationDoubleVectorKey * | ORIGIN () |
|
static vtkInformationDoubleVectorKey * | SPACING () |
|
static vtkInformationDoubleVectorKey * | BOUNDING_BOX () |
|
static vtkInformationDataObjectKey * | SIL () |
|
|
static vtkInformation * | GetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType) |
|
|
static vtkInformation * | GetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name) |
|
|
static void | RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name) |
|
|
static vtkInformation * | SetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType) |
|
|
static void | SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples) |
|
|
static void | SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents) |
|
|
static vtkDataObject * | GetData (vtkInformation *info) |
|
static vtkDataObject * | GetData (vtkInformationVector *v, int i=0) |
|
static int | IsTypeOf (const char *type) |
|
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
|
static vtkObject * | New () |
|
static void | BreakOnError () |
|
static void | SetGlobalWarningDisplay (int val) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static int | GetGlobalWarningDisplay () |
|
static int | IsTypeOf (const char *name) |
|
static vtkObjectBase * | New () |
|
general representation of visualization data
helper class to get VTK data object types as string and instantiate them
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.
- See also
- vtkDataSet vtkFieldData vtkDataObjectSource vtkDataObjectFilter vtkDataObjectMapper vtkDataObjectToDataSet vtkFieldDataToAttributeDataFilter
- Examples:
- vtkDataObject (Examples)
- Tests:
- vtkDataObject (Tests)
vtkDataObjectTypes is a helper class that supports conversion between integer types defined in vtkType.h and string names as well as creation of data objects from either integer or string types. This class has to be updated every time a new data type is added to VTK.
- See also
- vtkDataObject
Definition at line 64 of file vtkDataObject.h.
virtual int vtkDataObject::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 vtkObject.
Reimplemented in vtkGraph, vtkHyperOctree, vtkReebGraph, vtkMolecule, vtkPolyData, vtkUnstructuredGrid, vtkLabelHierarchy, vtkTypeTemplate< vtkMappedUnstructuredGrid< Implementation, CellIterator >, vtkUnstructuredGridBase >, vtkHyperTreeGrid, vtkGenericDataSet, vtkTable, vtkStructuredGrid, vtkDataSet, vtkTree, vtkDirectedAcyclicGraph, vtkRectilinearGrid, vtkUndirectedGraph, vtkArrayData, vtkMultiBlockDataSet, vtkMutableDirectedGraph, vtkPiecewiseFunction, vtkCompositeDataSet, vtkOverlappingAMR, vtkAnnotation, vtkDirectedGraph, vtkImageData, vtkMutableUndirectedGraph, vtkDataObjectTree, vtkBSPCuts, vtkPointSet, vtkSelection, vtkMultiPieceDataSet, vtkPistonDataObject, vtkUniformGrid, vtkAnnotationLayers, vtkOpenQubeElectronicData, vtkStructuredPoints, vtkHierarchicalBoxDataSet, vtkImageStencilData, vtkPath, vtkNonOverlappingAMR, vtkProgrammableElectronicData, vtkUniformGridAMR, vtkBridgeDataSet, and vtkAbstractElectronicData.
void vtkDataObject::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 vtkObject.
Reimplemented in vtkGraph, vtkMappedUnstructuredGrid< Implementation, CellIterator >, vtkHyperOctree, vtkReebGraph, vtkMolecule, vtkPolyData, vtkUnstructuredGrid, vtkLabelHierarchy, vtkHyperTreeGrid, vtkGenericDataSet, vtkTable, vtkStructuredGrid, vtkDataSet, vtkTree, vtkDirectedAcyclicGraph, vtkRectilinearGrid, vtkUndirectedGraph, vtkMultiBlockDataSet, vtkMutableDirectedGraph, vtkPiecewiseFunction, vtkOverlappingAMR, vtkDirectedGraph, vtkImageData, vtkMutableUndirectedGraph, vtkDataObjectTree, vtkPointSet, vtkSelection, vtkUniformGridAMR, vtkMultiPieceDataSet, vtkUniformGrid, vtkOpenQubeElectronicData, vtkHierarchicalBoxDataSet, vtkImageStencilData, vtkPath, vtkNonOverlappingAMR, vtkProgrammableElectronicData, and vtkBridgeDataSet.
virtual int vtkDataObject::GetDataObjectType |
( |
| ) |
|
|
inlinevirtual |
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 vtkGraph, vtkDataSet, vtkGenericDataSet, vtkHyperOctree, vtkReebGraph, vtkMolecule, vtkPolyData, vtkUnstructuredGrid, vtkHyperTreeGrid, vtkTable, vtkArrayData, vtkStructuredGrid, vtkTree, vtkDirectedAcyclicGraph, vtkRectilinearGrid, vtkPiecewiseFunction, vtkUndirectedGraph, vtkCompositeDataSet, vtkMultiBlockDataSet, vtkImageData, vtkSelection, vtkDirectedGraph, vtkUniformGrid, vtkOverlappingAMR, vtkMultiPieceDataSet, vtkImageStencilData, vtkPistonDataObject, vtkHierarchicalBoxDataSet, vtkStructuredPoints, vtkUniformGridAMR, vtkUnstructuredGridBase, vtkPath, and vtkNonOverlappingAMR.
Definition at line 116 of file vtkDataObject.h.
virtual unsigned long vtkDataObject::GetActualMemorySize |
( |
| ) |
|
|
virtual |
Return the actual size of the data in kibibytes (1024 bytes). 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 vtkHyperOctree, vtkPolyData, vtkHyperTreeGrid, vtkImageData, vtkDataSet, vtkUnstructuredGrid, vtkGenericDataSet, vtkRectilinearGrid, vtkStructuredGrid, vtkDataObjectTree, vtkPointSet, vtkTable, and vtkCompositeDataSet.
static void vtkDataObject::SetActiveAttributeInfo |
( |
vtkInformation * |
info, |
|
|
int |
fieldAssociation, |
|
|
int |
attributeType, |
|
|
const char * |
name, |
|
|
int |
arrayType, |
|
|
int |
numComponents, |
|
|
int |
numTuples |
|
) |
| |
|
static |
Set the name, array type, number of components, and number of tuples within the passed information object for the active attribute of type attributeType (in specified association, FIELD_ASSOCIATION_POINTS or FIELD_ASSOCIATION_CELLS). If there is not an active attribute of the specified type, an entry in the information object is created. If arrayType, numComponents, or numTuples equal to -1, or name=NULL the value is not changed.