1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 #include <HYDROData_Obstacle.h>
27 class HYDROData_Obstacle : public HYDROData_ArtificialObject
30 #include <HYDROData_Obstacle.h>
35 * Returns the top shape of the object.
37 // virtual TopoDS_Shape GetTopShape() const;
40 * Returns the 3d shape of the object.
42 // virtual TopoDS_Shape GetShape3D() const;
45 * Returns default filling color for new obstacle.
47 static QColor DefaultFillingColor();
50 * Returns default border color for new obstacle.
52 static QColor DefaultBorderColor();
56 * Sets the 3d shape of the object.
58 // virtual void SetShape3D( const TopoDS_Shape& theShape );
63 * Imports shape from file containing geometrical object and sets this
64 * shape as the obstacle shape.
65 * The supported file types:
70 * \param theFilePath the path to file
71 * \return \c true if file has been successfully read
73 bool ImportFromFile( const QString& theFilePath );
76 * Stores the file path of the imported file.
77 * \param theFilePath file path
79 void SetFilePath(const QString& theFilePath);
82 * Returns the imported file path.
84 QString GetFilePath() const;
87 * Stores the study entry of the imported GEOM object.
88 * \param theEntry GEOM object entry
90 void SetGeomObjectEntry(const QString& theEntry);
93 * Returns the imported GEOM object entry.
95 QString GetGeomObjectEntry() const;
100 * Creates new object in the internal data structure. Use higher level objects
101 * to create objects with real content.
103 HYDROData_Obstacle();
106 * Destructs properties of the object and object itself, removes it from the document.
108 virtual ~HYDROData_Obstacle();