4#ifndef _SCENEPIC_LABEL_H_
5#define _SCENEPIC_LABEL_H_
27 const std::string&
text()
const;
115 Label(
const std::string&
label_id,
const std::shared_ptr<Mesh>& mesh);
117 std::string m_label_id;
119 double m_size_in_pixels;
120 std::string m_font_family;
121 std::string m_horizontal_align;
122 std::string m_vertical_align;
123 double m_offset_distance;
124 std::shared_ptr<Mesh> m_mesh;
Class for representing color values.
Definition: color.h:19
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
A ScenePic label type.
Definition: label.h:18
const std::string & layer_id() const
An identifier to allow several Meshes to be grouped together into a "layer".
Label & vertical_align(const std::string &value)
How to align the label vertically (one of 'top', 'middle', 'bottom')
double offset_distance() const
Distance in world space to offset the label by when using left/right/top/bottom alignment.
const std::string & label_id() const
A unique identifier for the Label.
std::string to_string() const
Return a JSON string representing the object.
const std::string & mesh_id() const
The mesh associated with this label.
Label & text(const std::string &value)
The text to use in the label.
Label & camera_space(bool camera_space)
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or worl...
Label & layer_id(const std::string &layer_id)
An identifier to allow several Meshes to be grouped together into a "layer".
double size_in_pixels() const
The size in pixels to display the label at.
JsonValue to_json() const
Convert this object into ScenePic json.
Label & size_in_pixels(double value)
The size in pixels to display the label at.
Label & offset_distance(double value)
Distance in world space to offset the label by when using left/right/top/bottom alignment.
const std::string & text() const
The text to use in the label.
Label & font_family(const std::string &value)
HTML font family name.
Label & horizontal_align(const std::string &value)
How to align the label horizontally (one of 'left', 'center', 'right')
const std::string & font_family() const
HTML font family name.
bool camera_space() const
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or worl...
Label & fill_color(const Color &value)
The color to use.
const std::string & vertical_align() const
How to align the label vertically (one of 'top', 'middle', 'bottom')
const Color & fill_color() const
The color to use.
const std::string & horizontal_align() const
How to align the label horizontally (one of 'left', 'center', 'right')
Top level container representing an entire ScenePic.
Definition: scene.h:58
Definition: audio_track.h:14