if (_wxvtk3Dbaseview!=NULL)
{
if (type==0)
+ {
+ _wxvtk3Dbaseview->GetRenderer()->GradientBackgroundOn();
+ _wxvtk3Dbaseview->GetRenderer()->SetBackground( 0.33 , 0.33 , 0.33 );
+ _wxvtk3Dbaseview->GetRenderer()->SetBackground2( 0.66 , 0.66 , 0.66 );
+ } // if type
+ else if (type==1)
{
_wxvtk3Dbaseview->GetRenderer()->GradientBackgroundOff();
_wxvtk3Dbaseview->GetRenderer()->SetBackground( 0 , 0 , 0 );
} // if type
- if (type==1)
+ else if (type==2)
{
- _wxvtk3Dbaseview->GetRenderer()->GradientBackgroundOn();
- _wxvtk3Dbaseview->GetRenderer()->SetBackground( 0.33 , 0.33 , 0.33 );
- _wxvtk3Dbaseview->GetRenderer()->SetBackground2( 0.66 , 0.66 , 0.66 );
+ _wxvtk3Dbaseview->GetRenderer()->GradientBackgroundOff();
+ _wxvtk3Dbaseview->GetRenderer()->SetBackground( 1 , 1 , 1 );
} // if type
_wxvtk3Dbaseview->Refresh();
}// if _wxvtk3Dbaseview