// (the one provided in the attribute 'name' of the tag 'input')
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
+ printf("EED PlaneWidget::Process 1 \n");
if ((bbGetInputIn()==NULL) || (bbGetInputRenderer()==NULL))
{
+ printf("EED PlaneWidget::Process 2 \n");
bbSetOutputOut( NULL );
std::vector<double> center;
std::vector<double> normal;
bbSetOutputCenter( center );
bbSetOutputNormal( normal );
} else {
+ if (bbGetInputOrigin().size()==3) printf("EED PlaneWidget::Process 3 Origin %f, %f, %f \n", bbGetInputOrigin()[0], bbGetInputOrigin()[1], bbGetInputOrigin()[2] );
+ else printf("EED PlaneWidget::Process 3 Origin -1 \n" );
_boxcreavtkplanewidget.SetActive( bbGetInputActive() );
_boxcreavtkplanewidget.SetImage( bbGetInputIn() );
_boxcreavtkplanewidget.SetResolution( bbGetInputResolution() );
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);
}
//=====