0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.cxx
CommitLineData
b311480e 1// Created on: 2005-10-05
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
42cf5bc1 16
17#include <IntTools_CurveRangeSample.hxx>
18#include <IntTools_Range.hxx>
19#include <IntTools_SurfaceRangeSample.hxx>
7fd59977 20
21IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample()
22{
23}
24
25IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const Standard_Integer theIndexU,const Standard_Integer theDepthU,
26 const Standard_Integer theIndexV,const Standard_Integer theDepthV)
27{
28 myRangeU.SetRangeIndex(theIndexU);
29 myRangeU.SetDepth(theDepthU);
30 myRangeV.SetRangeIndex(theIndexV);
31 myRangeV.SetDepth(theDepthV);
32}
33
34IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU,
35 const IntTools_CurveRangeSample& theRangeV)
36{
37 myRangeU = theRangeU;
38 myRangeV = theRangeV;
39}
40
41IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other)
42{
43 Assign(Other);
44}
45
46IntTools_SurfaceRangeSample& IntTools_SurfaceRangeSample::Assign(const IntTools_SurfaceRangeSample& Other)
47{
48 myRangeU = Other.myRangeU;
49 myRangeV = Other.myRangeV;
50 return (*this);
51}
52
53
54IntTools_Range IntTools_SurfaceRangeSample::GetRangeU(const Standard_Real theFirstU,const Standard_Real theLastU,
55 const Standard_Integer theNbSampleU) const
56{
57 return myRangeU.GetRange(theFirstU, theLastU, theNbSampleU);
58}
59
60IntTools_Range IntTools_SurfaceRangeSample::GetRangeV(const Standard_Real theFirstV,const Standard_Real theLastV,
61 const Standard_Integer theNbSampleV) const
62{
63 return myRangeV.GetRange(theFirstV, theLastV, theNbSampleV);
64}