Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28158/src/net/sourceforge/bprocessor/gl/view
Modified Files:
AbstractView.java
Log Message:
Small change
Index: AbstractView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** AbstractView.java 25 Aug 2005 09:47:01 -0000 1.10
--- AbstractView.java 25 Aug 2005 14:34:07 -0000 1.11
***************
*** 131,135 ****
public static void setTransparency(int percent) {
byte b = (byte)0xff; //(byte)(255 * (percent / 100));
! log.info(b);
for (int i = 0; i < transparency.length; i++) {
transparency[i] = b;
--- 131,135 ----
public static void setTransparency(int percent) {
byte b = (byte)0xff; //(byte)(255 * (percent / 100));
! log.info("value = " + b);
for (int i = 0; i < transparency.length; i++) {
transparency[i] = b;
***************
*** 705,711 ****
int bufferOffset = 0;
int names = 0;
! int minZ = Integer.MAX_VALUE;
! int z1;
! int z2;
Long id = null;
Integer intId;
--- 705,711 ----
int bufferOffset = 0;
int names = 0;
! long minZ = Integer.MAX_VALUE;
! long z1;
! long z2;
Long id = null;
Integer intId;
***************
*** 716,723 ****
--- 716,727 ----
z1 = selectBuffer.get(bufferOffset);
z2 = selectBuffer.get(bufferOffset + 1);
+
bufferOffset += 2;
if (z1 < minZ) {
minZ = z1;
id = new Long((new Integer(selectBuffer.get(bufferOffset))).longValue());
+ double far = z1 / 0xFFFFFFFF;
+ double near = z2 / 0xFFFFFFFF;
+ System.out.println("z1 = " + far + "z2 = " + near);
}
bufferOffset += names;
|