 |
VTK
9.1.0
|
Go to the documentation of this file.
133 #ifndef vtkImageCanvasSource2D_h
134 #define vtkImageCanvasSource2D_h
137 #include "vtkImagingSourcesModule.h"
155 vtkSetVector4Macro(DrawColor,
double);
156 vtkGetVector4Macro(DrawColor,
double);
184 void FillBox(
int min0,
int max0,
int min1,
int max1);
191 void DrawSegment3D(
double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
200 this->DrawSegment3D(p1, p2);
225 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
234 vtkSetMacro(DefaultZ,
int);
235 vtkGetMacro(DefaultZ,
int);
244 vtkSetVector3Macro(Ratio,
double);
245 vtkGetVector3Macro(Ratio,
double);
void SetDrawColor(double a, double b, double c)
Set DrawColor to (a, b, c, 0)
int ClipSegment(int &a0, int &a1, int &b0, int &b1)
void DrawImage(int x0, int y0, vtkImageData *, int sx, int sy, int width, int height)
void SetDrawColor(double a)
Set DrawColor to (a, 0, 0, 0)
void SetExtent(int *extent)
These methods set the WholeExtent of the output It sets the size of the canvas.
void SetScalarType(int)
Set/Get the data scalar type (i.e VTK_DOUBLE).
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetExtent(int x1, int x2, int y1, int y2, int z1, int z2)
These methods set the WholeExtent of the output It sets the size of the canvas.
void SetScalarTypeToUnsignedChar()
Set/Get the data scalar type (i.e VTK_DOUBLE).
#define VTK_UNSIGNED_SHORT
void SetScalarTypeToLong()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void SetScalarTypeToUnsignedLong()
Set/Get the data scalar type (i.e VTK_DOUBLE).
virtual int GetNumberOfScalarComponents() const
Set the number of scalar components.
void DrawSegment3D(double x1, double y1, double z1, double x2, double y2, double z2)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
Generic algorithm superclass for image algs.
void InitializeCanvasVolume(vtkImageData *volume)
Initialize the canvas with a given volume.
virtual void SetNumberOfScalarComponents(int i)
Set the number of scalar components.
void SetScalarTypeToFloat()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void FillPixel(int x, int y)
Fill a colored area with another color.
int GetScalarType() const
Set/Get the data scalar type (i.e VTK_DOUBLE).
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetScalarTypeToUnsignedInt()
Set/Get the data scalar type (i.e VTK_DOUBLE).
~vtkImageCanvasSource2D() override
void SetScalarTypeToChar()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void FillBox(int min0, int max0, int min1, int max1)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
void DrawPoint(int p0, int p1)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
#define VTK_UNSIGNED_LONG
void SetScalarTypeToInt()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void DrawImage(int x0, int y0, vtkImageData *i)
Draw subimage of the input image in the canvas at position x0 and y0.
void SetScalarTypeToDouble()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void SetScalarTypeToUnsignedShort()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void SetScalarTypeToShort()
Set/Get the data scalar type (i.e VTK_DOUBLE).
void DrawCircle(int c0, int c1, double radius)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
static vtkImageCanvasSource2D * New()
Construct an instance of vtkImageCanvasSource2D with no data.
void FillTriangle(int x0, int y0, int x1, int y1, int x2, int y2)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
void DrawSegment(int x0, int y0, int x1, int y1)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
void DrawSegment3D(double *p0, double *p1)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.
void FillTube(int x0, int y0, int x1, int y1, double radius)
Set the pixels inside the box (min0, max0, min1, max1) to the current DrawColor.