45 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid value passed to constructor" ),
46 __FILE__, __FUNCTION__, __LINE__ );
77 wxCHECK_MSG( aColor, , wxT(
"NULL pointer passed for aRGBColor" ) );
80 aColor->green = green;
87 if( !
checkRange( aRedVal, aGreenVal, aBlueVal ) )
101 green = aColor.green;
109 wxCHECK_MSG( aColor,
false, wxT(
"NULL pointer passed for aRGBColor" ) );
112 green = aColor->green;
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 );
184 wxCHECK_MSG( aPoint, , wxT(
"NULL pointer passed for aPoint" ) );
253 double dv2 = sqrt( dx + dy + dz );
255 if( ( dx + dy + dz ) < 1e-8 )
bool SetColor(float aRedVal, float aGreenVal, float aBlueVal)
void GetColor(float &aRedVal, float &aGreenVal, float &aBlueVal) const noexcept
bool checkRange(float aRedVal, float aGreenVal, float aBlueVal) const noexcept
void GetPoint(const double &aXVal, const double &aYVal, const double &aZVal) noexcept
void SetPoint(double aXVal, double aYVal, double aZVal) noexcept
void normalize(void) noexcept
void GetVector(double &aXVal, double &aYVal, double &aZVal) const noexcept
SGVECTOR & operator=(const SGVECTOR &source) noexcept
void SetVector(double aXVal, double aYVal, double aZVal)
defines the low level classes common to scene graph nodes