]> Creatis software - creaContours.git/commitdiff
#3401 Box nDimensions2 vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2025 15:25:29 +0000 (17:25 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2025 15:25:29 +0000 (17:25 +0200)
bbtk/src/bbcreaContoursnDimensions2.cxx [new file with mode: 0644]
bbtk/src/bbcreaContoursnDimensions2.h [new file with mode: 0644]

diff --git a/bbtk/src/bbcreaContoursnDimensions2.cxx b/bbtk/src/bbcreaContoursnDimensions2.cxx
new file mode 100644 (file)
index 0000000..a0769b6
--- /dev/null
@@ -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 (file)
index 0000000..104ae2a
--- /dev/null
@@ -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_
+