ManualPaintModel Class Reference

#include <ManualPaintModel.h>

List of all members.

Public Member Functions

 ManualPaintModel ()
virtual ~ManualPaintModel ()
void SetImage (vtkImageData *image)
void PaintImage (int px, int py, int pz)

Private Attributes

vtkImageData * _image

Detailed Description

Definition at line 7 of file ManualPaintModel.h.


Constructor & Destructor Documentation

ManualPaintModel::ManualPaintModel (  ) 

Definition at line 5 of file ManualPaintModel.cpp.

00006 {
00007 }

ManualPaintModel::~ManualPaintModel (  )  [virtual]

Definition at line 10 of file ManualPaintModel.cpp.

00011 {
00012 }


Member Function Documentation

void ManualPaintModel::PaintImage ( int  px,
int  py,
int  pz 
)

Definition at line 19 of file ManualPaintModel.cpp.

References _image.

Referenced by ManualPaintControler::PaintImage().

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 }

Here is the caller graph for this function:

void ManualPaintModel::SetImage ( vtkImageData *  image  ) 

Definition at line 14 of file ManualPaintModel.cpp.

References _image.

00015 {
00016     _image=image;
00017 }


Member Data Documentation

vtkImageData* ManualPaintModel::_image [private]

Definition at line 16 of file ManualPaintModel.h.

Referenced by PaintImage(), and SetImage().


The documentation for this class was generated from the following files:

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1