summaryrefslogtreecommitdiff
path: root/inc/MeshVS_DeformedDataSource.hxx
blob: f63ef1cedf09d92d31c5c12204a0370d97c4e799 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _MeshVS_DeformedDataSource_HeaderFile
#define _MeshVS_DeformedDataSource_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_MeshVS_DeformedDataSource_HeaderFile
#include <Handle_MeshVS_DeformedDataSource.hxx>
#endif

#ifndef _Handle_MeshVS_DataSource_HeaderFile
#include <Handle_MeshVS_DataSource.hxx>
#endif
#ifndef _TColStd_PackedMapOfInteger_HeaderFile
#include <TColStd_PackedMapOfInteger.hxx>
#endif
#ifndef _MeshVS_DataMapOfIntegerVector_HeaderFile
#include <MeshVS_DataMapOfIntegerVector.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _MeshVS_DataSource_HeaderFile
#include <MeshVS_DataSource.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _MeshVS_EntityType_HeaderFile
#include <MeshVS_EntityType.hxx>
#endif
#ifndef _Handle_MeshVS_HArray1OfSequenceOfInteger_HeaderFile
#include <Handle_MeshVS_HArray1OfSequenceOfInteger.hxx>
#endif
#ifndef _Standard_Address_HeaderFile
#include <Standard_Address.hxx>
#endif
class MeshVS_DataSource;
class TColStd_Array1OfReal;
class MeshVS_HArray1OfSequenceOfInteger;
class TColStd_Array1OfInteger;
class MeshVS_DataMapOfIntegerVector;
class gp_Vec;


//! The class provides default class which helps to represent node displacements by deformed mesh <br>
//!    This class has an internal handle to canonical non-deformed mesh data source and <br>
//! map of displacement vectors. The displacement can be magnified to useful size. <br>
//! All methods is implemented with calling the corresponding methods of non-deformed data source. <br>
class MeshVS_DeformedDataSource : public MeshVS_DataSource {

public:

  //!  Constructor <br>
//! theNonDeformDS is canonical non-deformed data source, by which we are able to calculate <br>
//!   deformed mesh geometry <br>
//! theMagnify is coefficient of displacement magnify <br>
  Standard_EXPORT   MeshVS_DeformedDataSource(const Handle(MeshVS_DataSource)& theNonDeformDS,const Standard_Real theMagnify);
  
  Standard_EXPORT   virtual  Standard_Boolean GetGeom(const Standard_Integer ID,const Standard_Boolean IsElement,TColStd_Array1OfReal& Coords,Standard_Integer& NbNodes,MeshVS_EntityType& Type) const;
  
  Standard_EXPORT   virtual  Standard_Boolean GetGeomType(const Standard_Integer ID,const Standard_Boolean IsElement,MeshVS_EntityType& Type) const;
  
  Standard_EXPORT   virtual  Standard_Boolean Get3DGeom(const Standard_Integer ID,Standard_Integer& NbNodes,Handle(MeshVS_HArray1OfSequenceOfInteger)& Data) const;
  
  Standard_EXPORT   virtual  Standard_Address GetAddr(const Standard_Integer ID,const Standard_Boolean IsElement) const;
  
  Standard_EXPORT   virtual  Standard_Boolean GetNodesByElement(const Standard_Integer ID,TColStd_Array1OfInteger& NodeIDs,Standard_Integer& NbNodes) const;
  
  Standard_EXPORT   virtual const TColStd_PackedMapOfInteger& GetAllNodes() const;
  
  Standard_EXPORT   virtual const TColStd_PackedMapOfInteger& GetAllElements() const;
  //! This method returns map of nodal displacement vectors <br>
  Standard_EXPORT    const MeshVS_DataMapOfIntegerVector& GetVectors() const;
  //! This method sets map of nodal displacement vectors (Map). <br>
  Standard_EXPORT     void SetVectors(const MeshVS_DataMapOfIntegerVector& Map) ;
  //! This method returns vector ( Vect ) assigned to node number ID. <br>
  Standard_EXPORT     Standard_Boolean GetVector(const Standard_Integer ID,gp_Vec& Vect) const;
  //! This method sets vector ( Vect ) assigned to node number ID. <br>
  Standard_EXPORT     void SetVector(const Standard_Integer ID,const gp_Vec& Vect) ;
  
  Standard_EXPORT     void SetNonDeformedDataSource(const Handle(MeshVS_DataSource)& theDS) ;
  //! With this methods you can read and change internal canonical data source <br>
  Standard_EXPORT     Handle_MeshVS_DataSource GetNonDeformedDataSource() const;
  
  Standard_EXPORT     void SetMagnify(const Standard_Real theMagnify) ;
  //! With this methods you can read and change magnify coefficient of nodal displacements <br>
  Standard_EXPORT     Standard_Real GetMagnify() const;




  DEFINE_STANDARD_RTTI(MeshVS_DeformedDataSource)

protected:




private: 


Handle_MeshVS_DataSource myNonDeformedDataSource;
TColStd_PackedMapOfInteger myEmptyMap;
MeshVS_DataMapOfIntegerVector myVectors;
Standard_Real myMagnify;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif