Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/3D/a3dl/billboard.cc

Go to the documentation of this file.
00001 /* $Id: billboard.cc,v 1.6 2003/06/02 09:38:22 tetron Exp $ */
00002 
00003 /*
00004     This file is part of the Virtual Object System of
00005     the Interreality project (http://interreality.org).
00006 
00007     Copyright (C) 2002 Reed Hedges
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public
00020     License along with this library; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00022 
00023     Reed Hedges <reed@zerohour.net>
00024 */
00025 
00026 
00027 #include "billboard.hh"
00028 
00029 using namespace A3DL;
00030 
00031 Billboard::Billboard(MetaObject* superobject)
00032     : Object3D(superobject), MetaObject(superobject)
00033 {
00034 }
00035 
00036 Billboard::~Billboard()
00037 {
00038 }
00039 
00040 
00041 MetaObject* Billboard::new_Billboard(MetaObject* superobject, const string& type)
00042 {
00043     return new Billboard(superobject);
00044 }
00045 
00046 const string Billboard::getType()
00047 {
00048     return "a3dl:object3D.billboard";
00049 }
00050 
00051 void Billboard::registerExtenders()
00052 {
00053     LocalSite::addLocalObjectExtension(typeid(Billboard).name(), &Billboard::new_Billboard);
00054     LocalSite::addLocalObjectExtension("a3dl:object3D.billboard", &Billboard::new_Billboard);
00055     RemoteSite::addRemoteObjectExtension(typeid(Billboard).name(), &Billboard::new_Billboard);
00056     RemoteSite::addRemoteObjectExtension("a3dl:object3D.billboard", &Billboard::new_Billboard);
00057 }

Generated on Tue Aug 12 03:55:36 2003 for Interreality Project - VOS by doxygen 1.3.2