1 // Copyright (c) 2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <AndroidQt_TouchParameters.h>
16 // =======================================================================
17 // function : AndroidQt_TouchParameters
19 // =======================================================================
20 AndroidQt_TouchParameters::AndroidQt_TouchParameters()
28 // =======================================================================
29 // function : AndroidQt_TouchParameters
31 // =======================================================================
32 AndroidQt_TouchParameters::AndroidQt_TouchParameters (const double theX,
41 // =======================================================================
44 // =======================================================================
45 QPair<double, double> AndroidQt_TouchParameters::X() const
47 return qMakePair(myXStart, myXEnd);
50 // =======================================================================
53 // =======================================================================
54 double AndroidQt_TouchParameters::DevX() const
56 return myXEnd - myXStart;
59 // =======================================================================
62 // =======================================================================
63 QPair<double, double> AndroidQt_TouchParameters::Y() const
65 return qMakePair(myYStart, myYEnd);
68 // =======================================================================
71 // =======================================================================
72 double AndroidQt_TouchParameters::DevY() const
74 return myYEnd - myYStart;
77 // =======================================================================
78 // function : SetStarts
80 // =======================================================================
81 void AndroidQt_TouchParameters::SetStarts (const double theXStart,
82 const double theYStart)
88 // =======================================================================
91 // =======================================================================
92 void AndroidQt_TouchParameters::SetEnds (const double theXEnd,
99 // =======================================================================
100 // function : ClearDev
102 // =======================================================================
103 void AndroidQt_TouchParameters::ClearDev()