KiCad PCB EDA Suite
|
#include <sg_base.h>
Public Member Functions | |
SGCOLOR () | |
SGCOLOR (float aRVal, float aGVal, float aBVal) | |
void | GetColor (float &aRedVal, float &aGreenVal, float &aBlueVal) const noexcept |
void | GetColor (SGCOLOR &aColor) const noexcept |
void | GetColor (SGCOLOR *aColor) const noexcept |
bool | SetColor (float aRedVal, float aGreenVal, float aBlueVal) |
bool | SetColor (const SGCOLOR &aColor) noexcept |
bool | SetColor (const SGCOLOR *aColor) noexcept |
Protected Attributes | |
float | red |
float | green |
float | blue |
Private Member Functions | |
bool | checkRange (float aRedVal, float aGreenVal, float aBlueVal) const noexcept |
SGCOLOR::SGCOLOR | ( | ) |
Definition at line 34 of file sg_base.cpp.
SGCOLOR::SGCOLOR | ( | float | aRVal, |
float | aGVal, | ||
float | aBVal | ||
) |
Definition at line 41 of file sg_base.cpp.
References blue, checkRange(), green, and red.
|
privatenoexcept |
Definition at line 118 of file sg_base.cpp.
Referenced by SetColor(), and SGCOLOR().
|
noexcept |
Definition at line 59 of file sg_base.cpp.
References red.
Referenced by S3D::FormatColor(), formatMaterial(), SGSHAPE::Prepare(), S3D::WriteColor(), and SGAPPEARANCE::WriteVRML().
|
noexcept |
Definition at line 67 of file sg_base.cpp.
References red.
|
noexcept |
Definition at line 75 of file sg_base.cpp.
References red.
|
noexcept |
Definition at line 98 of file sg_base.cpp.
References red.
|
noexcept |
Definition at line 107 of file sg_base.cpp.
References red.
bool SGCOLOR::SetColor | ( | float | aRedVal, |
float | aGreenVal, | ||
float | aBlueVal | ||
) |
Definition at line 85 of file sg_base.cpp.
References blue, checkRange(), green, and red.
Referenced by WRL1MATERIAL::GetColor(), S3D::ReadColor(), SGAPPEARANCE::SetAmbient(), SGAPPEARANCE::SetDiffuse(), SGAPPEARANCE::SetEmissive(), SGAPPEARANCE::SetSpecular(), SGAPPEARANCE::SGAPPEARANCE(), and WRL2FACESET::TranslateToSG().
|
protected |
Definition at line 48 of file sg_base.h.
Referenced by SetColor(), and SGCOLOR().
|
protected |
Definition at line 47 of file sg_base.h.
Referenced by SetColor(), and SGCOLOR().
|
protected |
Definition at line 46 of file sg_base.h.
Referenced by SetColor(), and SGCOLOR().