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

OSGDepthClearBackground.cpp

Go to the documentation of this file.
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 <stdlib.h>
00044 #include <stdio.h>
00045 
00046 #include "OSGConfig.h"
00047 
00048 #include <OSGGL.h>
00049 
00050 #include <OSGFieldContainer.h>
00051 #include <OSGNode.h>
00052 #include <OSGAction.h>
00053 #include <OSGDrawAction.h>
00054 #include "OSGViewport.h"
00055 #include "OSGCamera.h"
00056 #include "OSGWindow.h"
00057 #include "OSGBackground.h"
00058 #include "OSGDepthClearBackground.h"
00059 
00060 OSG_USING_NAMESPACE
00061 
00062 
00063 /***************************************************************************\
00064  *                            Description                                  *
00065 \***************************************************************************/
00066 
00074 /***************************************************************************\
00075  *                           Class methods                                 *
00076 \***************************************************************************/
00077 
00078 /*-------------------------------------------------------------------------*\
00079  -  private                                                                -
00080 \*-------------------------------------------------------------------------*/
00081 
00082 void DepthClearBackground::initMethod (void)
00083 {
00084 }
00085 
00086 /***************************************************************************\
00087  *                           Instance methods                              *
00088 \***************************************************************************/
00089 
00090 DepthClearBackground::DepthClearBackground(void) :
00091     Inherited()
00092 {
00093 }
00094 
00095 DepthClearBackground::DepthClearBackground(const DepthClearBackground &source) :
00096     Inherited(source)
00097 {
00098 }
00099 
00100 DepthClearBackground::~DepthClearBackground(void)
00101 {
00102 }
00103 
00104 void DepthClearBackground::changed(BitVector whichField, UInt32 origin)
00105 {
00106     Inherited::changed(whichField, origin);
00107 }
00108 
00109 /*-------------------------- your_category---------------------------------*/
00110 
00111 void DepthClearBackground::clear(DrawActionBase *, Viewport *)
00112 {
00113     glClear(GL_DEPTH_BUFFER_BIT);
00114 }
00115 
00116 /*------------------------------- dump ----------------------------------*/
00117 
00118 void DepthClearBackground::dump(      UInt32    OSG_CHECK_ARG(uiIndent), 
00119                              const BitVector OSG_CHECK_ARG(bvFlags )) const
00120 {
00121     SLOG << "Dump DepthClearBackground NI" << std::endl;
00122 }
00123 
00124 
00125 
00126 /*------------------------------------------------------------------------*/
00127 /*                              cvs id's                                  */
00128 
00129 #ifdef OSG_SGI_CC
00130 #pragma set woff 1174
00131 #endif
00132 
00133 #ifdef OSG_LINUX_ICC
00134 #pragma warning( disable : 177 )
00135 #endif
00136 
00137 namespace
00138 {
00139     static Char8 cvsid_cpp       [] = "@(#)$Id: OSGDepthClearBackground.cpp,v 1.1 2005/01/18 00:31:17 dirk Exp $";
00140     static Char8 cvsid_hpp       [] = OSGDEPTHCLEARBACKGROUND_HEADER_CVSID;
00141     static Char8 cvsid_inl       [] = OSGDEPTHCLEARBACKGROUND_INLINE_CVSID;
00142 
00143     static Char8 cvsid_fields_hpp[] = OSGDEPTHCLEARBACKGROUNDFIELDS_HEADER_CVSID;
00144 }
00145 
00146 #ifdef __sgi
00147 #pragma reset woff 1174
00148 #endif
00149 
00150 

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