1 // Copyright (c) 1999-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 <TCollection_HAsciiString.hxx>
16 //=======================================================================
18 //purpose : Sets scale name
19 //=======================================================================
21 inline void Message_ProgressScale::SetName(const Standard_CString theName)
23 myName = new TCollection_HAsciiString ( theName );
26 //=======================================================================
28 //purpose : Sets scale name
29 //=======================================================================
31 inline void Message_ProgressScale::SetName(const Handle(TCollection_HAsciiString)& theName)
36 //=======================================================================
38 //purpose : Returns scale name
39 //=======================================================================
41 inline Handle(TCollection_HAsciiString) Message_ProgressScale::GetName() const
46 //=======================================================================
48 //purpose : Sets minimum value of scale
49 //=======================================================================
51 inline void Message_ProgressScale::SetMin(const Standard_Real theMin)
56 //=======================================================================
58 //purpose : Returns minimum value of scale
59 //=======================================================================
61 inline Standard_Real Message_ProgressScale::GetMin() const
66 //=======================================================================
68 //purpose : Sets minimum value of scale
69 //=======================================================================
71 inline void Message_ProgressScale::SetMax(const Standard_Real theMax)
76 //=======================================================================
78 //purpose : Returns minimum value of scale
79 //=======================================================================
81 inline Standard_Real Message_ProgressScale::GetMax() const
86 //=======================================================================
88 //purpose : Sets both min and max
89 //=======================================================================
91 inline void Message_ProgressScale::SetRange(const Standard_Real theMin,
92 const Standard_Real theMax)
98 //=======================================================================
100 //purpose : Sets default step
101 //=======================================================================
103 inline void Message_ProgressScale::SetStep(const Standard_Real theStep)
108 //=======================================================================
110 //purpose : Returns default step
111 //=======================================================================
113 inline Standard_Real Message_ProgressScale::GetStep() const
118 //=======================================================================
119 //function : SetInfinite
120 //purpose : Sets flag for infinite scale
121 //=======================================================================
123 inline void Message_ProgressScale::SetInfinite(const Standard_Boolean theInfinite)
125 myInfinite = theInfinite;
128 //=======================================================================
129 //function : GetInfinite
130 //purpose : Returns flag for infinite scale
131 //=======================================================================
133 inline Standard_Boolean Message_ProgressScale::GetInfinite() const
138 //=======================================================================
139 //function : SetScale
140 //purpose : Set all scale parameters
141 //=======================================================================
143 inline void Message_ProgressScale::SetScale(const Standard_Real theMin,
144 const Standard_Real theMax,
145 const Standard_Real theStep,
146 const Standard_Boolean theInfinite)
151 myInfinite = theInfinite;
154 //=======================================================================
156 //purpose : Sets span on a basis scale
157 //=======================================================================
159 inline void Message_ProgressScale::SetSpan(const Standard_Real theFirst,
160 const Standard_Real theLast)
166 //=======================================================================
167 //function : GetFirst
169 //=======================================================================
171 inline Standard_Real Message_ProgressScale::GetFirst () const
176 //=======================================================================
179 //=======================================================================
181 inline Standard_Real Message_ProgressScale::GetLast () const