File indexing completed on 2026-11-27 10:40:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XSDRAWSTL_DataSource3D_HeaderFile
0017 #define _XSDRAWSTL_DataSource3D_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <NCollection_HArray1.hxx>
0025 #include <NCollection_Array2.hxx>
0026 #include <NCollection_HArray2.hxx>
0027 #include <MeshVS_DataSource.hxx>
0028 #include <MeshVS_EntityType.hxx>
0029 #include <NCollection_Sequence.hxx>
0030
0031
0032 class XSDRAWSTL_DataSource3D : public MeshVS_DataSource
0033 {
0034
0035 public:
0036
0037 Standard_EXPORT XSDRAWSTL_DataSource3D();
0038
0039
0040
0041
0042
0043
0044 Standard_EXPORT bool GetGeom(const int theID,
0045 const bool theIsElement,
0046 NCollection_Array1<double>& theCoords,
0047 int& theNbNodes,
0048 MeshVS_EntityType& theType) const override;
0049
0050
0051
0052 Standard_EXPORT bool Get3DGeom(
0053 const int theID,
0054 int& theNbNodes,
0055 occ::handle<NCollection_HArray1<NCollection_Sequence<int>>>& theData) const override;
0056
0057
0058
0059 Standard_EXPORT bool GetGeomType(const int theID,
0060 const bool theIsElement,
0061 MeshVS_EntityType& theType) const override;
0062
0063
0064
0065 Standard_EXPORT void* GetAddr(const int theID, const bool theIsElement) const override;
0066
0067
0068 Standard_EXPORT bool GetNodesByElement(const int theID,
0069 NCollection_Array1<int>& theNodeIDs,
0070 int& theNbNodes) const override;
0071
0072
0073 Standard_EXPORT const TColStd_PackedMapOfInteger& GetAllNodes() const override;
0074
0075
0076 Standard_EXPORT const TColStd_PackedMapOfInteger& GetAllElements() const override;
0077
0078
0079
0080 Standard_EXPORT bool GetNormal(const int theID,
0081 const int theMax,
0082 double& theNx,
0083 double& theNy,
0084 double& theNz) const override;
0085
0086 DEFINE_STANDARD_RTTIEXT(XSDRAWSTL_DataSource3D, MeshVS_DataSource)
0087
0088 private:
0089 TColStd_PackedMapOfInteger myNodes;
0090 TColStd_PackedMapOfInteger myElements;
0091 occ::handle<NCollection_HArray1<int>> myElemNbNodes;
0092 occ::handle<NCollection_HArray2<double>> myNodeCoords;
0093 occ::handle<NCollection_HArray2<int>> myElemNodes;
0094 };
0095
0096 #endif