Coin Logo http://www.sim.no
http://www.coin3d.org

SoFontStyle.h
1 #ifndef COIN_SOFONTSTYLE_H
2 #define COIN_SOFONTSTYLE_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/nodes/SoSubNode.h>
28 #include <Inventor/nodes/SoFont.h>
29 #include <Inventor/fields/SoSFEnum.h>
30 #include <Inventor/fields/SoSFBitMask.h>
31 
32 #ifndef COIN_INTERNAL
33 #include <Inventor/actions/SoCallbackAction.h>
34 #endif // !COIN_INTERNAL
35 
36 class COIN_DLL_API SoFontStyle : public SoFont {
37  typedef SoFont inherited;
38 
39  SO_NODE_HEADER(SoFontStyle);
40 
41 public:
42  static void initClass(void);
43  SoFontStyle(void);
44 
45  enum Family {
46  SERIF, SANS, TYPEWRITER
47  };
48 
49  enum Style {
50  NONE, BOLD, ITALIC
51  };
52 
55 
56  SbString getFontName(void) const;
57 
58  virtual void doAction(SoAction * action);
59  virtual void getBoundingBox(SoGetBoundingBoxAction * action);
60  virtual void GLRender(SoGLRenderAction * action);
61  virtual void callback(SoCallbackAction * action);
62  virtual void pick(SoPickAction * action);
63  virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
64 
65 protected:
66  virtual ~SoFontStyle();
67 };
68 
69 #endif // !COIN_SOFONTSTYLE_H
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoFontStyle::Style
Style
Definition: SoFontStyle.h:49
SoNode::VRML1
@ VRML1
Definition: SoNode.h:61
SoField::isIgnored
SbBool isIgnored(void) const
Definition: SoField.cpp:638
SoDebugError::postWarning
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
SoAction
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
SoFont::size
SoSFFloat size
Definition: SoFont.h:41
SoFont::getBoundingBox
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoFont.cpp:307
SbString
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
SoFont::name
SoSFName name
Definition: SoFont.h:40
SoFontStyle::getBoundingBox
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoFontStyle.cpp:235
SoFontStyle::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoFontStyle.cpp:242
SoOverrideElement::setFontNameOverride
static void setFontNameOverride(SoState *const state, SoNode *const node, const SbBool override)
Definition: SoOverrideElement.cpp:594
SoFontStyle::getFontName
SbString getFontName(void) const
Definition: SoFontStyle.cpp:142
SoFont::doAction
virtual void doAction(SoAction *action)
Definition: SoFont.cpp:282
SoFontStyle::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoFontStyle.cpp:263
SbName::getString
const char * getString(void) const
Definition: SbName.cpp:278
SoSFEnum
The SoSFEnum class is a container for an enum value.
Definition: SoSFEnum.h:31
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoFont::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoFont.cpp:314
SoOverrideElement::setFontSizeOverride
static void setFontSizeOverride(SoState *const state, SoNode *const node, const SbBool override)
Definition: SoOverrideElement.cpp:606
SoFont
The SoFont class is an appearance node for setting fonts.
Definition: SoFont.h:31
SoGetBoundingBoxAction
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition: SoGetBoundingBoxAction.h:34
SoFontStyle::Family
Family
Definition: SoFontStyle.h:45
SoFontStyle::style
SoSFBitMask style
Definition: SoFontStyle.h:54
SoCallbackAction
The SoCallbackAction class invokes callbacks at specific nodes.
Definition: SoCallbackAction.h:70
SoFontStyle
The SoFontStyle class changes the appearance of fonts for text rendering nodes.
Definition: SoFontStyle.h:36
SoFont::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoFont.cpp:335
SoFontStyle::SoFontStyle
SoFontStyle(void)
Definition: SoFontStyle.cpp:105
SoFontStyle::callback
virtual void callback(SoCallbackAction *action)
Definition: SoFontStyle.cpp:249
SoFont::callback
virtual void callback(SoCallbackAction *action)
Definition: SoFont.cpp:321
SoFontStyle::doAction
virtual void doAction(SoAction *action)
Definition: SoFontStyle.cpp:208
SoNode::isOverride
SbBool isOverride(void) const
Definition: SoNode.cpp:683
SoSFBitMask
The SoSFBitMask class is a container for a set of bit flags.
Definition: SoSFBitMask.h:29
SoFontStyle::pick
virtual void pick(SoPickAction *action)
Definition: SoFontStyle.cpp:256
SbString::getString
const char * getString(void) const
Definition: SbString.h:71
SoFont::pick
virtual void pick(SoPickAction *action)
Definition: SoFont.cpp:328
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
SoGetPrimitiveCountAction
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:32
SoFontStyle::~SoFontStyle
virtual ~SoFontStyle()
Definition: SoFontStyle.cpp:126
SoPickAction
The SoPickAction class is the base class for picking actions.
Definition: SoPickAction.h:32
SoFontStyle::family
SoSFEnum family
Definition: SoFontStyle.h:53

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17