# ${GDCM_LIBRARIES}
# ${BOOST_LIBRARIES}
${OpenMP_libomp_LIBRARY_crea}
-
-
#jhcl-Start===========================================================================
-
${LIBIDO_LIBRARIES}
${CREA_LIBRARIES}
#${BOOST_LIBRARIES}
#jhcl-End===========================================================================
#creaMaracasVisu_CutModule_interface
-
-
BaseVolumeRenderer
BaseSurfaceRenderer
KernelVolumeRenderer
KernelSurfaceRenderer
GUIWxSurfaceRenderer
GUIWxVolumeRenderer
-
#EED CM
#KernelVolumeRenderer
#EED KernelViewerWidgets
#KernelSurfaceRenderer
#BaseSurfaceRenderer
-
)
#----------------------------------------------------------------------------
-
#----------------------------------------------------------------------------
# MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
# CREATE THE TARGET
set (${LIBRARY_NAME}_SHARED SHARED)
-message(EED mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm "${${LIBRARY_NAME}_SHARED}" )
-message(EED mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ${LIBRARY_NAME} )
ADD_LIBRARY (${LIBRARY_NAME} ${${LIBRARY_NAME}_SHARED} ${${LIBRARY_NAME}_SOURCES} ${${LIBRARY_NAME}_HEADERS})
+message ("EED 1 :):):):):):):):):):):):):):):):):):):):):) ")
+message ("EED 1 :):):):):):):):):):):):):):):):):):):):):) ")
+message (${${LIBRARY_NAME}_SOURCES} )
+message ("EED 2 :):):):):):):):):):):):):):):):):):):):):) ")
+message ("EED 2 :):):):):):):):):):):):):):):):):):):):):) ")
+
+
# LINK
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES})
IF(WIN32)
-
# WXWINDOWS_LIBRARY = full path to the wxWindows library and linker flags on unix
# CMAKE_WX_CXX_FLAGS = compiler flags for building wxWindows
# WXWINDOWS_INCLUDE_PATH = include path of wxWindows
LINK_DIRECTORIES( ${WXWIDGETS_LINK_DIRECTORIES} )
SET(maracas_WXWIDGETS_LIBRARIES
${WXWIDGETS_LIBRARIES}
- wxmsw28d_aui
+ # wxmsw28d_aui
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_aui.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_webview.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_html.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_adv.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_gl.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_media.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw32u_core.a"
+ "${wxWidgets_LIB_DIR}/libwxbase32u.a"
+ "${wxWidgets_LIB_DIR}/libwxbase32u_net.a"
)
-
-
ENDIF(WIN32)
IF(UNIX)
# GTK2
"tools/MaracasTools.cpp"
)
-
-
#-----------------------------------------------------------------------------
# Required libraries (dll o so)
#-----------------------------------------------------------------------------
-
#TODO for a nice VC++ we need to add header file...
SET(MARACAS_LIB_SRCS
manualContour.cpp
wxMaracasRendererView.cxx
wxMaracasRendererView.h
-
-
## widgets/wxVTKRenderWindowInteractor.cxx
## widgets/wxVTKRenderWindowInteractor.h
widgets/wxVTKRenderWindowInteractorEditContour.cxx
res/wxInterface.rc
)
-
ADD_LIBRARY(MaracasInterfaceWX ${MARACAS_LIB_SRCS} )
TARGET_LINK_LIBRARIES(MaracasInterfaceWX
${maracas_WXWIDGETS_LIBRARIES}
vtkCommon vtkFiltering vtkGraphics vtkIO vtkImaging vtkRendering vtkHybrid
)
-
-
-
#TODO for a nice VC++ we need to add header file...
SET(MARACAS_LIB_SRCS_02
manualContour.cpp
${maracas_WXWIDGETS_LIBRARIES}
)
-
ENDIF(WIN32)
ADD_SUBDIRECTORY(widgets)
//const wxEventType wxEVT_TSBAR = wxNewEventType();
-DEFINE_EVENT_TYPE(wxEVT_TSBAR)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_END)
-DEFINE_EVENT_TYPE(wxEVT_TSBAR_MOVED)
-DEFINE_EVENT_TYPE(wxEVT_SELECTION_END)
+/* EED 2022-09-30
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_END)
+ DEFINE_EVENT_TYPE(wxEVT_TSBAR_MOVED)
+ DEFINE_EVENT_TYPE(wxEVT_SELECTION_END)
+*/
+
+wxDEFINE_EVENT(wxEVT_TSBAR, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_ACTUAL, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_START, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_END, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_TSBAR_MOVED, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_SELECTION_END, wxCommandEvent);
+
//----------------------------------------------------------------------------
//EVENT TABLE
# knowledge of the CeCILL-B license and that you accept its terms.
# ------------------------------------------------------------------------ */
-
-
#ifndef __mBAR__RANGE__
#define __mBAR__RANGE__
-
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include "wx/colordlg.h"
-
// ----------------------------------------------------------------------------
// wx headers inclusion.
// For compilers that support precompilation, includes <wx/wx.h>.
//wxEVT_TSBAR= event of the two side bar
//----------------------------------------------------------------------------
+//EED 2022-09-30
+wxDECLARE_EVENT(wxEVT_TSBAR, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_ACTUAL, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_START, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_END, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_TSBAR_MOVED, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_SELECTION_END, wxCommandEvent);
+
+/* EED 2022-09-30
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(wxEVT_TSBAR,-1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL,-1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_MOVED,-1)
DECLARE_EVENT_TYPE(wxEVT_SELECTION_END,-1)
END_DECLARE_EVENT_TYPES()
-
+*/
#include "mBarRange2.h"
+/* EED 2022-09-30
DEFINE_EVENT_TYPE(wxEVT_BarRange2_Change)
+*/
+wxDEFINE_EVENT(wxEVT_BarRange2_Change, wxCommandEvent);
+
/**
#include <wx/textctrl.h>
#include "mBarRange.h"
+/* EED 2022-09-30
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(wxEVT_BarRange2_Change,-1)
END_DECLARE_EVENT_TYPES()
+*/
+wxDECLARE_EVENT(wxEVT_BarRange2_Change, wxCommandEvent);
+
+
+
class mBarRange2
: public wxPanel
/*
* How to catch generated event: EVT_COMMAND(ID_CONTAINER_WINDOW_LISTENER, wxEVT_TYPE_EVENT, ContainerClass :: determinedEventFor)
*/
+/* EED 2022-09-30
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( wxEVT_ADDED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_REMOVED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_CHANGED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_ON_COLOR_BAR, -1 )
END_DECLARE_EVENT_TYPES()
+*/
-
+/* EED 2022-09-30
DEFINE_EVENT_TYPE( wxEVT_ADDED_POINT )
DEFINE_EVENT_TYPE( wxEVT_REMOVED_POINT )
DEFINE_EVENT_TYPE( wxEVT_MOVED_POINT )
DEFINE_EVENT_TYPE( wxEVT_CHANGED_POINT )
DEFINE_EVENT_TYPE( wxEVT_ON_COLOR_BAR )
+*/
+
+wxDEFINE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+
+
//------------------------------------------------------------------------------------------------------------
// Class implementation
*/
#define FIGURE_WIDTH 3
+/* EED 2022-09-30
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( wxEVT_ADDED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_REMOVED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_CHANGED_POINT, -1 )
DECLARE_EVENT_TYPE( wxEVT_ON_COLOR_BAR, -1 )
END_DECLARE_EVENT_TYPES()
+*/
//-------------------------------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------------------
// Handdled events from pColorBar
// ----------------------------------------------------------------------------------------------------
+wxDEFINE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+/* EED 2022-10-30
DECLARE_EVENT_TYPE(wxEVT_ADDED_POINT, -1)
DECLARE_EVENT_TYPE(wxEVT_REMOVED_POINT, -1)
DECLARE_EVENT_TYPE(wxEVT_MOVED_POINT, -1)
DECLARE_EVENT_TYPE(wxEVT_CHANGED_POINT, -1)
DECLARE_EVENT_TYPE(wxEVT_ON_COLOR_BAR, -1)
+*/
+
// ----------------------------------------------------------------------------------------------------
// Handdled events from plotter
// ----------------------------------------------------------------------------------------------------
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
+// EED 2022-10-30
+/*
+wxDEFINE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
+*/
+
// ----------------------------------------------------------------------------------------------------
// Handdled events from max-min barrange
// ----------------------------------------------------------------------------------------------------
+/*EED 2022-10-30
DECLARE_EVENT_TYPE(wxEVT_TSBAR, -1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL, -1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_START, -1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_END, -1)
DECLARE_EVENT_TYPE(wxEVT_TSBAR_MOVED, -1)
DECLARE_EVENT_TYPE(wxEVT_SELECTION_END, -1)
-
+*/
// ----------------------------------------------------------------------------------------------------
// EVENT TABLE (->Connect: analogous)
// Class definition
//--------------------------------------------------------------------------------------------
+// EED 2022-09-30
+wxDECLARE_EVENT(wxEVT_ADDED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_REMOVED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_MOVED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_CHANGED_POINT, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_ON_COLOR_BAR, wxCommandEvent);
+
+
+// EED 2022-09-30
+/* Al ready exist in pPlotterWindow
+wxDECLARE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
+*/
+
+
+
/*
* Represents the integrated plotter that consists of the a drawing area, and control bars (min-max bar, degrade bar)
*/
//DECLARING THE NEW EVENT
//wxEVT_TSBAR= event of the two side bar
//----------------------------------------------------------------------------
+/* EED 2020-09-30
BEGIN_DECLARE_EVENT_TYPES()
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
-DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_CHANGED_FUNCTION, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_MOVE, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE, -1)
+ DECLARE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES, -1)
END_DECLARE_EVENT_TYPES()
//definitions
DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_ADD)
DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_POINT_DELETE)
DEFINE_EVENT_TYPE(wxEVT_PPLOTTER_GUIDELINES)
+*/
+
+wxDEFINE_EVENT(wxEVT_PPLOTTER, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDEFINE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
//----------------------------------------------------------------------------
};
+
+wxDECLARE_EVENT(wxEVT_PPLOTTER, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_CHANGED_FUNCTION, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_MOVE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_ADD, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_POINT_DELETE, wxCommandEvent);
+wxDECLARE_EVENT(wxEVT_PPLOTTER_GUIDELINES, wxCommandEvent);
+
+
+
+
#define MAX_FUNCTIONS 7
/**
this scale, scales each function with its maximum x, and maximum y