forked from salamb/STPNC-MTConnect-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToolPath.h
52 lines (44 loc) · 1.15 KB
/
ToolPath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using namespace System;
using namespace System::Net;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Text;
#ifndef __TOOLPATH__
#define __TOOLPATH__
#include "WS.h"
ref class ToolPath
{
private:
bool isRapid;
double spindleSpeed;
double feedrate;
__int64 index;
__int64 id;
WS^ parent;
__int64 copyID;
public:
ToolPath(WS^ p, bool rapid, double f, double s, __int64 in, __int64 ID);
WS^ getWS();
bool rapid();
__int64 getId();
__int64 getIndex();
double getFeed();
double getSpindle();
ToolPath^ nextPath();
ToolPath^ nextPath(bool % newWP, bool% newWS);
ToolPath^ recurseToNextToolPath(WP^ current, __int64 startIndexAfter);
ToolPath^ recurseToolPath(Exec^ current);
__int64 getCopyID();
bool copyCreated();
//get pointer to next path regardless if it is a new WS or WP
//null if non exist
/*
ToolPath ^ nextPath(bool %newWS,bool %newWP);
//pointer to next path in current WS null if no other path is left in the current WS
ToolPath ^ nextPath();
ToolPath^ getNextRapid(bool %newWS,bool newWP);
List<ToolPath^> getConsecutiveRapids();
List<ToolPath^> getNextConsecutiveRapids();
*/
};
#endif