31 #ifndef __vtkMarkupsGlyphSource2D_h 32 #define __vtkMarkupsGlyphSource2D_h 34 #include "vtkSlicerMarkupsModuleVTKWidgetsExport.h" 39 #include "vtkGlyphSource2D.h" 40 #include "vtkPolyDataAlgorithm.h" 43 #define VTK_STARBURST_GLYPH 12 46 class vtkUnsignedCharArray;
53 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
60 vtkSetVector3Macro(Center,
double);
61 vtkGetVectorMacro(Center,
double,3);
65 vtkSetClampMacro(Scale,
double,0.0,VTK_DOUBLE_MAX);
66 vtkGetMacro(Scale,
double);
70 vtkSetClampMacro(Scale2,
double,0.0,VTK_DOUBLE_MAX);
71 vtkGetMacro(Scale2,
double);
74 vtkSetVector3Macro(Color,
double);
75 vtkGetVectorMacro(Color,
double,3);
80 vtkSetMacro(Filled,
int);
81 vtkGetMacro(Filled,
int);
82 vtkBooleanMacro(Filled,
int);
87 vtkSetMacro(Dash,
int);
88 vtkGetMacro(Dash,
int);
89 vtkBooleanMacro(Dash,
int);
94 vtkSetMacro(Cross,
int);
95 vtkGetMacro(Cross,
int);
96 vtkBooleanMacro(Cross,
int);
101 vtkSetMacro(RotationAngle,
double);
102 vtkGetMacro(RotationAngle,
double);
106 vtkGetMacro(GlyphType,
int);
121 void SetGlyphTypeAsString(
const char* type);
127 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
139 void TransformGlyph(vtkPoints *pts);
141 unsigned char RGB[3];
143 void CreateVertex(vtkPoints *pts, vtkCellArray *verts,
144 vtkUnsignedCharArray *colors);
145 void CreateDash(vtkPoints *pts, vtkCellArray *lines,
146 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale = 1.0);
147 void CreateCross(vtkPoints *pts, vtkCellArray *lines,
148 vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale = 1.0);
149 void CreateThickCross(vtkPoints *pts, vtkCellArray *lines,
150 vtkCellArray *polys, vtkUnsignedCharArray *colors);
151 void CreateTriangle(vtkPoints *pts, vtkCellArray *lines,
152 vtkCellArray *polys, vtkUnsignedCharArray *colors);
153 void CreateSquare(vtkPoints *pts, vtkCellArray *lines,
154 vtkCellArray *polys, vtkUnsignedCharArray *colors);
155 void CreateCircle(vtkPoints *pts, vtkCellArray *lines,
156 vtkCellArray *polys, vtkUnsignedCharArray *colors);
157 void CreateDiamond(vtkPoints *pts, vtkCellArray *lines,
158 vtkCellArray *polys, vtkUnsignedCharArray *colors);
159 void CreateArrow(vtkPoints *pts, vtkCellArray *lines,
160 vtkCellArray *polys, vtkUnsignedCharArray *colors);
161 void CreateThickArrow(vtkPoints *pts, vtkCellArray *lines,
162 vtkCellArray *polys, vtkUnsignedCharArray *colors);
163 void CreateHookedArrow(vtkPoints *pts, vtkCellArray *lines,
164 vtkCellArray *polys, vtkUnsignedCharArray *colors);
165 void CreateStarBurst(vtkPoints *pts, vtkCellArray *lines,
166 vtkCellArray *polys, vtkUnsignedCharArray *colors);
void SetGlyphTypeToCross()
void SetGlyphTypeToCircle()
void SetGlyphTypeToVertex()
~vtkMarkupsGlyphSource2D()
void SetGlyphTypeToArrow()
void SetGlyphTypeToThickArrow()
#define VTK_STARBURST_GLYPH
when add new glyph types, make sure to increase the clamp
void SetGlyphTypeToDiamond()
void SetGlyphTypeToNone()
void SetGlyphTypeToSquare()
void SetGlyphTypeToHookedArrow()
void SetGlyphTypeToTriangle()
void SetGlyphTypeToStarBurst()
void SetGlyphTypeToDash()
void SetGlyphTypeToThickCross()