X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxMaracas_N_ViewersWidget.h;h=19bd3c23048e2ad2c0dceba545fc7492f862a374;hb=c997301a5cfd97dc9a44f5ff0766814265e4c527;hp=8d7a32066647c30f50d67e2b7f1f945343f633bf;hpb=a4ee3758aa0477f677fb981e2c4d6e29995e8db8;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.h index 8d7a320..19bd3c2 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.h @@ -3,8 +3,8 @@ Program: wxMaracas Module: $RCSfile: wxMaracas_N_ViewersWidget.h,v $ Language: C++ - Date: $Date: 2009/05/14 13:54:35 $ - Version: $Revision: 1.5 $ + Date: $Date: 2010/08/04 18:45:27 $ + Version: $Revision: 1.11 $ Copyright: (c) 2002, 2003 License: @@ -53,8 +53,33 @@ class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel // Constructors & Destructors //------------------------------------------------------------------------------------------------------------ + /** + * @pre A wxWindow* object must be provided as a parent for the viewer + * @post The layout of the viewer is initialize, if there is no image or type set, + only the panel of the viwer is created with no vtk objects + * @param wxWindow* parent of the window + * @param vtkImageData* imagedata of the viewer + * @param std::vector* vector of the type for the viewer + * @deprecated This method will be eliminated in future versions, + * @deprecated the viewers will start with a default image if it is not specified, + * @deprecated this is in order to create the layout of the viewer, + * @deprecated the vtkInteractors* and the object vtkRenderer* use second constructor + */ wxMaracas_N_ViewersWidget(wxWindow *parent, vtkImageData* imagedata = NULL, std::vector *nTypeView = NULL); - ~wxMaracas_N_ViewersWidget(); + /** + * @pre A wxWindow* object must be provided as a parent for the viewer and the type of layout for the viewer + * @post The layout of the viewer is initialized, if no image is provided at first, a default image is + * used + * @param wxWindow* parent of the window + * @param std::vector* vector of the type for the viewer + * @param vtkImageData* imagedata of the viewer + */ + wxMaracas_N_ViewersWidget(wxWindow *parent, std::vector *nTypeView, vtkImageData* imagedata = NULL); + /** + * @pre none + * @post the viewer window is deleted, all of the interactors and the renderer are deleted + */ + ~wxMaracas_N_ViewersWidget(); //------------------------------------------------------------------------------------------------------------ @@ -71,6 +96,7 @@ class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel wxVtkBaseView *GetwxVtkBaseView(int iWin); virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL ); void SetImage( vtkImageData *image ); + void ConfigureVTK(); void SetType(std::vector* type); void UpdateLayout(vtkImageData* imagedata); // double GetZ(int iWin); @@ -78,6 +104,11 @@ class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel double GetY(); double GetZ(); + void setColorTransferFunction(vtkColorTransferFunction* colortable); + + void setWindowLevel(double level); + void setColorLevel(double level); + //------------------------------------------------------------------------------------------------------------ // Attributes //------------------------------------------------------------------------------------------------------------ @@ -94,6 +125,9 @@ class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel std::vector *nTypeView; + vtkMPRBaseData* mvtkmprbasedata; + + void invariant(); DECLARE_EVENT_TABLE( ); };