ManualPaintModel::ManualPaintModel()
{
- _active = true;
- _tool = 0; // 0 pencil , 1 fill
+ _active = true;
+ _tool = 0; // 0 pencil , 1 fill
_brushfilter = new BrushFilter();
_fillfilter = new FillFilter();
_imageUndoRedo = new ImageUndoRedo();
{
if (_active==true)
{
-
if (_tool == 0)
{
_brushfilter->SetPoint(px, py, pz);
_brushfilter->Run();
} // _tool 2
-
if (_tool == 1)
{
_fillfilter->SetPoint(px, py, pz);
//---------------------------------------------------------------------------
void ManualPaintModel::SetUndoImage()
{
- printf("EED ManualPaintModel::SetUndoImage \n");
ImageMManager* imMManager = NULL;
if (_tool == 0)
{
void ManualPaintModel::Undo()
{
- printf("EED ManualPaintModel::Undo \n");
this->_imageUndoRedo->Undo();
}