X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuViewerNV.h;h=58958b4bdb3bfa17ff6fcd3f20ae73cbe6c48536;hb=d2fc2645728a4aea4f0aa0febfa1d7a894ab3ff1;hp=4222d32ec6116ec6d226f65facacc0c5ec6cc7c4;hpb=738e5bef4c52a1f25013e598a008a81f20fc6f63;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuViewerNV.h b/bbtk/src/bbmaracasvisuViewerNV.h index 4222d32..58958b4 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.h +++ b/bbtk/src/bbmaracasvisuViewerNV.h @@ -46,6 +46,9 @@ class /*BBTK_EXPORT*/ ViewerNV BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(In, vtkImageData *); BBTK_DECLARE_INPUT(nTypeView, std::vector ); + BBTK_DECLARE_INPUT(ColorFunction, vtkColorTransferFunction* ); + BBTK_DECLARE_INPUT(WindowLevel, int ); + BBTK_DECLARE_INPUT(ColorLevel, int ); BBTK_DECLARE_OUTPUT(wxVtkBaseView1,wxVtkBaseView*); BBTK_DECLARE_OUTPUT(wxVtkBaseView2,wxVtkBaseView*); BBTK_DECLARE_OUTPUT(wxVtkBaseView3,wxVtkBaseView*); @@ -54,15 +57,17 @@ class /*BBTK_EXPORT*/ ViewerNV BBTK_DECLARE_OUTPUT(Renderer2,vtkRenderer*); BBTK_DECLARE_OUTPUT(Renderer3,vtkRenderer*); BBTK_DECLARE_OUTPUT(Renderer4,vtkRenderer*); + BBTK_DECLARE_OUTPUT(Interactor1,vtkRenderWindowInteractor*); BBTK_DECLARE_OUTPUT(Point,std::vector); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); void CreateWidget(wxWindow* parent); + std::vector point; private: bool enter; - std::vector point; + vtkImageData* currentimg; std::vector currenttype; wxMaracas_N_ViewersWidget *mwxwidget; @@ -77,7 +82,10 @@ BBTK_DESCRIPTION("Viewer : N view configuration 2D and 3D"); BBTK_CATEGORY("viewer"); BBTK_INPUT(ViewerNV,Title,"Title prepended to the text",std::string,""); BBTK_INPUT(ViewerNV,In,"Input image",vtkImageData*,""); - BBTK_INPUT(ViewerNV,nTypeView,"vector of viewer types (default 5 0 1 3 ): -1=Z_2DwithOutAxis 0=Z_2D 1=X_2D 2=Y_2D 3=Plane 4=Sphere 5=3D 6=3Dplane",std::vector,""); + BBTK_INPUT(ViewerNV,nTypeView,"vector of viewer types (default 5 0 1 3 ): -1=Z_2DwithOutAxis 0=Z_2D 1=X_2D 2=Y_2D 3=Plane 4=Sphere 5=3D 6=3Dplane 7=3D_empty",std::vector,""); + BBTK_INPUT(ViewerNV,ColorFunction,"Optional: set a different color for the viewers 2D",vtkColorTransferFunction*,""); + BBTK_INPUT(ViewerNV,WindowLevel,"Optional: set a different Window level by using an other widget",int,""); + BBTK_INPUT(ViewerNV,ColorLevel,"Optional: set a different Color level by using an other widget",int,""); BBTK_OUTPUT(ViewerNV,wxVtkBaseView1,"wxVtkBaseView 1",wxVtkBaseView *,""); BBTK_OUTPUT(ViewerNV,wxVtkBaseView2,"wxVtkBaseView 2",wxVtkBaseView *,""); BBTK_OUTPUT(ViewerNV,wxVtkBaseView3,"wxVtkBaseView 3",wxVtkBaseView *,""); @@ -86,6 +94,7 @@ BBTK_DESCRIPTION("Viewer : N view configuration 2D and 3D"); BBTK_OUTPUT(ViewerNV,Renderer2,"Renderer 2",vtkRenderer *,""); BBTK_OUTPUT(ViewerNV,Renderer3,"Renderer 3",vtkRenderer *,""); BBTK_OUTPUT(ViewerNV,Renderer4,"Renderer 4",vtkRenderer *,""); + BBTK_OUTPUT(ViewerNV,Interactor1,"Interactor1",vtkRenderWindowInteractor *,""); BBTK_OUTPUT(ViewerNV,Point,"Axis point",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(ViewerNV); }