#include <sg_base.h>
|
bool | checkRange (float aRedVal, float aGreenVal, float aBlueVal) const noexcept |
|
Definition at line 43 of file sg_base.h.
◆ SGCOLOR() [1/2]
◆ SGCOLOR() [2/2]
SGCOLOR::SGCOLOR |
( |
float |
aRVal, |
|
|
float |
aGVal, |
|
|
float |
aBVal |
|
) |
| |
Definition at line 41 of file sg_base.cpp.
45 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid value passed to constructor" ),
46 __FILE__, __FUNCTION__, __LINE__ );
bool checkRange(float aRedVal, float aGreenVal, float aBlueVal) const noexcept
References blue, checkRange(), green, and red.
◆ checkRange()
bool SGCOLOR::checkRange |
( |
float |
aRedVal, |
|
|
float |
aGreenVal, |
|
|
float |
aBlueVal |
|
) |
| const |
|
privatenoexcept |
Definition at line 118 of file sg_base.cpp.
122 if( aRedVal < 0.0 || aRedVal > 1.0 )
124 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid RED value: %g" ),
125 __FILE__, __FUNCTION__, __LINE__, aRedVal );
130 if( aGreenVal < 0.0 || aGreenVal > 1.0 )
132 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid GREEN value: %g" ),
133 __FILE__, __FUNCTION__, __LINE__, aGreenVal );
138 if( aBlueVal < 0.0 || aBlueVal > 1.0 )
140 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid BLUE value: %g" ),
141 __FILE__, __FUNCTION__, __LINE__, aBlueVal );
Referenced by SetColor(), and SGCOLOR().
◆ GetColor() [1/3]
void SGCOLOR::GetColor |
( |
float & |
aRedVal, |
|
|
float & |
aGreenVal, |
|
|
float & |
aBlueVal |
|
) |
| const |
|
noexcept |
◆ GetColor() [2/3]
void SGCOLOR::GetColor |
( |
SGCOLOR & |
aColor | ) |
const |
|
noexcept |
◆ GetColor() [3/3]
void SGCOLOR::GetColor |
( |
SGCOLOR * |
aColor | ) |
const |
|
noexcept |
Definition at line 75 of file sg_base.cpp.
77 wxCHECK_MSG( aColor, , wxT(
"NULL pointer passed for aRGBColor" ) );
References red.
◆ SetColor() [1/3]
bool SGCOLOR::SetColor |
( |
float |
aRedVal, |
|
|
float |
aGreenVal, |
|
|
float |
aBlueVal |
|
) |
| |
Definition at line 85 of file sg_base.cpp.
87 if( !
checkRange( aRedVal, aGreenVal, aBlueVal ) )
bool checkRange(float aRedVal, float aGreenVal, float aBlueVal) const noexcept
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().
◆ SetColor() [2/3]
bool SGCOLOR::SetColor |
( |
const SGCOLOR & |
aColor | ) |
|
|
noexcept |
◆ SetColor() [3/3]
bool SGCOLOR::SetColor |
( |
const SGCOLOR * |
aColor | ) |
|
|
noexcept |
Definition at line 107 of file sg_base.cpp.
109 wxCHECK_MSG( aColor,
false, wxT(
"NULL pointer passed for aRGBColor" ) );
References red.
◆ blue
◆ green
◆ red
The documentation for this class was generated from the following files: