geom/src/GEOMImpl/GEOMImpl_I3DSketcher.hxx

51 lines
1.6 KiB
C++
Raw Normal View History

2013-04-01 18:25:01 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
2012-08-09 13:58:02 +06:00
//
2005-12-05 21:23:52 +05:00
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
2012-08-09 13:58:02 +06:00
// License as published by the Free Software Foundation; either
2005-12-05 21:23:52 +05:00
// version 2.1 of the License.
2012-08-09 13:58:02 +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
2005-12-05 21:23:52 +05:00
// Lesser General Public License for more details.
//
2012-08-09 13:58:02 +06:00
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
2005-12-05 21:23:52 +05:00
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2013-04-01 18:25:01 +06:00
//
2012-08-09 13:58:02 +06:00
//NOTE: This is an interface to a function for the Sketcher creation.
2012-10-08 17:16:36 +06:00
2009-02-13 17:16:39 +05:00
#include "GEOM_Function.hxx"
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
#include <TColStd_HArray1OfReal.hxx>
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
class GEOMImpl_I3DSketcher
{
2012-10-08 17:16:36 +06:00
public:
2004-12-01 15:39:14 +05:00
2012-10-08 17:16:36 +06:00
GEOMImpl_I3DSketcher (Handle(GEOM_Function) theFunction): _func(theFunction) {}
2009-02-13 17:16:39 +05:00
2012-10-08 17:16:36 +06:00
void SetCoordinates (const Handle(TColStd_HArray1OfReal)& theValue)
{ _func->SetRealArray(SKETCH_ARG_COORDS, theValue); }
2009-02-13 17:16:39 +05:00
Handle(TColStd_HArray1OfReal) GetCoordinates() { return _func->GetRealArray(SKETCH_ARG_COORDS); }
2004-12-01 15:39:14 +05:00
2012-10-08 17:16:36 +06:00
void SetCommand (const TCollection_AsciiString& theCommand)
{ _func->SetString(SKETCH_ARG_COMMAND, theCommand); }
TCollection_AsciiString GetCommand() { return _func->GetString(SKETCH_ARG_COMMAND); }
private:
enum {
SKETCH_ARG_COORDS = 1,
SKETCH_ARG_COMMAND = 2
};
2009-02-13 17:16:39 +05:00
Handle(GEOM_Function) _func;
};