~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Base/MatrixPy.xml

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
 
3
  <PythonExport
 
4
                Father="PyObjectBase"
 
5
                Name="MatrixPy"
 
6
                Twin="Matrix"
 
7
                TwinPointer="Matrix4D"
 
8
                Include="Base/Matrix.h"
 
9
                FatherInclude="Base/PyObjectBase.h"
 
10
                Namespace="Base"
 
11
                Constructor="true"
 
12
                Delete="true"
 
13
                NumberProtocol="true"
 
14
                FatherNamespace="Base">
 
15
    <Documentation>
 
16
      <Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
 
17
      <DeveloperDocu>This is the Matrix export class</DeveloperDocu>
 
18
      <UserDocu>A 4x4 Matrix</UserDocu>
 
19
    </Documentation>
 
20
    <Methode Name="move">
 
21
      <Documentation>
 
22
        <UserDocu>
 
23
move(Vector)
 
24
Move the matrix along the vector
 
25
        </UserDocu>
 
26
      </Documentation>
 
27
    </Methode>
 
28
    <Methode Name="scale">
 
29
      <Documentation>
 
30
        <UserDocu>
 
31
scale(Vector)
 
32
Scale the matrix with the vector
 
33
        </UserDocu>
 
34
      </Documentation>
 
35
    </Methode>
 
36
    <Methode Name="unity">
 
37
      <Documentation>
 
38
        <UserDocu>unity() - make this matrix to unity</UserDocu>
 
39
      </Documentation>
 
40
    </Methode>
 
41
    <Methode Name="transform">
 
42
      <Documentation>
 
43
        <UserDocu>transform(Vector,Matrix) - return the dot product of the two vectors</UserDocu>
 
44
      </Documentation>
 
45
    </Methode>
 
46
    <Methode Name="rotateX">
 
47
      <Documentation>
 
48
        <UserDocu>rotateX(float) - rotate around X</UserDocu>
 
49
      </Documentation>
 
50
    </Methode>
 
51
    <Methode Name="rotateY">
 
52
      <Documentation>
 
53
        <UserDocu>rotateX(float) - rotate around Y</UserDocu>
 
54
      </Documentation>
 
55
    </Methode>
 
56
    <Methode Name="rotateZ">
 
57
      <Documentation>
 
58
        <UserDocu>rotateZ(float) - rotate around Z</UserDocu>
 
59
      </Documentation>
 
60
    </Methode>
 
61
    <Methode Name="multiply">
 
62
      <Documentation>
 
63
        <UserDocu>
 
64
multiply(Matrix|Vector)
 
65
Multiply a matrix or vector with this matrix
 
66
        </UserDocu>
 
67
      </Documentation>
 
68
    </Methode>
 
69
    <Methode Name="invert">
 
70
      <Documentation>
 
71
        <UserDocu>
 
72
invert() -> None
 
73
Compute the inverse matrix, if possible
 
74
        </UserDocu>
 
75
      </Documentation>
 
76
    </Methode>
 
77
    <Methode Name="inverse">
 
78
      <Documentation>
 
79
        <UserDocu>
 
80
inverse() -> Matrix
 
81
Compute the inverse matrix, if possible
 
82
        </UserDocu>
 
83
      </Documentation>
 
84
    </Methode>
 
85
    <Methode Name="determinant">
 
86
      <Documentation>
 
87
        <UserDocu>
 
88
determinant() -> Float
 
89
Compute the determinant of the matrix
 
90
        </UserDocu>
 
91
      </Documentation>
 
92
    </Methode>
 
93
    <Attribute Name="A11" ReadOnly="false">
 
94
      <Documentation>
 
95
        <UserDocu>The matrix elements</UserDocu>
 
96
      </Documentation>
 
97
      <Parameter Name="A11" Type="Float" />
 
98
    </Attribute>
 
99
    <Attribute Name="A12" ReadOnly="false">
 
100
      <Documentation>
 
101
        <UserDocu>The matrix elements</UserDocu>
 
102
      </Documentation>
 
103
      <Parameter Name="A12" Type="Float" />
 
104
    </Attribute>
 
105
    <Attribute Name="A13" ReadOnly="false">
 
106
      <Documentation>
 
107
        <UserDocu>The matrix elements</UserDocu>
 
108
      </Documentation>
 
109
      <Parameter Name="A13" Type="Float" />
 
110
    </Attribute>
 
