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

Constructor & Destructor Documentation

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 88 of file export_vrml.cpp.

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

110  {
111  diffuse_red = dr;
112  diffuse_grn = dg;
113  diffuse_blu = db;
114  spec_red = sr;
115  spec_grn = sg;
116  spec_blu = sb;
117  emit_red = er;
118  emit_grn = eg;
119  emit_blu = eb;
120 
121  ambient = am;
122  transp = tr;
123  shiny = sh;
124  }
float transp
Definition: export_vrml.cpp:85
float spec_blu
Definition: export_vrml.cpp:78
float ambient
Definition: export_vrml.cpp:84
float diffuse_grn
Definition: export_vrml.cpp:73
float spec_red
Definition: export_vrml.cpp:76
float spec_grn
Definition: export_vrml.cpp:77
float emit_grn
Definition: export_vrml.cpp:81
float emit_blu
Definition: export_vrml.cpp:82
float diffuse_red
Definition: export_vrml.cpp:72
float emit_red
Definition: export_vrml.cpp:80
float diffuse_blu
Definition: export_vrml.cpp:74

Member Data Documentation

float VRML_COLOR::ambient

Definition at line 84 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_blu

Definition at line 74 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_grn

Definition at line 73 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::diffuse_red

Definition at line 72 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::emit_blu

Definition at line 82 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_grn

Definition at line 81 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::emit_red

Definition at line 80 of file export_vrml.cpp.

Referenced by write_triangle_bag().

float VRML_COLOR::shiny

Definition at line 86 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_blu

Definition at line 78 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_grn

Definition at line 77 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::spec_red

Definition at line 76 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().

float VRML_COLOR::transp

Definition at line 85 of file export_vrml.cpp.

Referenced by getSGColor(), and write_triangle_bag().


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