Skip to content

Commit 476b8e1

Browse files
Merge pull request #68 from alexanderoster/develop
Updated Example Plugin code
2 parents 4e920cb + fee48b1 commit 476b8e1

File tree

8 files changed

+4
-101
lines changed

8 files changed

+4
-101
lines changed

Examples/LPBFSystem/Laser/mcplugin_laser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ __DECLARESTATE(exposure)
276276
}
277277

278278
auto pContext = pDriver->GetContext();
279-
auto pRecording = pContext->PrepareRecording(true);
279+
auto pRecording = pContext->PrepareRecording(true, true, true);
280280

281-
pRecording->AddChannel("x", LibMCDriver_ScanLab::eRTCChannelType::ChannelTargetXBacktransformed);
282-
pRecording->AddChannel("y", LibMCDriver_ScanLab::eRTCChannelType::ChannelTargetYBacktransformed);
281+
pRecording->AddChannel("x", LibMCDriver_ScanLab::eRTCChannelType::ChannelTargetX);
282+
pRecording->AddChannel("y", LibMCDriver_ScanLab::eRTCChannelType::ChannelTargetY);
283283
pRecording->AddChannel("power", LibMCDriver_ScanLab::eRTCChannelType::ChannelAnalogOut1);
284284

285285
pContext->SetStartList(1, 0);

