-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathStocks.py
43 lines (32 loc) · 920 Bytes
/
Stocks.py
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
from CamObject import CamObject
type = 0
class Stocks(CamObject):
def __init__(self):
CamObject.__init__(self)
def GetType(self):
return type
def TypeName(self):
return "Stocks"
def icon(self):
# the name of the PNG file in the HeeksCNC icons folder
return "stocks"
def UsesID(self):
return False
def CanBeDeleted(self):
return False
def OneOfAKind(self):
return True
def MakeACopy(self):
object = Stocks()
object.CopyFrom(self)
return object
def CallsObjListReadXml(self):
return True
def GetBoxWithInvisibles(self):
import geom
box = geom.Box3D()
for stock in self.GetChildren():
b = stock.GetBoxWithInvisibles()
if b:
box.InsertBox(b)
return box