Open CASCADE Technology
6.5.4
|
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.
#include <MeshVS_DeformedDataSource.hxx>
Public Member Functions | |
MeshVS_DeformedDataSource (const Handle< MeshVS_DataSource > &theNonDeformDS, const Standard_Real theMagnify) | |
Constructor theNonDeformDS is canonical non-deformed data source, by which we are able to calculate deformed mesh geometry theMagnify is coefficient of displacement magnify | |
virtual Standard_Boolean | GetGeom (const Standard_Integer ID, const Standard_Boolean IsElement, TColStd_Array1OfReal &Coords, Standard_Integer &NbNodes, MeshVS_EntityType &Type) const |
Returns geometry information about node or element ID is the numerical identificator of node or element IsElement indicates this ID describe node ( if Standard_False ) or element ( if Standard_True ) Coords is an array of co-ordinates of node(s). For node it is only 3 numbers: X, Y, Z in the strict order For element it is 3*n numbers, where n is number of this element vertices The order is strict also: X1, Y1, Z1, X2,...., where Xi, Yi, Zi are co-ordinates of vertices NbNodes is number of nodes. It is recommended this parameter to be set to 1 for node. Type is type of node or element (from enumeration). It is recommended this parameter to be set to MeshVS_ET_Node for node. | |
virtual Standard_Boolean | GetGeomType (const Standard_Integer ID, const Standard_Boolean IsElement, MeshVS_EntityType &Type) const |
This method is similar to GetGeom, but returns only element or node type. | |
virtual Standard_Boolean | Get3DGeom (const Standard_Integer ID, Standard_Integer &NbNodes, Handle< MeshVS_HArray1OfSequenceOfInteger > &Data) const |
This method returns topology information about 3D-element Returns false if element with ID isn't 3D or because other troubles | |
virtual Standard_Address | GetAddr (const Standard_Integer ID, const Standard_Boolean IsElement) const |
This method returns pointer which represents element or node data structure. This address will be saved in MeshVS_MeshEntityOwner, so that you can access to data structure fast by the method Owner(). In the redefined method you can return NULL. ID is the numerical identificator of node or element IsElement indicates this ID describe node ( if Standard_False ) or element ( if Standard_True ) | |
virtual Standard_Boolean | GetNodesByElement (const Standard_Integer ID, TColStd_Array1OfInteger &NodeIDs, Standard_Integer &NbNodes) const |
This method returns information about nodes this element consist of. ID is the numerical identificator of element. NodeIDs is the output array of nodes IDs in correct order, the same as coordinates returned by GetGeom(). NbNodes is number of nodes (number of items set in NodeIDs). Returns False if element does not exist | |
virtual const TColStd_PackedMapOfInteger & | GetAllNodes () const |
This method returns map of all nodes the object consist of. | |
virtual const TColStd_PackedMapOfInteger & | GetAllElements () const |
This method returns map of all elements the object consist of. | |
const MeshVS_DataMapOfIntegerVector & | GetVectors () const |
This method returns map of nodal displacement vectors | |
void | SetVectors (const MeshVS_DataMapOfIntegerVector &Map) |
This method sets map of nodal displacement vectors (Map). | |
Standard_Boolean | GetVector (const Standard_Integer ID, gp_Vec &Vect) const |
This method returns vector ( Vect ) assigned to node number ID. | |
void | SetVector (const Standard_Integer ID, const gp_Vec &Vect) |
This method sets vector ( Vect ) assigned to node number ID. | |
void | SetNonDeformedDataSource (const Handle< MeshVS_DataSource > &theDS) |
Handle_MeshVS_DataSource | GetNonDeformedDataSource () const |
With this methods you can read and change internal canonical data source | |
void | SetMagnify (const Standard_Real theMagnify) |
Standard_Real | GetMagnify () const |
With this methods you can read and change magnify coefficient of nodal displacements |
MeshVS_DeformedDataSource::MeshVS_DeformedDataSource | ( | const Handle< MeshVS_DataSource > & | theNonDeformDS, |
const Standard_Real | theMagnify | ||
) |
virtual Standard_Boolean MeshVS_DeformedDataSource::Get3DGeom | ( | const Standard_Integer | ID, |
Standard_Integer & | NbNodes, | ||
Handle< MeshVS_HArray1OfSequenceOfInteger > & | Data | ||
) | const [virtual] |
Reimplemented from MeshVS_DataSource.
virtual Standard_Address MeshVS_DeformedDataSource::GetAddr | ( | const Standard_Integer | ID, |
const Standard_Boolean | IsElement | ||
) | const [virtual] |
Implements MeshVS_DataSource.
virtual const TColStd_PackedMapOfInteger& MeshVS_DeformedDataSource::GetAllElements | ( | ) | const [virtual] |
Implements MeshVS_DataSource.
virtual const TColStd_PackedMapOfInteger& MeshVS_DeformedDataSource::GetAllNodes | ( | ) | const [virtual] |
Implements MeshVS_DataSource.
virtual Standard_Boolean MeshVS_DeformedDataSource::GetGeom | ( | const Standard_Integer | ID, |
const Standard_Boolean | IsElement, | ||
TColStd_Array1OfReal & | Coords, | ||
Standard_Integer & | NbNodes, | ||
MeshVS_EntityType & | Type | ||
) | const [virtual] |
Implements MeshVS_DataSource.
virtual Standard_Boolean MeshVS_DeformedDataSource::GetGeomType | ( | const Standard_Integer | ID, |
const Standard_Boolean | IsElement, | ||
MeshVS_EntityType & | Type | ||
) | const [virtual] |
Implements MeshVS_DataSource.
virtual Standard_Boolean MeshVS_DeformedDataSource::GetNodesByElement | ( | const Standard_Integer | ID, |
TColStd_Array1OfInteger & | NodeIDs, | ||
Standard_Integer & | NbNodes | ||
) | const [virtual] |
Implements MeshVS_DataSource.
Handle_MeshVS_DataSource MeshVS_DeformedDataSource::GetNonDeformedDataSource | ( | ) | const |
Standard_Boolean MeshVS_DeformedDataSource::GetVector | ( | const Standard_Integer | ID, |
gp_Vec & | Vect | ||
) | const |
void MeshVS_DeformedDataSource::SetMagnify | ( | const Standard_Real | theMagnify | ) |
void MeshVS_DeformedDataSource::SetNonDeformedDataSource | ( | const Handle< MeshVS_DataSource > & | theDS | ) |
void MeshVS_DeformedDataSource::SetVector | ( | const Standard_Integer | ID, |
const gp_Vec & | Vect | ||
) |