summaryrefslogtreecommitdiffstats
path: root/kig/examples/sine-curve.kig
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kig/examples/sine-curve.kig
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/examples/sine-curve.kig')
-rw-r--r--kig/examples/sine-curve.kig55
1 files changed, 55 insertions, 0 deletions
diff --git a/kig/examples/sine-curve.kig b/kig/examples/sine-curve.kig
new file mode 100644
index 00000000..e20f24d4
--- /dev/null
+++ b/kig/examples/sine-curve.kig
@@ -0,0 +1,55 @@
+<!DOCTYPE KigDocument>
+<KigDocument Version="0.5.1" >
+ <CoordinateSystem>Euclidean</CoordinateSystem>
+ <Objects>
+ <Data internal="true" type="double" id="1" >-3.50779</Data>
+ <Data internal="true" type="double" id="2" >3.80326</Data>
+ <Data internal="true" type="double" id="3" >5.49045</Data>
+ <Data internal="true" type="double" id="4" >-0.492505</Data>
+ <Data internal="true" type="double" id="5" >0.65293</Data>
+ <Data internal="true" type="hierarchy" id="6" >
+ <input requirement="any" id="1" />
+ <input requirement="string" id="2" />
+ <intermediate action="calc" type="PythonCompileType" id="3" >
+ <arg>2</arg>
+ </intermediate>
+ <result action="calc" type="PythonExecuteType" id="4" >
+ <arg>3</arg>
+ <arg>1</arg>
+ </result>
+ </Data>
+ <Data internal="true" type="string" id="7" >def calc( arg1 ):
+ c = arg1.coordinate();
+ y = sin( c.x );
+ return Point( Coordinate( c.x, y ) )
+</Data>
+ <Object width="-1" internal="false" shown="true" type="FixedPoint" id="8" color="#0000ff" >
+ <Parent id="1" />
+ <Parent id="2" />
+ </Object>
+ <Object width="-1" internal="false" shown="true" type="FixedPoint" id="9" color="#0000ff" >
+ <Parent id="3" />
+ <Parent id="4" />
+ </Object>
+ <Object width="-1" internal="true" shown="true" type="PythonCompileType" id="10" color="#0000ff" >
+ <Parent id="7" />
+ </Object>
+ <Object width="-1" internal="false" shown="true" type="LineAB" id="11" color="#0000ff" >
+ <Parent id="8" />
+ <Parent id="9" />
+ </Object>
+ <Object width="-1" internal="false" shown="true" type="ConstrainedPoint" id="12" color="#0000ff" >
+ <Parent id="11" />
+ <Parent id="5" />
+ </Object>
+ <Object width="-1" internal="false" shown="true" type="Locus" id="13" color="#0000ff" >
+ <Parent id="11" />
+ <Parent id="6" />
+ <Parent id="7" />
+ </Object>
+ <Object width="-1" internal="false" shown="true" type="PythonExecuteType" id="14" color="#0000ff" >
+ <Parent id="10" />
+ <Parent id="12" />
+ </Object>
+ </Objects>
+</KigDocument>