Examples/LPBFSystem/UI/mc_userinterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ class CEvent_OnLoadHistoricJournal : public virtual CEvent {
689689

690690
uint64_t nLifetimeInMicroseconds = pJournal->GetJournalLifeTimeInMicroseconds();
691691

692-
auto pVariable = pJournal->RetrieveJournalVariableFromTimeInterval("main.jobinfo.countertest", 0, nLifetimeInMicroseconds);
692+
auto pVariable = pJournal->RetrieveJournalVariable ("main.jobinfo.countertest");
693693
double dValue = pVariable->ComputeDoubleSample(10000000);
694694

695695
pUIEnvironment->LogMessage("Double sample: " + std::to_string (dValue));

Framework/HeadersDev/CppDynamic/libmcenv_dynamic.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2902,16 +2902,6 @@ typedef LibMCEnvResult (*PLibMCEnvToolpathLayer_GetSegmentPartUUIDPtr) (LibMCEnv
29022902
*/
29032903
typedef LibMCEnvResult (*PLibMCEnvToolpathLayer_GetSegmentLocalPartIDPtr) (LibMCEnv_ToolpathLayer pToolpathLayer, LibMCEnv_uint32 nSegmentIndex, LibMCEnv_uint32 * pLocalPartID);
29042904

2905-
/**
2906-
* Retrieves the local segment part id on the layer. ATTENTION: This ID is only unique within the layer and there is no guarantee to be globally unique or consistent across layers.
2907-
*
2908-
* @param[in] pToolpathLayer - ToolpathLayer instance.
2909-
* @param[in] nIndex - Index. Must be between 0 and Count - 1.
2910-
* @param[out] pLocalPartID - Local Part ID of the segment
2911-
* @return error code or 0 (success)
2912-
*/
2913-
typedef LibMCEnvResult (*PLibMCEnvToolpathLayer_GetSegmentLocalPartIDPtr) (LibMCEnv_ToolpathLayer pToolpathLayer, LibMCEnv_uint32 nIndex, LibMCEnv_uint32 * pLocalPartID);
2914-
29152905
/**
29162906
* Retrieves the assigned segment point list. For type hatch, the points are taken pairwise.
29172907
*

Framework/InterfacesCore/libmcenv_abi.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,16 +2915,6 @@ LIBMCENV_DECLSPEC LibMCEnvResult libmcenv_toolpathlayer_getsegmentpartuuid(LibMC
29152915
*/
29162916
LIBMCENV_DECLSPEC LibMCEnvResult libmcenv_toolpathlayer_getsegmentlocalpartid(LibMCEnv_ToolpathLayer pToolpathLayer, LibMCEnv_uint32 nSegmentIndex, LibMCEnv_uint32 * pLocalPartID);
29172917

2918-
/**
2919-
* Retrieves the local segment part id on the layer. ATTENTION: This ID is only unique within the layer and there is no guarantee to be globally unique or consistent across layers.
2920-
*
2921-
* @param[in] pToolpathLayer - ToolpathLayer instance.
2922-
* @param[in] nIndex - Index. Must be between 0 and Count - 1.
2923-
* @param[out] pLocalPartID - Local Part ID of the segment
2924-
* @return error code or 0 (success)
2925-
*/
2926-
LIBMCENV_DECLSPEC LibMCEnvResult libmcenv_toolpathlayer_getsegmentlocalpartid(LibMCEnv_ToolpathLayer pToolpathLayer, LibMCEnv_uint32 nIndex, LibMCEnv_uint32 * pLocalPartID);
2927-
29282918
/**
29292919
* Retrieves the assigned segment point list. For type hatch, the points are taken pairwise.
29302920
*

Framework/InterfacesCore/libmcenv_interfaces.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,13 +2530,6 @@ class IToolpathLayer : public virtual IBase {
25302530
*/
25312531
virtual LibMCEnv_uint32 GetSegmentLocalPartID(const LibMCEnv_uint32 nSegmentIndex) = 0;
25322532

2533-
/**
2534-
* IToolpathLayer::GetSegmentLocalPartID - Retrieves the local segment part id on the layer. ATTENTION: This ID is only unique within the layer and there is no guarantee to be globally unique or consistent across layers.
2535-
* @param[in] nIndex - Index. Must be between 0 and Count - 1.
2536-
* @return Local Part ID of the segment
2537-
*/
2538-
virtual LibMCEnv_uint32 GetSegmentLocalPartID(const LibMCEnv_uint32 nIndex) = 0;
2539-
25402533
/**
25412534
* IToolpathLayer::GetSegmentPointData - Retrieves the assigned segment point list. For type hatch, the points are taken pairwise.
25422535
* @param[in] nSegmentIndex - Index. Must be between 0 and Count - 1.

Implementation/Core/amc_scatterplot.cpp

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

3131

32-
<<<<<<<< HEAD:Implementation/Core/amc_meshsceneitem.cpp
33-
#include "amc_meshsceneitem.hpp"
34-
#include "libmc_exceptiontypes.hpp"
35-
#include "common_utils.hpp"
36-
#include "amc_meshutils.hpp"
37-
38-
namespace AMC {
39-
40-
41-
CMeshSceneItem::CMeshSceneItem(const std::string& sUUID, const std::string& sMeshEntityUUID)
42-
: m_sUUID (AMCCommon::CUtils::normalizeUUIDString (sUUID)),
43-
m_sMeshEntityUUID (AMCCommon::CUtils::normalizeUUIDString (sMeshEntityUUID))
44-
{
45-
m_Transform = CMeshUtils::createIdentityTransform();
46-
47-
}
48-
49-
CMeshSceneItem::~CMeshSceneItem()
50-
========
5132
#include "amc_scatterplot.hpp"
5233
#include "libmc_exceptiontypes.hpp"
5334
#include "common_utils.hpp"
@@ -61,37 +42,15 @@ namespace AMC {
6142
}
6243

6344
CScatterplot::~CScatterplot()
64-
>>>>>>>> develop:Implementation/Core/amc_scatterplot.cpp
6545
{
6646

6747
}
6848

69-
<<<<<<<< HEAD:Implementation/Core/amc_meshsceneitem.cpp
70-
std::string CMeshSceneItem::getUUID()
71-
========
7249
std::string CScatterplot::getUUID()
73-
>>>>>>>> develop:Implementation/Core/amc_scatterplot.cpp
7450
{
7551
return m_sUUID;
7652
}
7753

78-
<<<<<<<< HEAD:Implementation/Core/amc_meshsceneitem.cpp
79-
std::string CMeshSceneItem::getMeshEntityUUID()
80-
{
81-
return m_sMeshEntityUUID;
82-
}
83-
84-
LibMCEnv::sModelDataTransform CMeshSceneItem::getTransform()
85-
{
86-
return m_Transform;
87-
}
88-
89-
void CMeshSceneItem::updateTransform(const LibMCEnv::sModelDataTransform newTransform)
90-
{
91-
m_Transform = newTransform;
92-
}
93-
94-
========
9554
void CScatterplot::clearData()
9655
{
9756
m_PointEntries.clear();
@@ -154,7 +113,6 @@ namespace AMC {
154113
}
155114
}
156115

157-
>>>>>>>> develop:Implementation/Core/amc_scatterplot.cpp
158116
}
159117

160118

Implementation/Core/amc_scatterplot.hpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

3131

32-
<<<<<<<< HEAD:Implementation/Core/amc_meshutils.hpp
33-
#ifndef __AMC_MESHUTILS
34-
#define __AMC_MESHUTILS
35-
36-
#include "libmcenv_types.hpp"
37-
#include "lib3mf/lib3mf_types.hpp"
38-
39-
namespace AMC {
40-
41-
class CMeshUtils {
42-
43-
public:
44-
45-
static LibMCEnv::sModelDataTransform map3MFTransform(const Lib3MF::sTransform transform3MF);
46-
47-
static LibMCEnv::sModelDataTransform createIdentityTransform();
48-
========
4932
#ifndef __AMC_SCATTERPLOT
5033
#define __AMC_SCATTERPLOT
5134

@@ -98,21 +81,12 @@ namespace AMC {
9881

9982
void computeBoundaries();
10083

101-
>>>>>>>> develop:Implementation/Core/amc_scatterplot.hpp
10284

103-
static LibMCEnv::sModelDataTransform multiplyTransforms(const LibMCEnv::sModelDataTransform& transform1, const LibMCEnv::sModelDataTransform& transform2);
10485
};
10586

106-
<<<<<<<< HEAD:Implementation/Core/amc_meshutils.hpp
107-
108-
}
109-
110-
#endif //__AMC_MESHUTILS
111-
========
11287

11388
}
11489

11590

11691
#endif //__AMC_SCATTERPLOT
117-
>>>>>>>> develop:Implementation/Core/amc_scatterplot.hpp
11892

Implementation/Core/amc_xmldocumentnode.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ namespace AMC {
7070

7171
void addChildEx(PXMLDocumentNodeInstance pNode);
7272

73-
void splitNameSpaceName(const std::string & sPrefixedName, std::string & sUnprefixedName, std::string & sNameSpacePrefix);
74-
7573
public:
7674

7775
CXMLDocumentNodeInstance(CXMLDocumentInstance* pDocument, CXMLDocumentNodeInstance * pParentNode, PXMLDocumentNameSpace pNameSpace, const std::string& sNodeName);

0 commit comments

Comments
 (0)