8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FONT_STYLE_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FONT_STYLE_H
19namespace SceneDescription
77 static bool applyFontToText(
Rendering::Text& text,
const std::vector<std::string>& fontFamilyNames = std::vector<std::string>(),
const std::string& fontStyleName = std::string());
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
This class implements an abstract x3d font style.
Definition FontStyle.h:33
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.
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
SingleBool leftToRight_
LeftToRight field.
Definition FontStyle.h:94
static bool applyFontToText(Rendering::Text &text, const std::vector< std::string > &fontFamilyNames=std::vector< std::string >(), const std::string &fontStyleName=std::string())
Applies the font property to a given text object.
This class implements a x3d text node.
Definition scenedescription/sdx/x3d/Text.h:33
This class implements an abstract x3d font style node.
Definition X3DFontStyleNode.h:31
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition Accessor.h:15