Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CurveCreator_Operation.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_Operation.hxx
21 // Author: Sergey KHROMOV
22 
23 #ifndef _CurveCreator_Operation_HeaderFile
24 #define _CurveCreator_Operation_HeaderFile
25 
26 #include "CurveCreator.hxx"
27 #include "CurveCreator_ICurve.hxx"
29 
30 #include <string>
31 #include <vector>
32 
33 class CurveCreator_Curve;
34 
35 
41 {
42 
43 public:
44 
48  enum Type
49  {
50  Unknown = 0,
59  Join,
63  };
64 
69 
74 
83  bool init(const Type theType);
84 
93  bool init(const Type theType, const int theIntParam);
94 
106  bool init(const Type theType, const int theIntParam1,
107  const int theIntParam2);
108 
117  bool init(const Type theType, const std::list<int> theParamList);
118 
128  bool init(const Type theType,
129  const CurveCreator_ICurve::SectionToPointList &theParamList1);
130 
140  bool init(const Type theType, const CurveCreator::Coordinates &theCoords,
141  const int theIntParam);
142 
152  bool init(const Type theType,
153  const CurveCreator_ICurve::SectionToPointCoordsList &theParamList1);
154 
166  bool init(const CurveCreator_Operation::Type theType,
167  const std::string& theName,
168  const CurveCreator::Coordinates &theCoords,
169  const int theIntParam1,
170  const int theIntParam2);
171 
172 
182  bool init(const CurveCreator_Operation::Type theType,
183  const std::string &theName,
184  const int theIntParam1 );
185 
189  void apply(CurveCreator_Curve *theCurve);
190 
191 private:
192 
197  void *allocate(const size_t theSize);
198 
202  void clear();
203 
207  void getCoords(int *thePInt, CurveCreator::Coordinates &theCoords) const;
208 
209 private:
210 
212  void *myPData;
213 
214 };
215 
216 #endif