Ignore:
Timestamp:
01/21/08 20:38:41 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2620 r2621  
    423423                RenderIntersectable(*dit); 
    424424#else 
    425                 RenderDynamicObject(*dit); 
     425                _RenderDynamicObject(*dit); 
    426426#endif 
    427427        } 
     
    679679                { 
    680680                        Matrix4x4 tm; 
    681                         TransformedMeshInstance *tmi; 
    682 #if USE_TRANSFORMED_MESH_INSTANCE_HACK 
    683681 
    684682                        switch (mTrafoType) 
     
    687685                                { 
    688686                                        const Vector3 transl(diffx, 0, diffy); 
    689                                         tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
     687                                         
    690688                                        tm = TranslationMatrix(transl); 
    691689                                } 
     
    696694                                        if (scalef < 0.9) scalef = 0.9f; 
    697695                                        else if (scalef > 1.1f) scalef = 1.1f; 
    698                                         tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
    699696                                        tm = ScaleMatrix(scalef, scalef, scalef); 
    700697                                } 
     
    702699                        case 2: 
    703700                                { 
    704                                         tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
    705701                                        tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 
    706702                                } 
     
    710706                        } 
    711707 
     708#if USE_TRANSFORMED_MESH_INSTANCE_HACK 
     709                        TransformedMeshInstance *tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
    712710                        tmi->ApplyWorldTransform(tm); 
     711#else 
     712                        SceneGraphLeaf *l = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 
     713                        l->ApplyTransform(tm); 
    713714#endif 
    714715                        updateGL(); 
     
    14571458        ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 
    14581459        // matt: temp hack 
    1459         //maxRcCost = 200.0f; 
     1460        maxRcCost = 200.0f; 
    14601461        //cout << "maxRcCost: " << maxRcCost << endl; 
    14611462        int i; 
     
    21192120        vbox->layout()->addWidget(button); 
    21202121        connect(button, SIGNAL(clicked()), SIGNAL(StoreStatistics())); 
     2122#endif 
     2123 
     2124#if DYNAMIC_OBJECTS_HACK 
    21212125 
    21222126        button = new QPushButton("Load object", vbox); 
     
    21242128        connect(button, SIGNAL(clicked()), SIGNAL(LoadObject())); 
    21252129#endif 
     2130 
    21262131        /*cb = new QCheckBox("Stats", vbox); 
    21272132        vbox->layout()->addWidget(cb); 
Note: See TracChangeset for help on using the changeset viewer.