MeVisLabToolboxReference
SoExtText2 Class Reference

Implements a node similar to SoText2, but by using the GLUT font and some extra features (shadow, background, etc.) More...

#include <SoExtText2.h>

List of all members.

Public Types

enum  Justification { LEFT = 1, RIGHT, CENTER }
 Justification modes. More...
enum  FontType {
  USE_FONTSTYLE = -1, HELVETICA_10 = 0, HELVETICA_12, HELVETICA_18,
  TIMES_ROMAN_24
}
 Avaliable fonts. More...

Public Member Functions

 SoExtText2 (void)
virtual void GLRender (SoGLRenderAction *action)
 reimplemented inventor method
virtual void rayPick (SoRayPickAction *action)
 reimplemented inventor method
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
 reimplemented inventor method

Static Public Member Functions

static void initClass (void)

Public Attributes

SoSFString string
 text to draw
SoSFEnum justification
 justification of text
SoSFEnum font
 Font type (of type FontType)
SoSFColor color
 text color
SoSFBool shadow
 draw black shadow
SoSFBool alwaysOnTop
 draw on top (without depth buffer)
SoSFBool applyClippingPlanes
 apply clipping planes. Default is true (= clipping is enabled)
SoSFBool background
 draw a background rectangle
SoSFColor backgroundColor
 color of rectangle
SoSFFloat backgroundAlpha
 blending of rectangle

Protected Member Functions

virtual ~SoExtText2 ()
virtual void generatePrimitives (SoAction *action)
 reimplemented inventor method
virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 reimplemented inventor method

Detailed Description

Implements a node similar to SoText2, but by using the GLUT font and some extra features (shadow, background, etc.)

Author:
Florian Link

Definition at line 38 of file SoExtText2.h.


Member Enumeration Documentation

Avaliable fonts.

Enumerator:
USE_FONTSTYLE 
HELVETICA_10 
HELVETICA_12 
HELVETICA_18 
TIMES_ROMAN_24 

Definition at line 55 of file SoExtText2.h.

Justification modes.

Enumerator:
LEFT 
RIGHT 
CENTER 

Definition at line 48 of file SoExtText2.h.


Constructor & Destructor Documentation

SoExtText2::SoExtText2 ( void  )
virtual SoExtText2::~SoExtText2 ( ) [protected, virtual]

Member Function Documentation

virtual void SoExtText2::computeBBox ( SoAction *  action,
SbBox3f &  box,
SbVec3f &  center 
) [protected, virtual]

reimplemented inventor method

virtual void SoExtText2::generatePrimitives ( SoAction *  action) [protected, virtual]

reimplemented inventor method

virtual void SoExtText2::getPrimitiveCount ( SoGetPrimitiveCountAction *  action) [virtual]

reimplemented inventor method

virtual void SoExtText2::GLRender ( SoGLRenderAction *  action) [virtual]

reimplemented inventor method

static void SoExtText2::initClass ( void  ) [static]
virtual void SoExtText2::rayPick ( SoRayPickAction *  action) [virtual]

reimplemented inventor method


Member Data Documentation

draw on top (without depth buffer)

Definition at line 74 of file SoExtText2.h.

apply clipping planes. Default is true (= clipping is enabled)

Definition at line 78 of file SoExtText2.h.

draw a background rectangle

Definition at line 81 of file SoExtText2.h.

blending of rectangle

Definition at line 85 of file SoExtText2.h.

color of rectangle

Definition at line 83 of file SoExtText2.h.

SoSFColor SoExtText2::color

text color

Definition at line 70 of file SoExtText2.h.

SoSFEnum SoExtText2::font

Font type (of type FontType)

Definition at line 68 of file SoExtText2.h.

justification of text

Definition at line 66 of file SoExtText2.h.

draw black shadow

Definition at line 72 of file SoExtText2.h.

SoSFString SoExtText2::string

text to draw

Definition at line 64 of file SoExtText2.h.


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