29 #ifndef __vtkImageCanvasSource2D_h
30 #define __vtkImageCanvasSource2D_h
46 vtkSetVector4Macro(DrawColor,
double);
47 vtkGetVector4Macro(DrawColor,
double);
59 this->SetDrawColor(a, b, c, 0.0);}
65 void FillBox(
int min0,
int max0,
int min1,
int max1);
66 void FillTube(
int x0,
int y0,
int x1,
int y1,
double radius);
67 void FillTriangle(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
68 void DrawCircle(
int c0,
int c1,
double radius);
69 void DrawPoint(
int p0,
int p1);
70 void DrawSegment(
int x0,
int y0,
int x1,
int y1);
71 void DrawSegment3D(
double *p0,
double *p1);
72 void DrawSegment3D(
double x1,
double y1,
double z1,
73 double x2,
double y2,
double z2)
74 {
double p1[3], p2[3];
75 p1[0] = x1; p1[1] = y1; p1[2] = z1; p2[0] = x2; p2[1] = y2; p2[2] = z2;
76 this->DrawSegment3D(p1, p2);}
83 { this->
DrawImage(x0, y0, i, -1, -1, -1, -1); }
84 void DrawImage(
int x0,
int y0,
vtkImageData*,
int sx,
int sy,
91 void FillPixel(
int x,
int y);
97 void SetExtent(
int *
extent);
98 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
105 vtkSetMacro(DefaultZ,
int);
106 vtkGetMacro(DefaultZ,
int);
113 vtkSetVector3Macro(Ratio,
double);
114 vtkGetVector3Macro(Ratio,
double);
119 virtual void SetNumberOfScalarComponents(
int i);
120 virtual int GetNumberOfScalarComponents()
const;
132 void SetScalarTypeToUnsignedInt()
135 void SetScalarTypeToUnsignedLong()
138 void SetScalarTypeToUnsignedShort()
140 void SetScalarTypeToUnsignedChar()
142 void SetScalarTypeToChar()
144 void SetScalarType(
int);
145 int GetScalarType()
const;
161 int ClipSegment(
int &a0,
int &a1,
int &b0,
int &b1);