Show
Ignore:
Timestamp:
10/24/07 19:30:30 (1 year ago)
Author:
cneumann
Message:

fixed: FieldBundle? templates, pointers and fields updated

lots of compile errors - some remain

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork/Source/Contrib/Manipulators/OSGManipulatorBase.h

    r979 r988  
    9393class OSG_CONTRIBGUI_DLLMAPPING ManipulatorBase : public Transform 
    9494{ 
     95    /*==========================  PUBLIC  =================================*/ 
    9596  public: 
    96  
     97    /*---------------------------------------------------------------------*/ 
     98    /*! \name Public Types                                                 */ 
     99    /*! \{                                                                 */ 
     100     
    97101    typedef Transform Inherited; 
    98102    typedef Transform ParentContainer; 
     
    100104    typedef Inherited::TypeObject TypeObject; 
    101105    typedef TypeObject::InitPhase InitPhase; 
    102  
    103     OSG_GEN_INTERNALPTR(Manipulator); 
    104  
    105     /*==========================  PUBLIC  =================================*/ 
    106   public: 
     106    
     107    typedef Manipulator       *       ObjPtr;  
     108    typedef Manipulator       * const ObjPtrConst; 
     109    typedef Manipulator const *       ObjConstPtr; 
     110    typedef Manipulator const * const ObjConstPtrConst; 
     111     
     112    typedef Manipulator       *       ObjPtrArg; 
     113    typedef Manipulator       * const ObjPtrConstArg; 
     114    typedef Manipulator const *       ObjConstPtrArg; 
     115 
     116    typedef InternalRefCountPtrBuilder<Manipulator>::Ptr ObjInternalRefPtr; 
     117    typedef WeakRefCountPtrBuilder    <Manipulator>::Ptr ObjWeakRefPtr; 
     118    typedef MTRefCountPtrBuilder      <Manipulator>::Ptr ObjMTRefPtr; 
     119    typedef RefCountPtrBuilder        <Manipulator>::Ptr ObjRefPtr; 
     120    typedef ParentPtrBuilder          <Manipulator>::Ptr ObjParentPtr; 
     121     
     122    typedef SFNodeInternalRefPtr   TargetFieldType; 
     123    typedef SFNodeInternalRefPtr   ActiveSubHandleFieldType; 
     124    typedef SFPnt2f                LastMousePosFieldType; 
     125    typedef SFViewportInternalRefPtr ViewportFieldType; 
     126    typedef SFBool                 ActiveFieldType; 
     127    typedef SFVec3f                LengthFieldType; 
     128    typedef SFNodeInternalRefPtr   HandleXNodeFieldType; 
     129    typedef SFNodeInternalRefPtr   HandleYNodeFieldType; 
     130    typedef SFNodeInternalRefPtr   HandleZNodeFieldType; 
     131    typedef SFNodeInternalRefPtr   TransXNodeFieldType; 
     132    typedef SFNodeInternalRefPtr   TransYNodeFieldType; 
     133    typedef SFNodeInternalRefPtr   TransZNodeFieldType; 
     134    typedef SFMaterialInternalRefPtr MaterialXFieldType; 
     135    typedef SFMaterialInternalRefPtr MaterialYFieldType; 
     136    typedef SFMaterialInternalRefPtr MaterialZFieldType; 
     137    typedef SFNodeInternalRefPtr   AxisLinesNFieldType; 
     138     
     139    /*! \}                                                                 */ 
     140    /*---------------------------------------------------------------------*/ 
     141    /*! \name Constants                                                    */ 
     142    /*! \{                                                                 */ 
    107143 
    108144    enum 
     
    162198        (TypeTraits<BitVector>::One << NextFieldId); 
    163199         
    164     typedef SFNodeInternalRefPtr   TargetFieldType; 
    165     typedef SFNodeInternalRefPtr   ActiveSubHandleFieldType; 
    166     typedef SFPnt2f                LastMousePosFieldType; 
    167     typedef SFViewportInternalRefPtr ViewportFieldType; 
    168     typedef SFBool                 ActiveFieldType; 
    169     typedef SFVec3f                LengthFieldType; 
    170     typedef SFNodeInternalRefPtr   HandleXNodeFieldType; 
    171     typedef SFNodeInternalRefPtr   HandleYNodeFieldType; 
    172     typedef SFNodeInternalRefPtr   HandleZNodeFieldType; 
    173     typedef SFNodeInternalRefPtr   TransXNodeFieldType; 
    174     typedef SFNodeInternalRefPtr   TransYNodeFieldType; 
    175     typedef SFNodeInternalRefPtr   TransZNodeFieldType; 
    176     typedef SFMaterialInternalRefPtr MaterialXFieldType; 
    177     typedef SFMaterialInternalRefPtr MaterialYFieldType; 
    178     typedef SFMaterialInternalRefPtr MaterialZFieldType; 
    179     typedef SFNodeInternalRefPtr   AxisLinesNFieldType; 
    180          
    181  
     200    /*! \}                                                                 */ 
    182201    /*---------------------------------------------------------------------*/ 
    183202    /*! \name Class Get                                                    */ 
     
    193212    /*! \{                                                                 */ 
    194213 
    195     virtual       FieldContainerType &getType         (void); 
    196     virtual const FieldContainerType &getType         (void) const; 
    197  
    198     virtual       UInt32              getContainerSize(void) const; 
     214    virtual FieldContainerType      &getType         (void); 
     215    virtual FieldContainerType const &getType         (void) const; 
     216 
     217    virtual UInt32                    getContainerSize(void) const; 
    199218 
    200219    /*! \}                                                                 */ 
     
    410429 
    411430    ManipulatorBase(void); 
    412     ManipulatorBase(const ManipulatorBase &source); 
     431    ManipulatorBase(ManipulatorBase const &source); 
    413432 
    414433    /*! \}                                                                 */ 
     
    424443    /*! \{                                                                 */ 
    425444 
    426     void onCreate(const Manipulator *source = NULL); 
     445    void onCreate(Manipulator const *source = NULL); 
    427446 
    428447    /*! \}                                                                 */ 
     
    524543typedef ManipulatorBase *ManipulatorBaseP; 
    525544 
    526 typedef RefCountPtrBuilder<Manipulator>::Ptr         ManipulatorRefPtr; 
    527 typedef MTRefCountPtrBuilder<Manipulator>::Ptr       ManipulatorMTRefPtr; 
    528 typedef WeakRefCountPtrBuilder<Manipulator>::Ptr     ManipulatorWeakRefPtr; 
    529 typedef InternalRefCountPtrBuilder<Manipulator>::Ptr ManipulatorInternalRefPtr; 
    530  
    531 typedef ParentPtrBuilder<Manipulator>::Ptr           ManipulatorParentPtr; 
     545typedef ManipulatorBase::ObjRefPtr         ManipulatorRefPtr; 
     546typedef ManipulatorBase::ObjMTRefPtr       ManipulatorMTRefPtr; 
     547typedef ManipulatorBase::ObjWeakRefPtr     ManipulatorWeakRefPtr; 
     548typedef ManipulatorBase::ObjInternalRefPtr ManipulatorInternalRefPtr; 
     549typedef ManipulatorBase::ObjParentPtr      ManipulatorParentPtr; 
    532550 
    533551typedef boost::mpl::if_<