111
    <Attribute Name="A14" ReadOnly="false">
 
112
      <Documentation>
 
113
        <UserDocu>The matrix elements</UserDocu>
 
114
      </Documentation>
 
115
      <Parameter Name="A14" Type="Float" />
 
116
    </Attribute>
 
117
    <Attribute Name="A21" ReadOnly="false">
 
118
      <Documentation>
 
119
        <UserDocu>The matrix elements</UserDocu>
 
120
      </Documentation>
 
121
      <Parameter Name="A21" Type="Float" />
 
122
    </Attribute>
 
123
    <Attribute Name="A22" ReadOnly="false">
 
124
      <Documentation>
 
125
        <UserDocu>The matrix elements</UserDocu>
 
126
      </Documentation>
 
127
      <Parameter Name="A22" Type="Float" />
 
128
    </Attribute>
 
129
    <Attribute Name="A23" ReadOnly="false">
 
130
      <Documentation>
 
131
        <UserDocu>The matrix elements</UserDocu>
 
132
      </Documentation>
 
133
      <Parameter Name="A23" Type="Float" />
 
134
    </Attribute>
 
135
    <Attribute Name="A24" ReadOnly="false">
 
136
      <Documentation>
 
137
        <UserDocu>The matrix elements</UserDocu>
 
138
      </Documentation>
 
139
      <Parameter Name="A24" Type="Float" />
 
140
    </Attribute>
 
141
    <Attribute Name="A31" ReadOnly="false">
 
142
      <Documentation>
 
143
        <UserDocu>The matrix elements</UserDocu>
 
144
      </Documentation>
 
145
      <Parameter Name="A31" Type="Float" />
 
146
    </Attribute>
 
147
    <Attribute Name="A32" ReadOnly="false">
 
148
      <Documentation>
 
149
        <UserDocu>The matrix elements</UserDocu>
 
150
      </Documentation>
 
151
      <Parameter Name="A32" Type="Float" />
 
152
    </Attribute>
 
153
    <Attribute Name="A33" ReadOnly="false">
 
154
      <Documentation>
 
155
        <UserDocu>The matrix elements</UserDocu>
 
156
      </Documentation>
 
157
      <Parameter Name="A33" Type="Float" />
 
158
    </Attribute>
 
159
    <Attribute Name="A34" ReadOnly="false">
 
160
      <Documentation>
 
161
        <UserDocu>The matrix elements</UserDocu>
 
162
      </Documentation>
 
163
      <Parameter Name="A34" Type="Float" />
 
164
    </Attribute>
 
165
    <Attribute Name="A41" ReadOnly="false">
 
166
      <Documentation>
 
167
        <UserDocu>The matrix elements</UserDocu>
 
168
      </Documentation>
 
169
      <Parameter Name="A41" Type="Float" />
 
170
    </Attribute>
 
171
    <Attribute Name="A42" ReadOnly="false">
 
172
      <Documentation>
 
173
        <UserDocu>The matrix elements</UserDocu>
 
174
      </Documentation>
 
175
      <Parameter Name="A42" Type="Float" />
 
176
    </Attribute>
 
177
    <Attribute Name="A43" ReadOnly="false">
 
178
      <Documentation>
 
179
        <UserDocu>The matrix elements</UserDocu>
 
180
      </Documentation>
 
181
      <Parameter Name="A43" Type="Float" />
 
182
    </Attribute>
 
183
    <Attribute Name="A44" ReadOnly="false">
 
184
      <Documentation>
 
185
        <UserDocu>The matrix elements</UserDocu>
 
186
      </Documentation>
 
187
      <Parameter Name="A44" Type="Float" />
 
188
    </Attribute>
 
189
    <Attribute Name="A" ReadOnly="false">
 
190
      <Documentation>
 
191
        <UserDocu>The matrix elements</UserDocu>
 
192
      </Documentation>
 
193
      <Parameter Name="A" Type="List" />
 
194
    </Attribute>
 
195
    <ClassDeclarations>public:
 
196
      MatrixPy(const Matrix4D &amp; mat, PyTypeObject *T = &amp;Type)
 
197
      :PyObjectBase(new Matrix4D(mat),T){}
 
198
      Matrix4D value() const
 
199
      { return *(getMatrixPtr()); }
 
200
    </ClassDeclarations>
 
201
  </PythonExport>
 
202
</GenerateModel>
 
 
b'\\ No newline at end of file'