COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Part structure: physical information for each piece of Node. More...
#include <jsondef.h>
Public Member Functions | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
char | name [40+1] = "" |
Name of piece. More... | |
bool | enabled = true |
Enabled? More... | |
uint16_t | cidx = 0 |
Component index: -1 if not a Component. More... | |
float | density = 0.f |
Density in kg/cu m. More... | |
float | mass = 0.f |
Mass in kg. More... | |
float | emi = 0.f |
Emissivity: 0-1. More... | |
float | abs = 0.f |
Absorptivity: 0-1. More... | |
float | hcap = 0.f |
Heat capacity in joules per kelvin. More... | |
float | hcon = 0.f |
Heat conductivity in Watts per meter per kelvin. More... | |
float | dim = 0.f |
Dimension in meters: effect is dependent on Part type. More... | |
float | area = 0.f |
Area in square meters. More... | |
float | volume = 0.f |
Volume in cubic meters. More... | |
uint16_t | face_cnt = 0 |
Number of faces. More... | |
vector< uint16_t > | face_idx |
Array of vertices/vertexs. More... | |
Vector | com |
Centroid of piece. More... | |
Vector | shove |
Contribution of piece to linear forces. More... | |
Vector | twist |
Contribution of piece to angular forces. More... | |
float | heat = 0.f |
Stored thermal energy. More... | |
float | temp = 0.f |
Temperature in Kelvins. More... | |
float | insol = 0.f |
Insolation in Watts/sq m. More... | |
float | material_density = 0.f |
Material density (1. - transparency) More... | |
Vector | material_ambient |
Material ambient reflective qualities. More... | |
Vector | material_diffuse |
Material diffuse reflective qualities. More... | |
Vector | material_specular |
Material specular reflective qualities. More... | |
Part structure: physical information for each piece of Node.
|
inline |
Convert class contents to JSON object.
Returns a json11 JSON object of the class
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
char piecestruc::name[40+1] = "" |
Name of piece.
bool piecestruc::enabled = true |
Enabled?
uint16_t piecestruc::cidx = 0 |
Component index: -1 if not a Component.
float piecestruc::density = 0.f |
Density in kg/cu m.
float piecestruc::mass = 0.f |
Mass in kg.
float piecestruc::emi = 0.f |
Emissivity: 0-1.
float piecestruc::abs = 0.f |
Absorptivity: 0-1.
float piecestruc::hcap = 0.f |
Heat capacity in joules per kelvin.
float piecestruc::hcon = 0.f |
Heat conductivity in Watts per meter per kelvin.
float piecestruc::dim = 0.f |
Dimension in meters: effect is dependent on Part type.
float piecestruc::area = 0.f |
Area in square meters.
float piecestruc::volume = 0.f |
Volume in cubic meters.
uint16_t piecestruc::face_cnt = 0 |
Number of faces.
vector<uint16_t> piecestruc::face_idx |
Array of vertices/vertexs.
Vector piecestruc::com |
Centroid of piece.
Vector piecestruc::shove |
Contribution of piece to linear forces.
Vector piecestruc::twist |
Contribution of piece to angular forces.
float piecestruc::heat = 0.f |
Stored thermal energy.
float piecestruc::temp = 0.f |
Temperature in Kelvins.
float piecestruc::insol = 0.f |
Insolation in Watts/sq m.
float piecestruc::material_density = 0.f |
Material density (1. - transparency)
Vector piecestruc::material_ambient |
Material ambient reflective qualities.
Vector piecestruc::material_diffuse |
Material diffuse reflective qualities.
Vector piecestruc::material_specular |
Material specular reflective qualities.