QImage anImage;
Handle(HYDROData_Image) anImageObj = Handle(HYDROData_Image)::DownCast(
HYDROGUI_Tool::FindObjectByName( module(), theName, KIND_IMAGE ) );
+ HYDROGUI_ImportImageDlg* aPanel = (HYDROGUI_ImportImageDlg*)inputPanel();
if( !anImageObj.IsNull() )
{
anImage = anImageObj->Image();
myRefPreviewPrs->setIsTransformationPointPreview( true );
myRefPreviewPrs->setTransformationPointType( myPointType );
+ myRefPreviewPrs->setIsByTwoPoints( aPanel->isByTwoPoints() );
+
// Add the new reference image presentation to the appropriate view
aViewPort->addItem( myRefPreviewPrs );
}
}
// Initialize the dialog
- HYDROGUI_ImportImageDlg* aPanel = (HYDROGUI_ImportImageDlg*)inputPanel();
aPanel->setImageSize( anImage.size(), true );
aPanel->initializePointSelection();
onPointSelected( true );
myCaptionItem( 0 ),
myPrsImageFrame( 0 ),
myIsTransformationPointPreview( false ),
+ myIsByTwoPoints( true ),
myTransformationPointType( None )
{
myTransformationPointCursor = new QCursor( Qt::CrossCursor );