8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FONT_STYLE_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FONT_STYLE_H
This class is the base class for all texts.
Definition rendering/Text.h:39
This class implements a node specification object.
Definition scenedescription/Node.h:77
size_t objectAddress() const override
Returns the address of the most derived object.
MultiString justify_
Justify field.
Definition FontStyle.h:88
SingleFloat spacing_
Spacing field.
Definition FontStyle.h:100
MultiString family_
Family field.
Definition FontStyle.h:82
SingleBool topToBottom_
TopToBottom field.
Definition FontStyle.h:106
SingleFloat size_
Size field.
Definition FontStyle.h:97
void onInitialize(const Rendering::SceneRef &scene, const Timestamp timestamp) override
Event function to inform the node that it has been initialized and can apply all internal values to c...
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
void applyToText(Rendering::Text &text) const
Applies all properties to a given text object.
static bool applyFontToText(Rendering::Text &text, const Strings &fontFamilyNames=Strings(), const std::string &fontStyleName=std::string())
Applies the font property to a given text object.
SingleString style_
Style field.
Definition FontStyle.h:103
FontStyle(const SDXEnvironment *environment)
Creates an abstract x3d sensor node.
SingleString language_
Language field.
Definition FontStyle.h:91
SingleBool horizontal_
horizontal field.
Definition FontStyle.h:85
friend class Text
Definition FontStyle.h:34
SingleBool leftToRight_
LeftToRight field.
Definition FontStyle.h:94
X3DFontStyleNode(const SDXEnvironment *environment)
Creates an abstract x3d font style node.
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:64
std::vector< std::string > Strings
Definition of a vector holding strings.
Definition Base.h:162
SmartObjectRef< Scene > SceneRef
Definition of a smart object reference holding a scene node.
Definition rendering/Scene.h:29
Field0D< bool > SingleBool
Definition of a single field with boolean value.
Definition Field0D.h:29
Field0D< Scalar > SingleFloat
Definition of a single field with float value.
Definition Field0D.h:41
Field0D< std::string > SingleString
Definition of a single field with string value.
Definition Field0D.h:77
Field1D< std::string > MultiString
Definition of a multi field with string values.
Definition Field1D.h:78
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15