0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / DrawTrSurf / DrawTrSurf_Triangulation2D.hxx
CommitLineData
42cf5bc1 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>
27class Poly_Triangulation;
28class Draw_Display;
29class Draw_Drawable3D;
30
31
32class DrawTrSurf_Triangulation2D;
33DEFINE_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.
40class DrawTrSurf_Triangulation2D : public Draw_Drawable2D
41{
42
43public:
44
45
46 Standard_EXPORT DrawTrSurf_Triangulation2D(const Handle(Poly_Triangulation)& T);
47
48 Standard_EXPORT Handle(Poly_Triangulation) Triangulation() const;
49
79104795 50 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
42cf5bc1 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
92efcf78 65 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Triangulation2D,Draw_Drawable2D)
42cf5bc1 66
67protected:
68
69
70
71
72private:
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