ManualPaintModel.cpp

Go to the documentation of this file.
00001 
00002 #include "ManualPaintModel.h"
00003 
00004 
00005 ManualPaintModel::ManualPaintModel()
00006 {
00007 }
00008 
00009 //---------------------------------------------------------------------------
00010 ManualPaintModel::~ManualPaintModel()
00011 {
00012 }
00013 
00014 void ManualPaintModel::SetImage(vtkImageData *image)
00015 {
00016     _image=image;
00017 }
00018 
00019 void ManualPaintModel::PaintImage(int px,int py, int pz)
00020 {
00021     if (_image!=NULL)
00022     {
00023         float value=0;
00024         printf("EED ManualPaintModel::PaintImage   %d %d %d\n", px,py,pz);
00025         _image->SetScalarComponentFromFloat (px,py,pz, 0, value );
00026         _image->Modified();
00027     } else  {
00028         printf("ERROR : bbcreaMaracasvisu::vtkInteractorManualPaint::PaintImage :  Image not set. \n");
00029     }
00030 }

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1