- box->bbSetOutputOut( box->_boxcreavtkplanewidget.GetPlaneSource()->GetOutput() );
- box->bbSignalOutputModification(std::string("Out"));
- box->bbSetOutputCenter( box->_boxcreavtkplanewidget.GetCenter() );
- box->bbSignalOutputModification(std::string("Center"));
- box->bbSetOutputNormal( box->_boxcreavtkplanewidget.GetNormal() );
- box->bbSignalOutputModification(std::string("Normal"));
+ std::vector<double> center = _box->_boxcreavtkplanewidget.GetCenter();
+ std::vector<double> normal = _box->_boxcreavtkplanewidget.GetNormal();
+ double delta = 0.00000001;
+ bool ok = false;
+
+ // 0 Center and Normal change
+ // 1 Center change
+ // 2 Normal change
+ if ( (_ReactiveType==0) || (_ReactiveType==1) )
+ {
+ if (abs(_cxBack-center[0])>delta ) ok=true;
+ if (abs(_cyBack-center[1])>delta ) ok=true;
+ if (abs(_czBack-center[2])>delta ) ok=true;
+ }// if ReacitivityType 1 3
+ if ( (_ReactiveType==0) || (_ReactiveType==2) )
+ {
+ if (abs(_nxBack-normal[0])>delta ) ok=true;
+ if (abs(_nyBack-normal[1])>delta ) ok=true;
+ if (abs(_nzBack-normal[2])>delta ) ok=true;
+ }// if ReacitivityType 2 3