#include "HYDROData_IAltitudeObject.h"
#include "HYDROData_Document.h"
#include "HYDROData_NaturalObject.h"
-#include "HYDROData_LandCover.h"
#include <QStringList>
#include <TDataStd_Integer.hxx>
#include <TopoDS_Shape.hxx>
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Zone, HYDROData_Entity)
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Zone, HYDROData_Entity)
HYDROData_Zone::HYDROData_Zone()
-: HYDROData_Entity()
+: HYDROData_Entity( Geom_2d )
{
myInterpolator = NULL;
}
return true;
}
- // Zones based on land cover objects (compare Strickler types)
- QString aRefStricklerType;
-
- anObjsIter.Init( anObjects );
- for ( ; anObjsIter.More(); anObjsIter.Next() )
- {
- Handle(HYDROData_LandCover) aRefLandCoverObj =
- Handle(HYDROData_LandCover)::DownCast( anObjsIter.Value() );
- if ( aRefLandCoverObj.IsNull() )
- continue;
-
- QString aStricklerType = aRefLandCoverObj->GetStricklerType();
-
- if ( aRefStricklerType.isNull() )
- {
- aRefStricklerType = aStricklerType;
- continue;
- }
-
- if ( aRefStricklerType != aStricklerType )
- return true;
- }
-
-
return false;
}
void HYDROData_Zone::SetMergeObject( const Handle(HYDROData_Entity)& theObject )
{
+ //DEBTRACE("HYDROData_Zone::SetMergeObject");
SetReferenceObject( theObject, DataTag_MergeObject );
}
Handle(HYDROData_Entity) HYDROData_Zone::GetMergeObject() const
{
- return Handle(HYDROData_Entity)::DownCast(
- GetReferenceObject( DataTag_MergeObject ) );
+ return GetReferenceObject( DataTag_MergeObject );
}
void HYDROData_Zone::RemoveMergeObject()
return false;
if ( !theObject->IsKind( STANDARD_TYPE(HYDROData_ArtificialObject) ) &&
- !theObject->IsKind( STANDARD_TYPE(HYDROData_NaturalObject) ) &&
- !theObject->IsKind( STANDARD_TYPE(HYDROData_LandCover) ) )
+ !theObject->IsKind( STANDARD_TYPE(HYDROData_NaturalObject) ) )
return false; // Wrong type of object
if ( HasReference( theObject, DataTag_Object ) )