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 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 44 of file exporter_vrml.h.

Constructor & Destructor Documentation

◆ VRML_COLOR() [1/2]

VRML_COLOR::VRML_COLOR ( )
inline

Definition at line 62 of file exporter_vrml.h.

63  {
64  // default green
65  diffuse_red = 0.13f;
66  diffuse_grn = 0.81f;
67  diffuse_blu = 0.22f;
68  spec_red = 0.01f;
69  spec_grn = 0.08f;
70  spec_blu = 0.02f;
71  emit_red = 0.0f;
72  emit_grn = 0.0f;
73  emit_blu = 0.0f;
74 
75  ambient = 0.8f;
76  transp = 0.0f;
77  shiny = 0.02f;
78  }
float transp
Definition: exporter_vrml.h:59
float spec_blu
Definition: exporter_vrml.h:52
float ambient
Definition: exporter_vrml.h:58
float diffuse_grn
Definition: exporter_vrml.h:47
float spec_red
Definition: exporter_vrml.h:50
float spec_grn
Definition: exporter_vrml.h:51
float emit_grn
Definition: exporter_vrml.h:55
float emit_blu
Definition: exporter_vrml.h:56
float diffuse_red
Definition: exporter_vrml.h:46
float emit_red
Definition: exporter_vrml.h:54
float diffuse_blu
Definition: exporter_vrml.h:48

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 80 of file exporter_vrml.h.

84  {
85  diffuse_red = dr;
86  diffuse_grn = dg;
87  diffuse_blu = db;
88  spec_red = sr;
89  spec_grn = sg;
90  spec_blu = sb;
91  emit_red = er;
92  emit_grn = eg;
93  emit_blu = eb;
94 
95  ambient = am;
96  transp = tr;
97  shiny = sh;
98  }
float transp
Definition: exporter_vrml.h:59
float spec_blu
Definition: exporter_vrml.h:52
float ambient
Definition: exporter_vrml.h:58
float diffuse_grn
Definition: exporter_vrml.h:47
float spec_red
Definition: exporter_vrml.h:50
float spec_grn
Definition: exporter_vrml.h:51
float emit_grn
Definition: exporter_vrml.h:55
float emit_blu
Definition: exporter_vrml.h:56
float diffuse_red
Definition: exporter_vrml.h:46
float emit_red
Definition: exporter_vrml.h:54
float diffuse_blu
Definition: exporter_vrml.h:48

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 56 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 55 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 54 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: