mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Initial work for G-code sender and more intensive usage of Boost
This commit is contained in:
parent
43cbad8867
commit
11dd67ab34
1649 changed files with 1860 additions and 1642 deletions
17
xs/xsp/GCodeSender.xsp
Normal file
17
xs/xsp/GCodeSender.xsp
Normal file
|
@ -0,0 +1,17 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
#ifdef BOOST_LIBS
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "libslic3r/GCodeSender.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::GCode::Sender} class GCodeSender {
|
||||
GCodeSender(std::string port, unsigned int baud_rate);
|
||||
~GCodeSender();
|
||||
|
||||
void send(std::string s);
|
||||
};
|
||||
|
||||
#endif
|
|
@ -170,6 +170,10 @@ MotionPlanner* O_OBJECT_SLIC3R
|
|||
Ref<MotionPlanner> O_OBJECT_SLIC3R_T
|
||||
Clone<MotionPlanner> O_OBJECT_SLIC3R_T
|
||||
|
||||
GCodeSender* O_OBJECT_SLIC3R
|
||||
Ref<GCodeSender> O_OBJECT_SLIC3R_T
|
||||
Clone<GCodeSender> O_OBJECT_SLIC3R_T
|
||||
|
||||
GCodeWriter* O_OBJECT_SLIC3R
|
||||
Ref<GCodeWriter> O_OBJECT_SLIC3R_T
|
||||
Clone<GCodeWriter> O_OBJECT_SLIC3R_T
|
||||
|
|
|
@ -87,6 +87,9 @@
|
|||
%typemap{GCodeWriter*};
|
||||
%typemap{Ref<GCodeWriter>}{simple};
|
||||
%typemap{Clone<GCodeWriter>}{simple};
|
||||
%typemap{GCodeSender*};
|
||||
%typemap{Ref<GCodeSender>}{simple};
|
||||
%typemap{Clone<GCodeSender>}{simple};
|
||||
%typemap{BridgeDetector*};
|
||||
%typemap{Ref<BridgeDetector>}{simple};
|
||||
%typemap{Clone<BridgeDetector>}{simple};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue