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 #ifndef _OSGTRANSFORM_H_ 00040 #define _OSGTRANSFORM_H_ 00041 #ifdef __sgi 00042 #pragma once 00043 #endif 00044 00045 #include <OSGConfig.h> 00046 00047 #include <OSGAction.h> 00048 #include <OSGTransformBase.h> 00049 00050 #include <OSGActorBase.h> 00051 00052 OSG_BEGIN_NAMESPACE 00053 00058 class OSG_SYSTEMLIB_DLLMAPPING Transform : public TransformBase 00059 { 00060 /*========================== PUBLIC =================================*/ 00061 public: 00062 00063 /*---------------------------------------------------------------------*/ 00067 virtual void changed(BitVector whichField, 00068 UInt32 origin ); 00069 00071 /*---------------------------------------------------------------------*/ 00075 virtual void accumulateMatrix(Matrix &result); 00076 00077 void adjustVolume (Volume &volume); 00078 00080 /*---------------------------------------------------------------------*/ 00084 virtual void dump( UInt32 uiIndent = 0, 00085 const BitVector bvFlags = 0) const; 00086 00088 /*========================= PROTECTED ===============================*/ 00089 protected: 00090 00091 typedef TransformBase Inherited; 00092 00093 /*---------------------------------------------------------------------*/ 00097 Transform(void); 00098 Transform(const Transform &source); 00099 00101 /*---------------------------------------------------------------------*/ 00105 virtual ~Transform(void); 00106 00108 /*---------------------------------------------------------------------*/ 00112 Action::ResultE drawEnter (Action *action); 00113 Action::ResultE drawLeave (Action *action); 00114 00115 Action::ResultE intersectEnter(Action *action); 00116 Action::ResultE intersectLeave(Action *action); 00117 00118 NewActionTypes::ResultE intersectActorEnter(ActorBase::FunctorArgumentType &funcArg); 00119 NewActionTypes::ResultE intersectActorLeave(ActorBase::FunctorArgumentType &funcArg); 00120 00121 Action::ResultE renderEnter (Action *action); 00122 Action::ResultE renderLeave (Action *action); 00123 00125 /*========================== PRIVATE ================================*/ 00126 private: 00127 00128 friend class FieldContainer; 00129 friend class TransformBase; 00130 00131 /*---------------------------------------------------------------------*/ 00135 static void initMethod(void); 00136 00138 /*---------------------------------------------------------------------*/ 00139 00141 void operator =(const Transform &source); 00142 }; 00143 00144 OSG_END_NAMESPACE 00145 00146 #include <OSGTransformBase.inl> 00147 #include <OSGTransform.inl> 00148 00149 #define OSGTRANSFORM_HEADER_CVSID "@(#)$Id: $" 00150 00151 #endif /* _OSGTRANSFORM_H_ */
1.5.5