1 // Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: CurveCreator_Curve.hxx
21 // Author: Sergey KHROMOV
23 #ifndef _CurveCreator_Curve_HeaderFile
24 #define _CurveCreator_Curve_HeaderFile
26 #include "CurveCreator.hxx"
27 #include "CurveCreator_ICurve.hxx"
28 #include "CurveCreator_Macro.hxx"
29 #include "CurveCreator_Operation.hxx"
31 class CurveCreator_Section;
32 class CurveCreator_Listener;
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
41 class CURVECREATOR_EXPORT CurveCreator_Curve : public CurveCreator_ICurve
44 //! Constructor of the curve.
45 /** The dimension is explicitly specified in the constructor
46 * and cannot be changed later.
48 CurveCreator_Curve(const CurveCreator::Dimension theDimension);
50 /** Add points to the specified section (or last section
51 * if \a theISection is -1).
53 virtual void addPoints
54 (const CurveCreator::Coordinates &thePoints, const int theISection = -1);
56 friend class CurveCreator_CurveEditor;
57 friend class CurveCreator_Operation;