54 if( !
m_node->SetParent( aParent ) )
59 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d" ), __FILE__, __FUNCTION__, __LINE__ );
76 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
83 if( !
m_node->SetParent( pp ) )
88 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d %s" ), __FILE__, __FUNCTION__, __LINE__,
127 if( aParent !=
m_node->GetParent() )
129 wxLogTrace( MASK_3D_SG, wxT(
"%s:%s:%d * [BUG] invalid SGNODE parent (%s) to SGCOLORS" ),
130 __FILE__, __FUNCTION__, __LINE__,
148 wxCHECK( np,
false );
158 return ( (
SGCOLORS*)
m_node )->GetColorList( aListSize, aColorList );
176 ( (
SGCOLORS*)
m_node )->AddColor( aRedValue, aGreenValue, aBlueValue );
bool Attach(SGNODE *aNode) override
Associate a given SGNODE* with this wrapper.
bool GetColorList(size_t &aListSize, SGCOLOR *&aColorList)
bool AddColor(double aRedValue, double aGreenValue, double aBlueValue)
bool SetColorList(size_t aListSize, const SGCOLOR *aColorList)
bool NewNode(SGNODE *aParent) override
Create a new node to associate with this wrapper.
SGNODE * GetRawPtr(void) noexcept
Return the raw internal SGNODE pointer.
Define an RGB color set for 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 color list wrapper