OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::BBoxData Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/GCode/ThumbnailData.hpp>

Collaboration diagram for Slic3r::BBoxData:

Public Member Functions

void to_json (nlohmann::json &j) const
void from_json (const nlohmann::json &j)

Public Attributes

int id
std::vector< coordf_t > bbox
float area
float layer_height
std::string name

Detailed Description

Member Function Documentation

◆ from_json()

void Slic3r::BBoxData::from_json ( const nlohmann::json & j)
20{
21 j.at("id").get_to(id);
22 j.at("bbox").get_to(bbox);
23 j.at("area").get_to(area);
24 j.at("layer_height").get_to(layer_height);
25 j.at("name").get_to(name);
26}
float layer_height
Definition ThumbnailData.hpp:54
std::string name
Definition ThumbnailData.hpp:55
std::vector< coordf_t > bbox
Definition ThumbnailData.hpp:52
float area
Definition ThumbnailData.hpp:53

References area, bbox, layer_height, and name.

Referenced by Slic3r::PlateBBoxData::from_json().

Here is the caller graph for this function:

◆ to_json()

void Slic3r::BBoxData::to_json ( nlohmann::json & j) const
9{
10 j = nlohmann::json{
11 {"id",id},
12 {"bbox",bbox},
13 {"area",area},
14 {"layer_height",layer_height},
15 {"name",name}
16 };
17}

References area, bbox, layer_height, and name.

Member Data Documentation

◆ area

◆ bbox

◆ id

int Slic3r::BBoxData::id

◆ layer_height

◆ name


The documentation for this struct was generated from the following files: