blob: c980b458f4e9a213086f06196332400771ab5628 (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
-- File : MeshVS_DeformedDataSource.cdl
-- Created : 11 December 2003
-- Author : Alexander SOLOVYOV
---Copyright: Open CASCADE 2003
class DeformedDataSource from MeshVS inherits DataSource from MeshVS
---Purpose: The class provides default class which helps to represent node displacements by deformed mesh
-- This class has an internal handle to canonical non-deformed mesh data source and
-- map of displacement vectors. The displacement can be magnified to useful size.
-- All methods is implemented with calling the corresponding methods of non-deformed data source.
uses
Integer from Standard,
Real from Standard,
Boolean from Standard,
Address from Standard,
Vec from gp,
Array1OfReal from TColStd,
Array1OfInteger from TColStd,
PackedMapOfInteger from TColStd,
DataMapOfIntegerVector from MeshVS,
EntityType from MeshVS,
HArray1OfSequenceOfInteger from MeshVS
is
Create ( theNonDeformDS : DataSource from MeshVS;
theMagnify : Real ) returns mutable DeformedDataSource from MeshVS;
---Purpose: Constructor
-- theNonDeformDS is canonical non-deformed data source, by which we are able to calculate
-- deformed mesh geometry
-- theMagnify is coefficient of displacement magnify
GetGeom ( me; ID : Integer;
IsElement : Boolean;
Coords : out Array1OfReal from TColStd;
NbNodes : out Integer;
Type : out EntityType from MeshVS ) returns Boolean is redefined;
GetGeomType ( me; ID : Integer;
IsElement : Boolean;
Type : out EntityType from MeshVS ) returns Boolean is redefined;
Get3DGeom( me; ID : Integer;
NbNodes : out Integer;
Data : out HArray1OfSequenceOfInteger from MeshVS ) returns Boolean is redefined;
GetAddr ( me; ID : Integer;
IsElement : Boolean ) returns Address is redefined;
GetNodesByElement ( me; ID : Integer;
NodeIDs : out Array1OfInteger from TColStd;
NbNodes : out Integer ) returns Boolean is redefined;
GetAllNodes ( me ) returns PackedMapOfInteger from TColStd is redefined;
---C++: return const &
GetAllElements ( me ) returns PackedMapOfInteger from TColStd is redefined;
---C++: return const &
GetVectors ( me ) returns DataMapOfIntegerVector from MeshVS;
---C++: return const &
---Purpose: This method returns map of nodal displacement vectors
SetVectors ( me: mutable; Map : DataMapOfIntegerVector from MeshVS );
---Purpose: This method sets map of nodal displacement vectors (Map).
GetVector ( me; ID : Integer; Vect : out Vec from gp ) returns Boolean;
---Purpose: This method returns vector ( Vect ) assigned to node number ID.
SetVector ( me: mutable; ID : Integer; Vect : Vec from gp );
---Purpose: This method sets vector ( Vect ) assigned to node number ID.
SetNonDeformedDataSource ( me: mutable; theDS : DataSource from MeshVS );
GetNonDeformedDataSource ( me ) returns DataSource from MeshVS;
---Purpose: With this methods you can read and change internal canonical data source
SetMagnify ( me: mutable; theMagnify : Real );
GetMagnify ( me ) returns Real;
---Purpose: With this methods you can read and change magnify coefficient of nodal displacements
fields
myNonDeformedDataSource : DataSource from MeshVS;
myEmptyMap : PackedMapOfInteger from TColStd;
myVectors : DataMapOfIntegerVector from MeshVS;
myMagnify : Real;
end DataSource;
|