Debian Codegraph @

lib/database/src/so/nodes/SoFont.c++

raw symbols SCIP
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 /*
38 * Copyright (C) 1990,91 Silicon Graphics, Inc.
39 *
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.1.1.1 $
44 |
45 | Classes:
46 | SoFont
47 |
48 | Author(s) : Thad Beier
49 |
50 ______________ S I L I C O N G R A P H I C S I N C . ____________
51 _______________________________________________________________________
52 */
53
54 #include <Inventor/actions/SoCallbackAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoCallbackAction.h`/
55 #include <Inventor/actions/SoGLRenderAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoGLRenderAction.h`/
56 #include <Inventor/actions/SoGetBoundingBoxAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoGetBoundingBoxAction.h`/
57 #include <Inventor/actions/SoPickAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoPickAction.h`/
58 #include <Inventor/elements/SoFontNameElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoFontNameElement.h`/
59 #include <Inventor/elements/SoFontSizeElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoFontSizeElement.h`/
60 #include <Inventor/elements/SoOverrideElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoOverrideElement.h`/
61 #include <Inventor/nodes/SoFont.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoFont.h`/
62
63 SO_NODE_SOURCEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:241:9`!(SoFont);
64
65 ////////////////////////////////////////////////////////////////////////
66 //
67 // Description:
68 // Constructor
69 //
70 // Use: public
71
72 SoFontcxx . . $ SoFont#::SoFontcxx . . $ SoFont#SoFont(49f6e7a06ebc5aa8).()
73 //
74 ////////////////////////////////////////////////////////////////////////
75 {
76 SO_NODE_CONSTRUCTORcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:309:9`!(SoFont);
77 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(name, (SoFontNameElement::getDefault()));
78 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(size, (SoFontSizeElement::getDefault()));
79 isBuiltIncxx . . $ SoFieldContainer#isBuiltIn. = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!;
80 }
81
82 ////////////////////////////////////////////////////////////////////////
83 //
84 // Description:
85 // Destructor
86 //
87 // Use: private
88
89 SoFontcxx . . $ SoFont#::~cxx . . $ SoFont#`~SoFont`(49f6e7a06ebc5aa8).SoFontcxx . . $ SoFont#()
90 //
91 ////////////////////////////////////////////////////////////////////////
92 {
93 }
94
95 ////////////////////////////////////////////////////////////////////////
96 //
97 // Description:
98 // Handles actions
99 //
100 // Use: extender
101
102 void
103 SoFontcxx . . $ SoFont#::doActioncxx . . $ SoFont#doAction(967167263c8a77b7).(SoActioncxx . . $ SoAction# *action)
104 //
105 ////////////////////////////////////////////////////////////////////////
106 {
107 SoStatecxx . . $ SoState# *state = action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).();
108
109 if (! namecxx . . $ SoFont#name..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).()
110 && ! SoOverrideElementcxx . . $ SoOverrideElement#::getFontNameOverridecxx . . $ SoOverrideElement#getFontNameOverride(fec557bbb5044c9b).(state)) {
111 if (isOverridecxx . . $ SoNode#isOverride(455f465bc33b4cdf).()) {
112 SoOverrideElementcxx . . $ SoOverrideElement#::setFontNameOverridecxx . . $ SoOverrideElement#setFontNameOverride(2ed35df5b93ae4e2).(state, this, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
113 }
114 SoFontNameElementcxx . . $ SoFontNameElement#::setcxx . . $ SoFontNameElement#set(bc810e8c60216df9).(state, this, namecxx . . $ SbName#SbName(85c52e162fed56f9)..getValuecxx . . $ SoSFName#getValue(96f83ea34e3884f5).().getStringcxx . . $ SbName#getString(a9f41ea0e82d88cf).());
115 }
116
117 if (! sizecxx . . $ SoFont#size..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).()
118 && ! SoOverrideElementcxx . . $ SoOverrideElement#::getFontSizeOverridecxx . . $ SoOverrideElement#getFontSizeOverride(fec557bbb5044c9b).(state)) {
119 if (isOverridecxx . . $ SoNode#isOverride(455f465bc33b4cdf).()) {
120 SoOverrideElementcxx . . $ SoOverrideElement#::setFontSizeOverridecxx . . $ SoOverrideElement#setFontSizeOverride(2ed35df5b93ae4e2).(state, this, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
121 }
122 SoFontSizeElementcxx . . $ SoFontSizeElement#::setcxx . . $ SoFontSizeElement#set(c13d2828697b1f9d).(state, sizecxx . . $ SoFont#size..getValuecxx . . $ SoSFFloat#getValue(5036dfe8d4170af2).());
123 }
124 }
125
126 ////////////////////////////////////////////////////////////////////////
127 //
128 // Description:
129 // Does callback action thing.
130 //
131 // Use: extender
132
133 void
134 SoFontcxx . . $ SoFont#::callbackcxx . . $ SoFont#callback(425635c2081b81c8).(SoCallbackActioncxx . . $ SoCallbackAction# *action)
135 //
136 ////////////////////////////////////////////////////////////////////////
137 {
138 SoFontcxx . . $ SoFont#::doActioncxx . . $ SoFont#doAction(967167263c8a77b7).(action);
139 }
140
141 ////////////////////////////////////////////////////////////////////////
142 //
143 // Description:
144 // Does GL render action.
145 //
146 // Use: extender
147
148 void
149 SoFontcxx . . $ SoFont#::GLRendercxx . . $ SoFont#GLRender(5c806c737f468e18).(SoGLRenderActioncxx . . $ SoGLRenderAction# *action)
150 //
151 ////////////////////////////////////////////////////////////////////////
152 {
153 SoFontcxx . . $ SoFont#::doActioncxx . . $ SoFont#doAction(967167263c8a77b7).(action);
154 }
155
156 ////////////////////////////////////////////////////////////////////////
157 //
158 // Description:
159 // Does pick action...
160 //
161 // Use: extender
162
163 void
164 SoFontcxx . . $ SoFont#::pickcxx . . $ SoFont#pick(7b4c6871cb3411ea).(SoPickActioncxx . . $ SoPickAction# *action)
165 //
166 ////////////////////////////////////////////////////////////////////////
167 {
168 SoFontcxx . . $ SoFont#::doActioncxx . . $ SoFont#doAction(967167263c8a77b7).(action);
169 }
170
171 ////////////////////////////////////////////////////////////////////////
172 //
173 // Description:
174 // Does get bounding box action...
175 //
176 // Use: extender
177
178 void
179 SoFontcxx . . $ SoFont#::getBoundingBoxcxx . . $ SoFont#getBoundingBox(dd7d7d7c2dd56aae).(SoGetBoundingBoxActioncxx . . $ SoGetBoundingBoxAction# *action)
180 //
181 ////////////////////////////////////////////////////////////////////////
182 {
183 SoFontcxx . . $ SoFont#::doActioncxx . . $ SoFont#doAction(967167263c8a77b7).(action);
184 }