bbSetOutputRenderer( NULL );
bbSetOutputInteractor( NULL );
bbSetOutputWidget(NULL);
+ std::vector<double> bckgrndColor(3);
+ bckgrndColor[0] = 0.1;
+ bckgrndColor[1] = 0.1;
+ bckgrndColor[2] = 0.2;
+ bbSetInputBackgroundColor(bckgrndColor);
}
//-----------------------------------------------------------------
// Viewer3DWidget* w = (Viewer3DWidget*)bbGetOutputWidget();
// if (w) w->Update();
-
+
Viewer3DWidget* w = (Viewer3DWidget*)bbGetOutputWidget();
if ((firsttime==true) && (w!=NULL)){
vtkRenderer *renderer = w->GetRenderer();
if (renderer!=NULL)
{
+ std::vector<double> bckgrndColor = bbGetInputBackgroundColor();
+ renderer->SetBackground(bckgrndColor[0], bckgrndColor[1], bckgrndColor[2]);
bbSetOutputRenderer( renderer );
/*if (bbGetInputIn1()!=NULL) {renderer->AddActor( bbGetInputIn1() ); }
BBTK_DECLARE_INPUT(Obs4, vtkInteractorObserver *);
BBTK_DECLARE_INPUT(Obs5, vtkInteractorObserver *);
BBTK_DECLARE_INPUT(Stereo, bool);
+ BBTK_DECLARE_INPUT(BackgroundColor,std::vector<double>);
BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer*);
BBTK_DECLARE_OUTPUT(Interactor,wxVTKRenderWindowInteractor*);
BBTK_PROCESS(Process);
BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
BBTK_DESCRIPTION("3D Viewer widget (vtk)");
BBTK_CATEGORY("viewer");
+ BBTK_INPUT(Viewer3D,BackgroundColor,"Render background's color",std::vector<double>,"");
BBTK_INPUT(Viewer3D,In1,"Input actor",vtkProp3D *,"");
BBTK_INPUT(Viewer3D,In2,"Input actor",vtkProp3D *,"");
BBTK_INPUT(Viewer3D,In3,"Input actor",vtkProp3D *,"");