Changeset 6297 for trunk/gui/scripts/transferfunctioneditor.tcl
- Timestamp:
- May 1, 2016, 5:11:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/transferfunctioneditor.tcl
r5640 r6297 42 42 private method GetScreenPosition { name } 43 43 private method LeaveTick { name } 44 private method SetRelativeValue 45 private method GetRelativeValue 44 private method SetRelativeValue { name x } 45 private method GetRelativeValue { name } 46 46 private method RemoveDuplicateMarkers {name x y} 47 47 private method SetScreenPosition { name } … … 225 225 } 226 226 227 itcl::body Rappture::TransferFunctionEditor::GetRelativeValue 227 itcl::body Rappture::TransferFunctionEditor::GetRelativeValue { name } { 228 228 return $_values($name) 229 229 } 230 230 231 itcl::body Rappture::TransferFunctionEditor::SetRelativeValue { name value } { 231 itcl::body Rappture::TransferFunctionEditor::SetRelativeValue { name value } { 232 if {$value < 0.0} { 233 set value 0.0 234 } elseif {$value > 1.0} { 235 set value 1.0 236 } 232 237 set _values($name) $value 233 238 set x [GetScreenPosition $name]
Note: See TracChangeset
for help on using the changeset viewer.