While making some additions to PyOpenSG, I found some places where methods
are being declared but not defined. I have attached a patch that fixes those
problems. The modified classes are OSG::ClusterServer, OSG::ConnectionType,
and OSG::RemoteAspect. I am not 100% sure that I made a correct change to
OSG::ClusterServer, but at least it compiles.

 -Patrick


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/
Index: Source/System/Cluster/Server/OSGClusterServer.cpp
===================================================================
--- Source/System/Cluster/Server/OSGClusterServer.cpp   (revision 569)
+++ Source/System/Cluster/Server/OSGClusterServer.cpp   (working copy)
@@ -247,6 +247,8 @@
     _clusterWindow= NullFC;
 }
 
+#ifdef OSG_OLD_RENDER_ACTION
+
 /*! sync with client and render scenegraph
  */
 
@@ -257,6 +259,22 @@
     doSwap  (      );
 }
 
+#endif
+
+#ifdef OSG_CLEANED_RENDERACTION
+
+/*! sync with client and render scenegraph
+ */
+
+void ClusterServer::render(RenderTraversalActionBase *action)
+{
+    doSync  (false );
+    doRender(action);
+    doSwap  (      );
+}
+
+#endif
+
 /*! Synchronize all field containers with the client and call 
  *  <code>serverInit</code>, <code>serverRender</code> and
  *  <code>serverSwap</code> for the cluster window.
@@ -334,6 +352,8 @@
     }
 }
 
+#ifdef OSG_OLD_RENDER_ACTION
+
 /*! render server window
  */
 
@@ -355,6 +375,33 @@
     _clusterWindow->serverRender(_window, _serverId, action);
 }
 
+#endif
+
+#ifdef OSG_CLEANED_RENDERACTION
+
+/*! render server window
+ */
+
+void ClusterServer::doRender(RenderTraversalActionBase *action)
+{
+    OSG::IndentFileOutStream outFileStream("/tmp/cluster.osg");
+
+    if(outFileStream)
+    {
+        std::cerr << "STARTING PRINTOUT:" << std::endl;
+
+        OSG::OSGWriter writer(outFileStream, 4);
+
+        writer.write(_clusterWindow);
+
+        outFileStream.close();
+    } 
+
+    _clusterWindow->serverRender(_window, _serverId, action);
+}
+
+#endif
+
 /*! swap server window
  */
 
Index: Source/System/Cluster/Base/OSGRemoteAspect.h
===================================================================
--- Source/System/Cluster/Base/OSGRemoteAspect.h        (revision 569)
+++ Source/System/Cluster/Base/OSGRemoteAspect.h        (working copy)
@@ -146,9 +146,10 @@
                                   BitVector mask   );
     static void subFieldFilter   (UInt32    typeId,
                                   BitVector mask   );
-    
+#if 0
     static void restoreChangeList(ChangeList *tocl);
     static void storeChangeList  (ChangeList *cl  );
+#endif
     static UInt32 getStoreSize   (void            );
 
     static clStoreMap &getStore  (void            );
Index: Source/Base/Network/Base/OSGConnectionType.cpp
===================================================================
--- Source/Base/Network/Base/OSGConnectionType.cpp      (revision 569)
+++ Source/Base/Network/Base/OSGConnectionType.cpp      (working copy)
@@ -86,6 +86,13 @@
     ConnectionFactory::the()->addPointType(this);
 }
 
+ConnectionType::ConnectionType(const ConnectionType &source) :
+    _name(source._name),
+    _createGroup(source._createGroup),
+    _createPoint(source._createPoint)
+{
+}
+
 /*-------------------------------------------------------------------------*/
 /*                             Destructor                                  */
 

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to