else if( title == "Z" )
this->Actors->SetSlice( 2, int( rep->GetValue( ) ) );
else if( title == "Window" )
- this->Actors->SetWindow( rep->GetValue( ) );
+ this->Actors->SetWindow( 0, rep->GetValue( ) );
else if( title == "Level" )
- this->Actors->SetLevel( rep->GetValue( ) );
+ this->Actors->SetLevel( 0, rep->GetValue( ) );
}
SliderCallback( )
: vtkCommand( )
// Actors
vtkSmartPointer< TMPRActors > mpr_actors =
vtkSmartPointer< TMPRActors >::New( );
- mpr_actors->SetInputData( image );
+ mpr_actors->AddInputData( image );
mpr_actors->PushDataInto( NULL, NULL, NULL, renderer );
// Callbacks
0.500, 0.15, 0.690, 0.15, cb
);
Slider w_slider(
- mpr_actors->GetMinWindow( ),
- mpr_actors->GetMaxWindow( ),
- mpr_actors->GetWindow( ),
+ mpr_actors->GetMinWindow( 0 ),
+ mpr_actors->GetMaxWindow( 0 ),
+ mpr_actors->GetWindow( 0 ),
"Window", interactor,
0.100, 0.05, 0.290, 0.05, cb
);
Slider l_slider(
- mpr_actors->GetMinWindow( ),
- mpr_actors->GetMaxWindow( ),
- mpr_actors->GetWindow( ),
+ mpr_actors->GetMinWindow( 0 ),
+ mpr_actors->GetMaxWindow( 0 ),
+ mpr_actors->GetWindow( 0 ),
"Level", interactor,
0.300, 0.05, 0.490, 0.05, cb
);