VTK
|
create 2D glyphs represented by vtkPolyData More...
#include <vtkGlyphSource2D.h>
create 2D glyphs represented by vtkPolyData
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 59 of file vtkGlyphSource2D.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 62 of file vtkGlyphSource2D.h.
vtkGlyphSource2D::vtkGlyphSource2D | ( | ) | [protected] |
vtkGlyphSource2D::~vtkGlyphSource2D | ( | ) | [inline, protected] |
Definition at line 160 of file vtkGlyphSource2D.h.
static int vtkGlyphSource2D::IsTypeOf | ( | const char * | name | ) | [static] |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkGlyphSource2D::IsA | ( | const char * | name | ) | [virtual] |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkGlyphSource2D* vtkGlyphSource2D::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkGlyphSource2D::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
vtkGlyphSource2D* vtkGlyphSource2D::NewInstance | ( | ) | const |
Reimplemented from vtkPolyDataAlgorithm.
void vtkGlyphSource2D::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
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.
static vtkGlyphSource2D* vtkGlyphSource2D::New | ( | ) | [static] |
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.
virtual void vtkGlyphSource2D::SetCenter | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Set the center of the glyph. By default the center is (0,0,0).
virtual void vtkGlyphSource2D::SetCenter | ( | double | [3] | ) | [virtual] |
Set the center of the glyph. By default the center is (0,0,0).
virtual double* vtkGlyphSource2D::GetCenter | ( | ) | [virtual] |
Set the center of the glyph. By default the center is (0,0,0).
virtual void vtkGlyphSource2D::GetCenter | ( | double | data[3] | ) | [virtual] |
Set the center of the glyph. By default the center is (0,0,0).
virtual void vtkGlyphSource2D::SetScale | ( | double | ) | [virtual] |
Set the scale of the glyph. Note that the glyphs are designed to fit in the (1,1) rectangle.
virtual double vtkGlyphSource2D::GetScale | ( | ) | [virtual] |
Set the scale of the glyph. Note that the glyphs are designed to fit in the (1,1) rectangle.
virtual void vtkGlyphSource2D::SetScale2 | ( | double | ) | [virtual] |
virtual double vtkGlyphSource2D::GetScale2 | ( | ) | [virtual] |
virtual void vtkGlyphSource2D::SetColor | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Set the color of the glyph. The default color is white.
virtual void vtkGlyphSource2D::SetColor | ( | double | [3] | ) | [virtual] |
Set the color of the glyph. The default color is white.
virtual double* vtkGlyphSource2D::GetColor | ( | ) | [virtual] |
Set the color of the glyph. The default color is white.
virtual void vtkGlyphSource2D::GetColor | ( | double | data[3] | ) | [virtual] |
Set the color of the glyph. The default color is white.
virtual void vtkGlyphSource2D::SetFilled | ( | int | ) | [virtual] |
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs.
virtual int vtkGlyphSource2D::GetFilled | ( | ) | [virtual] |
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs.
virtual void vtkGlyphSource2D::FilledOn | ( | ) | [virtual] |
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs.
virtual void vtkGlyphSource2D::FilledOff | ( | ) | [virtual] |
Specify whether the glyph is filled (a polygon) or not (a closed polygon defined by line segments). This only applies to 2D closed glyphs.
virtual void vtkGlyphSource2D::SetDash | ( | int | ) | [virtual] |
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.)
virtual int vtkGlyphSource2D::GetDash | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::DashOn | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::DashOff | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::SetCross | ( | int | ) | [virtual] |
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.)
virtual int vtkGlyphSource2D::GetCross | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::CrossOn | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::CrossOff | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::SetRotationAngle | ( | double | ) | [virtual] |
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.)
virtual double vtkGlyphSource2D::GetRotationAngle | ( | ) | [virtual] |
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.)
virtual void vtkGlyphSource2D::SetGlyphType | ( | int | ) | [virtual] |
Specify the type of glyph to generate.
virtual int vtkGlyphSource2D::GetGlyphType | ( | ) | [virtual] |
Specify the type of glyph to generate.
void vtkGlyphSource2D::SetGlyphTypeToNone | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 134 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToVertex | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 135 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToDash | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 136 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToCross | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 137 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToThickCross | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 138 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToTriangle | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 139 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToSquare | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 140 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToCircle | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 141 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToDiamond | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 142 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToArrow | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 143 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToThickArrow | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 144 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToHookedArrow | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 145 of file vtkGlyphSource2D.h.
void vtkGlyphSource2D::SetGlyphTypeToEdgeArrow | ( | ) | [inline] |
Specify the type of glyph to generate.
Definition at line 146 of file vtkGlyphSource2D.h.
virtual void vtkGlyphSource2D::SetOutputPointsPrecision | ( | int | ) | [virtual] |
Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
virtual int vtkGlyphSource2D::GetOutputPointsPrecision | ( | ) | [virtual] |
Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
int vtkGlyphSource2D::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
void vtkGlyphSource2D::TransformGlyph | ( | vtkPoints * | pts | ) | [protected] |
void vtkGlyphSource2D::ConvertColor | ( | ) | [protected] |
void vtkGlyphSource2D::CreateVertex | ( | vtkPoints * | pts, |
vtkCellArray * | verts, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateDash | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors, | ||
double | scale | ||
) | [protected] |
void vtkGlyphSource2D::CreateCross | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors, | ||
double | scale | ||
) | [protected] |
void vtkGlyphSource2D::CreateThickCross | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateTriangle | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateSquare | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateCircle | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateDiamond | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateArrow | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateThickArrow | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateHookedArrow | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
void vtkGlyphSource2D::CreateEdgeArrow | ( | vtkPoints * | pts, |
vtkCellArray * | lines, | ||
vtkCellArray * | polys, | ||
vtkUnsignedCharArray * | colors | ||
) | [protected] |
double vtkGlyphSource2D::Center[3] [protected] |
Definition at line 164 of file vtkGlyphSource2D.h.
double vtkGlyphSource2D::Scale [protected] |
Definition at line 165 of file vtkGlyphSource2D.h.
double vtkGlyphSource2D::Scale2 [protected] |
Definition at line 166 of file vtkGlyphSource2D.h.
double vtkGlyphSource2D::Color[3] [protected] |
Definition at line 167 of file vtkGlyphSource2D.h.
int vtkGlyphSource2D::Filled [protected] |
Definition at line 168 of file vtkGlyphSource2D.h.
int vtkGlyphSource2D::Dash [protected] |
Definition at line 169 of file vtkGlyphSource2D.h.
int vtkGlyphSource2D::Cross [protected] |
Definition at line 170 of file vtkGlyphSource2D.h.
int vtkGlyphSource2D::GlyphType [protected] |
Definition at line 171 of file vtkGlyphSource2D.h.
double vtkGlyphSource2D::RotationAngle [protected] |
Definition at line 172 of file vtkGlyphSource2D.h.
int vtkGlyphSource2D::OutputPointsPrecision [protected] |
Definition at line 173 of file vtkGlyphSource2D.h.
unsigned char vtkGlyphSource2D::RGB[3] [protected] |
Definition at line 177 of file vtkGlyphSource2D.h.