Go to the documentation of this file.
27 #ifndef vtkImageCanvasSource2D_h
28 #define vtkImageCanvasSource2D_h
30 #include "vtkImagingSourcesModule.h"
49 vtkSetVector4Macro(DrawColor,
double);
50 vtkGetVector4Macro(DrawColor,
double);
67 this->SetDrawColor(a, b, c, 0.0);}
79 void FillBox(
int min0,
int max0,
int min1,
int max1);
80 void FillTube(
int x0,
int y0,
int x1,
int y1,
double radius);
81 void FillTriangle(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
82 void DrawCircle(
int c0,
int c1,
double radius);
83 void DrawPoint(
int p0,
int p1);
84 void DrawSegment(
int x0,
int y0,
int x1,
int y1);
85 void DrawSegment3D(
double *p0,
double *p1);
87 double x2,
double y2,
double z2)
88 {
double p1[3], p2[3];
89 p1[0] = x1; p1[1] = y1; p1[2] = z1; p2[0] = x2; p2[1] = y2; p2[2] = z2;
90 this->DrawSegment3D(p1, p2);}
98 { this->DrawImage(x0, y0, i, -1, -1, -1, -1); }
99 void DrawImage(
int x0,
int y0,
vtkImageData*,
int sx,
int sy,
107 void FillPixel(
int x,
int y);
115 void SetExtent(
int *
extent);
116 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
125 vtkSetMacro(DefaultZ,
int);
126 vtkGetMacro(DefaultZ,
int);
135 vtkSetVector3Macro(Ratio,
double);
136 vtkGetVector3Macro(Ratio,
double);
143 virtual void SetNumberOfScalarComponents(
int i);
144 virtual int GetNumberOfScalarComponents()
const;
170 void SetScalarType(
int);
171 int GetScalarType()
const;
187 int ClipSegment(
int &a0,
int &a1,
int &b0,
int &b1);
void SetDrawColor(double a, double b, double c)
Set DrawColor to (a, b, c, 0)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
void SetDrawColor(double a)
Set DrawColor to (a, 0, 0, 0)
void SetScalarTypeToUnsignedChar()
#define VTK_UNSIGNED_SHORT
void SetScalarTypeToLong()
void SetScalarTypeToUnsignedLong()
void DrawSegment3D(double x1, double y1, double z1, double x2, double y2, double z2)
Generic algorithm superclass for image algs.
void SetScalarTypeToFloat()
Set/Get the data scalar type (i.e VTK_DOUBLE).
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetDrawColor(double a, double b)
Set DrawColor to (a, b, 0, 0)
topologically and geometrically regular array of data
a simple class to control print indentation
#define VTK_UNSIGNED_CHAR
void SetScalarTypeToUnsignedInt()
void SetScalarTypeToChar()
#define VTK_UNSIGNED_LONG
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAlgorithm * New()
void SetScalarTypeToInt()
void DrawImage(int x0, int y0, vtkImageData *i)
Draw subimage of the input image in the canvas at position x0 and y0.
void SetScalarTypeToDouble()
void SetScalarTypeToUnsignedShort()
void SetScalarTypeToShort()