Details Ticket 5101


Comment | Reply | Open


Serial Number 5101
Subject NVIZ: horizontal sliders are backwards
Area grass6
Queue grass
Requestors hamish_nospam@yahoo.com
Owner mbarton
Status resolved
Last User Contact Sun Dec 3 21:57:10 2006 (2 yr ago)
Current Priority 29
Final Priority 70
Due No date assigned
Last Action Fri Jan 19 07:43:21 2007 (2 yr ago)
Created Tue Sep 5 07:39:54 2006 (2 yr ago)

Transaction History Ticket 5101


Tue, Sep 5 2006 07:39:54    Request created by hbowman  
Subject: NVIZ: horizontal sliders are backwards

[fwd from -dev list]

Hi,

I'm working on a longstanding annoyance in NVIZ: many of the sliders are
presented backwards. (e.g. lighting levels)

this fix isn't complete though: if you type in a new out of range value
& hit <enter> (e.g. Red=1.5) it goes backwards. More importantly, the vector
points size slider gets stuck until you type in a new out of range value. ??
ideas?

Hamish



Index: widgets.tcl
===================================================================
RCS file:
/home/grass/grassrepository/grass6/visualization/nviz/scripts/widgets.tcl,v
retrieving revision 1.2
diff -u -r1.2 widgets.tcl
--- widgets.tcl 1 Aug 2005 17:57:15 -0000       1.2
+++ widgets.tcl 4 Sep 2006 09:33:38 -0000
@@ -165,10 +165,10 @@
         }
 
        if {[expr $val < $min]} then {
-           $S.scale configure -to $val
+           $S.scale configure -from $val
        }
        if {[expr $val > $max]} then {
-           $S.scale configure -from $val
+           $S.scale configure -to $val
        }
        if {$val != 0} {
        if {[expr abs($val)] < [expr abs($res)]} {
Index: panel_lights.tcl
===================================================================
RCS file:
/home/grass/grassrepository/grass6/visualization/nviz/scripts/panel_lights.tcl,v
retrieving revision 2.0
diff -u -r2.0 panel_lights.tcl
--- panel_lights.tcl    9 Nov 2004 14:18:38 -0000       2.0
+++ panel_lights.tcl    4 Sep 2006 09:33:38 -0000
@@ -41,15 +41,15 @@
        -variable Nv_(FollowView) -command follow -onvalue 1 -offvalue 0
     checkbutton $BASE.top.left.show -relief flat -text "Show Model" \
        -variable Nv_(ShowModel)
-    Nv_mkScale $BASE.top.left.bright h Brightness 100 0 80 set_brt 2 
-    Nv_mkScale $BASE.top.left.ambient h Ambient 100 0 20 set_amb 2
+    Nv_mkScale $BASE.top.left.bright h Brightness 0 100 80 set_brt 2 
+    Nv_mkScale $BASE.top.left.ambient h Ambient 0 100 20 set_amb 2
     pack $BASE.top.left.follow $BASE.top.left.show \
         $BASE.top.left.bright $BASE.top.left.ambient \
        -side top -fill x -expand 1
     
-    Nv_mkScale $BASE.top.right.red h Red 100 0 100 set_red 2
-    Nv_mkScale $BASE.top.right.green h Green 100 0 100 set_green 2
-    Nv_mkScale $BASE.top.right.blue h Blue 100 0 100 set_blue 2
+    Nv_mkScale $BASE.top.right.red h Red 0 100 100 set_red 2
+    Nv_mkScale $BASE.top.right.green h Green 0 100 100 set_green 2
+    Nv_mkScale $BASE.top.right.blue h Blue 0 100 100 set_blue 2
     pack $BASE.top.right.red $BASE.top.right.green $BASE.top.right.blue \
        -side top -expand 1

Sun, Dec 3 2006 21:56:38    Owner changed to mbarton by mneteler  
Sun, Dec 3 2006 21:57:10    Mail sent by mneteler  
Hamish,

https://intevation.de/rt/webrt?serial_num=5101
is this problem still present in the latest NVIZ?

Markus
Mon, Dec 4 2006 04:33:58    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 4 Dec 2006 16:33:52 +1300
From Hamish <hamish_nospam@yahoo.com>
To Markus Neteler via RT <grass-bugs@intevation.de>
Subject Re: [bug #5101] (grass) NVIZ: horizontal sliders are backwards
Message-Id <20061204163352.0d14f00a.hamish_nospam@yahoo.com>
In-Reply-To <20061203205710.9B6651006A2@lists.intevation.de>
References <20061203205710.9B6651006A2@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-2.3 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7]
X-Spam-Level
Markus wrote:
> https://intevation.de/rt/webrt?serial_num=5101
> is this problem still present in the latest NVIZ?


Michael applied some patches in CVS WRT this but I haven't been able to
start NVIZ in the last week to test them. (tcl 8.3 problem?) I'd have to
get NVIZ to start before I can comment. a couple of months ago when we
first looked at this I was only 60% happy with the solution, but I don't
know if that was what was put into CVS or if Michael worked on it
further before committing it.

so please keep the bug open. I'll close it once I've checked it.


Hamish


Fri, Jan 19 2007 07:43:21    Status changed to resolved by mbarton  
Comment | Reply | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request