ccSubMesh::ccSubMesh(ccMesh* parentMesh) : ccGenericMesh("Sub-mesh") , m_associatedMesh(parentMesh) , m_triIndexes(new ReferencesContainer()) , m_globalIterator(0) { m_triIndexes->link(); showColors(parentMesh ? parentMesh->colorsShown() : true); showNormals(parentMesh ? parentMesh->normalsShown() : true); showSF(parentMesh ? parentMesh->sfShown() : true); }
ccSubMesh::ccSubMesh(ccMesh* parentMesh) : ccGenericMesh("Sub-mesh") , m_associatedMesh(0) , m_triIndexes(new ReferencesContainer()) , m_globalIterator(0) { m_triIndexes->link(); setAssociatedMesh(parentMesh); //must be called so as to set the right dependency! showColors(parentMesh ? parentMesh->colorsShown() : true); showNormals(parentMesh ? parentMesh->normalsShown() : true); showSF(parentMesh ? parentMesh->sfShown() : true); }
ccDrawableObject::ccDrawableObject() { setVisible(true); setSelected(false); showColors(false); showNormals(false); showSF(false); lockVisibility(false); showNameIn3D(false); m_currentDisplay=0; enableTempColor(false); setTempColor(ccColor::white,false); razGLTransformation(); }
void ccDrawableObject::toggleSF() { showSF(!sfShown()); }