geom/src/CurveCreator/CurveCreator.hxx

54 lines
1.6 KiB
C++
Raw Normal View History

2014-09-08 18:07:16 +06:00
// Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
2013-10-30 22:50:50 +06:00
//
// 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
2014-09-08 18:07:16 +06:00
// version 2.1 of the License.
2013-10-30 22:50:50 +06:00
//
// 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
//
// File: CurveCreator.hxx
// Author: Sergey KHROMOV
#ifndef _CurveCreator_HeaderFile
#define _CurveCreator_HeaderFile
#include <deque>
2014-09-08 18:07:16 +06:00
#include <map>
#include <list>
struct CurveCreator_Section;
struct CurveCreator_PosPoint;
2013-10-30 22:50:50 +06:00
namespace CurveCreator
{
//! Points coordinates
typedef float TypeCoord;
2014-09-08 18:07:16 +06:00
/** List of coordinates in format depends on section dimension:
* 2D: [x1, y1, x2, y2, x3, y3, ..]
* 3D: [x1, y1, z1, x2, y2, z2, x3, y3, z3, ..]
*/
2013-10-30 22:50:50 +06:00
typedef std::deque<TypeCoord> Coordinates;
2014-09-08 18:07:16 +06:00
//! List of sections
typedef std::deque<CurveCreator_Section *> Sections;
// List of positioned points (points with coordinates)
typedef std::list<CurveCreator_PosPoint*> PosPointsList;
//! Map of sections with positioned points
typedef std::map<int,PosPointsList> SectionsMap;
2013-10-30 22:50:50 +06:00
};
#endif