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

OSGMultiDisplayWindowBase.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 /*****************************************************************************\
00040  *****************************************************************************
00041  **                                                                         **
00042  **                  This file is automatically generated.                  **
00043  **                                                                         **
00044  **          Any changes made to this file WILL be lost when it is          **
00045  **           regenerated, which can become necessary at any time.          **
00046  **                                                                         **
00047  **     Do not change this file, changes should be done in the derived      **
00048  **     class MultiDisplayWindow
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #ifndef _OSGMULTIDISPLAYWINDOWBASE_H_
00055 #define _OSGMULTIDISPLAYWINDOWBASE_H_
00056 #ifdef __sgi
00057 #pragma once
00058 #endif
00059 
00060 
00061 #include <OSGConfig.h>
00062 #include <OSGSystemDef.h>
00063 
00064 #include <OSGBaseTypes.h>
00065 #include <OSGRefPtr.h>
00066 #include <OSGCoredNodePtr.h>
00067 
00068 #include <OSGClusterWindow.h> // Parent
00069 
00070 #include <OSGUInt32Fields.h> // HServers type
00071 #include <OSGUInt32Fields.h> // VServers type
00072 #include <OSGBoolFields.h> // ManageClientViewports type
00073 #include <OSGInt32Fields.h> // XOverlap type
00074 #include <OSGInt32Fields.h> // YOverlap type
00075 
00076 #include <OSGMultiDisplayWindowFields.h>
00077 
00078 OSG_BEGIN_NAMESPACE
00079 
00080 class MultiDisplayWindow;
00081 class BinaryDataHandler;
00082 
00084 
00085 class OSG_SYSTEMLIB_DLLMAPPING MultiDisplayWindowBase : public ClusterWindow
00086 {
00087   private:
00088 
00089     typedef ClusterWindow    Inherited;
00090 
00091     /*==========================  PUBLIC  =================================*/
00092   public:
00093 
00094     typedef MultiDisplayWindowPtr  Ptr;
00095 
00096     enum
00097     {
00098         HServersFieldId              = Inherited::NextFieldId,
00099         VServersFieldId              = HServersFieldId              + 1,
00100         ManageClientViewportsFieldId = VServersFieldId              + 1,
00101         XOverlapFieldId              = ManageClientViewportsFieldId + 1,
00102         YOverlapFieldId              = XOverlapFieldId              + 1,
00103         NextFieldId                  = YOverlapFieldId              + 1
00104     };
00105 
00106     static const OSG::BitVector HServersFieldMask;
00107     static const OSG::BitVector VServersFieldMask;
00108     static const OSG::BitVector ManageClientViewportsFieldMask;
00109     static const OSG::BitVector XOverlapFieldMask;
00110     static const OSG::BitVector YOverlapFieldMask;
00111 
00112 
00113     static const OSG::BitVector MTInfluenceMask;
00114 
00115     /*---------------------------------------------------------------------*/
00119     static        FieldContainerType &getClassType    (void); 
00120     static        UInt32              getClassTypeId  (void); 
00121 
00123     /*---------------------------------------------------------------------*/
00127     virtual       FieldContainerType &getType  (void); 
00128     virtual const FieldContainerType &getType  (void) const; 
00129 
00130     virtual       UInt32              getContainerSize(void) const;
00131 
00133     /*---------------------------------------------------------------------*/
00137            SFUInt32            *getSFHServers       (void);
00138            SFUInt32            *getSFVServers       (void);
00139            SFBool              *getSFManageClientViewports(void);
00140            SFInt32             *getSFXOverlap       (void);
00141            SFInt32             *getSFYOverlap       (void);
00142 
00143            UInt32              &getHServers       (void);
00144      const UInt32              &getHServers       (void) const;
00145            UInt32              &getVServers       (void);
00146      const UInt32              &getVServers       (void) const;
00147            bool                &getManageClientViewports(void);
00148      const bool                &getManageClientViewports(void) const;
00149            Int32               &getXOverlap       (void);
00150      const Int32               &getXOverlap       (void) const;
00151            Int32               &getYOverlap       (void);
00152      const Int32               &getYOverlap       (void) const;
00153 
00155     /*---------------------------------------------------------------------*/
00159      void setHServers       ( const UInt32 &value );
00160      void setVServers       ( const UInt32 &value );
00161      void setManageClientViewports( const bool &value );
00162      void setXOverlap       ( const Int32 &value );
00163      void setYOverlap       ( const Int32 &value );
00164 
00166     /*---------------------------------------------------------------------*/
00171     /*---------------------------------------------------------------------*/
00175     virtual UInt32 getBinSize (const BitVector         &whichField);
00176     virtual void   copyToBin  (      BinaryDataHandler &pMem,
00177                                const BitVector         &whichField);
00178     virtual void   copyFromBin(      BinaryDataHandler &pMem,
00179                                const BitVector         &whichField);
00180 
00181 
00183     /*---------------------------------------------------------------------*/
00187     static  MultiDisplayWindowPtr      create          (void); 
00188     static  MultiDisplayWindowPtr      createEmpty     (void); 
00189 
00192     /*---------------------------------------------------------------------*/
00196     virtual FieldContainerPtr     shallowCopy     (void) const; 
00197 
00199     /*=========================  PROTECTED  ===============================*/
00200   protected:
00201 
00202     /*---------------------------------------------------------------------*/
00206     SFUInt32            _sfHServers;
00207     SFUInt32            _sfVServers;
00208     SFBool              _sfManageClientViewports;
00209     SFInt32             _sfXOverlap;
00210     SFInt32             _sfYOverlap;
00211 
00213     /*---------------------------------------------------------------------*/
00217     MultiDisplayWindowBase(void);
00218     MultiDisplayWindowBase(const MultiDisplayWindowBase &source);
00219 
00221     /*---------------------------------------------------------------------*/
00225     virtual ~MultiDisplayWindowBase(void); 
00226 
00228     /*---------------------------------------------------------------------*/
00232 #if !defined(OSG_FIXED_MFIELDSYNC)
00233     void executeSyncImpl(      MultiDisplayWindowBase *pOther,
00234                          const BitVector         &whichField);
00235 
00236     virtual void   executeSync(      FieldContainer    &other,
00237                                const BitVector         &whichField);
00238 #else
00239     void executeSyncImpl(      MultiDisplayWindowBase *pOther,
00240                          const BitVector         &whichField,
00241                          const SyncInfo          &sInfo     );
00242 
00243     virtual void   executeSync(      FieldContainer    &other,
00244                                const BitVector         &whichField,
00245                                const SyncInfo          &sInfo);
00246 
00247     virtual void execBeginEdit     (const BitVector &whichField,
00248                                           UInt32     uiAspect,
00249                                           UInt32     uiContainerSize);
00250 
00251             void execBeginEditImpl (const BitVector &whichField,
00252                                           UInt32     uiAspect,
00253                                           UInt32     uiContainerSize);
00254 
00255     virtual void onDestroyAspect(UInt32 uiId, UInt32 uiAspect);
00256 #endif
00257 
00259     /*==========================  PRIVATE  ================================*/
00260   private:
00261 
00262     friend class FieldContainer;
00263 
00264     static FieldDescription   *_desc[];
00265     static FieldContainerType  _type;
00266 
00267 
00268     // prohibit default functions (move to 'public' if you need one)
00269     void operator =(const MultiDisplayWindowBase &source);
00270 };
00271 
00272 //---------------------------------------------------------------------------
00273 //   Exported Types
00274 //---------------------------------------------------------------------------
00275 
00276 
00277 typedef MultiDisplayWindowBase *MultiDisplayWindowBaseP;
00278 
00279 typedef osgIF<MultiDisplayWindowBase::isNodeCore,
00280               CoredNodePtr<MultiDisplayWindow>,
00281               FieldContainer::attempt_to_create_CoredNodePtr_on_non_NodeCore_FC
00282               >::_IRet MultiDisplayWindowNodePtr;
00283 
00284 typedef RefPtr<MultiDisplayWindowPtr> MultiDisplayWindowRefPtr;
00285 
00286 OSG_END_NAMESPACE
00287 
00288 #define OSGMULTIDISPLAYWINDOWBASE_HEADER_CVSID "@(#)$Id: FCBaseTemplate_h.h,v 1.38 2005/07/08 06:37:35 vossg Exp $"
00289 
00290 #endif /* _OSGMULTIDISPLAYWINDOWBASE_H_ */

Generated on Thu Aug 25 04:07:51 2005 for OpenSG by  doxygen 1.4.3