scenepic 1.1.0
3D Visualization Made Easy
|
A ScenePic label type. More...
#include <label.h>
Public Member Functions | |
const std::string & | label_id () const |
A unique identifier for the Label. More... | |
const std::string & | mesh_id () const |
The mesh associated with this label. More... | |
const std::string & | text () const |
The text to use in the label. More... | |
Label & | text (const std::string &value) |
The text to use in the label. More... | |
const Color & | fill_color () const |
The color to use. More... | |
Label & | fill_color (const Color &value) |
The color to use. More... | |
double | size_in_pixels () const |
The size in pixels to display the label at. More... | |
Label & | size_in_pixels (double value) |
The size in pixels to display the label at. More... | |
const std::string & | font_family () const |
HTML font family name. More... | |
Label & | font_family (const std::string &value) |
HTML font family name. More... | |
const std::string & | horizontal_align () const |
How to align the label horizontally (one of 'left', 'center', 'right') More... | |
Label & | horizontal_align (const std::string &value) |
How to align the label horizontally (one of 'left', 'center', 'right') More... | |
const std::string & | vertical_align () const |
How to align the label vertically (one of 'top', 'middle', 'bottom') More... | |
Label & | vertical_align (const std::string &value) |
How to align the label vertically (one of 'top', 'middle', 'bottom') More... | |
double | offset_distance () const |
Distance in world space to offset the label by when using left/right/top/bottom alignment. More... | |
Label & | offset_distance (double value) |
Distance in world space to offset the label by when using left/right/top/bottom alignment. More... | |
bool | camera_space () const |
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or world space (standard). More... | |
Label & | camera_space (bool camera_space) |
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or world space (standard). More... | |
const std::string & | layer_id () const |
An identifier to allow several Meshes to be grouped together into a "layer". More... | |
Label & | layer_id (const std::string &layer_id) |
An identifier to allow several Meshes to be grouped together into a "layer". More... | |
std::string | to_string () const |
Return a JSON string representing the object. More... | |
JsonValue | to_json () const |
Convert this object into ScenePic json. More... | |
Friends | |
class | Scene |
A ScenePic label type.
bool scenepic::Label::camera_space | ( | ) | const |
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or world space (standard).
Label & scenepic::Label::camera_space | ( | bool | camera_space | ) |
Whether this Mesh is defined in camera space (cannot be moved in the ScenePic user interface) or world space (standard).
const Color & scenepic::Label::fill_color | ( | ) | const |
The color to use.
const std::string & scenepic::Label::font_family | ( | ) | const |
HTML font family name.
Label & scenepic::Label::font_family | ( | const std::string & | value | ) |
HTML font family name.
const std::string & scenepic::Label::horizontal_align | ( | ) | const |
How to align the label horizontally (one of 'left', 'center', 'right')
Label & scenepic::Label::horizontal_align | ( | const std::string & | value | ) |
How to align the label horizontally (one of 'left', 'center', 'right')
const std::string & scenepic::Label::label_id | ( | ) | const |
A unique identifier for the Label.
const std::string & scenepic::Label::layer_id | ( | ) | const |
An identifier to allow several Meshes to be grouped together into a "layer".
Layers should be used in conjunction with Canvas3D.set_layer_settings().
Label & scenepic::Label::layer_id | ( | const std::string & | layer_id | ) |
An identifier to allow several Meshes to be grouped together into a "layer".
Layers should be used in conjunction with Canvas3D.set_layer_settings().
const std::string & scenepic::Label::mesh_id | ( | ) | const |
The mesh associated with this label.
double scenepic::Label::offset_distance | ( | ) | const |
Distance in world space to offset the label by when using left/right/top/bottom alignment.
Label & scenepic::Label::offset_distance | ( | double | value | ) |
Distance in world space to offset the label by when using left/right/top/bottom alignment.
double scenepic::Label::size_in_pixels | ( | ) | const |
The size in pixels to display the label at.
Label & scenepic::Label::size_in_pixels | ( | double | value | ) |
The size in pixels to display the label at.
const std::string & scenepic::Label::text | ( | ) | const |
The text to use in the label.
Label & scenepic::Label::text | ( | const std::string & | value | ) |
The text to use in the label.
JsonValue scenepic::Label::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::Label::to_string | ( | ) | const |
Return a JSON string representing the object.
const std::string & scenepic::Label::vertical_align | ( | ) | const |
How to align the label vertically (one of 'top', 'middle', 'bottom')
Label & scenepic::Label::vertical_align | ( | const std::string & | value | ) |
How to align the label vertically (one of 'top', 'middle', 'bottom')
|
friend |