- Timestamp:
- Jun 2, 2016, 8:19:06 AM (8 years ago)
- Location:
- branches/multichoice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multichoice
- Property svn:mergeinfo changed
-
branches/multichoice/gui/scripts/transferfunctioneditor.tcl
r5640 r6371 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.