X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuTransferFunctionView.h;h=3bbcf899e72851ea8476de624a0f283d63558d51;hb=542063db4a06b1a74587bcab7d5c450ebdd53272;hp=08e386a69509de2c4a21f7723f6e2ffa2b69c9a3;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuTransferFunctionView.h b/bbtk/src/bbmaracasvisuTransferFunctionView.h index 08e386a..3bbcf89 100644 --- a/bbtk/src/bbmaracasvisuTransferFunctionView.h +++ b/bbtk/src/bbmaracasvisuTransferFunctionView.h @@ -50,8 +50,9 @@ class /*BBTK_EXPORT*/ TransferFunctionView BBTK_DECLARE_OUTPUT(OpacityFunction, vtkPiecewiseFunction*); BBTK_DECLARE_OUTPUT(ColorFunction, vtkColorTransferFunction*); - BBTK_DECLARE_OUTPUT(WindowLevel, double); - BBTK_DECLARE_OUTPUT(ColorLevel, double); + BBTK_DECLARE_OUTPUT(Active , bool ); + BBTK_DECLARE_OUTPUT(WindowLevel , double ); + BBTK_DECLARE_OUTPUT(ColorLevel , double ); /*BBTK_DECLARE_OUTPUT(GreyLevel, std::vector ); BBTK_DECLARE_OUTPUT(Value, std::vector ); BBTK_DECLARE_OUTPUT(GreyLevelColors, std::vector); @@ -63,44 +64,44 @@ class /*BBTK_EXPORT*/ TransferFunctionView void Process(); BBTK_CREATE_WIDGET(CreateWidget); void CreateWidget(wxWindow* parent); - +// void onActive(); void onColorChange(); - void onSliderChange(); private: //HistogramWidget *mwxwidget; - HistogramDialogComboBox *mwxwidget; - vtkImageData* _currentimg; + HistogramDialogComboBox *mwxwidget; + vtkImageData* _currentimg; - vtkPiecewiseFunction* _tfun; - vtkColorTransferFunction* _ctfun; + vtkPiecewiseFunction* _tfun; + vtkColorTransferFunction* _ctfun; }; + class HandlerTransferFunctionView : public wxEvtHandler { public: HandlerTransferFunctionView(TransferFunctionView* box); - ~HandlerTransferFunctionView(); - + ~HandlerTransferFunctionView(); +// void onActive(wxCommandEvent& event); void onColorChange(wxCommandEvent& event); - void onSliderChange(wxCommandEvent& event); - private: TransferFunctionView *_box; }; + BBTK_BEGIN_DESCRIBE_BLACK_BOX(TransferFunctionView,bbtk::WxBlackBox); BBTK_NAME("TransferFunctionView"); BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Transfer Function Window"); //BBTK_CATEGORY("__CategoryBlackBox__"); - BBTK_INPUT(TransferFunctionView,In,"Input image",vtkImageData*,""); + BBTK_INPUT(TransferFunctionView,In,"Input image",vtkImageData*,""); BBTK_OUTPUT(TransferFunctionView,OpacityFunction,"Transfer function for the opacity", vtkPiecewiseFunction*,""); BBTK_OUTPUT(TransferFunctionView,ColorFunction,"Transfer function for the color", vtkColorTransferFunction*,""); BBTK_OUTPUT(TransferFunctionView,WindowLevel,"WidowLevel for the current window", double,""); BBTK_OUTPUT(TransferFunctionView,ColorLevel,"ColorLevel for the current window", double,""); + BBTK_OUTPUT(TransferFunctionView,Active,"Active", bool,""); /*BBTK_OUTPUT(TransferFunctionView,GreyLevel,"Greylevel related to the transparency",std::vector,""); BBTK_OUTPUT(TransferFunctionView,Value,"Value of the transparency in the transfer function",std::vector,""); BBTK_OUTPUT(TransferFunctionView,GreyLevelColors,"Grey level of the color in the transfer function",std::vector,"");