MacheteFilter_Dialog(
QWidget* parent, MacheteFilter* filter, Qt::WindowFlags f
)
- : QDialog( parent, f ),
+ : QDialog( parent, f | Qt::WindowStaysOnTopHint ),
m_Filter( filter )
{
this->m_Title = new QLabel( this );
double center[ 3 ], normal[ 3 ];
wdg->GetCenter( center );
wdg->GetNormal( normal );
+
this->m_Filter->GetParameters( )->SetPoint( "PlaneCenter", 3, center );
this->m_Filter->GetParameters( )->SetVector( "PlaneNormal", 3, normal );
void cpPlugins::BasicFilters::MacheteFilter_Dialog::
reject( )
{
- std::cout << "reject" << std::endl;
+ auto plugins = this->m_Filter->GetPlugins( );
+ if( plugins != NULL )
+ plugins->DeactivateFilter( );
+ this->Superclass::reject( );
}
+
#endif // cpPlugins_Interface_QT4
// -------------------------------------------------------------------------