Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CurveCreator_Diff.hxx
Go to the documentation of this file.
1 // Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 // File: CurveCreator_Diff.hxx
21 // Author: Sergey KHROMOV
22 
23 #ifndef _CurveCreator_Diff_HeaderFile
24 #define _CurveCreator_Diff_HeaderFile
25 
27 
28 class CurveCreator_Curve;
29 
30 
38 {
39 
40 private:
41 
42 public:
43 
48 
53 
61  bool init(const CurveCreator_Curve *theCurve);
62 
70  bool init(const CurveCreator_Curve *theCurve,
71  const CurveCreator_Operation::Type theType,
72  const int theIntParam);
73 
83  bool init(const CurveCreator_Curve *theCurve,
84  const CurveCreator_Operation::Type theType,
85  const int theIntParam1,
86  const int theIntParam2);
87 
95  bool init(const CurveCreator_Curve *theCurve,
96  const CurveCreator_Operation::Type theType,
97  const std::list<int>& theParams);
98 
107  bool init(const CurveCreator_Curve *theCurve,
108  const CurveCreator_Operation::Type theType,
109  const std::string& theName,
110  const CurveCreator::Coordinates &theCoords,
111  const int theIntParam1,
112  const int theIntParam2);
113 
122  bool init(const CurveCreator_Curve *theCurve,
123  const CurveCreator_Operation::Type theType,
124  const std::string &theName,
125  const int theIntParam1 );
126 
135  bool init(const CurveCreator_Curve *theCurve,
136  const CurveCreator_Operation::Type theType,
137  const CurveCreator_ICurve::SectionToPointList &theParamList);
138 
147  bool init(const CurveCreator_Curve *theCurve,
148  const CurveCreator_Operation::Type theType,
150 
157  bool init(const CurveCreator_Curve *theCurve,
158  const CurveCreator_ICurve::SectionToPointCoordsList &theOldParamList);
159 
163  void applyUndo(CurveCreator_Curve *theCurve);
164 
168  void applyRedo(CurveCreator_Curve *theCurve);
169 
170 private:
171 
175  void clear();
176 
181  void setNbUndos(const int theNbUndos);
182 
187  int getSectionIndex(const CurveCreator_Curve *theCurve,
188  const int theIndex) const;
189 
195  bool addSectionToUndo(const CurveCreator_Curve *theCurve,
196  const int theIndex,
197  CurveCreator_Operation &theOperation) const;
198 
205  bool setTypeOrClosedToUndo(const CurveCreator_Curve *theCurve,
206  const CurveCreator_Operation::Type theType,
207  const int theIntParam1,
208  const int theIntParam2);
209 
210 private:
211 
215 
216 };
217 
218 #endif