-void boxcreaVtkPlaneWidget::Execute() // virutal
+void boxcreaVtkPlaneWidget::Execute() // virtual
{
std::vector<double> center = _box->_boxcreavtkplanewidget.GetCenter();
std::vector<double> normal = _box->_boxcreavtkplanewidget.GetNormal();
+ SetNormalIn( normal );
double delta = 0.00000001;
bool ok = false;
// _box->bbSignalOutputModification(std::string("Center"));
// _box->bbSignalOutputModification(std::string("Normal"));
_box->bbSignalOutputModification();
-
}
}
bbSetOutputOut( _boxcreavtkplanewidget.GetPlaneSource()->GetOutput() );
bbSetOutputCenter( _boxcreavtkplanewidget.GetCenter() );
bbSetOutputNormal( _boxcreavtkplanewidget.GetNormal() );
- int sizeN=bbGetInputOrigin().size();
- int sizeC=_boxcreavtkplanewidget.GetCenter().size();
- printf("EED PlaneWidget::Process OriginIn.size=%d CenterOut.size=%d \n", sizeN, sizeC);
- if (sizeN==3)
+ bbSetOutputBase( &_boxcreavtkplanewidget );
+ int sizeN = bbGetInputOrigin().size();
+ int sizeC = _boxcreavtkplanewidget.GetCenter().size();
+ if (sizeN==3)
{
double nx = bbGetInputOrigin()[0];
double ny = bbGetInputOrigin()[1];
double nz = bbGetInputOrigin()[2];
- printf("EED PlaneWidget::Process OriginIn=%f %f %f \n", nx,ny,nz);
- }
+ } // if sizeN
if (sizeC==3)
{
double cx =_boxcreavtkplanewidget.GetCenter()[0];
double cy =_boxcreavtkplanewidget.GetCenter()[1];
double cz =_boxcreavtkplanewidget.GetCenter()[2];
- printf("EED PlaneWidget::Process CenterOut=%f %f %f \n", cx,cy,cz);
- }
- }
+ } // if sizeC
+ } // If In Renderer
}
//=====
bbSetInputRenderer(NULL);
bbSetInputReactiveType( _boxcreavtkplanewidget._ReactiveType );
bbSetOutputOut(NULL);
+ bbSetOutputBase(NULL);
}
//=====