#include <HYDROData_Object.h>
#include <HYDROData_IPolyline.h>
+#include <HYDROData_LandCover.h>
#include <LightApp_Application.h>
#include <LightApp_UpdateFlags.h>
return false;
return theObject->IsKind( STANDARD_TYPE(HYDROData_Object) ) ||
- theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) );
+ theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) ) ||
+ theObject->IsKind( STANDARD_TYPE(HYDROData_LandCover) );
}
void HYDROGUI_SetColorOp::startOperation()
anIsOneColor = true;
}
+ else if ( myEditedObject->IsKind( STANDARD_TYPE(HYDROData_LandCover) ) )
+ {
+ Handle(HYDROData_LandCover) aLandCover =
+ Handle(HYDROData_LandCover)::DownCast( myEditedObject );
+
+ aFirstColor = aLandCover->GetFillingColor();
+ aSecondColor = aLandCover->GetBorderColor();
+ }
// Create color dialog
myColorDlg = new HYDROGUI_ColorDlg( module()->getApp()->desktop(), anIsOneColor );
aPolyObject->SetWireColor( aFirstColor );
}
+ else if ( myEditedObject->IsKind( STANDARD_TYPE(HYDROData_LandCover) ) )
+ {
+ Handle(HYDROData_LandCover) aLandCover =
+ Handle(HYDROData_LandCover)::DownCast( myEditedObject );
+
+ aLandCover->SetFillingColor( aFirstColor );
+ aLandCover->SetBorderColor( aSecondColor );
+ }
module()->setIsToUpdate( myEditedObject );