node.C

00001 /*
00002  * This file is part of the "Archon" framework.
00003  * (http://files3d.sourceforge.net)
00004  *
00005  * Copyright © 2002 by Kristian Spangsege and Brian Kristiansen.
00006  *
00007  * Permission to use, copy, modify, and distribute this software and
00008  * its documentation under the terms of the GNU General Public License is
00009  * hereby granted. No representations are made about the suitability of
00010  * this software for any purpose. It is provided "as is" without express
00011  * or implied warranty. See the GNU General Public License
00012  * (http://www.gnu.org/copyleft/gpl.html) for more details.
00013  *
00014  * The characters in this file are ISO8859-1 encoded.
00015  *
00016  * The documentation in this file is in "Doxygen" style
00017  * (http://www.doxygen.org).
00018  */
00019 
00020 #include <archon/x3d/proxy/node.H>
00021 
00022 namespace Archon
00023 {
00024   namespace X3D
00025   {
00026     namespace Proxy
00027     {
00028       x3d::sai::Value *NodeBase::fieldGet(unsigned long fi)
00029       {
00030         return session->session->getFieldValue(id, fi);
00031       }
00032 
00033       x3d::sai::Value *NodeBase::fieldGetAt(unsigned long fi, unsigned long i)
00034       {
00035         return session->session->getFieldValueAt(id, fi, i);
00036       }
00037 
00038       void NodeBase::fieldSet(unsigned long fi, x3d::sai::Value &v)
00039       {
00040         session->session->setFieldValue(id, fi, v);
00041       }
00042 
00043       void NodeBase::fieldSetAt(unsigned long fi, x3d::sai::Value &v,
00044                                 unsigned long i)
00045       {
00046         session->session->setFieldValueAt(id, fi, i, v);
00047       }
00048 
00049       void NodeBase::fieldAdd(unsigned long fi, x3d::sai::Value &v)
00050       {
00051         session->session->setFieldValueAdd(id, fi, v);
00052       }
00053 
00054       void NodeBase::fieldDel(unsigned long fi, x3d::sai::Value &v)
00055       {
00056         session->session->setFieldValueDel(id, fi, v);
00057       }
00058     }
00059   }
00060 }

Generated on Sun Jul 30 22:55:47 2006 for Archon by  doxygen 1.4.4