X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OverconstraintListener.h;h=56f4a5e5279d72c339fd307cc04daf8c168b2b88;hb=b73fb7468bea81901dbeed8e229d742f788ec282;hp=9ce9a4e4cce7d9c9b85bba51cf1d23df497ba0af;hpb=787e0f26ba0c38ea246c0757cbb1ea244f494185;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OverconstraintListener.h b/src/PartSet/PartSet_OverconstraintListener.h index 9ce9a4e4c..56f4a5e52 100755 --- a/src/PartSet/PartSet_OverconstraintListener.h +++ b/src/PartSet/PartSet_OverconstraintListener.h @@ -1,9 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: PartSet_OverconstraintListener.h -// Created: 8 Feb 2016 -// Author: Natalia ERMOLAEVA - +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef PartSet_OverconstraintListener_H #define PartSet_OverconstraintListener_H @@ -12,7 +25,7 @@ #include class ModuleBase_IWorkshop; -class XGUI_Workshop; +class PartSet_Module; #include @@ -33,10 +46,9 @@ public: virtual ~PartSet_OverconstraintListener() {}; - // Set erroneous color for the presentation of object if the object is in the conflicting list - // \param theObject an object to be settled - // \param theUpdateViewer a boolean state whether the current viewer should be updated - //bool customizeObject(ObjectPtr theObject, const bool theUpdateViewer); + /// If active state is changed, update fully defined state and sketch sub-entities color + /// \param theActive a state + void setActive(const bool& theActive); /// Returns true if the object belongs to internal container of conflicting objects /// \param theObject an object to be checked @@ -63,8 +75,8 @@ protected: void redisplayObjects(const std::set& theObjects); private: - /// Returns workshop - XGUI_Workshop* workshop() const; + /// Returns module + PartSet_Module* module() const; #ifdef _DEBUG /// Unite objects in one string information @@ -74,8 +86,9 @@ private: #endif private: - std::set myConflictingObjects; ModuleBase_IWorkshop* myWorkshop; + bool myIsActive; /// state if sketch is active + std::set myConflictingObjects; bool myIsFullyConstrained; /// state if Solver is fully constrained, DOF = 0 };