45#ifndef vtkGlyphSource2D_h
46#define vtkGlyphSource2D_h
48#include "vtkFiltersSourcesModule.h"
52#define VTK_VERTEX_GLYPH 1
53#define VTK_DASH_GLYPH 2
54#define VTK_CROSS_GLYPH 3
55#define VTK_THICKCROSS_GLYPH 4
56#define VTK_TRIANGLE_GLYPH 5
57#define VTK_SQUARE_GLYPH 6
58#define VTK_CIRCLE_GLYPH 7
59#define VTK_DIAMOND_GLYPH 8
60#define VTK_ARROW_GLYPH 9
61#define VTK_THICKARROW_GLYPH 10
62#define VTK_HOOKEDARROW_GLYPH 11
63#define VTK_EDGEARROW_GLYPH 12
65#define VTK_MAX_CIRCLE_RESOLUTION 1024
67VTK_ABI_NAMESPACE_BEGIN
88 vtkSetVector3Macro(Center,
double);
89 vtkGetVectorMacro(Center,
double, 3);
98 vtkGetMacro(Scale,
double);
107 vtkGetMacro(Scale2,
double);
114 vtkSetVector3Macro(Color,
double);
115 vtkGetVectorMacro(Color,
double, 3);
157 vtkSetMacro(RotationAngle,
double);
158 vtkGetMacro(RotationAngle,
double);
166 vtkGetMacro(Resolution,
int);
174 vtkGetMacro(GlyphType,
int);
196 vtkSetMacro(OutputPointsPrecision,
int);
197 vtkGetMacro(OutputPointsPrecision,
int);
206 vtkSetClampMacro(TipLength,
double, 0.0, 1.0);
207 vtkGetMacro(TipLength,
double);
216 vtkSetMacro(DoublePointed,
bool);
217 vtkGetMacro(DoublePointed,
bool);
218 vtkBooleanMacro(DoublePointed,
bool);
227 vtkSetMacro(PointInwards,
bool);
228 vtkGetMacro(PointInwards,
bool);
229 vtkBooleanMacro(PointInwards,
bool);
238 double Center[3] = { 0.0, 0.0, 0.0 };
241 double Color[3] = { 1.0, 1.0, 1.0 };
246 double RotationAngle = 0.0;
248 int OutputPointsPrecision = SINGLE_PRECISION;
249 double TipLength = 0.3;
250 bool DoublePointed =
false;
251 bool PointInwards =
false;
255 unsigned char RGB[3];
object to represent cell connectivity
create 2D glyphs represented by vtkPolyData
void SetGlyphTypeToArrow()
Specify the type of glyph to generate.
void CreateThickArrow(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void SetGlyphTypeToSquare()
Specify the type of glyph to generate.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetGlyphTypeToTriangle()
Specify the type of glyph to generate.
void SetGlyphTypeToCross()
Specify the type of glyph to generate.
void SetGlyphTypeToThickArrow()
Specify the type of glyph to generate.
void SetGlyphTypeToEdgeArrow()
Specify the type of glyph to generate.
void CreateCross(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale)
void CreateThickCross(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void CreateDiamond(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void TransformGlyph(vtkPoints *pts)
void SetGlyphTypeToNone()
Specify the type of glyph to generate.
~vtkGlyphSource2D() override=default
void CreateCircle(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void CreateTriangle(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void SetGlyphTypeToCircle()
Specify the type of glyph to generate.
void SetGlyphTypeToHookedArrow()
Specify the type of glyph to generate.
void CreateEdgeArrow(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void CreateVertex(vtkPoints *pts, vtkCellArray *verts, vtkUnsignedCharArray *colors)
void CreateArrow(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void SetGlyphTypeToDash()
Specify the type of glyph to generate.
void SetGlyphTypeToDiamond()
Specify the type of glyph to generate.
void CreateHookedArrow(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
static vtkGlyphSource2D * New()
Construct a vertex glyph centered at the origin, scale 1.0, white in color, filled,...
void SetGlyphTypeToThickCross()
Specify the type of glyph to generate.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CreateDash(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale)
void CreateSquare(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
void SetGlyphTypeToVertex()
Specify the type of glyph to generate.
a simple class to control print indentation
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
dynamic, self-adjusting array of unsigned char
#define VTK_DIAMOND_GLYPH
#define VTK_TRIANGLE_GLYPH
#define VTK_MAX_CIRCLE_RESOLUTION
#define VTK_THICKCROSS_GLYPH
#define VTK_HOOKEDARROW_GLYPH
#define VTK_EDGEARROW_GLYPH
#define VTK_THICKARROW_GLYPH