29 #ifndef vtkImageCanvasSource2D_h 30 #define vtkImageCanvasSource2D_h 60 this->SetDrawColor(a, b, c, 0.0);}
69 void FillBox(
int min0,
int max0,
int min1,
int max1);
70 void FillTube(
int x0,
int y0,
int x1,
int y1,
double radius);
71 void FillTriangle(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
72 void DrawCircle(
int c0,
int c1,
double radius);
73 void DrawPoint(
int p0,
int p1);
74 void DrawSegment(
int x0,
int y0,
int x1,
int y1);
75 void DrawSegment3D(
double *p0,
double *p1);
77 double x2,
double y2,
double z2)
78 {
double p1[3], p2[3];
79 p1[0] = x1; p1[1] = y1; p1[2] = z1; p2[0] = x2; p2[1] = y2; p2[2] = z2;
80 this->DrawSegment3D(p1, p2);}
87 { this->DrawImage(x0, y0, i, -1, -1, -1, -1); }
88 void DrawImage(
int x0,
int y0,
vtkImageData*,
int sx,
int sy,
95 void FillPixel(
int x,
int y);
101 void SetExtent(
int *
extent);
102 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
123 virtual void SetNumberOfScalarComponents(
int i);
124 virtual int GetNumberOfScalarComponents()
const;
148 void SetScalarType(
int);
149 int GetScalarType()
const;
165 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)
#define vtkGetMacro(name, type)
void SetScalarTypeToUnsignedShort()
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
GLint GLint GLsizei GLsizei height
GLint GLint GLint GLint GLint x
void SetScalarTypeToShort()
#define vtkSetVector4Macro(name, type)
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
#define vtkGetVector3Macro(name, type)
#define vtkGetVector4Macro(name, type)
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)
#define vtkSetVector3Macro(name, type)
void SetScalarTypeToFloat()
void SetScalarTypeToChar()
#define vtkSetMacro(name, type)