Changeset 5701 for nanovis/branches/1.2


Ignore:
Timestamp:
Jun 16, 2015 12:37:36 PM (9 years ago)
Author:
ldelgass
Message:

Merge some refactoring changes from trunk

Location:
nanovis/branches/1.2
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.2/Flow.cpp

    r5588 r5701  
    8787    if (isDataLoaded()) {
    8888        BBox bbox;
    89         _volume->getWorldSpaceBounds(bbox.min, bbox.max);
     89        _volume->getBounds(bbox.min, bbox.max);
    9090        allBounds.extend(bbox);
    9191    }
     
    9595        if ((!onlyVisible || box->visible()) && getVolume() != NULL) {
    9696            BBox bbox;
    97             box->getWorldSpaceBounds(bbox.min, bbox.max,
    98                                      getVolume());
     97            box->getBounds(bbox.min, bbox.max, getVolume());
    9998            allBounds.extend(bbox);
    10099        }
  • nanovis/branches/1.2/FlowBox.cpp

    r4904 r5701  
    4545
    4646void
    47 FlowBox::getWorldSpaceBounds(Vector3f& bboxMin,
    48                              Vector3f& bboxMax,
    49                              const Volume *vol) const
     47FlowBox::getBounds(Vector3f& bboxMin,
     48                   Vector3f& bboxMax,
     49                   const Volume *vol) const
    5050{
    5151    bboxMin.set(FLT_MAX, FLT_MAX, FLT_MAX);
  • nanovis/branches/1.2/FlowBox.h

    r4893 r5701  
    6363    }
    6464
    65     void getWorldSpaceBounds(vrmath::Vector3f& min,
    66                              vrmath::Vector3f& max,
    67                              const Volume *volume) const;
     65    void getBounds(vrmath::Vector3f& min,
     66                   vrmath::Vector3f& max,
     67                   const Volume *volume) const;
    6868
    6969private:
  • nanovis/branches/1.2/HeightMap.cpp

    r5699 r5701  
    493493
    494494void
    495 HeightMap::getWorldSpaceBounds(Vector3f& bboxMin,
    496                                Vector3f& bboxMax) const
     495HeightMap::getBounds(Vector3f& bboxMin,
     496                     Vector3f& bboxMax) const
    497497{
    498498    bboxMin.set(xAxis.min(), yAxis.min(), zAxis.min());
  • nanovis/branches/1.2/HeightMap.h

    r5551 r5701  
    113113    }
    114114
    115     void getWorldSpaceBounds(vrmath::Vector3f& bboxMin, vrmath::Vector3f& bboxMax) const;
     115    void getBounds(vrmath::Vector3f& bboxMin, vrmath::Vector3f& bboxMax) const;
    116116
    117117    AxisRange xAxis, yAxis, zAxis, wAxis;
  • nanovis/branches/1.2/Volume.cpp

    r5588 r5701  
    101101}
    102102
    103 void Volume::getWorldSpaceBounds(Vector3f& bboxMin, Vector3f& bboxMax) const
     103void Volume::getBounds(Vector3f& bboxMin, Vector3f& bboxMax) const
    104104{
    105105    Vector3f scale = getPhysicalScaling();
  • nanovis/branches/1.2/Volume.h

    r5588 r5701  
    316316    }
    317317
    318     void getWorldSpaceBounds(vrmath::Vector3f& bboxMin,
    319                              vrmath::Vector3f& bboxMax) const;
     318    void getBounds(vrmath::Vector3f& bboxMin,
     319                   vrmath::Vector3f& bboxMax) const;
    320320 
    321321    double sampleDistanceX() const
  • nanovis/branches/1.2/VolumeRenderer.h

    r4889 r5701  
    6565    void deactivateVolumeShader();
    6666
    67     void drawBoundingBox(float x0, float y0, float z0,
    68                          float x1, float y1, float z1,
    69                          float r, float g, float b, float line_width);
     67    static void drawBoundingBox(float x0, float y0, float z0,
     68                                float x1, float y1, float z1,
     69                                float r, float g, float b, float line_width);
    7070
    71     void getEyeSpaceBounds(const vrmath::Matrix4x4d& mv,
    72                            double& xMin, double& xMax,
    73                            double& yMin, double& yMax,
    74                            double& zNear, double& zFar);
     71    static void getEyeSpaceBounds(const vrmath::Matrix4x4d& mv,
     72                                  double& xMin, double& xMax,
     73                                  double& yMin, double& yMax,
     74                                  double& zNear, double& zFar);
    7575
    7676    VolumeInterpolator *_volumeInterpolator;
  • nanovis/branches/1.2/nanovis.cpp

    r5698 r5701  
    749749
    750750        BBox bbox;
    751         volume->getWorldSpaceBounds(bbox.min, bbox.max);
     751        volume->getBounds(bbox.min, bbox.max);
    752752        sceneBounds.extend(bbox);
    753753    }
     
    761761
    762762        BBox bbox;
    763         heightMap->getWorldSpaceBounds(bbox.min, bbox.max);
     763        heightMap->getBounds(bbox.min, bbox.max);
    764764        sceneBounds.extend(bbox);
    765765    }
     
    10131013
    10141014    // Now render things in the scene
     1015
    10151016    orientationIndicator->setPosition(sceneBounds.getCenter());
    10161017    orientationIndicator->setScale(sceneBounds.getSize());
Note: See TracChangeset for help on using the changeset viewer.