00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright 2000,2001 by 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 // Includes 00039 //--------------------------------------------------------------------------- 00040 00041 #include <OSGConfig.h> 00042 00043 OSG_BEGIN_NAMESPACE 00044 00045 /***************************************************************************\ 00046 * Instance methods * 00047 \***************************************************************************/ 00048 00049 /*-------------------------------------------------------------------------*\ 00050 - public - 00051 \*-------------------------------------------------------------------------*/ 00052 00053 /*------------------------------ access -----------------------------------*/ 00054 00055 00056 inline 00057 void DVRVolume::setAppearance(const DVRAppearancePtr &value) 00058 { 00059 SINFO << "DVRVolume::setAppearance this: " << this << std::endl; 00060 00061 // SINFO << "setRefdCP(" << _sfAppearance.getValue() 00062 // << ", " << value << std::endl; 00063 00064 setRefdCP(_sfAppearance.getValue(), value); 00065 } 00066 00067 inline 00068 void DVRVolume::setGeometry(const DVRGeometryPtr &value) 00069 { 00070 SINFO << "DVRVolume::setGeometry this: " << this << std::endl; 00071 // SINFO << "setRefdCP(" << _sfGeometry.getValue() << ", " 00072 // << value << std::endl; 00073 00074 setRefdCP(_sfGeometry.getValue(), value); 00075 } 00076 00077 inline 00078 void DVRVolume::setShader(const DVRShaderPtr &value) 00079 { 00080 SINFO << "DVRVolume::setShader this: " << this << std::endl; 00081 // SINFO << "setRefdCP(" << _sfShader.getValue() << ", " 00082 // << value << std::endl; 00083 00084 setRefdCP(_sfShader.getValue(), value); 00085 } 00086 00087 inline 00088 void DVRVolume::setRenderMaterial(const MaterialPtr &value) 00089 { 00090 SINFO << "DVRVolume::setRenderMaterial this: " 00091 << this 00092 << std::endl; 00093 00094 SINFO << "setRefdCP(" 00095 << _sfRenderMaterial.getValue() << ", " 00096 << value << std::endl; 00097 00098 SINFO << "---" << std::endl; 00099 00100 setRefdCP(_sfRenderMaterial.getValue(), value); 00101 } 00102 00103 inline 00104 void DVRVolume::setTextureStorage(const ChunkMaterialPtr &value) 00105 { 00106 SINFO << "DVRVolume::setTextureStorage this: " 00107 << this << std::endl; 00108 SINFO << "setRefdCP(" 00109 << _sfTextureStorage.getValue() << ", " 00110 << value << std::endl; 00111 00112 SINFO << "---" << std::endl; 00113 00114 setRefdCP(_sfTextureStorage.getValue(), value); 00115 } 00116 00117 inline 00118 TextureManager &DVRVolume::getTextureManager() 00119 { 00120 return textureManager; 00121 } 00122 00123 /*-------------------------------------------------------------------------*\ 00124 - protected - 00125 \*-------------------------------------------------------------------------*/ 00126 00127 /*-------------------------------------------------------------------------*\ 00128 - private - 00129 \*-------------------------------------------------------------------------*/ 00130 00131 00132 OSG_END_NAMESPACE 00133 00134 #define OSGDVRVOLUME_INLINE_CVSID "@(#)$Id: $" 00135
1.5.5