0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / IntTools / IntTools_SurfaceRangeLocalizeData.lxx
CommitLineData
b311480e 1// Created on: 2005-10-14
2// Created by: Mikhail KLOKOV
973c2be1 3// Copyright (c) 2005-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#include <TColStd_HArray1OfReal.hxx>
17#include <TColgp_HArray2OfPnt.hxx>
18
19
20inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
21{
22 return myNbSampleU;
23}
24
25
26inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
27{
28 return myNbSampleV;
29}
30
31
32inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
33{
34 return myMinRangeU;
35}
36
37
38inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
39{
40 return myMinRangeV;
41}
42
43
44// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
45inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
46 (const Standard_Real theDeflection)
47{
48 myDeflection = theDeflection;
49}
50
51inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
52{
53 return myDeflection;
54}
55
56inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
57{
58 return (myUParams.IsNull()) ? 0 : myUParams->Length();
59}
60
61
62inline void IntTools_SurfaceRangeLocalizeData::SetUParam
63 (const Standard_Integer theIndex,
64 const Standard_Real theUParam)
65{
66 myUParams->SetValue(theIndex, theUParam);
67}
68
69
70inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
71 (const Standard_Integer theIndex) const
72{
73 return myUParams->Value(theIndex);
74}
75
76
77inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
78{
79 return (myVParams.IsNull()) ? 0 : myVParams->Length();
80}
81
82
83inline void IntTools_SurfaceRangeLocalizeData::SetVParam
84 (const Standard_Integer theIndex,
85 const Standard_Real theVParam)
86{
87 myVParams->SetValue(theIndex, theVParam);
88}
89
90
91inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
92 (const Standard_Integer theIndex) const
93{
94 return myVParams->Value(theIndex);
95}
96
97
98inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
99 (const Standard_Integer theUIndex,
100 const Standard_Integer theVIndex,
101 const gp_Pnt &thePoint)
102{
103 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
104}
105
106
107inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
108 (const Standard_Integer theUIndex,
109 const Standard_Integer theVIndex) const
110{
111 return myGridPoints->Value(theUIndex, theVIndex);
112}
113
114
115inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
116 GetNBUPointsInFrame() const
117{
118 return myUIndMax - myUIndMin + 1;
119}
120
121
122inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
123 GetNBVPointsInFrame() const
124{
125 return myVIndMax - myVIndMin + 1;
126}
127// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End