File indexing completed on 2025-01-18 10:05:37
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 <TColStd_HArray1OfInteger.hxx>
0023 #include <TColStd_HArray2OfReal.hxx>
0024 #include <TColStd_HArray2OfInteger.hxx>
0025 #include <MeshVS_DataSource.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 #include <MeshVS_EntityType.hxx>
0029 #include <MeshVS_HArray1OfSequenceOfInteger.hxx>
0030 #include <TColStd_Array1OfInteger.hxx>
0031
0032
0033 class XSDRAWSTL_DataSource3D;
0034 DEFINE_STANDARD_HANDLE(XSDRAWSTL_DataSource3D, MeshVS_DataSource)
0035
0036
0037 class XSDRAWSTL_DataSource3D : public MeshVS_DataSource
0038 {
0039
0040 public:
0041
0042
0043
0044 Standard_EXPORT XSDRAWSTL_DataSource3D();
0045
0046
0047
0048
0049
0050 Standard_EXPORT Standard_Boolean GetGeom (const Standard_Integer theID, const Standard_Boolean theIsElement, TColStd_Array1OfReal& theCoords, Standard_Integer& theNbNodes, MeshVS_EntityType& theType) const Standard_OVERRIDE;
0051
0052
0053
0054 Standard_EXPORT virtual Standard_Boolean Get3DGeom (const Standard_Integer theID, Standard_Integer& theNbNodes, Handle(MeshVS_HArray1OfSequenceOfInteger)& theData) const Standard_OVERRIDE;
0055
0056
0057
0058 Standard_EXPORT Standard_Boolean GetGeomType (const Standard_Integer theID, const Standard_Boolean theIsElement, MeshVS_EntityType& theType) const Standard_OVERRIDE;
0059
0060
0061 Standard_EXPORT Standard_Address GetAddr (const Standard_Integer theID, const Standard_Boolean theIsElement) const Standard_OVERRIDE;
0062
0063
0064 Standard_EXPORT virtual Standard_Boolean GetNodesByElement (const Standard_Integer theID, TColStd_Array1OfInteger& theNodeIDs, Standard_Integer& theNbNodes) const Standard_OVERRIDE;
0065
0066
0067 Standard_EXPORT const TColStd_PackedMapOfInteger& GetAllNodes() const Standard_OVERRIDE;
0068
0069
0070 Standard_EXPORT const TColStd_PackedMapOfInteger& GetAllElements() const Standard_OVERRIDE;
0071
0072
0073
0074 Standard_EXPORT virtual Standard_Boolean GetNormal (const Standard_Integer theID, const Standard_Integer theMax, Standard_Real& theNx, Standard_Real& theNy, Standard_Real& theNz) const Standard_OVERRIDE;
0075
0076
0077
0078
0079 DEFINE_STANDARD_RTTIEXT(XSDRAWSTL_DataSource3D,MeshVS_DataSource)
0080
0081 protected:
0082
0083
0084
0085
0086 private:
0087
0088
0089 TColStd_PackedMapOfInteger myNodes;
0090 TColStd_PackedMapOfInteger myElements;
0091 Handle(TColStd_HArray1OfInteger) myElemNbNodes;
0092 Handle(TColStd_HArray2OfReal) myNodeCoords;
0093 Handle(TColStd_HArray2OfInteger) myElemNodes;
0094
0095
0096 };
0097
0098
0099
0100
0101
0102
0103
0104 #endif