00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000,2001 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 #ifndef _OSGDVRCLIPOBJECTS_H_ 00040 #define _OSGDVRCLIPOBJECTS_H_ 00041 #ifdef __sgi 00042 #pragma once 00043 #endif 00044 00045 #include <OSGConfig.h> 00046 00047 #include <OSGPlane.h> 00048 00049 #include <OSGDVRClipObjectsBase.h> 00050 00051 OSG_BEGIN_NAMESPACE 00052 00056 class OSG_SYSTEMLIB_DLLMAPPING DVRClipObjects : public DVRClipObjectsBase 00057 { 00058 private: 00059 00060 typedef DVRClipObjectsBase Inherited; 00061 00062 /*========================== PUBLIC =================================*/ 00063 00064 public: 00065 00066 /*---------------------------------------------------------------------*/ 00070 enum ClipMode 00071 { 00072 Off = 0, 00073 Intersection = 1, 00074 Difference = 2 00075 }; 00076 00077 /*---------------------------------------------------------------------*/ 00081 virtual void changed(BitVector whichField, 00082 UInt32 origin ); 00083 00085 /*---------------------------------------------------------------------*/ 00089 virtual void dump( UInt32 uiIndent = 0, 00090 const BitVector bvFlags = 0) const; 00091 00093 /*---------------------------------------------------------------------*/ 00097 00098 UInt32 count(void) const; 00099 00101 /*---------------------------------------------------------------------*/ 00105 00106 DVRClipGeometryPtr get (UInt32 i ); 00107 00109 void add (DVRClipGeometryPtr obj); 00110 00112 void remove(DVRClipGeometryPtr obj); 00113 00115 void remove(UInt32 i ); 00116 00118 /*---------------------------------------------------------------------*/ 00122 00123 void initialize(const Matrix &volumeToWorld, 00124 const Plane &referencePlane); 00125 00127 // deprecated -> remove 00128 void initialize(const Matrix &volumeToWorld); 00129 00131 // deprecated -> remove 00132 void setReferencePlane(const Plane &referencePlane); 00133 00135 /*========================= PROTECTED ===============================*/ 00136 00137 protected: 00138 00139 // Variables should all be in DVRClipObjectsBase. 00140 00141 /*---------------------------------------------------------------------*/ 00145 DVRClipObjects(void); 00146 DVRClipObjects(const DVRClipObjects &source); 00147 00149 /*---------------------------------------------------------------------*/ 00153 virtual ~DVRClipObjects(void); 00154 00157 /*========================== PRIVATE ================================*/ 00158 private: 00159 00160 friend class FieldContainer; 00161 friend class DVRClipObjectsBase; 00162 00163 static void initMethod(void); 00164 00165 // prohibit default functions (move to 'public' if you need one) 00166 void operator =(const DVRClipObjects &source); 00167 }; 00168 00169 typedef DVRClipObjects *DVRClipObjectsP; 00170 00171 OSG_END_NAMESPACE 00172 00173 #include <OSGDVRClipObjectsBase.inl> 00174 #include <OSGDVRClipObjects.inl> 00175 00176 #define OSGDVRCLIPOBJECTS_HEADER_CVSID "@(#)$Id: $" 00177 00178 #endif /* _OSGDVRCLIPOBJECTS_H_ */
1.4.3