1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include <HYDROData_Zone.h>
23 class HYDROData_Zone : public HYDROData_Entity
26 %ConvertToSubClassCode
27 switch ( sipCpp->GetKind() )
30 sipClass = sipClass_HYDROData_Zone;
34 // We don't recognise the type.
40 #include <HYDROData_Zone.h>
45 // Enumeration of mergin types for conflict altitudes
48 Merge_ZMIN, // The minimum values
49 Merge_ZMAX, // The maximum values
50 Merge_Object // Only one altitude will be taken into account
55 void SetMergeType( const MergeType& theType );
56 MergeType GetMergeType() const;
58 void SetMergeAltitude( HYDROData_IAltitudeObject theAltitude )
59 [void (const opencascade::handle<HYDROData_IAltitudeObject>&)];
61 Handle(HYDROData_IAltitudeObject) aRefAltitude =
62 Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) );
63 if ( !aRefAltitude.IsNull() )
65 Py_BEGIN_ALLOW_THREADS
66 sipSelfWasArg ? sipCpp->HYDROData_Zone::SetMergeObject( aRefAltitude ) :
67 sipCpp->SetMergeObject( aRefAltitude );
72 HYDROData_IAltitudeObject GetMergeAltitude() const [opencascade::handle<HYDROData_IAltitudeObject> ()];
74 Handle(HYDROData_IAltitudeObject) aRefAltitude;
75 Py_BEGIN_ALLOW_THREADS
76 Handle(HYDROData_Entity) aRefObject = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetMergeObject() :
77 sipCpp->GetMergeObject();
78 aRefAltitude = Handle(HYDROData_IAltitudeObject)::DownCast( aRefObject );
80 sipRes = (HYDROData_IAltitudeObject*)createPointer( aRefAltitude );
83 void RemoveMergeAltitude();
85 Py_BEGIN_ALLOW_THREADS
86 sipSelfWasArg ? sipCpp->HYDROData_Zone::RemoveMergeObject() :
87 sipCpp->RemoveMergeObject();
91 void SetMergeObject( HYDROData_Entity theObject ) [void (const opencascade::handle<HYDROData_Entity>&)];
93 Handle(HYDROData_Entity) aRefObject = createHandle( a0 );
94 if ( !aRefObject.IsNull() )
96 Py_BEGIN_ALLOW_THREADS
97 sipSelfWasArg ? sipCpp->HYDROData_Zone::SetMergeObject( aRefObject ) :
98 sipCpp->SetMergeObject( aRefObject );
103 HYDROData_Entity GetMergeObject() const [opencascade::handle<HYDROData_Entity> ()];
105 Handle(HYDROData_Entity) aRefObject;
106 Py_BEGIN_ALLOW_THREADS
107 aRefObject = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetMergeObject() :
108 sipCpp->GetMergeObject();
110 sipRes = (HYDROData_Entity*)createPointer( aRefObject );
113 void RemoveMergeObject();
115 void AddObject( HYDROData_Entity theObject ) [void (const opencascade::handle<HYDROData_Entity>&)];
118 Handle(HYDROData_Entity) anObj = createHandle( a0 );
119 if ( !anObj.IsNull() )
121 Py_BEGIN_ALLOW_THREADS
122 sipSelfWasArg ? sipCpp->HYDROData_Zone::AddObject( anObj ) :
123 sipCpp->AddObject( anObj );
129 HYDROData_SequenceOfObjects GetObjects() const;
131 void RemoveObjects();
132 void SetInterpolator( HYDROData_IInterpolator* theInter );
133 HYDROData_IInterpolator* GetInterpolator() const;