From 39733df9791f01720f9c504fa6c450c891d678ed Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 22 Jul 2025 17:25:29 +0200 Subject: [PATCH] #3401 Box nDimensions2 --- bbtk/src/bbcreaContoursnDimensions2.cxx | 50 ++++++++++++++++++++ bbtk/src/bbcreaContoursnDimensions2.h | 61 +++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 bbtk/src/bbcreaContoursnDimensions2.cxx create mode 100644 bbtk/src/bbcreaContoursnDimensions2.h diff --git a/bbtk/src/bbcreaContoursnDimensions2.cxx b/bbtk/src/bbcreaContoursnDimensions2.cxx new file mode 100644 index 0000000..a0769b6 --- /dev/null +++ b/bbtk/src/bbcreaContoursnDimensions2.cxx @@ -0,0 +1,50 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbcreaContoursnDimensions2.h" +#include "bbcreaContoursPackage.h" +namespace bbcreaContours +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaContours,nDimensions2) +BBTK_BLACK_BOX_IMPLEMENTATION(nDimensions2,bbtk::WxBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void nDimensions2::Process() +{ + ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( "JavaScript Version of nDimensions box" ) ); +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void nDimensions2::CreateWidget(wxWindow* parent) +{ + bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) ); +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void nDimensions2::bbUserSetDefaultValues() +{ +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void nDimensions2::bbUserInitializeProcessing() +{ +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void nDimensions2::bbUserFinalizeProcessing() +{ +} + +}// EO namespace bbcreaContours + + diff --git a/bbtk/src/bbcreaContoursnDimensions2.h b/bbtk/src/bbcreaContoursnDimensions2.h new file mode 100644 index 0000000..104ae2a --- /dev/null +++ b/bbtk/src/bbcreaContoursnDimensions2.h @@ -0,0 +1,61 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#ifdef _USE_WXWIDGETS_ +#ifndef __bbcreaContoursnDimensions2_h_INCLUDED__ +#define __bbcreaContoursnDimensions2_h_INCLUDED__ + +#include "bbcreaContours_EXPORT.h" +#include "bbtkWxBlackBox.h" + +#include "wxVtkBaseView.h" +#include "wxContourMainFrame.h" + + +namespace bbcreaContours +{ + +class bbcreaContours_EXPORT nDimensions2 + : + public bbtk::WxBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(nDimensions2,bbtk::WxBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_INPUT(ContourType,int); + BBTK_DECLARE_INPUT(ViewType,int); + BBTK_DECLARE_INPUT(WxVtkBaseView1,wxVtkBaseView*); + BBTK_DECLARE_INPUT(WxVtkBaseView2,wxVtkBaseView*); + BBTK_DECLARE_INPUT(WxVtkBaseView3,wxVtkBaseView*); + BBTK_DECLARE_OUTPUT(wxContourMainFrame,wxContourMainFrame*); + BBTK_PROCESS(Process); + void Process(); + BBTK_CREATE_WIDGET(CreateWidget); + void CreateWidget(wxWindow*); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(nDimensions2,bbtk::WxBlackBox); + BBTK_NAME("nDimensions2"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("(JavaScript) No Description."); + BBTK_CATEGORY("__CategoryBlackBox__"); + BBTK_INPUT(nDimensions2,ContourType,"(default 0) 0:Spline (otthers Polygon,Points) ",int,""); + BBTK_INPUT(nDimensions2,ViewType,"(default 0) 0:Axial(XY) 1:Sagital(YZ) 2:Coronal(XZ) ",int,""); + BBTK_INPUT(nDimensions2,WxVtkBaseView1,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_INPUT(nDimensions2,WxVtkBaseView2,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_INPUT(nDimensions2,WxVtkBaseView3,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_OUTPUT(nDimensions2, wxContourMainFrame, "wxContourMainFrame", wxContourMainFrame*, ""); +BBTK_END_DESCRIBE_BLACK_BOX(nDimensions2); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbcreaContours + +#endif // __bbcreaContoursnDimenstions2_h_INCLUDED__ +#endif // _USE_WXWIDGETS_ + -- 2.51.0