0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / DrawTrSurf / DrawTrSurf_Triangulation2D.hxx
1 // Created on: 1997-07-22
2 // Created by: Laurent PAINNOT
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _DrawTrSurf_Triangulation2D_HeaderFile
18 #define _DrawTrSurf_Triangulation2D_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <TColStd_HArray1OfInteger.hxx>
24 #include <Draw_Drawable2D.hxx>
25 #include <Standard_OStream.hxx>
26 #include <Draw_Interpretor.hxx>
27 class Poly_Triangulation;
28 class Draw_Display;
29 class Draw_Drawable3D;
30
31
32 class DrawTrSurf_Triangulation2D;
33 DEFINE_STANDARD_HANDLE(DrawTrSurf_Triangulation2D, Draw_Drawable2D)
34
35 //! Used to display a 2d triangulation.
36 //!
37 //! Display internal edges in blue
38 //! Display boundary edges in red
39 //! Optional display of triangles and nodes indices.
40 class DrawTrSurf_Triangulation2D : public Draw_Drawable2D
41 {
42
43 public:
44
45   
46   Standard_EXPORT DrawTrSurf_Triangulation2D(const Handle(Poly_Triangulation)& T);
47   
48   Standard_EXPORT Handle(Poly_Triangulation) Triangulation() const;
49   
50   Standard_EXPORT void DrawOn (Draw_Display& dis) const;
51   
52   //! For variable copy.
53   Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
54   
55   //! For variable dump.
56   Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
57   
58   //! For variable whatis command. Set  as a result  the
59   //! type of the variable.
60   Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
61
62
63
64
65   DEFINE_STANDARD_RTTI(DrawTrSurf_Triangulation2D,Draw_Drawable2D)
66
67 protected:
68
69
70
71
72 private:
73
74
75   Handle(Poly_Triangulation) myTriangulation;
76   Handle(TColStd_HArray1OfInteger) myInternals;
77   Handle(TColStd_HArray1OfInteger) myFree;
78
79
80 };
81
82
83
84
85
86
87
88 #endif // _DrawTrSurf_Triangulation2D_HeaderFile