_tool = 0; // 0 pencil , 1 fill
_brushfilter = new BrushFilter();
_fillfilter = new FillFilter();
- //_imageUndoRedo = new ImageUndoRedo();
+ _imageUndoRedo = new ImageUndoRedo();
}
//---------------------------------------------------------------------------
void ManualPaintModel::SetImage(vtkImageData *image) {
_brushfilter->SetImage(image);
_fillfilter->SetImage(image);
- //_imageUndoRedo->SetImage(image);
+ std::cout<<"setIMAAAAAAGEEEEEE"<<std::endl;
+ _imageUndoRedo->SetImage(image);
}
//---------------------------------------------------------------------------
_fillfilter->GetScalarRange(range);
}
//---------------------------------------------------------------------------
-/*void ManualPaintModel::SetUndoImage() {
+void ManualPaintModel::SetUndoImage() {
RegionStructUR* region = NULL;
if (_tool == 0) {
region = this->_brushfilter->GetModifiedRegion();
//---------------------------------------------------------------------------
void ManualPaintModel::Undo() {
- //this->_imageUndoRedo->Undo();
-}*/
+ this->_imageUndoRedo->Undo();
+}