1SoFontStyle(3IV)()                                          SoFontStyle(3IV)()
2
3
4

NAME

6       SoFontStyle — simple 3D text shape node
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoFont > SoFontStyle
10

SYNOPSIS

12       #include <Inventor/nodes/SoFontStyle.h>
13
14     enum Family {
15          SoFontStyle::SERIF       Use Serif style (such as Times-Roman)
16          SoFontStyle::SANS        Use Sans Serif style (such as Helvetica)
17          SoFontStyle::TYPEWRITER  Use fixed pitch style (such as Courier)
18     }
19
20     enum Style {
21          SoFontStyle::NONE    No modification to Family
22          SoFontStyle::BOLD    Embolden Family
23          SoFontStyle::ITALIC  Italicize or Slant Family
24     }
25
26          Fields from class SoFontStyle:
27
28     SoSFEnum            family
29     SoSFBitMask         style
30
31          Fields from class SoFont:
32
33     SoSFName            name
34     SoSFFloat           size
35
36          Methods from class SoFontStyle:
37
38                         SoFontStyle()
39     static SoType       getClassTypeId()
40     SbString            getFontName()
41
42          Methods from class SoNode:
43
44     void                setOverride(SbBool state)
45     SbBool              isOverride() const
46     SoNode *            copy(SbBool copyConnections = FALSE) const
47     virtual SbBool      affectsState() const
48     static SoNode *     getByName(const SbName &name)
49     static int          getByName(const SbName &name, SoNodeList &list)
50
51          Methods from class SoFieldContainer:
52
53     void                setToDefaults()
54     SbBool              hasDefaultValues() const
55     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
56     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
57                              copyConnections = FALSE)
58     SbBool              set(const char *fieldDataString)
59     void                get(SbString &fieldDataString)
60     virtual int         getFields(SoFieldList &resultList) const
61     virtual SoField *   getField(const SbName &fieldName) const
62     SbBool              getFieldName(const SoField *field, SbName &fieldName)
63                              const
64     SbBool              isNotifyEnabled() const
65     SbBool              enableNotify(SbBool flag)
66
67          Methods from class SoBase:
68
69     void                ref()
70     void                unref() const
71     void                unrefNoDelete() const
72     void                touch()
73     virtual SoType      getTypeId() const
74     SbBool              isOfType(SoType type) const
75     virtual void        setName(const SbName &name)
76     virtual SbName      getName() const
77
78

DESCRIPTION

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

FIELDS

84     SoSFEnum            family
85          Defines the family of font to use.
86
87     SoSFBitMask         style
88          Defines style modifications to  the  chosen  font,  either  bold  or
89          italic or no change.
90
91

METHODS

93                         SoFontStyle()
94          Creates a font style node with default settings.
95
96     static SoType       getClassTypeId()
97          Returns type identifier for this class.
98
99     SbString            getFontName()
100          Returns  the  font  name  used by this node based on the settings of
101          family and style.
102
103

ACTION BEHAVIOR

105       SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction,  SoRayPick‐
106       Action
107          Sets the font family and style in the current traversal state.
108
109

FILE FORMAT/DEFAULTS

111       FontStyle {
112          name    "defaultFont"
113          size    10
114          family  SERIF
115          style   NONE
116     }
117

SEE ALSO

119       SoAsciiText, SoFont, SoText2, SoText3
120
121
122
123
124                                                            SoFontStyle(3IV)()
Impressum