0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / MeshVS / MeshVS_DeformedDataSource.cdl
CommitLineData
b311480e 1-- Created on: 2003-12-11
2-- Created by: Alexander SOLOVYOV
973c2be1 3-- Copyright (c) 2003-2014 OPEN CASCADE SAS
b311480e 4--
973c2be1 5-- This file is part of Open CASCADE Technology software library.
b311480e 6--
d5f74e42 7-- This library is free software; you can redistribute it and/or modify it under
8-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 12--
973c2be1 13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
7fd59977 15
16class DeformedDataSource from MeshVS inherits DataSource from MeshVS
17
18 ---Purpose: The class provides default class which helps to represent node displacements by deformed mesh
19 -- This class has an internal handle to canonical non-deformed mesh data source and
20 -- map of displacement vectors. The displacement can be magnified to useful size.
21 -- All methods is implemented with calling the corresponding methods of non-deformed data source.
22
23uses
24 Integer from Standard,
25 Real from Standard,
26 Boolean from Standard,
27 Address from Standard,
28
29 Vec from gp,
30
31 Array1OfReal from TColStd,
32 Array1OfInteger from TColStd,
33 PackedMapOfInteger from TColStd,
34
35 DataMapOfIntegerVector from MeshVS,
36 EntityType from MeshVS,
37 HArray1OfSequenceOfInteger from MeshVS
38
39is
40
41 Create ( theNonDeformDS : DataSource from MeshVS;
6e33d3ce 42 theMagnify : Real ) returns DeformedDataSource from MeshVS;
7fd59977 43 ---Purpose: Constructor
44 -- theNonDeformDS is canonical non-deformed data source, by which we are able to calculate
45 -- deformed mesh geometry
46 -- theMagnify is coefficient of displacement magnify
47
48 GetGeom ( me; ID : Integer;
49 IsElement : Boolean;
50 Coords : out Array1OfReal from TColStd;
51 NbNodes : out Integer;
52 Type : out EntityType from MeshVS ) returns Boolean is redefined;
53
54 GetGeomType ( me; ID : Integer;
55 IsElement : Boolean;
56 Type : out EntityType from MeshVS ) returns Boolean is redefined;
57
58 Get3DGeom( me; ID : Integer;
59 NbNodes : out Integer;
60 Data : out HArray1OfSequenceOfInteger from MeshVS ) returns Boolean is redefined;
61
62 GetAddr ( me; ID : Integer;
63 IsElement : Boolean ) returns Address is redefined;
64
65 GetNodesByElement ( me; ID : Integer;
66 NodeIDs : out Array1OfInteger from TColStd;
67 NbNodes : out Integer ) returns Boolean is redefined;
68
69 GetAllNodes ( me ) returns PackedMapOfInteger from TColStd is redefined;
70 ---C++: return const &
71
72 GetAllElements ( me ) returns PackedMapOfInteger from TColStd is redefined;
73 ---C++: return const &
74
75 GetVectors ( me ) returns DataMapOfIntegerVector from MeshVS;
76 ---C++: return const &
77 ---Purpose: This method returns map of nodal displacement vectors
78
79 SetVectors ( me: mutable; Map : DataMapOfIntegerVector from MeshVS );
80 ---Purpose: This method sets map of nodal displacement vectors (Map).
81
82 GetVector ( me; ID : Integer; Vect : out Vec from gp ) returns Boolean;
83 ---Purpose: This method returns vector ( Vect ) assigned to node number ID.
84
85 SetVector ( me: mutable; ID : Integer; Vect : Vec from gp );
86 ---Purpose: This method sets vector ( Vect ) assigned to node number ID.
87
88 SetNonDeformedDataSource ( me: mutable; theDS : DataSource from MeshVS );
89 GetNonDeformedDataSource ( me ) returns DataSource from MeshVS;
90 ---Purpose: With this methods you can read and change internal canonical data source
91
92 SetMagnify ( me: mutable; theMagnify : Real );
93 GetMagnify ( me ) returns Real;
94 ---Purpose: With this methods you can read and change magnify coefficient of nodal displacements
95
96fields
97 myNonDeformedDataSource : DataSource from MeshVS;
98 myEmptyMap : PackedMapOfInteger from TColStd;
99 myVectors : DataMapOfIntegerVector from MeshVS;
100 myMagnify : Real;
101
102end DataSource;