}
//---------------------------------------------------------------------
- void VolumeRenderer::Process()
- {
- bool changed = false;
- if ( bbGetInputStatus("In") != bbtk::UPTODATE )
- {
- mMapper->SetInput( bbGetInputIn() );
- changed = true;
- }
-
- if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
+void VolumeRenderer::Process()
+{
+ bool changed = false;
+ if ( bbGetInputStatus("In") != bbtk::UPTODATE )
+ {
+ mMapper->SetInput( bbGetInputIn() );
+ changed = true;
+ }
+
+ if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
( bbGetInputColorFunction() != 0 ) )
- {
- mVolume->GetProperty()->SetColor( bbGetInputColorFunction() );
- changed = true;
- }
+ {
+ mVolume->GetProperty()->SetColor( bbGetInputColorFunction() );
+ changed = true;
+ }
if ( ( bbGetInputStatus("ColorFunction1") != bbtk::UPTODATE ) &&
( bbGetInputColorFunction1() != 0 ) )
- {
- mVolume->GetProperty()->SetColor( bbGetInputColorFunction1() );
- changed = true;
- }
+ {
+ mVolume->GetProperty()->SetColor( bbGetInputColorFunction1() );
+ changed = true;
+ }
if ( ( bbGetInputStatus("OpacityFunction") != bbtk::UPTODATE ) &&
( bbGetInputOpacityFunction() != 0 ) )
- {
- mVolume->GetProperty()->SetScalarOpacity(bbGetInputOpacityFunction());
- changed = true;
- }
-
- if (changed) mMapper->Update();
+ {
+ mVolume->GetProperty()->SetScalarOpacity(bbGetInputOpacityFunction());
+ changed = true;
+ }
+
+ if (changed)
+ {
+ mMapper->Update();
+ }
+ bbSetOutputOut(mVolume);
+}
- bbSetOutputOut(mVolume);
-
- }
}//namespace bbtk