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 72 of file export_vrml.cpp.

Constructor & Destructor Documentation

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 90 of file export_vrml.cpp.

91  {
92  // default green
93  diffuse_red = 0.13;
94  diffuse_grn = 0.81;
95  diffuse_blu = 0.22;
96  spec_red = 0.01;
97  spec_grn = 0.08;
98  spec_blu = 0.02;
99  emit_red = 0.0;
100  emit_grn = 0.0;
101  emit_blu = 0.0;
102 
103  ambient = 0.8;
104  transp = 0;
105  shiny = 0.02;
106  }
float transp
Definition: export_vrml.cpp:87
float spec_blu
Definition: export_vrml.cpp:80
float ambient
Definition: export_vrml.cpp:86
float diffuse_grn
Definition: export_vrml.cpp:75
float spec_red
Definition: export_vrml.cpp:78
float spec_grn
Definition: export_vrml.cpp:79
float emit_grn
Definition: export_vrml.cpp:83
float emit_blu
Definition: export_vrml.cpp:84
float diffuse_red
Definition: export_vrml.cpp:74
float emit_red
Definition: export_vrml.cpp:82
float diffuse_blu
Definition: export_vrml.cpp:76
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 108 of file export_vrml.cpp.

112  {
113  diffuse_red = dr;
114  diffuse_grn = dg;
115  diffuse_blu = db;
116  spec_red = sr;
117  spec_grn = sg;
118  spec_blu = sb;
119  emit_red = er;
120  emit_grn = eg;
121  emit_blu = eb;
122 
123  ambient = am;
124  transp = tr;
125  shiny = sh;
126  }
float transp
Definition: export_vrml.cpp:87
float spec_blu
Definition: export_vrml.cpp:80
float ambient
Definition: export_vrml.cpp:86
float diffuse_grn
Definition: export_vrml.cpp:75
float spec_red
Definition: export_vrml.cpp:78
float spec_grn
Definition: export_vrml.cpp:79
float emit_grn
Definition: export_vrml.cpp:83
float emit_blu
Definition: export_vrml.cpp:84
float diffuse_red
Definition: export_vrml.cpp:74
float emit_red
Definition: export_vrml.cpp:82
float diffuse_blu
Definition: export_vrml.cpp:76

Member Data Documentation

float VRML_COLOR::ambient

Definition at line 86 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_blu

Definition at line 76 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_grn

Definition at line 75 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_red

Definition at line 74 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::emit_blu

Definition at line 84 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_grn

Definition at line 83 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_red

Definition at line 82 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::shiny

Definition at line 88 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_blu

Definition at line 80 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_grn

Definition at line 79 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_red

Definition at line 78 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::transp

Definition at line 87 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().


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