]> SALOME platform Git repositories - modules/geom.git/blob - src/CurveCreator/CurveCreator_Curve.hxx
Salome HOME
Fix compilation problem with -DSALOME_BUILD_GUI=OFF mode.
[modules/geom.git] / src / CurveCreator / CurveCreator_Curve.hxx
1 // Copyright (C) 2013  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.
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_Curve.hxx
21 // Author:      Sergey KHROMOV
22
23 #ifndef _CurveCreator_Curve_HeaderFile
24 #define _CurveCreator_Curve_HeaderFile
25
26 #include "CurveCreator.hxx"
27 #include "CurveCreator_ICurve.hxx"
28 #include "CurveCreator_Macro.hxx"
29 #include "CurveCreator_Operation.hxx"
30
31 class CurveCreator_Section;
32 class CurveCreator_Listener;
33
34 /**
35  *  The CurveCreator_Curve object is represented as one or more sets of
36  *  connected points; thus CurveCreator_Curve object can contain several
37  *  not connected curves (polylines or b-splines), each such curve has two
38  *  only ends � start and end points � in other words non-manifold curves
39  *  are not supported.
40  */
41 class CURVECREATOR_EXPORT CurveCreator_Curve : public CurveCreator_ICurve
42 {
43 public:
44   //! Constructor of the curve.
45   /** The dimension is explicitly specified in the constructor
46    *  and cannot be changed later.
47    */
48   CurveCreator_Curve(const CurveCreator::Dimension theDimension);
49
50   /** Add points to the specified section (or last section
51    *  if \a theISection is -1).
52    */
53   virtual void addPoints
54     (const CurveCreator::Coordinates &thePoints, const int theISection = -1);
55
56   friend class CurveCreator_CurveEditor;
57   friend class CurveCreator_Operation;
58
59 };
60
61 #endif