HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_ViewportFont Class Reference

#include <GR_ViewportFont.h>

Public Types

enum  YPosition { BOTTOM, TOP, ELEVATED }
 
enum  XPosition { LEFT, RIGHT, CENTRE }
 

Public Member Functions

 GR_ViewportFont ()
 
 GR_ViewportFont (RE_Render *r, GR_DecorFontSize size, GR_DecorFontType charset)
 
virtual ~GR_ViewportFont ()
 
UT_Vector2F getVertexOffsetDist ()
 The offset from the vertex when drawing vertex label decor. More...
 
int label (RE_Render *r, fpreal64 num, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const
 
int label (RE_Render *r, int32 num, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const
 
int label (RE_Render *r, int64 num, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const
 
int label (RE_Render *r, const UT_String &str, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const
 
template<typename T >
int vectorLabel (RE_Render *r, T vec, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const
 

Detailed Description

Definition at line 23 of file GR_ViewportFont.h.

Member Enumeration Documentation

The line number and text direction

Enumerator
LEFT 
RIGHT 
CENTRE 

Definition at line 41 of file GR_ViewportFont.h.

The line number and text direction

Enumerator
BOTTOM 
TOP 
ELEVATED 

Definition at line 35 of file GR_ViewportFont.h.

Constructor & Destructor Documentation

GR_ViewportFont::GR_ViewportFont ( )
inline

Definition at line 27 of file GR_ViewportFont.h.

GR_ViewportFont::GR_ViewportFont ( RE_Render r,
GR_DecorFontSize  size,
GR_DecorFontType  charset 
)
virtual GR_ViewportFont::~GR_ViewportFont ( )
virtual

Member Function Documentation

UT_Vector2F GR_ViewportFont::getVertexOffsetDist ( )
inline

The offset from the vertex when drawing vertex label decor.

Definition at line 112 of file GR_ViewportFont.h.

int GR_ViewportFont::label ( RE_Render r,
fpreal64  num,
const UT_Vector3F pos,
const UT_Vector3F col,
fpreal32 *&  dst_points,
fpreal32 *&  dst_texcoord,
fpreal32 *&  dst_colors,
XPosition  xpos,
YPosition  ypos,
fpreal x_offset 
) const

Functions for drawing certain types of data to the screen. eg. fpreal, int, string, and then vectors of these types pos is the screen position x_offset is an initial offset from pos (useful for rendering

int GR_ViewportFont::label ( RE_Render r,
int32  num,
const UT_Vector3F pos,
const UT_Vector3F col,
fpreal32 *&  dst_points,
fpreal32 *&  dst_texcoord,
fpreal32 *&  dst_colors,
XPosition  xpos,
YPosition  ypos,
fpreal x_offset 
) const
inline

Functions for drawing certain types of data to the screen. eg. fpreal, int, string, and then vectors of these types pos is the screen position x_offset is an initial offset from pos (useful for rendering

Definition at line 65 of file GR_ViewportFont.h.

int GR_ViewportFont::label ( RE_Render r,
int64  num,
const UT_Vector3F pos,
const UT_Vector3F col,
fpreal32 *&  dst_points,
fpreal32 *&  dst_texcoord,
fpreal32 *&  dst_colors,
XPosition  xpos,
YPosition  ypos,
fpreal x_offset 
) const

Functions for drawing certain types of data to the screen. eg. fpreal, int, string, and then vectors of these types pos is the screen position x_offset is an initial offset from pos (useful for rendering

int GR_ViewportFont::label ( RE_Render r,
const UT_String str,
const UT_Vector3F pos,
const UT_Vector3F col,
fpreal32 *&  dst_points,
fpreal32 *&  dst_texcoord,
fpreal32 *&  dst_colors,
XPosition  xpos,
YPosition  ypos,
fpreal x_offset 
) const

Functions for drawing certain types of data to the screen. eg. fpreal, int, string, and then vectors of these types pos is the screen position x_offset is an initial offset from pos (useful for rendering

template<typename T >
int GR_ViewportFont::vectorLabel ( RE_Render r,
T  vec,
const UT_Vector3F pos,
const UT_Vector3F col,
fpreal32 *&  dst_points,
fpreal32 *&  dst_texcoord,
fpreal32 *&  dst_colors,
XPosition  xpos,
YPosition  ypos,
fpreal x_offset 
) const

Functions for drawing certain types of data to the screen. eg. fpreal, int, string, and then vectors of these types pos is the screen position x_offset is an initial offset from pos (useful for rendering

Definition at line 152 of file GR_ViewportFont.h.


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