OSGAlgorithmStage.h

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 #ifndef _OSGALGORITHMSTAGE_H_
00040 #define _OSGALGORITHMSTAGE_H_
00041 #ifdef __sgi
00042 #pragma once
00043 #endif
00044 
00045 #include <queue>
00046 
00047 #include "OSGAlgorithmStageBase.h"
00048 #include "OSGAction.h"
00049 #include "OSGAlgorithm.h"
00050 
00051 OSG_BEGIN_NAMESPACE
00052 
00053 class DrawEnv;
00054 
00057 
00058 class OSG_GROUP_DLLMAPPING AlgorithmStage : public AlgorithmStageBase
00059 {
00060     /*==========================  PUBLIC  =================================*/
00061 
00062   public:
00063 
00064     typedef AlgorithmStageBase                           Inherited;
00065 
00066     enum ProjectionMode
00067     {
00068         Ignore       = 0x0000,
00069         ZeroOne      = 0x0001,
00070         CenterOne    = 0x0002,
00071         ZeroSize     = 0x0003,
00072         CenterSize   = 0x0004,
00073         StoredMatrix = 0x0005
00074     };
00075 
00076     /*---------------------------------------------------------------------*/
00080     virtual void changed(ConstFieldMaskArg whichField,
00081                          UInt32            origin,
00082                          BitVector         detail);
00083 
00085     /*---------------------------------------------------------------------*/
00089     void execute(DrawEnv *pDrawEnv);
00090 
00092     /*---------------------------------------------------------------------*/
00096     virtual void dump(      UInt32    uiIndent = 0,
00097                       const BitVector bvFlags  = 0) const;
00098 
00100     /*=========================  PROTECTED  ===============================*/
00101 
00102   protected:
00103 
00104     /*---------------------------------------------------------------------*/
00108     AlgorithmStage(void);
00109     AlgorithmStage(const AlgorithmStage &source);
00110 
00112     /*---------------------------------------------------------------------*/
00116     virtual ~AlgorithmStage(void);
00117 
00119     /*---------------------------------------------------------------------*/
00123     static void initMethod(InitPhase ePhase);
00124 
00126     /*==========================  PRIVATE  ================================*/
00127 
00128   private:
00129 
00130     friend class FieldContainer;
00131     friend class AlgorithmStageBase;
00132 
00133     /*---------------------------------------------------------------------*/
00138     /*---------------------------------------------------------------------*/
00143     /*---------------------------------------------------------------------*/
00144 
00146     void operator =(const AlgorithmStage &source);
00147 };
00148 
00149 typedef AlgorithmStage              *AlgorithmStageP;
00150 
00151 OSG_END_NAMESPACE
00152 
00153 #include "OSGAlgorithmStageBase.inl"
00154 #include "OSGAlgorithmStage.inl"
00155 
00156 #endif /* _OSGALGORITHMSTAGE_H_ */