MeVisLab Toolbox Reference
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>

Inheritance diagram for SoExtText2:

Public Types

enum  Justification { LEFT = 1 , RIGHT , CENTER }
 Justification modes. More...
 
enum  TextPosition { Current3DPosition , RelativeToViewer }
 

Public Member Functions

 SoExtText2 (void)
 
void GLRender (SoGLRenderAction *action) override
 reimplemented inventor method More...
 
void rayPick (SoRayPickAction *action) override
 reimplemented inventor method More...
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFTypedEnum< TextPositionposition
 
SoSFVec2f relativePosition
 
SoSFVec2s boxMargin
 
SoSFVec2s boxPadding
 
SoSFFloat lineSpacing
 
SoSFString string
 text to draw More...
 
SoSFEnum justification
 justification of text More...
 
SoSFColor color
 text color More...
 
SoSFBool shadow
 draw shadow More...
 
SoSFColor shadowColor
 shadow color (if shadow is enabled) More...
 
SoSFBool alwaysOnTop
 draw on top (without depth buffer) More...
 
SoSFUInt32 fontSize
 size of the font in pixels More...
 
SoSFBool applyClippingPlanes
 apply clipping planes. Default is true (= clipping is enabled) More...
 
SoSFBool background
 draw a background rectangle More...
 
SoSFColor backgroundColor
 color of rectangle More...
 
SoSFFloat backgroundAlpha
 blending of rectangle More...
 

Protected Member Functions

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

Detailed Description

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

Implements a node similar to SoText2, but by using View2DFont and extra features (shadow, background, etc.)

Definition at line 38 of file SoExtText2.h.

Member Enumeration Documentation

◆ Justification

Justification modes.

Enumerator
LEFT 
RIGHT 
CENTER 

Definition at line 49 of file SoExtText2.h.

◆ TextPosition

Enumerator
Current3DPosition 
RelativeToViewer 

Definition at line 55 of file SoExtText2.h.

Constructor & Destructor Documentation

◆ SoExtText2()

SoExtText2::SoExtText2 ( void  )

◆ ~SoExtText2()

SoExtText2::~SoExtText2 ( )
overrideprotected

Member Function Documentation

◆ computeBBox()

void SoExtText2::computeBBox ( SoAction *  action,
SbBox3f &  box,
SbVec3f &  center 
)
overrideprotected

reimplemented inventor method

◆ generatePrimitives()

void SoExtText2::generatePrimitives ( SoAction *  action)
overrideprotected

reimplemented inventor method

◆ GLRender()

void SoExtText2::GLRender ( SoGLRenderAction *  action)
override

reimplemented inventor method

◆ initClass()

static void SoExtText2::initClass ( void  )
static

◆ rayPick()

void SoExtText2::rayPick ( SoRayPickAction *  action)
override

reimplemented inventor method

Member Data Documentation

◆ alwaysOnTop

SoSFBool SoExtText2::alwaysOnTop

draw on top (without depth buffer)

Definition at line 78 of file SoExtText2.h.

◆ applyClippingPlanes

SoSFBool SoExtText2::applyClippingPlanes

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

Definition at line 84 of file SoExtText2.h.

◆ background

SoSFBool SoExtText2::background

draw a background rectangle

Definition at line 87 of file SoExtText2.h.

◆ backgroundAlpha

SoSFFloat SoExtText2::backgroundAlpha

blending of rectangle

Definition at line 91 of file SoExtText2.h.

◆ backgroundColor

SoSFColor SoExtText2::backgroundColor

color of rectangle

Definition at line 89 of file SoExtText2.h.

◆ boxMargin

SoSFVec2s SoExtText2::boxMargin

Definition at line 62 of file SoExtText2.h.

◆ boxPadding

SoSFVec2s SoExtText2::boxPadding

Definition at line 63 of file SoExtText2.h.

◆ color

SoSFColor SoExtText2::color

text color

Definition at line 72 of file SoExtText2.h.

◆ fontSize

SoSFUInt32 SoExtText2::fontSize

size of the font in pixels

Definition at line 81 of file SoExtText2.h.

◆ justification

SoSFEnum SoExtText2::justification

justification of text

Definition at line 70 of file SoExtText2.h.

◆ lineSpacing

SoSFFloat SoExtText2::lineSpacing

Definition at line 65 of file SoExtText2.h.

◆ position

SoSFTypedEnum<TextPosition> SoExtText2::position

Definition at line 60 of file SoExtText2.h.

◆ relativePosition

SoSFVec2f SoExtText2::relativePosition

Definition at line 61 of file SoExtText2.h.

◆ shadow

SoSFBool SoExtText2::shadow

draw shadow

Definition at line 74 of file SoExtText2.h.

◆ shadowColor

SoSFColor SoExtText2::shadowColor

shadow color (if shadow is enabled)

Definition at line 76 of file SoExtText2.h.

◆ string

SoSFString SoExtText2::string

text to draw

Definition at line 68 of file SoExtText2.h.


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