Open CASCADE Technology 6.6.0
Public Member Functions
XSDRAWSTLVRML_DataSource Class Reference

The sample DataSource for working with STLMesh_Mesh

#include <XSDRAWSTLVRML_DataSource.hxx>

Inheritance diagram for XSDRAWSTLVRML_DataSource:
Inheritance graph
[legend]

Public Member Functions

 XSDRAWSTLVRML_DataSource (const Handle< StlMesh_Mesh > &aMesh)
 Constructor

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.

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.

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.

virtual 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.

const TColStd_PackedMapOfIntegerGetAllNodes () const
 This method returns map of all nodes the object consist of.

const TColStd_PackedMapOfIntegerGetAllElements () const
 This method returns map of all elements the object consist of.

virtual 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.


Constructor & Destructor Documentation

XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource ( const Handle< StlMesh_Mesh > &  aMesh)

Member Function Documentation

Standard_Address XSDRAWSTLVRML_DataSource::GetAddr ( const Standard_Integer  ID,
const Standard_Boolean  IsElement 
) const [virtual]

Implements MeshVS_DataSource.

const TColStd_PackedMapOfInteger& XSDRAWSTLVRML_DataSource::GetAllElements ( ) const [virtual]

Implements MeshVS_DataSource.

const TColStd_PackedMapOfInteger& XSDRAWSTLVRML_DataSource::GetAllNodes ( ) const [virtual]

Implements MeshVS_DataSource.

Standard_Boolean XSDRAWSTLVRML_DataSource::GetGeom ( const Standard_Integer  ID,
const Standard_Boolean  IsElement,
TColStd_Array1OfReal Coords,
Standard_Integer NbNodes,
MeshVS_EntityType Type 
) const [virtual]

Implements MeshVS_DataSource.

Standard_Boolean XSDRAWSTLVRML_DataSource::GetGeomType ( const Standard_Integer  ID,
const Standard_Boolean  IsElement,
MeshVS_EntityType Type 
) const [virtual]

Implements MeshVS_DataSource.

virtual Standard_Boolean XSDRAWSTLVRML_DataSource::GetNodesByElement ( const Standard_Integer  ID,
TColStd_Array1OfInteger NodeIDs,
Standard_Integer NbNodes 
) const [virtual]

Implements MeshVS_DataSource.

virtual Standard_Boolean XSDRAWSTLVRML_DataSource::GetNormal ( const Standard_Integer  Id,
const Standard_Integer  Max,
Standard_Real nx,
Standard_Real ny,
Standard_Real nz 
) const [virtual]

Reimplemented from MeshVS_DataSource.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines