59 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
76 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
88 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
129 wxLogTrace( MASK_3D_SG,
130 wxT(
"%s:%s:%d * [BUG] invalid SGNODE parent (%s) to SGAPPEARANCE" ),
131 __FILE__, __FUNCTION__, __LINE__,
149 wxCHECK( np,
false );
253 wxCHECK( m_node,
false );
255 if( aShininess < 0 || aShininess > 1.0 )
257 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] shininess out of range [0..1]" ),
258 __FILE__, __FUNCTION__, __LINE__ );
271 wxCHECK( m_node,
false );
273 if( aTransparency < 0 || aTransparency > 1.0 )
275 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] transparency out of range [0..1]" ),
276 __FILE__, __FUNCTION__, __LINE__ );
281 ( (
SGAPPEARANCE*) m_node )->transparency = aTransparency;
bool SetTransparency(float aTransparency) noexcept
bool SetDiffuse(float aRVal, float aGVal, float aBVal)
IFSG_APPEARANCE(bool create)
void AssociateWrapper(SGNODE **aWrapperRef) noexcept
Associate this object with a handle to itself.
IFSG_NODE represents the base class of all DLL-safe Scene Graph nodes.
The base class of all Scene Graph nodes.
SGNODE * GetRawPtr(void) noexcept
Function GetRawPtr() returns the raw internal SGNODE pointer.
bool Attach(SGNODE *aNode) override
Function Attach associates a given SGNODE* with this wrapper.
bool SetAmbient(float aRVal, float aGVal, float aBVal)
void DisassociateWrapper(SGNODE **aWrapperRef) noexcept
Remove the association between an IFSG* wrapper object and this object.
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const noexcept
bool SetShininess(float aShininess) noexcept
SGNODE * GetParent(void) const noexcept
Returns a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.
bool SetEmissive(float aRVal, float aGVal, float aBVal)
bool SetSpecular(float aRVal, float aGVal, float aBVal)
virtual bool SetParent(SGNODE *aParent, bool notify=true)=0
Set the parent SGNODE of this object.
defines the wrapper of the SGAPPEARANCE class
Defines the generic material appearance of a scenegraph object.
S3D::SGTYPES GetNodeType(void) const noexcept
Return the type of this node instance.
bool NewNode(SGNODE *aParent) override
Function NewNode creates a new node to associate with this wrapper.