Open Inventor Reference
SoFontStyle Class Reference

Simple 3D text shape node. More...

#include <Inventor/nodes/SoFontStyle.h>

Inheritance diagram for SoFontStyle:
SoFont SoNode SoFieldContainer SoBase

List of all members.

Public Types

enum  Family { SERIF, SANS, TYPEWRITER }
enum  Style { NONE = 0, BOLD = 0x1, ITALIC = 0x2 }

Public Member Functions

 SoFontStyle ()
 Creates a font style node with default settings.
SbString getFontName ()
 Returns the font name used by this node based on the settings of family and style.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void pick (SoPickAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFEnum family
 Defines the family of font to use.
SoSFBitMask style
 Defines style modifications to the chosen font, either bold or italic or no change.

Protected Member Functions

virtual ~SoFontStyle ()

Detailed Description

This node defines the current font family and style for all subsequent text shapes in the scene graph.

File Format/Default
FontStyle {
  name "defaultFont"
  size 10
  family SERIF
  style NONE
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Sets the font family and style in the current traversal state.
See Also
SoAsciiText, SoFont, SoText2, SoText3

Definition at line 93 of file SoFontStyle.h.


Member Enumeration Documentation

Enumerator:
SERIF 

Use Serif style (such as Times-Roman)

SANS 

Use Sans Serif style (such as Helvetica)

TYPEWRITER 

Use fixed pitch style (such as Courier)

Definition at line 102 of file SoFontStyle.h.

Enumerator:
NONE 

No modification to Family.

BOLD 

Embolden Family.

ITALIC 

Italicize or Slant Family.

Definition at line 108 of file SoFontStyle.h.


Constructor & Destructor Documentation

SoFontStyle::SoFontStyle ( )
virtual SoFontStyle::~SoFontStyle ( ) [protected, virtual]

Member Function Documentation

virtual void SoFontStyle::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoFont.

virtual void SoFontStyle::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoFont.

virtual void SoFontStyle::getBoundingBox ( SoGetBoundingBoxAction action) [virtual]

Reimplemented from SoFont.

SbString SoFontStyle::getFontName ( )
virtual void SoFontStyle::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoFont.

static void SoFontStyle::initClass ( ) [static]

Reimplemented from SoFont.

virtual void SoFontStyle::pick ( SoPickAction action) [virtual]

Reimplemented from SoFont.


Member Data Documentation

Definition at line 118 of file SoFontStyle.h.

Definition at line 121 of file SoFontStyle.h.


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