Ignore:
Timestamp:
05/17/08 01:15:07 (16 years ago)
Author:
mattausch
Message:

fixed bugs: pixel measurement for pgv now working, fixed renderpvs crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2683 r2685  
    581581        glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 
    582582 
    583 #if 0// DYNAMIC_OBJECTS_HACK 
     583#if DYNAMIC_OBJECTS_HACK 
    584584        // handle dynamic objects 
    585585        DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicObjects.end(); 
     
    819819  if (e->modifiers() & Qt::AltModifier)  
    820820        if (mCurrentDynamicObjectIdx >= 0) { 
    821           //      preprocessor->ScheduleUpdateDynamicObjects(); 
     821          // preprocessor->ScheduleUpdateDynamicObjects(); 
    822822        } 
    823823} 
     
    829829        float TURN_SENSITIVITY = 0.1f; 
    830830        float TILT_SENSITIVITY = 32.0 ; 
    831         float TURN_ANGLE= M_PI  /36.0 ; 
     831        float TURN_ANGLE= M_PI / 36.0 ; 
    832832 
    833833        int x = e->pos().x(); 
     
    843843                mViewPoint.y += (y-mousePoint.y)*MOVE_SENSITIVITY / 2.0; 
    844844                mViewPoint.x += (x-mousePoint.x)*MOVE_SENSITIVITY / 2.0; 
    845         }  
     845        } 
    846846#if DYNAMIC_OBJECTS_HACK 
    847847        else if (e->modifiers() & Qt::AltModifier) 
     
    883883                        } 
    884884 
    885 #if USE_TRANSFORMED_MESH_INSTANCE_HACK 
    886                         TransformedMeshInstance *tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
    887                         tmi->ApplyWorldTransform(tm); 
    888 #else 
    889885                        SceneGraphLeaf *l = 
    890886                          mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
    891887                        l->ApplyTransform(tm); 
    892888                         
    893 #endif 
    894889                        updateGL(); 
    895890                } 
Note: See TracChangeset for help on using the changeset viewer.