#include "vtkBaseData.h"
+
+
+//-------------------------------------------------------------------
vtkBaseData::vtkBaseData()
{
-
- _z = 0;
- _t = 0;
- _marImageData = 0;
+ _z = 0;
+ _t = 0;
+ _marImageData = 0;
+ _observable = vtkObject::New();
}
//-------------------------------------------------------------------
{
}
+
+
//-------------------------------------------------------------------
void vtkBaseData::SetMarImageData(marImageData *marimagedata)
{
}
//-------------------------------------------------------------------
-void vtkBaseData::SetZ(double z){
+void vtkBaseData::SetZ(double z)
+{
+
//int maxZ;
// int dim[3];
}
_z=z;
+ _observable->InvokeEvent(3);
}
}
return _colorLevel;
}
+
+//-------------------------------------------------------------------
+void vtkBaseData::AddObserver(int eventNumber, vtkCommand *observer)
+{
+ _observable->AddObserver( eventNumber , observer );
+ //Configure();
+}
+
+