SALOME - SMESH
SMESH_MeshVSLink Class Reference

#include <SMESH_MeshVSLink.hxx>

Inheritance diagram for SMESH_MeshVSLink:
Inheritance graph
Collaboration diagram for SMESH_MeshVSLink:
Collaboration graph

Public Member Functions

Standard_EXPORT SMESH_MeshVSLink (const SMESH_Mesh *aMesh)
 Constructor
More...
 
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 ( if IsElement is False ) or element ( IsElement is True )
by co-ordinates. For element this method must return all its nodes co-ordinates in the strict order: X, Y, Z and
with nodes order is the same as in wire bounding the face or link. NbNodes is number of nodes of element.
It is recommended to return 1 for node. Type is an element type.
More...
 
Standard_EXPORT Standard_Boolean Get3DGeom (const Standard_Integer ID, Standard_Integer &NbNodes, Handle(MeshVS_HArray1OfSequenceOfInteger)&Data) const
 
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. This method is provided for
a fine performance.
More...
 
Standard_EXPORT Standard_Address GetAddr (const Standard_Integer ID, const Standard_Boolean IsElement) const
 This method returns by number an address of any entity which represents element or node data structure.
More...
 
Standard_EXPORT Standard_Boolean GetNodesByElement (const Standard_Integer ID, TColStd_Array1OfInteger &NodeIDs, Standard_Integer &NbNodes) const
 This method returns information about what node this element consist of.
More...
 
Standard_EXPORT const TColStd_PackedMapOfInteger & GetAllNodes () const
 This method returns map of all nodes the object consist of.
More...
 
Standard_EXPORT const TColStd_PackedMapOfInteger & GetAllElements () const
 This method returns map of all elements the object consist of.
More...
 
Standard_EXPORT Standard_Boolean GetNormal (const Standard_Integer Id, const Standard_Integer Max, Standard_Real &nx, Standard_Real &ny, Standard_Real &nz) const
 This method calculates normal of face, which is using for correct reflection presentation.
There is default method, for advance reflection this method can be redefined.
More...
 
Standard_EXPORT void GetAllGroups (TColStd_PackedMapOfInteger &Ids) const
 This method returns map of all groups the object contains.
More...
 
Standard_EXPORT const Handle (Standard_Type) &DynamicType() const
 

Private Attributes

SMESH_MeshmyMesh
 
TColStd_PackedMapOfInteger myNodes
 
TColStd_PackedMapOfInteger myElements
 
TColStd_PackedMapOfInteger myGroups
 

Detailed Description

Definition at line 70 of file SMESH_MeshVSLink.hxx.

Constructor & Destructor Documentation

◆ SMESH_MeshVSLink()

Standard_EXPORT SMESH_MeshVSLink::SMESH_MeshVSLink ( const SMESH_Mesh aMesh)

Constructor

Member Function Documentation

◆ GetGeom()

Standard_EXPORT Standard_Boolean SMESH_MeshVSLink::GetGeom ( const Standard_Integer  ID,
const Standard_Boolean  IsElement,
TColStd_Array1OfReal &  Coords,
Standard_Integer &  NbNodes,
MeshVS_EntityType &  Type 
) const

Returns geometry information about node ( if IsElement is False ) or element ( IsElement is True )
by co-ordinates. For element this method must return all its nodes co-ordinates in the strict order: X, Y, Z and
with nodes order is the same as in wire bounding the face or link. NbNodes is number of nodes of element.
It is recommended to return 1 for node. Type is an element type.

◆ Get3DGeom()

Standard_EXPORT Standard_Boolean SMESH_MeshVSLink::Get3DGeom ( const Standard_Integer  ID,
Standard_Integer &  NbNodes,
Handle(MeshVS_HArray1OfSequenceOfInteger)&  Data 
) const

◆ GetGeomType()

Standard_EXPORT Standard_Boolean SMESH_MeshVSLink::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. This method is provided for
a fine performance.

◆ GetAddr()

Standard_EXPORT Standard_Address SMESH_MeshVSLink::GetAddr ( const Standard_Integer  ID,
const Standard_Boolean  IsElement 
) const

This method returns by number an address of any entity which represents element or node data structure.

◆ GetNodesByElement()

Standard_EXPORT Standard_Boolean SMESH_MeshVSLink::GetNodesByElement ( const Standard_Integer  ID,
TColStd_Array1OfInteger &  NodeIDs,
Standard_Integer &  NbNodes 
) const

This method returns information about what node this element consist of.

◆ GetAllNodes()

Standard_EXPORT const TColStd_PackedMapOfInteger& SMESH_MeshVSLink::GetAllNodes ( ) const

This method returns map of all nodes the object consist of.

◆ GetAllElements()

Standard_EXPORT const TColStd_PackedMapOfInteger& SMESH_MeshVSLink::GetAllElements ( ) const

This method returns map of all elements the object consist of.

◆ GetNormal()

Standard_EXPORT Standard_Boolean SMESH_MeshVSLink::GetNormal ( const Standard_Integer  Id,
const Standard_Integer  Max,
Standard_Real &  nx,
Standard_Real &  ny,
Standard_Real &  nz 
) const

This method calculates normal of face, which is using for correct reflection presentation.
There is default method, for advance reflection this method can be redefined.

◆ GetAllGroups()

Standard_EXPORT void SMESH_MeshVSLink::GetAllGroups ( TColStd_PackedMapOfInteger &  Ids) const

This method returns map of all groups the object contains.

◆ Handle()

Standard_EXPORT const SMESH_MeshVSLink::Handle ( Standard_Type  ) const &

Field Documentation

◆ myMesh

SMESH_Mesh* SMESH_MeshVSLink::myMesh
private

Definition at line 143 of file SMESH_MeshVSLink.hxx.

◆ myNodes

TColStd_PackedMapOfInteger SMESH_MeshVSLink::myNodes
private

Definition at line 144 of file SMESH_MeshVSLink.hxx.

◆ myElements

TColStd_PackedMapOfInteger SMESH_MeshVSLink::myElements
private

Definition at line 145 of file SMESH_MeshVSLink.hxx.

◆ myGroups

TColStd_PackedMapOfInteger SMESH_MeshVSLink::myGroups
private

Definition at line 146 of file SMESH_MeshVSLink.hxx.