// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
-//EED 2017-01-01 Migration VTK7
-#if (VTK_MAJOR_VERSION <= 5)
- maskpoints->SetInput( bbGetInputIn() );
-#endif
-#if (VTK_MAJOR_VERSION >= 6)
- maskpoints->SetInputData( bbGetInputIn() );
-#endif
- maskpoints->SetOnRatio( bbGetInputRatio() );
- maskpoints->RandomModeOn();
- maskpoints->SetMaximumNumberOfPoints(5000);
- maskpoints->Update();
- bbSetOutputOut( maskpoints->GetOutput() );
+ if (bbGetInputActive()==true)
+ {
+ //EED 2017-01-01 Migration VTK7
+ #if (VTK_MAJOR_VERSION <= 5)
+ maskpoints->SetInput( bbGetInputIn() );
+ #endif
+ #if (VTK_MAJOR_VERSION >= 6)
+ maskpoints->SetInputData( bbGetInputIn() );
+ #endif
+
+ maskpoints->SetOnRatio( bbGetInputRatio() );
+
+ if (bbGetInputRandomType()==-1)
+ {
+ maskpoints->RandomModeOff();
+ } else if(bbGetInputRandomType()==0) {
+ maskpoints->RandomModeOn();
+ maskpoints->SetRandomModeType(0);
+ }
+
+ // maskpoints->SetMaximumNumberOfPoints(5000);
+ maskpoints->Update();
+ bbSetOutputOut( maskpoints->GetOutput() );
+ } // if Active
}
//=====
// 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)
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
+ bbSetInputActive( true );
bbSetInputIn(NULL);
bbSetOutputOut(NULL);
+ bbSetInputRandomType(-1);
+ bbSetInputRatio(30);
}
//=====