//=====
void ProbeFilter::Process()
{
-
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
// (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')
+ if ( (bbGetInputSource()==NULL) || (bbGetInputInput()==NULL) )
+ {
+ bbSetOutputOut( NULL );
+ } else {
+ //EED 2017-01-01 Migration VTK7
-
-//EED 2017-01-01 Migration VTK7
-#if VTK_MAJOR_VERSION <= 5
- _probefilter->SetSource( bbGetInputSource() );
- _probefilter->SetInput( bbGetInputInput() );
-#else
- _probefilter->SetSourceData( bbGetInputSource() );
- _probefilter->SetInputData( bbGetInputInput() );
-#endif
-
- _probefilter->Update();
- bbSetOutputOut( _probefilter->GetOutput() );
-
+ #if VTK_MAJOR_VERSION <= 5
+ _probefilter->SetSource( bbGetInputSource() );
+ _probefilter->SetInput( bbGetInputInput() );
+ #else
+ _probefilter->SetSourceData( bbGetInputSource() );
+ _probefilter->SetInputData( bbGetInputInput() );
+ #endif
+ _probefilter->Update();
+ bbSetOutputOut( _probefilter->GetOutput() );
+ } // if source input
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)