00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 //---------------------------------------------------------------------------- 00040 // Includes 00041 //---------------------------------------------------------------------------- 00042 00043 #include "OSGBasicActorBase.h" 00044 00045 OSG_USING_NAMESPACE 00046 00047 //---------------------------------------------------------------------------- 00048 // Destructor 00049 //---------------------------------------------------------------------------- 00050 00051 BasicActorBase::~BasicActorBase(void) 00052 { 00053 } 00054 00055 //---------------------------------------------------------------------------- 00056 // Start/Stop 00057 //---------------------------------------------------------------------------- 00058 00059 BasicActorBase::ResultE 00060 BasicActorBase::start(void) 00061 { 00062 return Inherited::start(); 00063 } 00064 00065 BasicActorBase::ResultE 00066 BasicActorBase::stop(void) 00067 { 00068 return Inherited::stop(); 00069 } 00070 00071 //---------------------------------------------------------------------------- 00072 // Enter/Leave 00073 //---------------------------------------------------------------------------- 00074 00075 BasicActorBase::ResultE 00076 BasicActorBase::enterNode(FunctorArgumentType &funcArg) 00077 { 00078 return NewActionTypes::Continue; 00079 } 00080 00081 BasicActorBase::ResultE 00082 BasicActorBase::leaveNode(FunctorArgumentType &funcArg) 00083 { 00084 return NewActionTypes::Continue; 00085 } 00086 00087 //---------------------------------------------------------------------------- 00088 // Constructors 00089 //---------------------------------------------------------------------------- 00090 00094 BasicActorBase::BasicActorBase(void) 00095 : Inherited() 00096 { 00097 } 00098 00099 //---------------------------------------------------------------------------- 00100 // Add, Sub and Find helper 00101 //---------------------------------------------------------------------------- 00102 00103 UInt32 00104 BasicActorBase::addHelper(NewActionBase *pAction) 00105 { 00106 return pAction->addBasicActor(this); 00107 } 00108 00109 void 00110 BasicActorBase::subHelper(NewActionBase *pAction) 00111 { 00112 UInt32 actorIndex = pAction->findBasicActor(this); 00113 00114 if(actorIndex == TypeTraits<UInt32>::getMax()) 00115 { 00116 SWARNING << "BasicActorBase::subHelper: Illegal actor index." 00117 << endLog; 00118 00119 return; 00120 } 00121 00122 pAction->subBasicActor(actorIndex); 00123 } 00124 00125 UInt32 00126 BasicActorBase::findHelper(const NewActionBase *pAction) 00127 { 00128 return pAction->findBasicActor(this); 00129 } 00130 00131 /*------------------------------------------------------------------------*/ 00132 /* cvs id's */ 00133 00134 #ifdef OSG_SGI_CC 00135 #pragma set woff 1174 00136 #endif 00137 00138 #ifdef OSG_LINUX_ICC 00139 #pragma warning(disable : 177) 00140 #endif 00141 00142 namespace 00143 { 00144 static Char8 cvsid_cpp [] = "@(#)$Id: OSGBasicActorBase.cpp,v 1.2 2004/09/17 14:09:42 neumannc Exp $"; 00145 static Char8 cvsid_hpp [] = OSGBASICACTORBASE_HEADER_CVSID; 00146 static Char8 cvsid_inl [] = OSGBASICACTORBASE_INLINE_CVSID; 00147 } 00148 00149 #ifdef OSG_LINUX_ICC 00150 #pragma warning(enable : 177) 00151 #endif 00152 00153 #ifdef OSG_SGI_CC 00154 #pragma reset woff 1174 00155 #endif
1.4.3