#include <vtkGlyphSource2D.h>
Inheritance diagram for vtkGlyphSource2D:
vtkGlyphSource2D can generate a family of 2D glyphs each of which lies in the x-y plane (i.e., the z-coordinate is zero). The class is a helper class to be used with vtkGlyph2D and vtkXYPlotActor.
To use this class, specify the glyph type to use and its attributes. Attributes include its position (i.e., center point), scale, color, and whether the symbol is filled or not (a polygon or closed line sequence). You can also put a short line through the glyph running from -x to +x (the glyph looks like it's on a line), or a cross.
Definition at line 57 of file vtkGlyphSource2D.h.
virtual void | SetCenter (double, double, double) |
virtual void | SetCenter (double[3]) |
virtual double * | GetCenter () |
virtual void | GetCenter (double data[3]) |
static vtkGlyphSource2D * | New () |
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetScale (double) |
virtual double | GetScale () |
virtual void | SetScale2 (double) |
virtual double | GetScale2 () |
virtual void | SetColor (double, double, double) |
virtual void | SetColor (double[3]) |
virtual double * | GetColor () |
virtual void | GetColor (double data[3]) |
virtual void | SetFilled (int) |
virtual int | GetFilled () |
virtual void | FilledOn () |
virtual void | FilledOff () |
virtual void | SetDash (int) |
virtual int | GetDash () |
virtual void | DashOn () |
virtual void | DashOff () |
virtual void | SetCross (int) |
virtual int | GetCross () |
virtual void | CrossOn () |
virtual void | CrossOff () |
virtual void | SetRotationAngle (double) |
virtual double | GetRotationAngle () |
virtual void | SetGlyphType (int) |
virtual int | GetGlyphType () |
void | SetGlyphTypeToNone () |
void | SetGlyphTypeToVertex () |
void | SetGlyphTypeToDash () |
void | SetGlyphTypeToCross () |
void | SetGlyphTypeToThickCross () |
void | SetGlyphTypeToTriangle () |
void | SetGlyphTypeToSquare () |
void | SetGlyphTypeToCircle () |
void | SetGlyphTypeToDiamond () |
void | SetGlyphTypeToArrow () |
void | SetGlyphTypeToThickArrow () |
void | SetGlyphTypeToHookedArrow () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGlyphSource2D * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkGlyphSource2D () | |
~vtkGlyphSource2D () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | TransformGlyph (vtkPoints *pts) |
void | ConvertColor () |
void | CreateVertex (vtkPoints *pts, vtkCellArray *verts, vtkUnsignedCharArray *colors) |
void | CreateDash (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale) |
void | CreateCross (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale) |
void | CreateThickCross (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateTriangle (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateSquare (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateCircle (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateDiamond (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateThickArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
void | CreateHookedArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors) |
Protected Attributes | |
double | Center [3] |
double | Scale |
double | Scale2 |
double | Color [3] |
int | Filled |
int | Dash |
int | Cross |
int | GlyphType |
double | RotationAngle |
unsigned char | RGB [3] |
|
Reimplemented from vtkPolyDataAlgorithm. Definition at line 60 of file vtkGlyphSource2D.h. |
|
|
|
Definition at line 148 of file vtkGlyphSource2D.h. |
|
Reimplemented from vtkPolyDataAlgorithm. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataAlgorithm. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataAlgorithm. |
|
Reimplemented from vtkPolyDataAlgorithm. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkPolyDataAlgorithm. |
|
Construct a vertex glyph centered at the origin, scale 1.0, white in color, filled, with line segment passing through the point. Reimplemented from vtkPolyDataAlgorithm. |
|
Set the center of the glyph. By default the center is (0,0,0). |
|
Set the center of the glyph. By default the center is (0,0,0). |
|
Set the center of the glyph. By default the center is (0,0,0). |
|
Set the center of the glyph. By default the center is (0,0,0). |
|
Set the scale of the glyph. Note that the glyphs are designed to fit in the (1,1) rectangle. |
|
Set the scale of the glyph. Note that the glyphs are designed to fit in the (1,1) rectangle. |
|
Set the scale of optional portions of the glyph (e.g., the dash and cross is DashOn() and CrossOn()). |
|
Set the scale of optional portions of the glyph (e.g., the dash and cross is DashOn() and CrossOn()). |
|
Set the color of the glyph. The default color is white. |
|
Set the color of the glyph. The default color is white. |
|
Set the color of the glyph. The default color is white. |
|
Set the color of the glyph. The default color is white. |
|
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs. |
|
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs. |
|
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs. |
|
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs. |
|
Specify whether a short line segment is drawn through the glyph. (This is in addition to the glyph. If the glyph type is set to "Dash" there is no need to enable this flag.) |
|
Specify whether a short line segment is drawn through the glyph. (This is in addition to the glyph. If the glyph type is set to "Dash" there is no need to enable this flag.) |
|
Specify whether a short line segment is drawn through the glyph. (This is in addition to the glyph. If the glyph type is set to "Dash" there is no need to enable this flag.) |
|
Specify whether a short line segment is drawn through the glyph. (This is in addition to the glyph. If the glyph type is set to "Dash" there is no need to enable this flag.) |
|
Specify whether a cross is drawn as part of the glyph. (This is in addition to the glyph. If the glyph type is set to "Cross" there is no need to enable this flag.) |
|
Specify whether a cross is drawn as part of the glyph. (This is in addition to the glyph. If the glyph type is set to "Cross" there is no need to enable this flag.) |
|
Specify whether a cross is drawn as part of the glyph. (This is in addition to the glyph. If the glyph type is set to "Cross" there is no need to enable this flag.) |
|
Specify whether a cross is drawn as part of the glyph. (This is in addition to the glyph. If the glyph type is set to "Cross" there is no need to enable this flag.) |
|
Specify an angle (in degrees) to rotate the glyph around the z-axis. Using this ivar, it is possible to generate rotated glyphs (e.g., crosses, arrows, etc.) |
|
Specify an angle (in degrees) to rotate the glyph around the z-axis. Using this ivar, it is possible to generate rotated glyphs (e.g., crosses, arrows, etc.) |
|
Specify the type of glyph to generate. |
|
Specify the type of glyph to generate. |
|
Specify the type of glyph to generate. Definition at line 132 of file vtkGlyphSource2D.h. References VTK_NO_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 133 of file vtkGlyphSource2D.h. References VTK_VERTEX_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 134 of file vtkGlyphSource2D.h. References VTK_DASH_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 135 of file vtkGlyphSource2D.h. References VTK_CROSS_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 136 of file vtkGlyphSource2D.h. References VTK_THICKCROSS_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 137 of file vtkGlyphSource2D.h. References VTK_TRIANGLE_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 138 of file vtkGlyphSource2D.h. References VTK_SQUARE_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 139 of file vtkGlyphSource2D.h. References VTK_CIRCLE_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 140 of file vtkGlyphSource2D.h. References VTK_DIAMOND_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 141 of file vtkGlyphSource2D.h. References VTK_ARROW_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 142 of file vtkGlyphSource2D.h. References VTK_THICKARROW_GLYPH. |
|
Specify the type of glyph to generate. Definition at line 143 of file vtkGlyphSource2D.h. References VTK_HOOKEDARROW_GLYPH. |
|
This is called by the superclass. This is the method you should override. Reimplemented from vtkPolyDataAlgorithm. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 152 of file vtkGlyphSource2D.h. |
|
Definition at line 153 of file vtkGlyphSource2D.h. |
|
Definition at line 154 of file vtkGlyphSource2D.h. |
|
Definition at line 155 of file vtkGlyphSource2D.h. |
|
Definition at line 156 of file vtkGlyphSource2D.h. |
|
Definition at line 157 of file vtkGlyphSource2D.h. |
|
Definition at line 158 of file vtkGlyphSource2D.h. |
|
Definition at line 159 of file vtkGlyphSource2D.h. |
|
Definition at line 160 of file vtkGlyphSource2D.h. |
|
Definition at line 164 of file vtkGlyphSource2D.h. |