X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Zone.cxx;h=2df7c740f396f90872503c1d23684646412405de;hb=2f217128f8d34b2082de78d2af90bf243bf9e8b1;hp=f90f02873d021154215d5a7f5f194dbea5b8a0df;hpb=29527ae70e9cc00e9f7017f9ab4f7af4091dbf7f;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Zone.cxx b/src/HYDROData/HYDROData_Zone.cxx index f90f0287..2df7c740 100644 --- a/src/HYDROData/HYDROData_Zone.cxx +++ b/src/HYDROData/HYDROData_Zone.cxx @@ -22,35 +22,21 @@ IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Zone, HYDROData_Entity) HYDROData_Zone::HYDROData_Zone() : HYDROData_Entity() { + myInterpolator = NULL; } HYDROData_Zone::~HYDROData_Zone() { } -QStringList HYDROData_Zone::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const +bool HYDROData_Zone::CanBeUpdated() const { - QStringList aResList = dumpObjectCreation( theTreatedObjects ); - - HYDROData_SequenceOfObjects aGeomObjects = GetGeometryObjects(); - HYDROData_SequenceOfObjects::Iterator aGeomObjsIter( aGeomObjects ); - for ( ; aGeomObjsIter.More(); aGeomObjsIter.Next() ) - { - Handle(HYDROData_Object) aRefGeomObj = - Handle(HYDROData_Object)::DownCast( aGeomObjsIter.Value() ); - if ( !aRefGeomObj.IsNull() ) - setPythonReferenceObject( theTreatedObjects, aResList, aRefGeomObj, "AddGeometryObject" ); - } - - // How can we get the shape? Mb Update() method to intersect the shapes of reference objects? - // TODO: TopoDS_Shape aRefShape = GetShape(); - - return aResList; + return false; } -bool HYDROData_Zone::CanBeUpdated() const +bool HYDROData_Zone::IsHas2dPrs() const { - return false; + return true; } bool HYDROData_Zone::CanRemove() @@ -117,17 +103,19 @@ bool HYDROData_Zone::IsMergingNeed() const return false; } +void HYDROData_Zone::SetInterpolator( HYDROData_IInterpolator* theInter ) +{ + myInterpolator = theInter; +} + +HYDROData_IInterpolator* HYDROData_Zone::GetInterpolator() const +{ + return myInterpolator; +} + void HYDROData_Zone::SetMergeType( const MergeAltitudesType& theType ) { - Handle(TDataStd_Integer) anInt; - if ( myLab.FindChild( DataTag_MergeType ).FindAttribute( TDataStd_Integer::GetID(), anInt ) ) - { - anInt->Set( (int)theType ); - } - else - { - anInt = TDataStd_Integer::Set( myLab.FindChild( DataTag_MergeType ), (int)theType ); - } + TDataStd_Integer::Set( myLab.FindChild( DataTag_MergeType ), (int)theType ); } HYDROData_Zone::MergeAltitudesType HYDROData_Zone::GetMergeType() const