void ShowNPoints::Process()
{
- mwxwidget->SetPoint( bbGetInputIn() );
- mwxwidget->SetImage( bbGetInputImage() );
- mwxwidget->SetColour( bbGetInputColour() );
- mwxwidget->SetOpacity( bbGetInputOpacity() );
- mwxwidget->SetRadio( bbGetInputRadio() );
+ if (mwxwidget!=NULL){
+ mwxwidget->SetPoint( bbGetInputIn() );
+ mwxwidget->SetImage( bbGetInputImage() );
+ mwxwidget->SetColour( bbGetInputColour() );
+ mwxwidget->SetOpacity( bbGetInputOpacity() );
+ mwxwidget->SetRadio( bbGetInputRadio() );
- bbSetOutputlstPointsX( mwxwidget->GetLstPointsX() );
- bbSetOutputlstPointsY( mwxwidget->GetLstPointsY() );
- bbSetOutputlstPointsZ( mwxwidget->GetLstPointsZ() );
+ bbSetOutputlstPointsX( mwxwidget->GetLstPointsX() );
+ bbSetOutputlstPointsY( mwxwidget->GetLstPointsY() );
+ bbSetOutputlstPointsZ( mwxwidget->GetLstPointsZ() );
+ } // mwxwidget
}
void ShowNPoints::bbUserConstructor()
{
+ mwxwidget = NULL;
std::vector<double> colour;
colour.push_back(1.0);
colour.push_back(0.0);