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

OSGCameraDecoratorBase.inl

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *               Copyright (C) 2000-2002 by the OpenSG Forum                 *
00006  *                                                                           *
00007  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00008  *                                                                           *
00009 \*---------------------------------------------------------------------------*/
00010 /*---------------------------------------------------------------------------*\
00011  *                                License                                    *
00012  *                                                                           *
00013  * This library is free software; you can redistribute it and/or modify it   *
00014  * under the terms of the GNU Library General Public License as published    *
00015  * by the Free Software Foundation, version 2.                               *
00016  *                                                                           *
00017  * This library is distributed in the hope that it will be useful, but       *
00018  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00020  * Library General Public License for more details.                          *
00021  *                                                                           *
00022  * You should have received a copy of the GNU Library General Public         *
00023  * License along with this library; if not, write to the Free Software       *
00024  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00025  *                                                                           *
00026 \*---------------------------------------------------------------------------*/
00027 /*---------------------------------------------------------------------------*\
00028  *                                Changes                                    *
00029  *                                                                           *
00030  *                                                                           *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035 \*---------------------------------------------------------------------------*/
00036 
00037 /*****************************************************************************\
00038  *****************************************************************************
00039  **                                                                         **
00040  **                  This file is automatically generated.                  **
00041  **                                                                         **
00042  **          Any changes made to this file WILL be lost when it is          **
00043  **           regenerated, which can become necessary at any time.          **
00044  **                                                                         **
00045  **     Do not change this file, changes should be done in the derived      **
00046  **     class CameraDecorator!
00047  **                                                                         **
00048  *****************************************************************************
00049 \*****************************************************************************/
00050 
00051 #include <OSGConfig.h>
00052 
00053 OSG_BEGIN_NAMESPACE
00054 
00055 
00057 inline
00058 OSG::FieldContainerType &CameraDecoratorBase::getClassType(void)
00059 {
00060     return _type; 
00061 } 
00062 
00064 inline
00065 OSG::UInt32 CameraDecoratorBase::getClassTypeId(void) 
00066 {
00067     return _type.getId(); 
00068 } 
00069 
00070 
00071 /*------------------------- decorator get ------------------------------*/
00072 
00073 inline
00074 SFCameraPtr *CameraDecoratorBase::getSFDecoratee(void)
00075 {
00076     return &_sfDecoratee;
00077 }
00078 
00079 inline
00080 CameraPtr &CameraDecoratorBase::getDecoratee(void)
00081 {
00082     return _sfDecoratee.getValue();
00083 }
00084 
00085 inline
00086 const CameraPtr &CameraDecoratorBase::getDecoratee(void) const
00087 {
00088     return _sfDecoratee.getValue();
00089 }
00090 
00091 inline
00092 void CameraDecoratorBase::setDecoratee(const CameraPtr &value)
00093 {
00094     _sfDecoratee.setValue(value);
00095 }
00096 
00097 inline
00098 SFNodePtr *CameraDecoratorBase::getSFBeacon(void)
00099 {
00100     return getDecoratee()->getSFBeacon();
00101 }
00102 
00103 inline
00104 SFReal32 *CameraDecoratorBase::getSFNear(void)
00105 {
00106     return getDecoratee()->getSFNear();
00107 }
00108 
00109 inline
00110 SFReal32 *CameraDecoratorBase::getSFFar(void)
00111 {
00112     return getDecoratee()->getSFFar();
00113 }
00114 
00115 
00116 inline
00117 NodePtr &CameraDecoratorBase::getBeacon(void)
00118 {
00119     return getDecoratee()->getBeacon();
00120 }
00121 
00122 inline
00123 const NodePtr &CameraDecoratorBase::getBeacon(void) const
00124 {
00125     return getDecoratee()->getBeacon();
00126 }
00127 
00128 inline
00129 void CameraDecoratorBase::setBeacon(const NodePtr &value)
00130 {
00131     beginEditCP(getDecoratee(), BeaconFieldMask);
00132     getDecoratee()->setBeacon(value);
00133     endEditCP  (getDecoratee(), BeaconFieldMask);
00134 }
00135 
00136 inline
00137 Real32 &CameraDecoratorBase::getNear(void)
00138 {
00139     return getDecoratee()->getNear();
00140 }
00141 
00142 inline
00143 const Real32 &CameraDecoratorBase::getNear(void) const
00144 {
00145     return getDecoratee()->getNear();
00146 }
00147 
00148 inline
00149 void CameraDecoratorBase::setNear(const Real32 &value)
00150 {
00151     beginEditCP(getDecoratee(), NearFieldMask);
00152     getDecoratee()->setNear(value);
00153     endEditCP  (getDecoratee(), NearFieldMask);
00154 }
00155 
00156 inline
00157 Real32 &CameraDecoratorBase::getFar(void)
00158 {
00159     return getDecoratee()->getFar();
00160 }
00161 
00162 inline
00163 const Real32 &CameraDecoratorBase::getFar(void) const
00164 {
00165     return getDecoratee()->getFar();
00166 }
00167 
00168 inline
00169 void CameraDecoratorBase::setFar(const Real32 &value)
00170 {
00171     beginEditCP(getDecoratee(), FarFieldMask);
00172     getDecoratee()->setFar(value);
00173     endEditCP  (getDecoratee(), FarFieldMask);
00174 }
00175 
00176 
00177 OSG_END_NAMESPACE
00178 
00179 #define OSGCAMERADECORATORBASE_INLINE_CVSID "@(#)$Id: $"
00180 

Generated on Thu Aug 25 04:01:40 2005 for OpenSG by  doxygen 1.4.3