OpenBeam
C++ library for static analysis of mechanical structures
Public Member Functions | Public Attributes | List of all members
openbeam::DrawStructureOptions Struct Reference

#include <DrawStructureOptions.h>

Public Member Functions

void loadFromYaml (const mrpt::containers::yaml &d)
 
bool show_any_stress () const
 

Public Attributes

bool show_nodes_original = true
 
bool show_nodes_deformed = false
 
bool show_node_labels = false
 
bool show_elements_original = true
 Draw original undeformed elements.
 
bool show_elements_deformed = false
 Draw final deformed elements.
 
bool show_element_labels = true
 
bool show_loads = true
 
bool show_constraints = true
 
bool show_force_axial = false
 
bool show_force_shear_y = false
 
bool show_bending_moment_z = false
 
bool show_force_shear_z = false
 
bool show_bending_moment_y = false
 
bool show_torsion_moment = false
 
double image_width = 1024
 Default: 1024px (Height is automatically determined)
 
double NODE_RADIUS = 5e-3
 
double BEAM_PINNED_RADIUS = 10e-3
 
double EDGE_WIDTH = 5e-3
 
unsigned int PIN_SPHERE_DIVS = 8
 
unsigned int NODE_SPHERE_DIVS = 5
 
double deformed_scale_factor = 0
 
double deformed_scale_factor_for_bbox = 0
 
double deformed_scale_auto_max_image_ratio = 0.1
 
double node_loads_max_relative_size = 0.1
 
double labels_size = 15.0
 
double margin_left = 0
 In structure units.
 
double margin_right = 0
 
double margin_top = 0
 
double margin_bottom = 0
 
double elements_original_alpha = 1
 
double elements_deformed_alpha = 1
 [0,1]
 
double nodes_original_alpha = 1
 
double nodes_deformed_alpha = 1
 [0,1]
 
double constraints_original_alpha = 1
 
double constraints_deformed_alpha = 1
 [0,1]
 
double loads_original_alpha = 1
 
double loads_deformed_alpha = 1
 [0,1]
 

Detailed Description

Structure for holding all the parameters for CFiniteElementProblem::saveAsImageSVG

Member Data Documentation

◆ deformed_scale_auto_max_image_ratio

double openbeam::DrawStructureOptions::deformed_scale_auto_max_image_ratio = 0.1

Used to auto determinate deformed_scale_factor: the ratio of the image size that will equal the maximum displacement of a deformed state. Default=0.1 (10%)

◆ deformed_scale_factor

double openbeam::DrawStructureOptions::deformed_scale_factor = 0

Scale of deformed states (Default=0 means autodetermination from deformed_scale_auto_max_image_ratio)

◆ node_loads_max_relative_size

double openbeam::DrawStructureOptions::node_loads_max_relative_size = 0.1

Maximum size (in ratio wrt the largest structure dimension) of the largest load on a node. Default: 0.1 (10%)


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