#include <vtkImageCanvasSource2D.h>
Inheritance diagram for vtkImageCanvasSource2D:
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.
Definition at line 34 of file vtkImageCanvasSource2D.h.
Public Types | |
typedef vtkImageAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | FillBox (int min0, int max0, int min1, int max1) |
void | FillTube (int x0, int y0, int x1, int y1, double radius) |
void | FillTriangle (int x0, int y0, int x1, int y1, int x2, int y2) |
void | DrawCircle (int c0, int c1, double radius) |
void | DrawPoint (int p0, int p1) |
void | DrawSegment (int x0, int y0, int x1, int y1) |
void | DrawSegment3D (double *p0, double *p1) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetDrawColor (double, double, double, double) |
virtual void | SetDrawColor (double[4]) |
virtual double * | GetDrawColor () |
virtual void | GetDrawColor (double &, double &, double &, double &) |
virtual void | GetDrawColor (double[4]) |
void | SetDrawColor (double a) |
void | SetDrawColor (double a, double b) |
void | SetDrawColor (double a, double b, double c) |
void | DrawSegment3D (double x1, double y1, double z1, double x2, double y2, double z2) |
void | DrawImage (int x0, int y0, vtkImageData *i) |
void | DrawImage (int x0, int y0, vtkImageData *, int sx, int sy, int width, int height) |
void | FillPixel (int x, int y) |
void | SetExtent (int *extent) |
void | SetExtent (int x1, int x2, int y1, int y2, int z1, int z2) |
virtual void | SetDefaultZ (int) |
virtual int | GetDefaultZ () |
virtual void | SetRatio (double, double, double) |
virtual void | SetRatio (double[3]) |
virtual double * | GetRatio () |
virtual void | GetRatio (double &, double &, double &) |
virtual void | GetRatio (double[3]) |
virtual void | SetNumberOfScalarComponents (int i) |
void | SetScalarTypeToFloat () |
void | SetScalarTypeToDouble () |
void | SetScalarTypeToInt () |
void | SetScalarTypeToUnsignedInt () |
void | SetScalarTypeToLong () |
void | SetScalarTypeToUnsignedLong () |
void | SetScalarTypeToShort () |
void | SetScalarTypeToUnsignedShort () |
void | SetScalarTypeToUnsignedChar () |
void | SetScalarTypeToChar () |
void | SetScalarType (int) |
Static Public Member Functions | |
static vtkImageCanvasSource2D * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageCanvasSource2D * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkImageCanvasSource2D () | |
~vtkImageCanvasSource2D () | |
int | ClipSegment (int &a0, int &a1, int &b0, int &b1) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkImageData * | ImageData |
int | WholeExtent [6] |
double | DrawColor [4] |
int | DefaultZ |
double | Ratio [3] |
|
Reimplemented from vtkImageAlgorithm. Definition at line 40 of file vtkImageCanvasSource2D.h. |
|
|
|
|
|
Construct an instance of vtkImageCanvasSource2D with no data. Reimplemented from vtkAlgorithm. |
|
Reimplemented from vtkImageAlgorithm. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageAlgorithm. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageAlgorithm. |
|
Reimplemented from vtkImageAlgorithm. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageAlgorithm. |
|
Set/Get DrawValue. This is the value that is used when filling data or drawing lines. |
|
|
|
|
|
|
|
|
|
Definition at line 48 of file vtkImageCanvasSource2D.h. |
|
Definition at line 49 of file vtkImageCanvasSource2D.h. |
|
Definition at line 50 of file vtkImageCanvasSource2D.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 61 of file vtkImageCanvasSource2D.h. |
|
Draw subimage of the input image in the canvas at position x0 and y0. The subimage is defined with sx, sy, width, and height. Definition at line 70 of file vtkImageCanvasSource2D.h. |
|
|
|
Fill a colored area with another color. (like connectivity) All pixels connected (and with the same value) to pixel (x, y) get replaced by the current "DrawColor". |
|
These methods set the WholeExtent of the output It sets the size of the canvas. Extent is a min max 3D box. Minimums and maximums are inclusive. |
|
Fill a colored area with another color. (like connectivity) All pixels connected (and with the same value) to pixel (x, y) get replaced by the current "DrawColor". |
|
The drawing operations can only draw into one 2D XY plane at a time. If the canvas is a 3D volume, then this z value is used as the default for 2D operations. |
|
The drawing operations can only draw into one 2D XY plane at a time. If the canvas is a 3D volume, then this z value is used as the default for 2D operations. |
|
Set/Get Ratio. This is the value that is used to pre-multiply each (x, y, z) drawing coordinates (including DefaultZ). |
|
Set/Get Ratio. This is the value that is used to pre-multiply each (x, y, z) drawing coordinates (including DefaultZ). |
|
Set/Get Ratio. This is the value that is used to pre-multiply each (x, y, z) drawing coordinates (including DefaultZ). |
|
Set/Get Ratio. This is the value that is used to pre-multiply each (x, y, z) drawing coordinates (including DefaultZ). |
|
Set/Get Ratio. This is the value that is used to pre-multiply each (x, y, z) drawing coordinates (including DefaultZ). |
|
Set the number of scalar components |
|
Set/Get the data scalar type (i.e VTK_DOUBLE). Note that these methods are setting and getting the pipeline scalar type. i.e. they are setting the type that the image data will be once it has executed. Until the REQUEST_DATA pass the actual scalars may be of some other type. This is for backwards compatibility Definition at line 113 of file vtkImageCanvasSource2D.h. References VTK_FLOAT. |
|
Set the number of scalar components Definition at line 114 of file vtkImageCanvasSource2D.h. References VTK_DOUBLE. |
|
Set the number of scalar components Definition at line 115 of file vtkImageCanvasSource2D.h. References VTK_INT. |
|
Set the number of scalar components Definition at line 116 of file vtkImageCanvasSource2D.h. References VTK_UNSIGNED_INT. |
|
Set the number of scalar components Definition at line 118 of file vtkImageCanvasSource2D.h. References VTK_LONG. |
|
Set the number of scalar components Definition at line 119 of file vtkImageCanvasSource2D.h. References VTK_UNSIGNED_LONG. |
|
Set the number of scalar components Definition at line 121 of file vtkImageCanvasSource2D.h. References VTK_SHORT. |
|
Set the number of scalar components Definition at line 122 of file vtkImageCanvasSource2D.h. References VTK_UNSIGNED_SHORT. |
|
Set the number of scalar components Definition at line 124 of file vtkImageCanvasSource2D.h. References VTK_UNSIGNED_CHAR. |
|
Set the number of scalar components Definition at line 126 of file vtkImageCanvasSource2D.h. References VTK_CHAR. |
|
Set the number of scalar components |
|
|
|
Reimplemented from vtkImageAlgorithm. |
|
This is called by the superclass. This is the method you should override. Reimplemented from vtkImageAlgorithm. |
|
Definition at line 138 of file vtkImageCanvasSource2D.h. |
|
Definition at line 139 of file vtkImageCanvasSource2D.h. |
|
Definition at line 140 of file vtkImageCanvasSource2D.h. |
|
Definition at line 141 of file vtkImageCanvasSource2D.h. |
|
Definition at line 142 of file vtkImageCanvasSource2D.h. |