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

Constructor & Destructor Documentation

◆ VRML_COLOR() [1/2]

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 93 of file export_vrml.cpp.

94  {
95  // default green
96  diffuse_red = 0.13f;
97  diffuse_grn = 0.81f;
98  diffuse_blu = 0.22f;
99  spec_red = 0.01f;
100  spec_grn = 0.08f;
101  spec_blu = 0.02f;
102  emit_red = 0.0f;
103  emit_grn = 0.0f;
104  emit_blu = 0.0f;
105 
106  ambient = 0.8f;
107  transp = 0.0f;
108  shiny = 0.02f;
109  }
float transp
Definition: export_vrml.cpp:90
float spec_blu
Definition: export_vrml.cpp:83
float ambient
Definition: export_vrml.cpp:89
float diffuse_grn
Definition: export_vrml.cpp:78
float spec_red
Definition: export_vrml.cpp:81
float spec_grn
Definition: export_vrml.cpp:82
float emit_grn
Definition: export_vrml.cpp:86
float emit_blu
Definition: export_vrml.cpp:87
float diffuse_red
Definition: export_vrml.cpp:77
float emit_red
Definition: export_vrml.cpp:85
float diffuse_blu
Definition: export_vrml.cpp:79

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  er,
float  eg,
float  eb,
float  am,
float  tr,
float  sh 
)
inline

Definition at line 111 of file export_vrml.cpp.

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

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

Definition at line 89 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ diffuse_blu

float VRML_COLOR::diffuse_blu

Definition at line 79 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ diffuse_grn

float VRML_COLOR::diffuse_grn

Definition at line 78 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ diffuse_red

float VRML_COLOR::diffuse_red

Definition at line 77 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ emit_blu

float VRML_COLOR::emit_blu

Definition at line 87 of file export_vrml.cpp.

Referenced by VRML_COLOR(), and write_triangle_bag().

◆ emit_grn

float VRML_COLOR::emit_grn

Definition at line 86 of file export_vrml.cpp.

Referenced by VRML_COLOR(), and write_triangle_bag().

◆ emit_red

float VRML_COLOR::emit_red

Definition at line 85 of file export_vrml.cpp.

Referenced by VRML_COLOR(), and write_triangle_bag().

◆ shiny

float VRML_COLOR::shiny

Definition at line 91 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ spec_blu

float VRML_COLOR::spec_blu

Definition at line 83 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ spec_grn

float VRML_COLOR::spec_grn

Definition at line 82 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ spec_red

float VRML_COLOR::spec_red

Definition at line 81 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().

◆ transp

float VRML_COLOR::transp

Definition at line 90 of file export_vrml.cpp.

Referenced by getSGColor(), VRML_COLOR(), and write_triangle_bag().


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