KiCad PCB EDA Suite
VRML_COLOR Struct Reference

#include <exporter_vrml.h>

Public Member Functions

 VRML_COLOR ()
 
 VRML_COLOR (float dr, float dg, float db, float sr, float sg, float sb, float am, float tr, float sh)
 

Public Attributes

float diffuse_red
 
float diffuse_grn
 
float diffuse_blu
 
float spec_red
 
float spec_grn
 
float spec_blu
 
float emit_red
 
float emit_grn
 
float emit_blu
 
float ambient
 
float transp
 
float shiny
 

Detailed Description

Definition at line 46 of file exporter_vrml.h.

Constructor & Destructor Documentation

◆ VRML_COLOR() [1/2]

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 64 of file exporter_vrml.h.

65 {
66 // default green
67 diffuse_red = 0.13f;
68 diffuse_grn = 0.81f;
69 diffuse_blu = 0.22f;
70 spec_red = 0.01f;
71 spec_grn = 0.08f;
72 spec_blu = 0.02f;
73 emit_red = 0.0f;
74 emit_grn = 0.0f;
75 emit_blu = 0.0f;
76
77 ambient = 0.8f;
78 transp = 0.0f;
79 shiny = 0.02f;
80 }
float ambient
Definition: exporter_vrml.h:60
float emit_blu
Definition: exporter_vrml.h:58
float diffuse_red
Definition: exporter_vrml.h:48
float spec_blu
Definition: exporter_vrml.h:54
float diffuse_grn
Definition: exporter_vrml.h:49
float transp
Definition: exporter_vrml.h:61
float spec_grn
Definition: exporter_vrml.h:53
float emit_grn
Definition: exporter_vrml.h:57
float emit_red
Definition: exporter_vrml.h:56
float spec_red
Definition: exporter_vrml.h:52
float diffuse_blu
Definition: exporter_vrml.h:50

References ambient, diffuse_blu, diffuse_grn, diffuse_red, emit_blu, emit_grn, emit_red, shiny, spec_blu, spec_grn, spec_red, and transp.

◆ VRML_COLOR() [2/2]

VRML_COLOR::VRML_COLOR ( float  dr,
float  dg,
float  db,
float  sr,
float  sg,
float  sb,
float  am,
float  tr,
float  sh 
)
inline

Definition at line 82 of file exporter_vrml.h.

85 {
86 diffuse_red = dr;
87 diffuse_grn = dg;
88 diffuse_blu = db;
89 spec_red = sr;
90 spec_grn = sg;
91 spec_blu = sb;
92 emit_red = 0.0f;
93 emit_grn = 0.0f;
94 emit_blu = 0.0f;
95
96 ambient = am;
97 transp = tr;
98 shiny = sh;
99 }

References ambient, diffuse_blu, diffuse_grn, diffuse_red, emit_blu, emit_grn, emit_red, shiny, spec_blu, spec_grn, spec_red, and transp.

Member Data Documentation

◆ ambient

float VRML_COLOR::ambient

◆ diffuse_blu

float VRML_COLOR::diffuse_blu

◆ diffuse_grn

float VRML_COLOR::diffuse_grn

◆ diffuse_red

float VRML_COLOR::diffuse_red

◆ emit_blu

float VRML_COLOR::emit_blu

Definition at line 58 of file exporter_vrml.h.

Referenced by VRML_COLOR(), and EXPORTER_PCB_VRML::write_triangle_bag().

◆ emit_grn

float VRML_COLOR::emit_grn

Definition at line 57 of file exporter_vrml.h.

Referenced by VRML_COLOR(), and EXPORTER_PCB_VRML::write_triangle_bag().

◆ emit_red

float VRML_COLOR::emit_red

Definition at line 56 of file exporter_vrml.h.

Referenced by VRML_COLOR(), and EXPORTER_PCB_VRML::write_triangle_bag().

◆ shiny

float VRML_COLOR::shiny

◆ spec_blu

float VRML_COLOR::spec_blu

◆ spec_grn

float VRML_COLOR::spec_grn

◆ spec_red

float VRML_COLOR::spec_red

◆ transp

float VRML_COLOR::transp

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