0028615: Visualization, TKOpenGl - enabling MSAA leads to black screen on OpenGL ES
[occt.git] / src / IntTools / IntTools_Curve.hxx
CommitLineData
42cf5bc1 1// Created on: 2000-11-23
2// Created by: Michael KLOKOV
3// Copyright (c) 2000-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _IntTools_Curve_HeaderFile
17#define _IntTools_Curve_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <Standard_Boolean.hxx>
24#include <Standard_Real.hxx>
25#include <GeomAbs_CurveType.hxx>
26class Geom_Curve;
27class Geom2d_Curve;
28class gp_Pnt;
29
30
31//! class is a container of
32//! one 3d curve
33//! two 2d curves
34class IntTools_Curve
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41
42 //! Empty constructor
43 Standard_EXPORT IntTools_Curve();
44
45
46 //! Initializes me by a 3d curve
47 //! and two 2d curves
48 Standard_EXPORT IntTools_Curve(const Handle(Geom_Curve)& Curve3d, const Handle(Geom2d_Curve)& FirstCurve2d, const Handle(Geom2d_Curve)& SecondCurve2d);
49
50
51 //! Modifier
52 Standard_EXPORT void SetCurves (const Handle(Geom_Curve)& Curve3d, const Handle(Geom2d_Curve)& FirstCurve2d, const Handle(Geom2d_Curve)& SecondCurve2d);
53
54
55 //! Modifier
56 void SetCurve (const Handle(Geom_Curve)& Curve3d);
57
58
59 //! Modifier
60 void SetFirstCurve2d (const Handle(Geom2d_Curve)& FirstCurve2d);
61
62
63 //! Modifier
64 void SetSecondCurve2d (const Handle(Geom2d_Curve)& SecondCurve2d);
65
66
67 //! Selector
68 const Handle(Geom_Curve)& Curve() const;
69
70
71 //! Selector
72 const Handle(Geom2d_Curve)& FirstCurve2d() const;
73
74
75 //! Selector
76 const Handle(Geom2d_Curve)& SecondCurve2d() const;
77
78
79 //! Returns true if 3d curve is BoundedCurve from Geom
80 Standard_EXPORT Standard_Boolean HasBounds() const;
81
82
83 //! Returns boundary parameters
84 //! and corresponded 3d point.
85 //!
86 //! Warning:
87 //! If HasBounds returns false
88 //! the returned parameters are equal
89 //! to zero.
90 Standard_EXPORT void Bounds (Standard_Real& aT1, Standard_Real& aT2, gp_Pnt& aP1, gp_Pnt& aP2) const;
91
92
93 //! Computes 3d point corresponded to parameter aT1
94 //! Returns true if given parameter aT1
95 //! is inside the boundaries of the curve
96 Standard_EXPORT Standard_Boolean D0 (Standard_Real& aT1, gp_Pnt& aP1) const;
97
98
99 //! Returns the type of 3d curve
100 Standard_EXPORT GeomAbs_CurveType Type() const;
101
102
103
104
105protected:
106
107
108
109
110
111private:
112
113
114
115 Handle(Geom_Curve) my3dCurve;
116 Handle(Geom2d_Curve) my2dCurve1;
117 Handle(Geom2d_Curve) my2dCurve2;
118
119
120};
121
122
123#include <IntTools_Curve.lxx>
124
125
126
127
128
129#endif // _IntTools_Curve_HeaderFile