KiCad PCB EDA Suite
VRML_COLOR Struct Reference

Public Member Functions

 VRML_COLOR ()
 
 VRML_COLOR (float dr, float dg, float db, float sr, float sg, float sb, float er, float eg, float eb, 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 74 of file export_vrml.cpp.

Constructor & Destructor Documentation

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 92 of file export_vrml.cpp.

Referenced by MODEL_VRML::MODEL_VRML().

93  {
94  // default green
95  diffuse_red = 0.13;
96  diffuse_grn = 0.81;
97  diffuse_blu = 0.22;
98  spec_red = 0.01;
99  spec_grn = 0.08;
100  spec_blu = 0.02;
101  emit_red = 0.0;
102  emit_grn = 0.0;
103  emit_blu = 0.0;
104 
105  ambient = 0.8;
106  transp = 0;
107  shiny = 0.02;
108  }
float transp
Definition: export_vrml.cpp:89
float spec_blu
Definition: export_vrml.cpp:82
float ambient
Definition: export_vrml.cpp:88
float diffuse_grn
Definition: export_vrml.cpp:77
float spec_red
Definition: export_vrml.cpp:80
float spec_grn
Definition: export_vrml.cpp:81
float emit_grn
Definition: export_vrml.cpp:85
float emit_blu
Definition: export_vrml.cpp:86
float diffuse_red
Definition: export_vrml.cpp:76
float emit_red
Definition: export_vrml.cpp:84
float diffuse_blu
Definition: export_vrml.cpp:78
VRML_COLOR::VRML_COLOR ( float  dr,
float  dg,
float  db,
float  sr,
float  sg,
float  sb,
float  er,
float  eg,
float  eb,
float  am,
float  tr,
float  sh 
)
inline

Definition at line 110 of file export_vrml.cpp.

114  {
115  diffuse_red = dr;
116  diffuse_grn = dg;
117  diffuse_blu = db;
118  spec_red = sr;
119  spec_grn = sg;
120  spec_blu = sb;
121  emit_red = er;
122  emit_grn = eg;
123  emit_blu = eb;
124 
125  ambient = am;
126  transp = tr;
127  shiny = sh;
128  }
float transp
Definition: export_vrml.cpp:89
float spec_blu
Definition: export_vrml.cpp:82
float ambient
Definition: export_vrml.cpp:88
float diffuse_grn
Definition: export_vrml.cpp:77
float spec_red
Definition: export_vrml.cpp:80
float spec_grn
Definition: export_vrml.cpp:81
float emit_grn
Definition: export_vrml.cpp:85
float emit_blu
Definition: export_vrml.cpp:86
float diffuse_red
Definition: export_vrml.cpp:76
float emit_red
Definition: export_vrml.cpp:84
float diffuse_blu
Definition: export_vrml.cpp:78

Member Data Documentation

float VRML_COLOR::ambient

Definition at line 88 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_blu

Definition at line 78 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_grn

Definition at line 77 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_red

Definition at line 76 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::emit_blu

Definition at line 86 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_grn

Definition at line 85 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_red

Definition at line 84 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::shiny

Definition at line 90 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_blu

Definition at line 82 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_grn

Definition at line 81 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_red

Definition at line 80 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::transp

Definition at line 89 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().


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