Example #1
0
ccMaterialSet::ccMaterialSet(QString name/*=QString()*/)
	: std::vector<ccMaterial::CShared>()
	, CCShareable()
	, ccHObject(name)
{
	setFlagState(CC_LOCKED,true);
}
Example #2
0
void ccHObject::detachFromParent()
{
    ccHObject* parent = getParent();
    if (!parent)
        return;

    setFlagState(CC_FATHER_DEPENDANT,false);
    parent->removeChild(this);
}
Example #3
0
void ccObject::setLocked(bool state)
{
    setFlagState(CC_LOCKED,state);
}
Example #4
0
void ccObject::setEnabled(bool state)
{
    setFlagState(CC_ENABLED,state);
}