X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Collinear.h;h=63ea32cfe03a659920f46efd71efe08775f512d3;hb=417d68795a489d77f81650584dab4f8282304081;hp=61f55c0b0f22e4375d36d1a63b0ff2c61b235c40;hpb=b522cce945722acb3c559c9046d9f647a32a633e;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Collinear.h b/src/SketcherPrs/SketcherPrs_Collinear.h old mode 100755 new mode 100644 index 61f55c0b0..63ea32cfe --- a/src/SketcherPrs/SketcherPrs_Collinear.h +++ b/src/SketcherPrs/SketcherPrs_Collinear.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: SketcherPrs_Collinear.h -// Created: 29 Feb 2016 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2019 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 SketcherPrs_Collinear_H #define SketcherPrs_Collinear_H @@ -22,10 +35,11 @@ class SketcherPrs_Collinear: public SketcherPrs_SymbolPrs public: /// Constructor /// \param theConstraint a constraint feature - /// \param thePlane a coordinate plane of current sketch - Standard_EXPORT SketcherPrs_Collinear(ModelAPI_Feature* theConstraint, - const std::shared_ptr& thePlane); - DEFINE_STANDARD_RTTI(SketcherPrs_Collinear) + /// \param theSketcher a sketcher object + Standard_EXPORT SketcherPrs_Collinear(ModelAPI_Feature* theConstraint, + SketchPlugin_Sketch* theSketcher); + + DEFINE_STANDARD_RTTIEXT(SketcherPrs_Collinear, SketcherPrs_SymbolPrs) /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation /// \param theConstraint a constraint feature @@ -41,7 +55,7 @@ protected: /// Update myPntArray according to presentation positions /// \return true in case of success - virtual bool updateIfReadyToDisplay(double theStep) const; + virtual bool updateIfReadyToDisplay(double theStep, bool withColor) const; }; #endif \ No newline at end of file