Commit e4bef69e authored by Jan Möbius's avatar Jan Möbius
Browse files

Made the update function of the meshobject private.

parent f7ef0dd1
......@@ -101,6 +101,10 @@ typedef ACG::SceneGraph::TextureNode TextureNode;
*/
template < class MeshT >
class DLLEXPORTONLY MeshObject : public BaseObjectData {
friend class TypePolyMeshPlugin;
friend class TypeTriangleMeshPlugin;
public:
/** \brief copy constructor
......@@ -148,6 +152,23 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
/// return a pointer to the mesh
MeshT* mesh();
private:
/// pointer to the mesh
MeshT* mesh_;
/** @} */
//===========================================================================
/** @name Update handling
*
* This is mostly private. Updates have to be triggered via
* emit updatedObject()
*
* @{ */
//===========================================================================
private:
/// Update the whole Object (Selection,Topology,...)
virtual void update(UpdateType _type = UPDATE_ALL);
......@@ -172,8 +193,6 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
/// Update Texture of all data structures
void updateTexture();
private:
MeshT* mesh_;
/** @} */
......
......@@ -832,7 +832,8 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints) {
object->mesh()->garbage_collection();
object->mesh()->update_normals();
object->update();
emit updatedObject( baseObjectData->id() , UPDATE_TOPOLOGY);
// Create backup
emit createBackup(_objID, "Decimation");
......@@ -850,7 +851,6 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints) {
emit scriptInfo( "decimate(" + QString::number(_objID) + ", " + param + ")" );
emit updatedObject( baseObjectData->id() , UPDATE_TOPOLOGY);
} else {
emit log(LOGERR,tr("Unsupported object type for decimater"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment