File indexing completed on 2026-09-23 09:17:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_Triangulation_HeaderFile
0018 #define _DrawTrSurf_Triangulation_HeaderFile
0019
0020 #include <Standard_Integer.hxx>
0021 #include <NCollection_Array1.hxx>
0022 #include <NCollection_HArray1.hxx>
0023 #include <Draw_Drawable3D.hxx>
0024 #include <Draw_Interpretor.hxx>
0025
0026 class Poly_Triangulation;
0027
0028
0029
0030
0031
0032
0033 class DrawTrSurf_Triangulation : public Draw_Drawable3D
0034 {
0035 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Triangulation, Draw_Drawable3D)
0036 Draw_Drawable3D_FACTORY
0037 public:
0038 Standard_EXPORT DrawTrSurf_Triangulation(const occ::handle<Poly_Triangulation>& T);
0039
0040 occ::handle<Poly_Triangulation> Triangulation() const { return myTriangulation; }
0041
0042 void ShowNodes(const bool theB) { myNodes = theB; }
0043
0044 bool ShowNodes() const { return myNodes; }
0045
0046 void ShowTriangles(const bool theB) { myTriangles = theB; }
0047
0048 bool ShowTriangles() const { return myTriangles; }
0049
0050 Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0051
0052
0053 Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0054
0055
0056 Standard_EXPORT void Dump(Standard_OStream& S) const override;
0057
0058
0059 Standard_EXPORT void Save(Standard_OStream& theStream) const override;
0060
0061
0062 Standard_EXPORT void Whatis(Draw_Interpretor& I) const override;
0063
0064 private:
0065 occ::handle<Poly_Triangulation> myTriangulation;
0066 occ::handle<NCollection_HArray1<int>> myInternals;
0067 occ::handle<NCollection_HArray1<int>> myFree;
0068 bool myNodes;
0069 bool myTriangles;
0070 };
0071
0072 #endif