blob: 6dc61aae63a6233baac917b8318475aab1a67f0e (
plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
--
-- File : TransformationMatrix.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( Kiran )
--
---Copyright : MATRA-DATAVISION 1993
--
class TransformationMatrix from IGESGeom inherits TransfEntity
---Purpose: defines IGESTransformationMatrix, Type <124> Form <0>
-- in package IGESGeom
-- The transformation matrix entity transforms three-row column
-- vectors by means of matrix multiplication and then a vector
-- addition. This entity can be considered as an "operator"
-- entity in that it starts with the input vector, operates on
-- it as described above, and produces the output vector.
uses
HArray2OfReal from TColStd,
IGESEntity from IGESData,
GTrsf from gp
raises DimensionMismatch, OutOfRange
is
Create returns mutable TransformationMatrix;
-- Specific Methods pertaining to the class
Init (me : mutable;
aMatrix : HArray2OfReal)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- TransformationMatrix
-- - aMatrix : 3 x 4 array containing elements of the
-- transformation matrix
-- raises exception if aMatrix is not 3 x 4 array
SetFormNumber (me : mutable; form : Integer) raises OutOfRange;
---Purpose : Changes FormNumber (indicates the Type of Transf :
-- Transformation 0-1 or Coordinate System 10-11-12)
-- Error if not in ranges [0-1] or [10-12]
Data (me; I, J : Integer) returns Real raises OutOfRange;
---Purpose : returns individual Data
-- Errro if I not in [1-3] or J not in [1-4]
Value (me) returns GTrsf;
---Purpose : returns the transformation matrix
-- 4th row elements of GTrsf will always be 0, 0, 0, 1 (not defined)
fields
--
-- Class : IGESGeom_TransformationMatrix
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class TransformationMatrix.
--
-- Reminder : A TransformationMatrix instance is defined by :
-- the coefficients of a 3 X 4 matrix
theData : HArray2OfReal;
end TransformationMatrix;
|