OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKMeshVS
MeshVS


MeshVS_DeformedDataSource Class Reference

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>

Inheritance diagram for MeshVS_DeformedDataSource:

Inheritance graph
[legend]

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_DataMapOfIntegerVectorGetVectors () 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

Constructor & Destructor Documentation

Standard_EXPORT MeshVS_DeformedDataSource::MeshVS_DeformedDataSource const Handle(MeshVS_DataSource)&  theNonDeformDS,
const Standard_Real  theMagnify
 


Member Function Documentation

virtual Standard_EXPORT Standard_Boolean MeshVS_DeformedDataSource::Get3DGeom const Standard_Integer  ID,
Standard_Integer &  NbNodes,
Handle(MeshVS_HArray1OfSequenceOfInteger)&  Data
const [virtual]
 

Reimplemented from MeshVS_DataSource.

virtual Standard_EXPORT Standard_Address MeshVS_DeformedDataSource::GetAddr const Standard_Integer  ID,
const Standard_Boolean  IsElement
const [virtual]
 

Implements MeshVS_DataSource.

virtual Standard_EXPORT const TColStd_PackedMapOfInteger& MeshVS_DeformedDataSource::GetAllElements  )  const [virtual]
 

Implements MeshVS_DataSource.

virtual Standard_EXPORT const TColStd_PackedMapOfInteger& MeshVS_DeformedDataSource::GetAllNodes  )  const [virtual]
 

Implements MeshVS_DataSource.

virtual Standard_EXPORT 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_EXPORT Standard_Boolean MeshVS_DeformedDataSource::GetGeomType const Standard_Integer  ID,
const Standard_Boolean  IsElement,
MeshVS_EntityType Type
const [virtual]
 

Implements MeshVS_DataSource.

Standard_EXPORT Standard_Real MeshVS_DeformedDataSource::GetMagnify  )  const
 

virtual Standard_EXPORT Standard_Boolean MeshVS_DeformedDataSource::GetNodesByElement const Standard_Integer  ID,
TColStd_Array1OfInteger &  NodeIDs,
Standard_Integer &  NbNodes
const [virtual]
 

Implements MeshVS_DataSource.

Standard_EXPORT Handle_MeshVS_DataSource MeshVS_DeformedDataSource::GetNonDeformedDataSource  )  const
 

Standard_EXPORT Standard_Boolean MeshVS_DeformedDataSource::GetVector const Standard_Integer  ID,
gp_Vec &  Vect
const
 

Standard_EXPORT const MeshVS_DataMapOfIntegerVector& MeshVS_DeformedDataSource::GetVectors  )  const
 

Standard_EXPORT const MeshVS_DeformedDataSource::Handle Standard_Type   )  const
 

Reimplemented from MeshVS_DataSource.

Standard_EXPORT void MeshVS_DeformedDataSource::SetMagnify const Standard_Real  theMagnify  ) 
 

Standard_EXPORT void MeshVS_DeformedDataSource::SetNonDeformedDataSource const Handle(MeshVS_DataSource)&  theDS  ) 
 

Standard_EXPORT void MeshVS_DeformedDataSource::SetVector const Standard_Integer  ID,
const gp_Vec &  Vect
 

Standard_EXPORT void MeshVS_DeformedDataSource::SetVectors const MeshVS_DataMapOfIntegerVector Map  ) 
 


Field Documentation

TColStd_PackedMapOfInteger MeshVS_DeformedDataSource::myEmptyMap [private]
 

Standard_Real MeshVS_DeformedDataSource::myMagnify [private]
 

Handle_MeshVS_DataSource MeshVS_DeformedDataSource::myNonDeformedDataSource [private]
 

MeshVS_DataMapOfIntegerVector MeshVS_DeformedDataSource::myVectors [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:55:49 2008 for OpenCASCADE by  doxygen 1.4.1