29 #ifndef __vtkImageCanvasSource2D_h
30 #define __vtkImageCanvasSource2D_h
47 vtkSetVector4Macro(DrawColor,
double);
48 vtkGetVector4Macro(DrawColor,
double);
60 this->SetDrawColor(a, b, c, 0.0);}
66 void FillBox(
int min0,
int max0,
int min1,
int max1);
67 void FillTube(
int x0,
int y0,
int x1,
int y1,
double radius);
68 void FillTriangle(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
69 void DrawCircle(
int c0,
int c1,
double radius);
70 void DrawPoint(
int p0,
int p1);
71 void DrawSegment(
int x0,
int y0,
int x1,
int y1);
72 void DrawSegment3D(
double *p0,
double *p1);
74 double x2,
double y2,
double z2)
75 {
double p1[3], p2[3];
76 p1[0] = x1; p1[1] = y1; p1[2] = z1; p2[0] = x2; p2[1] = y2; p2[2] = z2;
77 this->DrawSegment3D(p1, p2);}
84 { this->DrawImage(x0, y0, i, -1, -1, -1, -1); }
85 void DrawImage(
int x0,
int y0,
vtkImageData*,
int sx,
int sy,
92 void FillPixel(
int x,
int y);
98 void SetExtent(
int *
extent);
99 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
106 vtkSetMacro(DefaultZ,
int);
107 vtkGetMacro(DefaultZ,
int);
114 vtkSetVector3Macro(Ratio,
double);
115 vtkGetVector3Macro(Ratio,
double);
120 virtual void SetNumberOfScalarComponents(
int i);
121 virtual int GetNumberOfScalarComponents()
const;
145 void SetScalarType(
int);
146 int GetScalarType()
const;
162 int ClipSegment(
int &a0,
int &a1,
int &b0,
int &b1);
GLboolean GLboolean GLboolean b
void SetScalarTypeToInt()
void SetScalarTypeToUnsignedInt()
void SetScalarTypeToDouble()
#define VTK_UNSIGNED_SHORT
void DrawImage(int x0, int y0, vtkImageData *i)
void SetScalarTypeToUnsignedShort()
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLint GLint GLint x
void SetScalarTypeToShort()
a simple class to control print indentation
void SetScalarTypeToUnsignedChar()
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
GLint GLint GLsizei width
void SetDrawColor(double a, double b, double c)
void SetScalarTypeToLong()
#define VTKIMAGINGSOURCES_EXPORT
GLboolean GLboolean GLboolean GLboolean a
#define VTK_UNSIGNED_CHAR
void SetDrawColor(double a)
void SetScalarTypeToUnsignedLong()
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
void DrawSegment3D(double x1, double y1, double z1, double x2, double y2, double z2)
#define VTK_UNSIGNED_LONG
void SetDrawColor(double a, double b)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetScalarTypeToFloat()
void SetScalarTypeToChar()