#include <HYDROData_Document.h>
#include <HYDROData_Profile.h>
#include <HYDROGUI_CurveCreatorProfile.h>
+#include <HYDROGUI_DeleteOp.h>
#include <CurveCreator_Displayer.hxx>
#include <LightApp_Application.h>
HYDROData_ProfileUZ::PointsList aProfileParamPoints;
- CurveCreator::Coordinates aCurveCoords = myProfile->getPoints( 0 );
+ CurveCreator::Coordinates aCurveCoords = myProfile->getCoords( 0 );
if ( aCurveCoords.size() <= 2 )
{
theErrorMsg = tr( "NUMBER_OF_PROFILE_POINTS_INCORRECT" );
}
}
}
+
+bool HYDROGUI_ProfileOp::isValid( SUIT_Operation* theOtherOp ) const
+{
+ HYDROGUI_DeleteOp* aDelOp = dynamic_cast<HYDROGUI_DeleteOp*>( theOtherOp );
+ if( aDelOp )
+ return true;
+ else
+ return false;
+}