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 #ifndef _OSGCLIPPLANE_H_ 00041 #define _OSGCLIPPLANE_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 #include <OSGConfig.h> 00047 #include <OSGClipPlaneBase.h> 00048 #include <OSGNodePtr.h> 00049 #include <OSGAction.h> 00050 #include <OSGSClipPlaneChunk.h> 00051 00052 OSG_BEGIN_NAMESPACE 00053 00058 class OSG_SYSTEMLIB_DLLMAPPING ClipPlane : public ClipPlaneBase 00059 { 00060 /*========================== PUBLIC =================================*/ 00061 public: 00062 00063 /*---------------------------------------------------------------------*/ 00068 /*---------------------------------------------------------------------*/ 00072 SClipPlaneChunkPtr getChunk (void); 00073 virtual void makeChunk(void); 00074 00076 /*---------------------------------------------------------------------*/ 00080 virtual void changed(BitVector whichField, 00081 UInt32 origin ); 00082 00084 /*---------------------------------------------------------------------*/ 00088 virtual void dump( UInt32 uiIndent = 0, 00089 const BitVector bvFlags = 0) const; 00090 00092 /*========================= PROTECTED ===============================*/ 00093 protected: 00094 00095 typedef ClipPlaneBase Inherited; 00096 00097 SClipPlaneChunkPtr _pChunk; 00098 00099 /*---------------------------------------------------------------------*/ 00103 ClipPlane(void); 00104 ClipPlane(const ClipPlane &source); 00105 00107 /*---------------------------------------------------------------------*/ 00111 virtual ~ClipPlane(void); 00112 00114 /*---------------------------------------------------------------------*/ 00118 // Draw action: execute the OpenGL commands to set the light's parameters. 00119 //Action::ResultE drawEnter (Action *action); 00120 //Action::ResultE drawLeave (Action *action); 00121 00122 // generate draw tree 00123 Action::ResultE renderEnter(Action *action); 00124 Action::ResultE renderLeave(Action *action); 00125 00127 /*========================== PRIVATE ================================*/ 00128 private: 00129 00130 friend class FieldContainer; 00131 friend class ClipPlaneBase; 00132 00133 static void initMethod( void ); 00134 00136 void operator =(const ClipPlane &source); 00137 }; 00138 00139 OSG_END_NAMESPACE 00140 00141 #include <OSGClipPlaneBase.inl> 00142 #include <OSGClipPlane.inl> 00143 00144 #define OSGCLIPPLANE_HEADER_CVSID "@(#)$Id: OSGClipPlane.h,v 1.1 2007/04/26 15:22:01 a-m-z Exp $" 00145 00146 #endif /* _OSGCLIPPLANE_H_ */
1.5.5