0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.hxx
CommitLineData
42cf5bc1 1// Created on: 2005-10-05
2// Created by: Mikhail KLOKOV
3// Copyright (c) 2005-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_SurfaceRangeSample_HeaderFile
17#define _IntTools_SurfaceRangeSample_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <IntTools_CurveRangeSample.hxx>
24#include <Standard_Integer.hxx>
25#include <Standard_Real.hxx>
26#include <Standard_Boolean.hxx>
27class IntTools_CurveRangeSample;
28class IntTools_Range;
29
30
31//! class for range index management of surface
32class IntTools_SurfaceRangeSample
33{
34public:
35
36 DEFINE_STANDARD_ALLOC
37
38
39 Standard_EXPORT IntTools_SurfaceRangeSample();
40
41 Standard_EXPORT IntTools_SurfaceRangeSample(const Standard_Integer theIndexU, const Standard_Integer theDepthU, const Standard_Integer theIndexV, const Standard_Integer theDepthV);
42
43 Standard_EXPORT IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU, const IntTools_CurveRangeSample& theRangeV);
44
45 Standard_EXPORT IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other);
46
47 Standard_EXPORT IntTools_SurfaceRangeSample& Assign (const IntTools_SurfaceRangeSample& Other);
48IntTools_SurfaceRangeSample& operator = (const IntTools_SurfaceRangeSample& Other)
49{
50 return Assign(Other);
51}
52
53 void SetRanges (const IntTools_CurveRangeSample& theRangeU, const IntTools_CurveRangeSample& theRangeV);
54
55 void GetRanges (IntTools_CurveRangeSample& theRangeU, IntTools_CurveRangeSample& theRangeV) const;
56
57 void SetIndexes (const Standard_Integer theIndexU, const Standard_Integer theIndexV);
58
59 void GetIndexes (Standard_Integer& theIndexU, Standard_Integer& theIndexV) const;
60
61 void GetDepths (Standard_Integer& theDepthU, Standard_Integer& theDepthV) const;
62
63 void SetSampleRangeU (const IntTools_CurveRangeSample& theRangeSampleU);
64
65 const IntTools_CurveRangeSample& GetSampleRangeU() const;
66
67 void SetSampleRangeV (const IntTools_CurveRangeSample& theRangeSampleV);
68
69 const IntTools_CurveRangeSample& GetSampleRangeV() const;
70
71 void SetIndexU (const Standard_Integer theIndexU);
72
73 Standard_Integer GetIndexU() const;
74
75 void SetIndexV (const Standard_Integer theIndexV);
76
77 Standard_Integer GetIndexV() const;
78
79 void SetDepthU (const Standard_Integer theDepthU);
80
81 Standard_Integer GetDepthU() const;
82
83 void SetDepthV (const Standard_Integer theDepthV);
84
85 Standard_Integer GetDepthV() const;
86
87 Standard_EXPORT IntTools_Range GetRangeU (const Standard_Real theFirstU, const Standard_Real theLastU, const Standard_Integer theNbSampleU) const;
88
89 Standard_EXPORT IntTools_Range GetRangeV (const Standard_Real theFirstV, const Standard_Real theLastV, const Standard_Integer theNbSampleV) const;
90
91 Standard_Boolean IsEqual (const IntTools_SurfaceRangeSample& Other) const;
92
93 Standard_Integer GetRangeIndexUDeeper (const Standard_Integer theNbSampleU) const;
94
95 Standard_Integer GetRangeIndexVDeeper (const Standard_Integer theNbSampleV) const;
96
97
98
99
100protected:
101
102
103
104
105
106private:
107
108
109
110 IntTools_CurveRangeSample myRangeU;
111 IntTools_CurveRangeSample myRangeV;
112
113
114};
115
116
117#include <IntTools_SurfaceRangeSample.lxx>
118
119
120
121
122
123#endif // _IntTools_SurfaceRangeSample_HeaderFile