5672ef0f5fb43f8c1f3e29d318f7c799776ae143
[occt.git] / src / Extrema / Extrema_CurveCache.lxx
1 // Created on: 2008-12-28
2 // Created by: Roman Lygin
3 // Copyright (c) 2008-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 //            roman.lygin@gmail.com
17
18 #include <StdFail_NotDone.hxx>
19 #include <TColStd_HArray1OfReal.hxx>
20
21 //=======================================================================
22 //function : IsValid
23 //purpose  : 
24 //=======================================================================
25
26 inline Standard_Boolean Extrema_CurveCache::IsValid() const
27 {
28   return myIsArrayValid;
29 }
30
31 //=======================================================================
32 //function : Parameters
33 //purpose  : 
34 //=======================================================================
35
36 inline const Handle(TColStd_HArray1OfReal)& Extrema_CurveCache::Parameters() const
37 {
38   StdFail_NotDone_Raise_if (!myIsArrayValid, "Extrema_CurveCache::Parameters()")
39   return myParamArray;
40 }
41
42 //=======================================================================
43 //function : Points
44 //purpose  : 
45 //=======================================================================
46
47 inline const Handle(ArrayOfPnt)& Extrema_CurveCache::Points() const
48 {
49   StdFail_NotDone_Raise_if (!myIsArrayValid, "Extrema_CurveCache::Points()")
50   return myPntArray;
51 }
52
53 //=======================================================================
54 //function : CurvePtr
55 //purpose  : 
56 //=======================================================================
57
58 inline Standard_Address Extrema_CurveCache::CurvePtr() const
59 {
60   return myC;
61 }
62
63 //=======================================================================
64 //function : NbSamples
65 //purpose  : 
66 //=======================================================================
67
68 inline Standard_Integer Extrema_CurveCache::NbSamples() const
69 {
70   return myNbSamples;
71 }
72
73 //=======================================================================
74 //function : FirstParameter
75 //purpose  : 
76 //=======================================================================
77
78 inline Standard_Real Extrema_CurveCache::FirstParameter() const
79 {
80   return myFirst;
81 }
82
83 //=======================================================================
84 //function : LastParameter
85 //purpose  : 
86 //=======================================================================
87
88 inline Standard_Real Extrema_CurveCache::LastParameter() const
89 {
90   return myLast;
91 }
92
93 //=======================================================================
94 //function : TrimFirstParameter
95 //purpose  : 
96 //=======================================================================
97
98 inline Standard_Real Extrema_CurveCache::TrimFirstParameter() const
99 {
100   return myTrimFirst;
101 }
102
103 //=======================================================================
104 //function : TrimLastParameter
105 //purpose  : 
106 //=======================================================================
107
108 inline Standard_Real Extrema_CurveCache::TrimLastParameter() const
109 {
110   return myTrimLast;
111 }