Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Txq3dStrokeLabel Class Reference

A Txq3dStrokeLabel is text drawn at a point with respect to the real-world coordinate system. More...

#include <Txq3dStrokeLabel.h>

Inheritance diagram for Txq3dStrokeLabel::

Txq3dLabel Txq3dDrawable TxqDrawable List of all members.

Public Methods

 Txq3dStrokeLabel ()
 This constructor is default. More...

 Txq3dStrokeLabel (QString thisLabel, double sx, double sy, double sz)
 Create a Txq3dStrokeLabel given a label and position. More...

virtual ~Txq3dStrokeLabel ()
 The destructor is default. More...

void paintGL ()
 Paint the label text. More...

float getWidth ()
 Get the width of the label. More...

float getHeight ()
 Get the height of the label. More...


Protected Methods

void strokeCharacter (strokeFont font, int c)
 strokeCharacter will draw a character given the index into the stroke font. More...

void strokeCharacterWidth (strokeFont font, int c)
 The width of the character from the given index value in real-world coordinates. More...


Private Attributes

float labelWidth
 The label width. More...


Detailed Description

A Txq3dStrokeLabel is text drawn at a point with respect to the real-world coordinate system.

This class uses the Txq3dGlutStroke as a font and is available on both Unix and Windows. The font is a vector font and is thus scalable and rotatable.

Copyright 1998 - 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq3dStrokeLabel.h,v 1.6 2001/10/11 20:34:58 kgl Exp

Definition at line 36 of file Txq3dStrokeLabel.h.


Constructor & Destructor Documentation

Txq3dStrokeLabel::Txq3dStrokeLabel ( )
 

This constructor is default.

Txq3dStrokeLabel::Txq3dStrokeLabel ( QString thisLabel,
double sx,
double sy,
double sz )
 

Create a Txq3dStrokeLabel given a label and position.

Parameters:
thisLabel   the label to draw
x   the x position to place the label
y   the y position to place the label
z   the z position to place the label

Txq3dStrokeLabel::~Txq3dStrokeLabel ( ) [virtual]
 

The destructor is default.


Member Function Documentation

float Txq3dStrokeLabel::getHeight ( )
 

Get the height of the label.

Returns:
the height of the label in real world coordinates

float Txq3dStrokeLabel::getWidth ( )
 

Get the width of the label.

Returns:
the width of the label

void Txq3dStrokeLabel::paintGL ( ) [virtual]
 

Paint the label text.

Reimplemented from Txq3dLabel.

void Txq3dStrokeLabel::strokeCharacter ( strokeFont font,
int c ) [protected]
 

strokeCharacter will draw a character given the index into the stroke font.

Parameters:
font   the stroke font
c   the index into the stroke font in order to obtain the character to draw

void Txq3dStrokeLabel::strokeCharacterWidth ( strokeFont font,
int c ) [protected]
 

The width of the character from the given index value in real-world coordinates.

Parameters:
font   the stroke font
c   the index into the stroke font to obtain the character


Member Data Documentation

float Txq3dStrokeLabel::labelWidth [private]
 

The label width.

Definition at line 102 of file Txq3dStrokeLabel.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.