22 #ifndef __vtkSlicerGlyphSource2D_h 23 #define __vtkSlicerGlyphSource2D_h 26 #include "vtkGlyphSource2D.h" 28 #include "vtkPolyDataAlgorithm.h" 46 #define VTK_STARBURST_GLYPH 12 49 class vtkUnsignedCharArray;
56 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
65 vtkSetVector3Macro(Center,
double);
66 vtkGetVectorMacro(Center,
double,3);
71 vtkSetClampMacro(Scale,
double,0.0,VTK_DOUBLE_MAX);
72 vtkGetMacro(Scale,
double);
77 vtkSetClampMacro(Scale2,
double,0.0,VTK_DOUBLE_MAX);
78 vtkGetMacro(Scale2,
double);
82 vtkSetVector3Macro(Color,
double);
83 vtkGetVectorMacro(Color,
double,3);
89 vtkSetMacro(Filled,
int);
90 vtkGetMacro(Filled,
int);
91 vtkBooleanMacro(Filled,
int);
97 vtkSetMacro(Dash,
int);
98 vtkGetMacro(Dash,
int);
99 vtkBooleanMacro(Dash,
int);
105 vtkSetMacro(Cross,
int);
106 vtkGetMacro(Cross,
int);
107 vtkBooleanMacro(Cross,
int);
113 vtkSetMacro(RotationAngle,
double);
114 vtkGetMacro(RotationAngle,
double);
119 vtkGetMacro(GlyphType,
int);
134 void SetGlyphTypeAsString(
const char* type);
140 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
152 void TransformGlyph(vtkPoints *pts);
154 unsigned char RGB[3];
156 void CreateVertex(vtkPoints *pts, vtkCellArray *verts,
157 vtkUnsignedCharArray *colors);
158 void CreateDash(vtkPoints *pts, vtkCellArray *lines,
159 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
160 void CreateCross(vtkPoints *pts, vtkCellArray *lines,
161 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
162 void CreateThickCross(vtkPoints *pts, vtkCellArray *lines,
163 vtkCellArray *polys, vtkUnsignedCharArray *colors);
164 void CreateTriangle(vtkPoints *pts, vtkCellArray *lines,
165 vtkCellArray *polys, vtkUnsignedCharArray *colors);
166 void CreateSquare(vtkPoints *pts, vtkCellArray *lines,
167 vtkCellArray *polys, vtkUnsignedCharArray *colors);
168 void CreateCircle(vtkPoints *pts, vtkCellArray *lines,
169 vtkCellArray *polys, vtkUnsignedCharArray *colors);
170 void CreateDiamond(vtkPoints *pts, vtkCellArray *lines,
171 vtkCellArray *polys, vtkUnsignedCharArray *colors);
172 void CreateArrow(vtkPoints *pts, vtkCellArray *lines,
173 vtkCellArray *polys, vtkUnsignedCharArray *colors);
174 void CreateThickArrow(vtkPoints *pts, vtkCellArray *lines,
175 vtkCellArray *polys, vtkUnsignedCharArray *colors);
176 void CreateHookedArrow(vtkPoints *pts, vtkCellArray *lines,
177 vtkCellArray *polys, vtkUnsignedCharArray *colors);
178 void CreateStarBurst(vtkPoints *pts, vtkCellArray *lines,
179 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
void SetGlyphTypeToSquare()
~vtkSlicerGlyphSource2D()
void SetGlyphTypeToDash()
void SetGlyphTypeToArrow()
#define VTK_STARBURST_GLYPH
when add new glyph types, make sure to increase the clamp
void SetGlyphTypeToThickArrow()
void SetGlyphTypeToCross()
void SetGlyphTypeToStarBurst()
void SetGlyphTypeToTriangle()
void SetGlyphTypeToCircle()
void SetGlyphTypeToHookedArrow()
void SetGlyphTypeToDiamond()
void SetGlyphTypeToVertex()
void SetGlyphTypeToThickCross()
void SetGlyphTypeToNone()