scenepic 1.1.0
3D Visualization Made Easy
|
Settings used for customizing canvas drawing by layer. More...
#include <layer_settings.h>
Public Member Functions | |
LayerSettings (bool filled=true, bool wireframe=false, double opacity=1.0, int render_order=LayerSettings::NO_RENDER_ORDER) | |
Constructor. More... | |
bool | filled () const |
Specifies whether to draw the layer with filled triangles. More... | |
LayerSettings & | filled (bool value) |
Specifies whether to draw the layer with filled triangles. More... | |
bool | wireframe () const |
Specifies whether to draw the layer with a wireframe outline. More... | |
LayerSettings & | wireframe (bool value) |
Specifies whether to draw the layer with a wireframe outline. More... | |
double | opacity () const |
In [0,1] specifies the opacity with which to draw the layer. More... | |
LayerSettings & | opacity (double value) |
In [0,1] specifies the opacity with which to draw the layer. More... | |
int | render_order () const |
Specifies a fixed order to draw transparency. More... | |
LayerSettings & | render_order (int value) |
Specifies a fixed order to draw transparency. 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... | |
Static Public Attributes | |
static const int | NO_RENDER_ORDER |
Special value indicating that this layer has no specific rendering order. More... | |
Settings used for customizing canvas drawing by layer.
scenepic::LayerSettings::LayerSettings | ( | bool | filled = true , |
bool | wireframe = false , |
||
double | opacity = 1.0 , |
||
int | render_order = LayerSettings::NO_RENDER_ORDER |
||
) |
Constructor.
render_order | Where in the transparency order to draw this layer |
filled | whether to draw the layer with filled polygons |
wireframe | whether to draw the layer with a frame outline |
opacity | the opacity with which to draw the layer |
bool scenepic::LayerSettings::filled | ( | ) | const |
Specifies whether to draw the layer with filled triangles.
LayerSettings & scenepic::LayerSettings::filled | ( | bool | value | ) |
Specifies whether to draw the layer with filled triangles.
double scenepic::LayerSettings::opacity | ( | ) | const |
In [0,1] specifies the opacity with which to draw the layer.
LayerSettings & scenepic::LayerSettings::opacity | ( | double | value | ) |
In [0,1] specifies the opacity with which to draw the layer.
int scenepic::LayerSettings::render_order | ( | ) | const |
Specifies a fixed order to draw transparency.
LayerSettings & scenepic::LayerSettings::render_order | ( | int | value | ) |
Specifies a fixed order to draw transparency.
JsonValue scenepic::LayerSettings::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::LayerSettings::to_string | ( | ) | const |
Return a JSON string representing the object.
bool scenepic::LayerSettings::wireframe | ( | ) | const |
Specifies whether to draw the layer with a wireframe outline.
LayerSettings & scenepic::LayerSettings::wireframe | ( | bool | value | ) |
Specifies whether to draw the layer with a wireframe outline.
|
static |
Special value indicating that this layer has no specific rendering order.