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 bool SetPolylineXY( HYDROData_PolylineXY thePolyline,
52 const bool theIsUpdateProfile = true )
53 [bool ( const Handle_HYDROData_PolylineXY&,
56 Handle(HYDROData_PolylineXY) aRef =
57 Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
60 Py_BEGIN_ALLOW_THREADS
61 sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetPolylineXY( aRef, a1 ):
62 sipCpp->SetPolylineXY( aRef, a1 );
68 * Returns reference x,y polyline object of 3D polyline.
70 HYDROData_PolylineXY GetPolylineXY() const
71 [Handle_HYDROData_PolylineXY ()];
73 Handle(HYDROData_PolylineXY) aRef;
75 Py_BEGIN_ALLOW_THREADS
76 aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetPolylineXY() :
77 sipCpp->GetPolylineXY();
80 sipRes = (HYDROData_PolylineXY*)createPointer( aRef );
84 * Remove reference x,y polyline object from 3D polyline.
86 void RemovePolylineXY();
90 * Sets reference u,z profile object for 3D polyline.
92 bool SetProfileUZ( HYDROData_ProfileUZ theProfile )
93 [bool ( const Handle_HYDROData_ProfileUZ& )];
95 Handle(HYDROData_ProfileUZ) aRef =
96 Handle(HYDROData_ProfileUZ)::DownCast( createHandle( a0 ) );
99 Py_BEGIN_ALLOW_THREADS
100 sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetProfileUZ( aRef ):
101 sipCpp->SetProfileUZ( aRef );
107 * Returns reference u,z profile object of 3D polyline.
109 HYDROData_ProfileUZ GetProfileUZ() const
110 [Handle_HYDROData_ProfileUZ ()];
112 Handle(HYDROData_ProfileUZ) aRef;
114 Py_BEGIN_ALLOW_THREADS
115 aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetProfileUZ() :
116 sipCpp->GetProfileUZ();
119 sipRes = (HYDROData_ProfileUZ*)createPointer( aRef );
123 * Remove reference u,z profile object from 3D polyline.
125 virtual void RemoveProfileUZ();
129 * Set reference bathymetry object for geometry object.
130 * Reimplemented to remove reference u,z profile.
132 bool SetAltitudeObject( HYDROData_IAltitudeObject theAltitude )
133 [bool ( const Handle_HYDROData_IAltitudeObject& )];
135 Handle(HYDROData_IAltitudeObject) aRef =
136 Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) );
137 if ( !aRef.IsNull() )
139 Py_BEGIN_ALLOW_THREADS
140 sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetAltitudeObject( aRef ):
141 sipCpp->SetAltitudeObject( aRef );
147 * Clear the reference bathymetry object for geometry object.
148 * Reimplemented to remove child u,z profile.
150 void RemoveAltitudeObject();
154 * Returns the child u,z profile which has been generated from bathymetry.
156 HYDROData_ProfileUZ GetChildProfileUZ( const bool theIsCreate = true ) const
157 [Handle_HYDROData_ProfileUZ ( const bool = true )];
159 Handle(HYDROData_ProfileUZ) aRef;
161 Py_BEGIN_ALLOW_THREADS
162 aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetChildProfileUZ( a0 ) :
163 sipCpp->GetChildProfileUZ( a0 );
166 sipRes = (HYDROData_ProfileUZ*)createPointer( aRef );
173 * Creates new object in the internal data structure. Use higher level objects
174 * to create objects with real content.
176 HYDROData_Polyline3D();
179 * Destructs properties of the object and object itself, removes it from the document.
181 virtual ~HYDROData_Polyline3D();