Horizon
Classes | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
horizon::Canvas3DBase Class Reference
Inheritance diagram for horizon::Canvas3DBase:
horizon::Canvas3D horizon::Image3DExporter

Classes

class  FaceVertex
 
class  ModelTransform
 

Public Types

enum class  Projection { PERSP , ORTHO }
 

Public Member Functions

Color get_layer_color (int layer) const
 
class horizon::Canvas3DBase::FaceVertex __attribute__ ((packed))
 
class horizon::Canvas3DBase::ModelTransform __attribute__ ((packed))
 
void view_all ()
 
void clear_3d_models ()
 

Public Attributes

CanvasMesh ca
 
Color background_top_color
 
Color background_bottom_color
 
bool show_solder_mask = true
 
bool show_silkscreen = true
 
bool show_substrate = true
 
bool show_models = true
 
bool show_dnp_models = false
 
bool show_solder_paste = true
 
bool use_layer_colors = false
 
Color solder_mask_color = {0, .5, 0}
 
Color substrate_color = {.2, .15, 0}
 
float explode = 0
 
float highlight_intensity = .5
 
float cam_azimuth = 90
 
float cam_elevation = 45
 
float cam_distance = 20
 
float cam_fov = 45
 
glm::vec2 center
 
Projection projection = Projection::PERSP
 

Protected Types

enum class  RenderBackground { YES , NO }
 

Protected Member Functions

void a_realize ()
 
void resize_buffers ()
 
void push ()
 
void render (RenderBackground mode=RenderBackground::YES)
 
virtual int a_get_scale_factor () const
 
void prepare ()
 
void prepare_packages ()
 
void load_3d_model (const std::string &filename, const std::string &filename_abs)
 
std::map< std::string, std::string > get_model_filenames (class IPool &pool)
 
void update_max_package_height ()
 

Protected Attributes

Appearance appearance
 
int width = 100
 
int height = 100
 
CoverRenderer cover_renderer
 
WallRenderer wall_renderer
 
FaceRenderer face_renderer
 
BackgroundRenderer background_renderer
 
enum horizon::Canvas3DBase::RenderBackground __attribute__
 
unsigned int num_samples = 1
 
const class Boardbrd = nullptr
 
std::set< UUIDpackages_highlight
 
std::mutex models_loading_mutex
 

Friends

class CoverRenderer
 
class WallRenderer
 
class FaceRenderer
 
class BackgroundRenderer
 

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