|
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 30 of file sg_base.cpp.
References blue, green, and red.
Referenced by GetColor(), GetColor(), SetColor(), and SetColor().
| SGCOLOR::SGCOLOR | ( | float | aRVal, |
| float | aGVal, | ||
| float | aBVal ) |
Definition at line 37 of file sg_base.cpp.
References blue, checkRange(), green, and red.
|
privatenoexcept |
Definition at line 114 of file sg_base.cpp.
Referenced by SetColor(), and SGCOLOR().
|
noexcept |
Definition at line 55 of file sg_base.cpp.
References blue, green, and red.
Referenced by S3D::FormatColor(), formatMaterial(), SGSHAPE::Prepare(), and S3D::WriteColor().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| bool SGCOLOR::SetColor | ( | float | aRedVal, |
| float | aGreenVal, | ||
| float | aBlueVal ) |
Definition at line 81 of file sg_base.cpp.
References blue, checkRange(), green, and red.
Referenced by WRL1MATERIAL::GetColor(), S3D::ReadColor(), and WRL2FACESET::TranslateToSG().
|
protected |
Definition at line 44 of file sg_base.h.
Referenced by GetColor(), GetColor(), GetColor(), SetColor(), SetColor(), SetColor(), SGCOLOR(), and SGCOLOR().
|
protected |
Definition at line 43 of file sg_base.h.
Referenced by GetColor(), GetColor(), GetColor(), SetColor(), SetColor(), SetColor(), SGCOLOR(), and SGCOLOR().
|
protected |
Definition at line 42 of file sg_base.h.
Referenced by GetColor(), GetColor(), GetColor(), SetColor(), SetColor(), SetColor(), SGCOLOR(), and SGCOLOR().