50 if( !
m_node->SetParent( aParent ) )
55 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
72 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
79 if( !
m_node->SetParent( pp ) )
84 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
123 if( aParent !=
m_node->GetParent() )
125 wxLogTrace( MASK_3D_SG,
126 wxT(
"%s:%s:%d * [BUG] invalid SGNODE parent (%s) to SGAPPEARANCE" ),
127 __FILE__, __FUNCTION__, __LINE__,
145 wxCHECK( np,
false );
251 if( aShininess < 0 || aShininess > 1.0 )
253 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] shininess out of range [0..1]" ),
254 __FILE__, __FUNCTION__, __LINE__ );
269 if( aTransparency < 0 || aTransparency > 1.0 )
271 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] transparency out of range [0..1]" ),
272 __FILE__, __FUNCTION__, __LINE__ );
bool SetDiffuse(float aRVal, float aGVal, float aBVal)
bool SetEmissive(float aRVal, float aGVal, float aBVal)
bool Attach(SGNODE *aNode) override
Associate a given SGNODE* with this wrapper.
bool SetSpecular(float aRVal, float aGVal, float aBVal)
bool SetShininess(float aShininess) noexcept
bool NewNode(SGNODE *aParent) override
Create a new node to associate with this wrapper.
bool SetAmbient(float aRVal, float aGVal, float aBVal)
IFSG_APPEARANCE(bool create)
bool SetTransparency(float aTransparency) noexcept
SGNODE * GetRawPtr(void) noexcept
Return the raw internal SGNODE pointer.
Defines the generic material appearance of a scenegraph object.
The base class of all Scene Graph nodes.
S3D::SGTYPES GetNodeType(void) const noexcept
Return the type of this node instance.
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const noexcept
defines the wrapper of the SGAPPEARANCE class