Revision: 42271
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42271&view=rev
Author:   erikgreenwald
Date:     2011-01-14 19:48:37 +0000 (Fri, 14 Jan 2011)

Log Message:
-----------
start stubbing in stuff for a client side lib jar

Modified Paths:
--------------
    rt^3/trunk/src/CMakeLists.txt

Added Paths:
-----------
    rt^3/trunk/src/client/
    rt^3/trunk/src/client/CMakeLists.txt
    rt^3/trunk/src/client/java/
    rt^3/trunk/src/client/java/CMakeLists.txt
    rt^3/trunk/src/client/java/GSClient.java

Modified: rt^3/trunk/src/CMakeLists.txt
===================================================================
--- rt^3/trunk/src/CMakeLists.txt       2011-01-14 19:47:40 UTC (rev 42270)
+++ rt^3/trunk/src/CMakeLists.txt       2011-01-14 19:48:37 UTC (rev 42271)
@@ -41,4 +41,7 @@
 
 #Apps Last
 ADD_SUBDIRECTORY(./GS)
-#ADD_SUBDIRECTORY(./adminpanel)
\ No newline at end of file
+#ADD_SUBDIRECTORY(./adminpanel)
+
+# Client Library set
+ADD_SUBDIRECTORY(client)

Added: rt^3/trunk/src/client/CMakeLists.txt
===================================================================
--- rt^3/trunk/src/client/CMakeLists.txt                                (rev 0)
+++ rt^3/trunk/src/client/CMakeLists.txt        2011-01-14 19:48:37 UTC (rev 
42271)
@@ -0,0 +1,31 @@
+#########################################################################
+#
+#      BRL-CAD
+#      
+#      Copyright (c) 1997-2010 United States Government as represented by
+#      the U.S. Army Research Laboratory.
+#      
+#      This library is free software; you can redistribute it and/or
+#      modify it under the terms of the GNU Lesser General Public License
+#      version 2.1 as published by the Free Software Foundation.
+#      
+#      This library is distributed in the hope that it will be useful, but
+#      WITHOUT ANY WARRANTY; without even the implied warranty of
+#      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#      Lesser General Public License for more details.
+#      
+#      You should have received a copy of the GNU Lesser General Public
+#      License along with this file; see the file named COPYING for more
+#      information.
+#      
+#########################################################################
+#      @file rt^3/src/client/CMakeLists.txt
+#
+#      $Revision:  $
+#      $Author:  $
+#
+#      Client libraries/implementations for the Geometry Service
+#
+##########################################################################
+
+ADD_SUBDIRECTORY(java)


Property changes on: rt^3/trunk/src/client/CMakeLists.txt
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native

Added: rt^3/trunk/src/client/java/CMakeLists.txt
===================================================================
--- rt^3/trunk/src/client/java/CMakeLists.txt                           (rev 0)
+++ rt^3/trunk/src/client/java/CMakeLists.txt   2011-01-14 19:48:37 UTC (rev 
42271)
@@ -0,0 +1,30 @@
+#########################################################################
+#
+#      BRL-CAD
+#      
+#      Copyright (c) 1997-2010 United States Government as represented by
+#      the U.S. Army Research Laboratory.
+#      
+#      This library is free software; you can redistribute it and/or
+#      modify it under the terms of the GNU Lesser General Public License
+#      version 2.1 as published by the Free Software Foundation.
+#      
+#      This library is distributed in the hope that it will be useful, but
+#      WITHOUT ANY WARRANTY; without even the implied warranty of
+#      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#      Lesser General Public License for more details.
+#      
+#      You should have received a copy of the GNU Lesser General Public
+#      License along with this file; see the file named COPYING for more
+#      information.
+#      
+#########################################################################
+#      @file rt^3/src/client/java/CMakeLists.txt
+#
+#      $Revision:  $
+#      $Author:  $
+#
+#      Java class to provide the GS network protocol (IBME)
+#
+##########################################################################
+


Property changes on: rt^3/trunk/src/client/java/CMakeLists.txt
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native

Added: rt^3/trunk/src/client/java/GSClient.java
===================================================================
--- rt^3/trunk/src/client/java/GSClient.java                            (rev 0)
+++ rt^3/trunk/src/client/java/GSClient.java    2011-01-14 19:48:37 UTC (rev 
42271)
@@ -0,0 +1,139 @@
+/*                  G S C L I E N T . J A V A
+ * BRL-CAD
+ *
+ * Copyright (c) 2011 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file GSClient.java
+ *
+ */
+
+package org.brlcad.GS;
+
+public class GSClient {
+
+    private static final int Magic1 = 0x000041FE;
+    private static final int Magic2 = 0x00005309;
+
+    private static final short Failure = 0x0050;
+    private static final short Success = 0x0051;
+    private static final short RemHostNameSET = 0x0100;
+    private static final short DisconnectREQ = 0x0150;
+    private static final short NewHostOnNet = 0x0200;
+    private static final short FullHostListREQ = 0x0250;
+    private static final short FullHostList = 0x0255;
+    private static final short NewSessionREQ = 0x0300;
+    private static final short NewSession = 0x0305;
+    private static final short LogoutSession = 0x0310;
+    private static final short GeometryREQ = 0x0400;
+    private static final short GeometryMANIFEST = 0x0405;
+    private static final short GeometryCHUNK = 0x0410;
+
+    public enum fmt { BOT, ARB, BOTARB, NURBS, OTHER };
+
+    GSClient() {
+       super();
+       /* maybe this shouldn't exist? */
+    }
+
+    GSClient(String URI) {
+       super();
+       /* parse crud out and make a connection. Maybe use port/host, then
+        * attach the pertinent other info? */
+    }
+
+    GSClient(String host, int port) {
+       super();
+       /* connect to a geometry server, maybe should build a URI? */
+    }
+
+    /**
+     * Get the latest revision ID of the requested object.
+     */
+    public String getLatestRevision() {
+       return "4";
+    }
+
+    public java.util.Date getLastModified() {
+       return new java.util.Date(System.currentTimeMillis());
+    }
+    
+    public String getLastEditor() {
+       return "Beavis";
+    }
+
+    /**
+     * Get an image of the geometry (possibly raytraced)
+     */
+    public java.awt.image.BufferedImage getPhoto() {
+       return null;
+    }
+
+    /**
+     * Get the line drawing (probably rtedge)
+     */
+    public java.awt.image.BufferedImage getLineDrawing() {
+       return null;
+    }
+
+    /**
+     * Get the raw .g file data.
+     */
+    public java.nio.ByteBuffer getG() {
+       return null;
+    }
+
+    public String getOriginator() {
+       return "Somebody";
+    }
+
+    public int getFileLen() {
+       return 4;
+    }
+
+    /* should this be more like an enum? number? */
+    public String getLOD() {
+       return "Low";
+    }
+
+    /**
+     * Return the confidence in the geometry description integrity.
+     */
+    public double getMagicHappyFuzzyFeeling() {
+       return 0.0;
+    }
+
+    public boolean getIsdirectMeasurement() {
+       return true;
+    }
+
+    public String getOriginalFormat() {
+       return "BRL-CAD";
+    }
+
+    /**
+     * Return the name of the conversion utility used on this.
+     */
+    public String getConverter() {
+       return "Native";
+    }
+
+    /* bot, arb, mixture of bot and arb, and ... other? nurbs? something? does
+     * this even make sense? */
+    public fmt getFormat() {
+       return fmt.OTHER;
+    }
+}


Property changes on: rt^3/trunk/src/client/java/GSClient.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to