#include <MeshVS_DeformedDataSource.hxx>
Inheritance diagram for MeshVS_DeformedDataSource:
Public Member Functions | |
Standard_EXPORT | 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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 Standard_EXPORT const TColStd_PackedMapOfInteger & | GetAllNodes () const |
This method returns map of all nodes the object consist of. . | |
virtual Standard_EXPORT const TColStd_PackedMapOfInteger & | GetAllElements () const |
This method returns map of all elements the object consist of. . | |
Standard_EXPORT const MeshVS_DataMapOfIntegerVector & | GetVectors () const |
This method returns map of nodal displacement vectors . | |
Standard_EXPORT void | SetVectors (const MeshVS_DataMapOfIntegerVector &Map) |
This method sets map of nodal displacement vectors (Map). . | |
Standard_EXPORT Standard_Boolean | GetVector (const Standard_Integer ID, gp_Vec &Vect) const |
This method returns vector ( Vect ) assigned to node number ID. . | |
Standard_EXPORT void | SetVector (const Standard_Integer ID, const gp_Vec &Vect) |
This method sets vector ( Vect ) assigned to node number ID. . | |
Standard_EXPORT void | SetNonDeformedDataSource (const Handle(MeshVS_DataSource)&theDS) |
Standard_EXPORT Handle_MeshVS_DataSource | GetNonDeformedDataSource () const |
With this methods you can read and change internal canonical data source . | |
Standard_EXPORT void | SetMagnify (const Standard_Real theMagnify) |
Standard_EXPORT Standard_Real | GetMagnify () const |
With this methods you can read and change magnify coefficient of nodal displacements . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
Handle_MeshVS_DataSource | myNonDeformedDataSource |
TColStd_PackedMapOfInteger | myEmptyMap |
MeshVS_DataMapOfIntegerVector | myVectors |
Standard_Real | myMagnify |
|
|
|
Reimplemented from MeshVS_DataSource. |
|
Implements MeshVS_DataSource. |
|
Implements MeshVS_DataSource. |
|
Implements MeshVS_DataSource. |
|
Implements MeshVS_DataSource. |
|
Implements MeshVS_DataSource. |
|
|
|
Implements MeshVS_DataSource. |
|
|
|
|
|
|
|
Reimplemented from MeshVS_DataSource. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|