0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / DrawTrSurf / DrawTrSurf_Curve.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-05-21
2// Created by: Jean Claude VAUTHIER
3// Copyright (c) 1992-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_Curve_HeaderFile
18#define _DrawTrSurf_Curve_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Draw_Color.hxx>
24#include <Standard_Boolean.hxx>
25#include <Standard_Real.hxx>
26#include <DrawTrSurf_Drawable.hxx>
27#include <Standard_Integer.hxx>
28#include <Standard_OStream.hxx>
29#include <Draw_Interpretor.hxx>
30class Geom_Curve;
31class Draw_Color;
32class Draw_Display;
33class Draw_Drawable3D;
34
35
36class DrawTrSurf_Curve;
37DEFINE_STANDARD_HANDLE(DrawTrSurf_Curve, DrawTrSurf_Drawable)
38
39
40//! This class defines a drawable curve in 3d space.
41class DrawTrSurf_Curve : public DrawTrSurf_Drawable
42{
43
44public:
45
46
47
48 //! creates a drawable curve from a curve of package Geom.
49 Standard_EXPORT DrawTrSurf_Curve(const Handle(Geom_Curve)& C, const Standard_Boolean DispOrigin = Standard_True);
50
51 Standard_EXPORT DrawTrSurf_Curve(const Handle(Geom_Curve)& C, const Draw_Color& aColor, const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode, const Standard_Boolean DispOrigin = Standard_True, const Standard_Boolean DispCurvRadius = Standard_False, const Standard_Real RadiusMax = 1.0e3, const Standard_Real RatioOfRadius = 0.1);
52
79104795 53 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
42cf5bc1 54
55 Handle(Geom_Curve) GetCurve() const;
56
57 void SetColor (const Draw_Color& aColor);
58
59 Standard_Boolean DisplayOrigin() const;
60
61 void DisplayOrigin (const Standard_Boolean V);
62
63 void ShowCurvature();
64
65 void ClearCurvature();
66
67 void SetRadiusMax (const Standard_Real Radius);
68
69 void SetRadiusRatio (const Standard_Real Ratio);
70
71 Draw_Color Color() const;
72
73 Standard_Real RadiusMax() const;
74
75 Standard_Real RadiusRatio() const;
76
77 //! For variable copy.
78 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
79
80 //! For variable dump.
81 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
82
83 //! For variable whatis command. Set as a result the
84 //! type of the variable.
85 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
86
87
88
89
92efcf78 90 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Curve,DrawTrSurf_Drawable)
42cf5bc1 91
92protected:
93
94
95 Handle(Geom_Curve) curv;
96 Draw_Color look;
97 Standard_Boolean disporigin;
98 Standard_Boolean dispcurvradius;
99 Standard_Real radiusmax;
100 Standard_Real radiusratio;
101
102
103private:
104
105
106
107
108};
109
110
111#include <DrawTrSurf_Curve.lxx>
112
113
114
115
116
117#endif // _DrawTrSurf_Curve_HeaderFile