Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMarkupsGlyphSource2D Class Reference

#include <Modules/Loadable/Markups/VTKWidgets/vtkMarkupsGlyphSource2D.h>

Inheritance diagram for vtkMarkupsGlyphSource2D:
Inheritance graph
[legend]
Collaboration diagram for vtkMarkupsGlyphSource2D:
Collaboration graph
[legend]

Public Types

enum  GlyphTypes {
  GlyphNone = 0, GlyphStarBurst, GlyphCross, GlyphCrossDot,
  GlyphThickCross, GlyphVertex, GlyphDash, GlyphTriangle,
  GlyphSquare, GlyphCircle, GlyphDiamond, GlyphArrow,
  GlyphThickArrow, GlyphHookedArrow, GlyphType_Last
}
 
typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual void CrossOff ()
 
virtual void CrossOn ()
 
virtual void DashOff ()
 
virtual void DashOn ()
 
virtual void FilledOff ()
 
virtual void FilledOn ()
 
virtual double * GetCenter ()
 
virtual void GetCenter (double data[3])
 
virtual const char * GetClassName ()
 
virtual double * GetColor ()
 
virtual void GetColor (double data[3])
 
virtual int GetCross ()
 
virtual int GetDash ()
 
virtual int GetFilled ()
 
virtual int GetGlyphType ()
 
virtual double GetRotationAngle ()
 
virtual double GetScale ()
 
virtual double GetScale2 ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetCenter (double, double, double)
 Set the center of the glyph. By default the center is (0,0,0). More...
 
virtual void SetCenter (double [3])
 
virtual void SetColor (double, double, double)
 Set the color of the glyph. The default color is white. More...
 
virtual void SetColor (double [3])
 
virtual void SetCross (int)
 
virtual void SetDash (int)
 
virtual void SetFilled (int)
 
virtual void SetGlyphType (int)
 Specify the type of glyph to generate. More...
 
void SetGlyphTypeToArrow ()
 
void SetGlyphTypeToCircle ()
 
void SetGlyphTypeToCross ()
 
void SetGlyphTypeToCrossDot ()
 
void SetGlyphTypeToDash ()
 
void SetGlyphTypeToDiamond ()
 
void SetGlyphTypeToHookedArrow ()
 
void SetGlyphTypeToNone ()
 
void SetGlyphTypeToSquare ()
 
void SetGlyphTypeToStarBurst ()
 
void SetGlyphTypeToThickArrow ()
 
void SetGlyphTypeToThickCross ()
 
void SetGlyphTypeToTriangle ()
 
void SetGlyphTypeToVertex ()
 
void SetNextGlyphType ()
 
virtual void SetRotationAngle (double)
 
virtual void SetScale (double)
 
virtual void SetScale2 (double)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkMarkupsGlyphSource2DNew ()
 
static vtkMarkupsGlyphSource2DSafeDownCast (vtkObject *o)
 

Protected Member Functions

void ConvertColor ()
 
void CreateArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateCircle (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateCross (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale=1.0, bool dot=false)
 
void CreateDash (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors, double scale=1.0)
 
void CreateDiamond (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateHookedArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateSquare (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateStarBurst (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateThickArrow (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateThickCross (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateTriangle (vtkPoints *pts, vtkCellArray *lines, vtkCellArray *polys, vtkUnsignedCharArray *colors)
 
void CreateVertex (vtkPoints *pts, vtkCellArray *verts, vtkUnsignedCharArray *colors)
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 
void TransformGlyph (vtkPoints *pts)
 
 vtkMarkupsGlyphSource2D ()
 
 ~vtkMarkupsGlyphSource2D () override=default
 

Protected Attributes

double Center [3]
 
double Color [3]
 
int Cross
 
int Dash
 
int Filled
 
int GlyphType
 
unsigned char RGB [3]
 
double RotationAngle
 
double Scale
 
double Scale2
 

Detailed Description

Definition at line 51 of file vtkMarkupsGlyphSource2D.h.

Member Typedef Documentation

◆ Superclass

typedef vtkPolyDataAlgorithm vtkMarkupsGlyphSource2D::Superclass

Definition at line 54 of file vtkMarkupsGlyphSource2D.h.

Member Enumeration Documentation

◆ GlyphTypes

Enumerator
GlyphNone 
GlyphStarBurst 
GlyphCross 
GlyphCrossDot 
GlyphThickCross 
GlyphVertex 
GlyphDash 
GlyphTriangle 
GlyphSquare 
GlyphCircle 
GlyphDiamond 
GlyphArrow 
GlyphThickArrow 
GlyphHookedArrow 
GlyphType_Last 

Definition at line 126 of file vtkMarkupsGlyphSource2D.h.

Constructor & Destructor Documentation

◆ vtkMarkupsGlyphSource2D()

vtkMarkupsGlyphSource2D::vtkMarkupsGlyphSource2D ( )
protected

◆ ~vtkMarkupsGlyphSource2D()

vtkMarkupsGlyphSource2D::~vtkMarkupsGlyphSource2D ( )
overrideprotecteddefault

Member Function Documentation

◆ ConvertColor()

void vtkMarkupsGlyphSource2D::ConvertColor ( )
protected

◆ CreateArrow()

void vtkMarkupsGlyphSource2D::CreateArrow ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateCircle()

void vtkMarkupsGlyphSource2D::CreateCircle ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateCross()

void vtkMarkupsGlyphSource2D::CreateCross ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors,
double  scale = 1.0,
bool  dot = false 
)
protected

◆ CreateDash()

void vtkMarkupsGlyphSource2D::CreateDash ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors,
double  scale = 1.0 
)
protected

◆ CreateDiamond()

void vtkMarkupsGlyphSource2D::CreateDiamond ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateHookedArrow()

void vtkMarkupsGlyphSource2D::CreateHookedArrow ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateSquare()

void vtkMarkupsGlyphSource2D::CreateSquare ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateStarBurst()

void vtkMarkupsGlyphSource2D::CreateStarBurst ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateThickArrow()

void vtkMarkupsGlyphSource2D::CreateThickArrow ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateThickCross()

void vtkMarkupsGlyphSource2D::CreateThickCross ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateTriangle()

void vtkMarkupsGlyphSource2D::CreateTriangle ( vtkPoints *  pts,
vtkCellArray *  lines,
vtkCellArray *  polys,
vtkUnsignedCharArray *  colors 
)
protected

◆ CreateVertex()

void vtkMarkupsGlyphSource2D::CreateVertex ( vtkPoints *  pts,
vtkCellArray *  verts,
vtkUnsignedCharArray *  colors 
)
protected

◆ CrossOff()

virtual void vtkMarkupsGlyphSource2D::CrossOff ( )
virtual

◆ CrossOn()

virtual void vtkMarkupsGlyphSource2D::CrossOn ( )
virtual

◆ DashOff()

virtual void vtkMarkupsGlyphSource2D::DashOff ( )
virtual

◆ DashOn()

virtual void vtkMarkupsGlyphSource2D::DashOn ( )
virtual

◆ FilledOff()

virtual void vtkMarkupsGlyphSource2D::FilledOff ( )
virtual

◆ FilledOn()

virtual void vtkMarkupsGlyphSource2D::FilledOn ( )
virtual

◆ GetCenter() [1/2]

virtual double* vtkMarkupsGlyphSource2D::GetCenter ( )
virtual

◆ GetCenter() [2/2]

virtual void vtkMarkupsGlyphSource2D::GetCenter ( double  data[3])
virtual

◆ GetClassName()

virtual const char* vtkMarkupsGlyphSource2D::GetClassName ( )
virtual

◆ GetColor() [1/2]

virtual double* vtkMarkupsGlyphSource2D::GetColor ( )
virtual

◆ GetColor() [2/2]

virtual void vtkMarkupsGlyphSource2D::GetColor ( double  data[3])
virtual

◆ GetCross()

virtual int vtkMarkupsGlyphSource2D::GetCross ( )
virtual

◆ GetDash()

virtual int vtkMarkupsGlyphSource2D::GetDash ( )
virtual

◆ GetFilled()

virtual int vtkMarkupsGlyphSource2D::GetFilled ( )
virtual

◆ GetGlyphType()

virtual int vtkMarkupsGlyphSource2D::GetGlyphType ( )
virtual

◆ GetRotationAngle()

virtual double vtkMarkupsGlyphSource2D::GetRotationAngle ( )
virtual

◆ GetScale()

virtual double vtkMarkupsGlyphSource2D::GetScale ( )
virtual

◆ GetScale2()

virtual double vtkMarkupsGlyphSource2D::GetScale2 ( )
virtual

◆ IsA()

virtual int vtkMarkupsGlyphSource2D::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkMarkupsGlyphSource2D::IsTypeOf ( const char *  type)
static

◆ New()

static vtkMarkupsGlyphSource2D* vtkMarkupsGlyphSource2D::New ( )
static

Construct a vertex glyph centered at the origin, scale 1.0, white in color, filled, with line segment passing through the point.

◆ PrintSelf()

void vtkMarkupsGlyphSource2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ RequestData()

int vtkMarkupsGlyphSource2D::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
overrideprotected

◆ SafeDownCast()

static vtkMarkupsGlyphSource2D* vtkMarkupsGlyphSource2D::SafeDownCast ( vtkObject *  o)
static

◆ SetCenter() [1/2]

virtual void vtkMarkupsGlyphSource2D::SetCenter ( double  [3])
virtual

◆ SetCenter() [2/2]

virtual void vtkMarkupsGlyphSource2D::SetCenter ( double  ,
double  ,
double   
)
virtual

Set the center of the glyph. By default the center is (0,0,0).

◆ SetColor() [1/2]

virtual void vtkMarkupsGlyphSource2D::SetColor ( double  [3])
virtual

◆ SetColor() [2/2]

virtual void vtkMarkupsGlyphSource2D::SetColor ( double  ,
double  ,
double   
)
virtual

Set the color of the glyph. The default color is white.

◆ SetCross()

virtual void vtkMarkupsGlyphSource2D::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.)

◆ SetDash()

virtual void vtkMarkupsGlyphSource2D::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.)

◆ SetFilled()

virtual void vtkMarkupsGlyphSource2D::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.

◆ SetGlyphType()

virtual void vtkMarkupsGlyphSource2D::SetGlyphType ( int  )
virtual

Specify the type of glyph to generate.

◆ SetGlyphTypeToArrow()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToArrow ( )
inline

Definition at line 120 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToCircle()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToCircle ( )
inline

Definition at line 118 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToCross()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToCross ( )
inline

Definition at line 111 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToCrossDot()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToCrossDot ( )
inline

Definition at line 112 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToDash()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToDash ( )
inline

Definition at line 115 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToDiamond()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToDiamond ( )
inline

Definition at line 119 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToHookedArrow()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToHookedArrow ( )
inline

Definition at line 122 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToNone()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToNone ( )
inline

Definition at line 109 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToSquare()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToSquare ( )
inline

Definition at line 117 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToStarBurst()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToStarBurst ( )
inline

Definition at line 110 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToThickArrow()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToThickArrow ( )
inline

Definition at line 121 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToThickCross()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToThickCross ( )
inline

Definition at line 113 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToTriangle()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToTriangle ( )
inline

Definition at line 116 of file vtkMarkupsGlyphSource2D.h.

◆ SetGlyphTypeToVertex()

void vtkMarkupsGlyphSource2D::SetGlyphTypeToVertex ( )
inline

Definition at line 114 of file vtkMarkupsGlyphSource2D.h.

◆ SetNextGlyphType()

void vtkMarkupsGlyphSource2D::SetNextGlyphType ( )

◆ SetRotationAngle()

virtual void vtkMarkupsGlyphSource2D::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.)

◆ SetScale()

virtual void vtkMarkupsGlyphSource2D::SetScale ( double  )
virtual

Set the scale of the glyph. Note that the glyphs are designed to fit in the (1,1) rectangle.

◆ SetScale2()

virtual void vtkMarkupsGlyphSource2D::SetScale2 ( double  )
virtual

Set the scale of optional portions of the glyph (e.g., the dash and cross is DashOn() and CrossOn()).

◆ TransformGlyph()

void vtkMarkupsGlyphSource2D::TransformGlyph ( vtkPoints *  pts)
protected

Member Data Documentation

◆ Center

double vtkMarkupsGlyphSource2D::Center[3]
protected

Definition at line 151 of file vtkMarkupsGlyphSource2D.h.

◆ Color

double vtkMarkupsGlyphSource2D::Color[3]
protected

Definition at line 154 of file vtkMarkupsGlyphSource2D.h.

◆ Cross

int vtkMarkupsGlyphSource2D::Cross
protected

Definition at line 157 of file vtkMarkupsGlyphSource2D.h.

◆ Dash

int vtkMarkupsGlyphSource2D::Dash
protected

Definition at line 156 of file vtkMarkupsGlyphSource2D.h.

◆ Filled

int vtkMarkupsGlyphSource2D::Filled
protected

Definition at line 155 of file vtkMarkupsGlyphSource2D.h.

◆ GlyphType

int vtkMarkupsGlyphSource2D::GlyphType
protected

Definition at line 158 of file vtkMarkupsGlyphSource2D.h.

◆ RGB

unsigned char vtkMarkupsGlyphSource2D::RGB[3]
protected

Definition at line 163 of file vtkMarkupsGlyphSource2D.h.

◆ RotationAngle

double vtkMarkupsGlyphSource2D::RotationAngle
protected

Definition at line 159 of file vtkMarkupsGlyphSource2D.h.

◆ Scale

double vtkMarkupsGlyphSource2D::Scale
protected

Definition at line 152 of file vtkMarkupsGlyphSource2D.h.

◆ Scale2

double vtkMarkupsGlyphSource2D::Scale2
protected

Definition at line 153 of file vtkMarkupsGlyphSource2D.h.


The documentation for this class was generated from the following file: