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_Polyline3D.h"
27 class HYDROData_Polyline3D : public HYDROData_Object
30 #include "HYDROData_Polyline3D.h"
35 * Returns default filling color for new 3D polyline.
37 static QColor DefaultFillingColor();
40 * Returns default border color for new 3D polyline.
42 static QColor DefaultBorderColor();
46 // Public methods to work with 3D polyline
49 * Sets reference x,y polyline object for 3D polyline.
51 virtual bool SetPolylineXY( const Handle(HYDROData_PolylineXY)& thePolyline,
52 const bool theIsUpdateProfile = true );
55 * Returns reference x,y polyline object of 3D polyline.
57 virtual Handle(HYDROData_PolylineXY) GetPolylineXY() const;
60 * Remove reference x,y polyline object from 3D polyline.
62 virtual void RemovePolylineXY();
66 * Sets reference u,z profile object for 3D polyline.
68 virtual bool SetProfileUZ( const Handle(HYDROData_ProfileUZ)& theProfile );
71 * Returns reference u,z profile object of 3D polyline.
73 virtual Handle(HYDROData_ProfileUZ) GetProfileUZ() const;
76 * Remove reference u,z profile object from 3D polyline.
78 virtual void RemoveProfileUZ();
82 * Set reference bathymetry object for geometry object.
83 * Reimplemented to remove reference u,z profile.
85 virtual bool SetAltitudeObject( const Handle(HYDROData_IAltitudeObject)& theAltitude );
88 * Clear the reference bathymetry object for geometry object.
89 * Reimplemented to remove child u,z profile.
91 virtual void RemoveAltitudeObject();
95 * Returns the child u,z profile which has been generated from bathymetry.
97 Handle(HYDROData_ProfileUZ) GetChildProfileUZ( const bool theIsCreate = true ) const;
103 * Creates new object in the internal data structure. Use higher level objects
104 * to create objects with real content.
106 HYDROData_Polyline3D();
109 * Destructs properties of the object and object itself, removes it from the document.
111 virtual ~HYDROData_Polyline3D();