27 #ifndef __vtkAnnotationGlyphSource2D_h 28 #define __vtkAnnotationGlyphSource2D_h 31 #include "vtkSlicerAnnotationsModuleVTKWidgetsExport.h" 34 #include <vtkGlyphSource2D.h> 35 #include <vtkPolyDataAlgorithm.h> 53 #define VTK_STARBURST_GLYPH 12 56 class vtkUnsignedCharArray;
59 class VTK_SLICER_ANNOTATIONS_MODULE_VTKWIDGETS_EXPORT
61 :
public vtkPolyDataAlgorithm
65 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
74 vtkSetVector3Macro(Center,
double);
75 vtkGetVectorMacro(Center,
double,3);
80 vtkSetClampMacro(Scale,
double,0.0,VTK_DOUBLE_MAX);
81 vtkGetMacro(Scale,
double);
86 vtkSetClampMacro(Scale2,
double,0.0,VTK_DOUBLE_MAX);
87 vtkGetMacro(Scale2,
double);
91 vtkSetVector3Macro(Color,
double);
92 vtkGetVectorMacro(Color,
double,3);
98 vtkSetMacro(Filled,
int);
99 vtkGetMacro(Filled,
int);
100 vtkBooleanMacro(Filled,
int);
106 vtkSetMacro(Dash,
int);
107 vtkGetMacro(Dash,
int);
108 vtkBooleanMacro(Dash,
int);
114 vtkSetMacro(Cross,
int);
115 vtkGetMacro(Cross,
int);
116 vtkBooleanMacro(Cross,
int);
122 vtkSetMacro(RotationAngle,
double);
123 vtkGetMacro(RotationAngle,
double);
128 vtkGetMacro(GlyphType,
int);
143 void SetGlyphTypeAsString(
const char* type);
149 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
161 void TransformGlyph(vtkPoints *pts);
163 unsigned char RGB[3];
165 void CreateVertex(vtkPoints *pts, vtkCellArray *verts,
166 vtkUnsignedCharArray *colors);
167 void CreateDash(vtkPoints *pts, vtkCellArray *lines,
168 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
169 void CreateCross(vtkPoints *pts, vtkCellArray *lines,
170 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
171 void CreateThickCross(vtkPoints *pts, vtkCellArray *lines,
172 vtkCellArray *polys, vtkUnsignedCharArray *colors);
173 void CreateTriangle(vtkPoints *pts, vtkCellArray *lines,
174 vtkCellArray *polys, vtkUnsignedCharArray *colors);
175 void CreateSquare(vtkPoints *pts, vtkCellArray *lines,
176 vtkCellArray *polys, vtkUnsignedCharArray *colors);
177 void CreateCircle(vtkPoints *pts, vtkCellArray *lines,
178 vtkCellArray *polys, vtkUnsignedCharArray *colors);
179 void CreateDiamond(vtkPoints *pts, vtkCellArray *lines,
180 vtkCellArray *polys, vtkUnsignedCharArray *colors);
181 void CreateArrow(vtkPoints *pts, vtkCellArray *lines,
182 vtkCellArray *polys, vtkUnsignedCharArray *colors);
183 void CreateThickArrow(vtkPoints *pts, vtkCellArray *lines,
184 vtkCellArray *polys, vtkUnsignedCharArray *colors);
185 void CreateHookedArrow(vtkPoints *pts, vtkCellArray *lines,
186 vtkCellArray *polys, vtkUnsignedCharArray *colors);
187 void CreateStarBurst(vtkPoints *pts, vtkCellArray *lines,
188 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale);
~vtkAnnotationGlyphSource2D()
void SetGlyphTypeToThickArrow()
void SetGlyphTypeToSquare()
void SetGlyphTypeToDiamond()
void SetGlyphTypeToTriangle()
void SetGlyphTypeToCross()
void SetGlyphTypeToVertex()
void SetGlyphTypeToThickCross()
void SetGlyphTypeToArrow()
void SetGlyphTypeToStarBurst()
void SetGlyphTypeToCircle()
void SetGlyphTypeToDash()
void SetGlyphTypeToNone()
void SetGlyphTypeToHookedArrow()
#define VTK_STARBURST_GLYPH
when add new glyph types, make sure to increase the clamp