Documentation for vtkImageCanvasSource2D

vtkImageCanvasSource2D - Paints on a canvas

Super Class: vtkImageData

Description:

vtkImageCanvasSource2D is a source that starts as a blank image. you may add to the image with two-dimensional drawing routines. It can paint multi-spectral images.

 

Methods:

void vtkImageCanvasSource2D ()
void vtkImageCanvasSource2D ()
static vtkImageCanvasSource2D *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetImageData (vtkImageData *)
vtkImageData *GetImageData ()
void SetDrawColor (int ,float *)
void GetDrawColor (int ,float *)
void SetDrawColor (float ,float ,float ,float )
void SetDrawColor (float *)
float *GetDrawColor ()
void SetDrawColor (float )
void SetDrawColor (float ,float )
void SetDrawColor (float ,float ,float )
void FillBox (int ,int ,int ,int )
void FillTube (int ,int ,int ,int ,float )
void FillTriangle (int ,int ,int ,int ,int ,int )
void DrawCircle (int ,int ,float )
void DrawPoint (int ,int )
void DrawSegment (int ,int ,int ,int )
void DrawSegment3D (float * ,float *)
void FillPixel (int ,int )
vtkImageData *GetOutput ()
int ClipSegment (int & ,int & ,int & ,int &)

 

Detailed Method Descriptions:

Construct an instance of vtkImageCanvasSource2D with no data.

void vtkImageCanvasSource2D ()

Destructor: Deleting a vtkImageCanvasSource2D automatically deletes the associated vtkImageData. However, since the data is reference counted, it may not actually be deleted.

void vtkImageCanvasSource2D ()

To drawing into a different image, set it with this method.

void SetImageData (vtkImageData *)
vtkImageData *GetImageData ()

Set/Get DrawValue. This is the value that is used when filling datas or drawing lines.

void SetDrawColor (int ,float *)
void GetDrawColor (int ,float *)
void SetDrawColor (float ,float ,float ,float )
void SetDrawColor (float *)
float *GetDrawColor ()
void SetDrawColor (float )
void SetDrawColor (float ,float )

Fill a colored area with another color. (like connectivity) All pixels connected to pixel (x, y) get replaced by draw color.

void FillPixel (int ,int )