Ignore:
Timestamp:
Jun 14, 2012, 9:34:49 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/distortionNG
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionManipulator.cpp

    r373 r379  
    256256                        if ( activeSetupMode == DELEGATED && _delegatedDistortionSetupStrategy.valid())
    257257                        {
    258                                 OSG_ALWAYS<<"Calling delegated class.."<<std::endl;
     258                                //OSG_ALWAYS<<"Calling delegated class.."<<std::endl;
    259259                                _delegatedDistortionSetupStrategy->delegateDistortionSetup(_distortionSet);
    260                                 // ToDo :: nach dem der distortioncontainer von der strategy aktualisiert wurde muss nun noch der container noch angewendet werden.
    261                                 OSG_ALWAYS<<"..done"<<std::endl;
     260                                if( _distortionSet->isDirty() )
     261                                {
     262                                        // todo: transfer matrixes into viewer camera.
     263                                }
     264                                //OSG_ALWAYS<<"..done"<<std::endl;
    262265                        }
    263266                        break;
  • experimental/distortionNG/DistortionSet.cpp

    r374 r379  
    2424DistortionSet::DistortionSet()
    2525{
     26        _dirty = false;
     27
    2628        _distortionMeshRows = 2;
    2729        _distortionMeshColumns = 2;
  • experimental/distortionNG/DistortionSet.h

    r374 r379  
    5454
    5555        // Working access
     56        bool isDirty(){return(_dirty);}
     57        void dirty(){_dirty=true;}
     58
    5659        osg::Image* getIntensityMap()  { return _intensityMap; }        // Also for manipulating the intensity map
    5760        bool& getShowIntensityMapOnlyAsRef()    { return _showIntesityMapMapOnly;}
     
    103106
    104107private:
     108        bool _dirty;
    105109        int _distortionMeshRows;
    106110        int _distortionMeshColumns;
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp

    r378 r379  
    261261        if (_distortionInitialized==false )
    262262        {
     263                _distortionInitialized=true;
     264                distortionSet->dirty();
    263265
    264266                // ******************** //
     
    292294                distortionSet->getIntensityMap()->dirty();
    293295
    294                 return;
    295296                // ******************************* //
    296297                // *** Frustum and View Offset *** //
     
    321322                distortionSet->setViewOffset(viewOffset);
    322323                distortionSet->setProjectionOffset(projectionOffset);
    323 
     324return;
    324325                // ******************************* //
    325326                // ******* Distortion Mesh ******* //
     
    383384                }
    384385
    385                 _distortionInitialized=true;
    386 
    387 
    388         }
    389 
    390 }
     386        }
     387
     388}
Note: See TracChangeset for help on using the changeset viewer.