Skip to content

Commit f3c87d2

Browse files
committed
Components of shift in visualisation now evaluated dynamically
1 parent 8967f66 commit f3c87d2

File tree

14 files changed

+47
-46
lines changed

14 files changed

+47
-46
lines changed

SimPyLC/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from .base import *

SimPyLC/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
import os

SimPyLC/chart.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from time import *

SimPyLC/coder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from sys import *
@@ -155,7 +155,7 @@ def getPrologue (self):
155155
156156
157157
158-
// ====== BEGIN OF LICENCE COMMENT BLOCK, INCLUDE IN ANY COPY OF THIS GENERATED CODE AND DO NOT REMOVE ======
158+
// ====== BEGIN OF License COMMENT BLOCK, INCLUDE IN ANY COPY OF THIS GENERATED CODE AND DO NOT REMOVE ======
159159
//
160160
// I M P O R T A N T S A F E T Y N O T I C E
161161
//
@@ -165,7 +165,7 @@ def getPrologue (self):
165165
// USE OF THIS CODE IS GOVERNED BY THE QQUICK LICENSE (WWW.QQUICK.ORG/LICENSE).
166166
// YOUR LICENSE TO USE THIS GENERATED CODE AUTOMATICALLY ENDS IF YOU REMOVE OR LEAVE OUT THIS LICENSE COMMENT BLOCK OR THE CODE THAT GENERATED IT.
167167
//
168-
// ====== END OF LICENCE COMMENT BLOCK, INCLUDE IN COPY OF THIS GENERATED CODE AND DO NOT REMOVE ======
168+
// ====== END OF License COMMENT BLOCK, INCLUDE IN COPY OF THIS GENERATED CODE AND DO NOT REMOVE ======
169169
170170
171171

SimPyLC/engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from datetime import *

SimPyLC/graphics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from threading import Thread

SimPyLC/gui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
import os

SimPyLC/scene.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# Copyright (C) 2013 GEATEC engineering
44
#
55
# This program is free software.
6-
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
6+
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
77
#
88
# This program is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY, without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11-
# See the QQuickLicence for details.
11+
# See the QQuickLicense for details.
1212
#
13-
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicence.html
13+
# The QQuickLicense can be accessed at: http://www.geatec.com/qqLicense.html
1414
#
1515
# __________________________________________________________________________
1616
#
@@ -21,7 +21,7 @@
2121
#
2222
# It is meant for training purposes only.
2323
#
24-
# Removing this header ends your licence.
24+
# Removing this header ends your license.
2525
#
2626

2727
from time import *
@@ -142,18 +142,18 @@ def __call__ (self, angle = 0, shift = (0, 0, 0), color = None, parts = lambda:
142142
if color != None:
143143
self.color = color
144144
glPushMatrix ()
145-
glTranslate (*tAdd (self.center, self.joint)) # Put joint at correct position
146-
glRotate (evaluate (angle), *self.pivot) # Rotate over varying angle parameter, so NOT fixed self.angle attribute, around self.pivot to move
147-
glTranslate (*shift) # Put joint at correct position
148-
glTranslate (*tNeg (self.joint)) # Put joint in origin
145+
glTranslate (*tAdd (self.center, self.joint)) # Put joint at correct position
146+
glRotate (evaluate (angle), *self.pivot) # Rotate over varying angle parameter, so NOT fixed self.angle attribute, around self.pivot to move
147+
glTranslate (evaluate (shift [0]), evaluate (shift [1]), evaluate (shift [2])) # Put joint at correct position
148+
glTranslate (*tNeg (self.joint)) # Put joint in origin
149149
glPushMatrix ()
150-
glRotate (self.angle, *self.axis) # Rotate over fixed self.angle attribute, set by the constructor, around self.axis to achieve initial attitude
150+
glRotate (self.angle, *self.axis) # Rotate over fixed self.angle attribute, set by the constructor, around self.axis to achieve initial attitude
151151
glColor (*self.color)
152152
self._draw ()
153153
glPopMatrix ()
154154
parts ()
155155
glPopMatrix ()
156-
return 0 # Make concatenable by e.g. + operator
156+
return 0 # Make concatenable by e.g. + operator
157157

158158
class Beam (_Thing):
159159
def __init__ (self, **arguments):

SimPyLC/simPyLCHowTo.docx

94 Bytes
Binary file not shown.

SimPyLC/simpylchowto.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248

249249
<p class=MsoToc1>&nbsp;</p>
250250

251-
<p class=MsoToc1><span lang=NL><a href="#_Toc434054799"><span lang=EN-US>QQuickLicence
251+
<p class=MsoToc1><span lang=NL><a href="#_Toc434054799"><span lang=EN-US>QQuickLicense
252252
governing the use of SimPyLC and of its generated code</span><span
253253
style='color:windowtext;display:none;text-decoration:none'>. </span><span
254254
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></p>
@@ -354,7 +354,7 @@
354354

355355
<p class=MsoNormal>&nbsp;</p>
356356

357-
<h1><a name="_Toc434054799">QQuickLicence governing the use of SimPyLC and of
357+
<h1><a name="_Toc434054799">QQuickLicense governing the use of SimPyLC and of
358358
its generated code</a></h1>
359359

360360
<p class=MsoNormal>&nbsp;</p>
@@ -400,7 +400,7 @@ <h1><a name="_Toc434054799">QQuickLicence governing the use of SimPyLC and of
400400
with your</p>
401401

402402
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
403-
normal'>    distribution in a plain text file named QQuickLicence.txt),</p>
403+
normal'>    distribution in a plain text file named QQuickLicense.txt),</p>
404404

405405
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
406406
normal'>    and if you distribute the Software solely in object form</p>

0 commit comments

Comments
 (0)