Commit c8270186 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH:Added ability to get field data

parent 818322eb
......@@ -105,6 +105,11 @@ void vtkDataObject::ForceUpdate()
}
}
void vtkDataObject::SetFieldData(vtkFieldData *fd)
{
this->FieldData.ShallowCopy(*fd);
}
void vtkDataObject::PrintSelf(ostream& os, vtkIndent indent)
{
vtkObject::PrintSelf(os,indent);
......
......@@ -118,7 +118,10 @@ public:
void GlobalReleaseDataFlagOff() {this->SetGlobalReleaseDataFlag(0);};
static int GetGlobalReleaseDataFlag();
// return pointer to this data object's generic field data
// Description:
// Assign or retrieve field data to this data object.
void SetFieldData(vtkFieldData *fd);
void SetFieldData(vtkFieldData &fd) {this->SetFieldData(&fd);}
vtkFieldData *GetFieldData() {return &this->FieldData;};
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment