- Handle(HYDROData_Image) anImage1 = Handle(HYDROData_Image)::DownCast(
- HYDROGUI_Tool::FindObjectByName( module(), aSelectedName1, KIND_IMAGE ) );
- Handle(HYDROData_Image) anImage2 = Handle(HYDROData_Image)::DownCast(
- HYDROGUI_Tool::FindObjectByName( module(), aSelectedName2, KIND_IMAGE ) );
- if( anImage1.IsNull() || anImage2.IsNull() )
+ Handle(HYDROData_Entity) anObject1 =
+ HYDROGUI_Tool::FindObjectByName( module(), aSelectedName1, KIND_UNKNOWN ) ;
+ Handle(HYDROData_Entity) anObject2 =
+ HYDROGUI_Tool::FindObjectByName( module(), aSelectedName2, KIND_UNKNOWN );
+ if( anObject1.IsNull() || anObject2.IsNull() )