Changeset 4171 for trunk


Ignore:
Timestamp:
Feb 8, 2014 1:31:45 AM (10 years ago)
Author:
ldelgass
Message:

Use bounds of only visible objects when computing scene bounds for axis bounds/
range and 2D camera offset. This fixes a problem with contour/heightmap
sequences, where non-visible datasets can be in 3D mode while the visible
dataset is in 2D mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/Renderer.cpp

    r4141 r4171  
    509509            _axesAutoBounds[Y_AXIS] ||
    510510            _axesAutoBounds[Z_AXIS]) {
    511             collectBounds(newBounds, false);
     511            collectBounds(newBounds, true);
    512512        }
    513513    }
     
    744744    double bounds[6];
    745745    if (_cameraMode == IMAGE) {
    746         collectBounds(bounds, false);
     746        collectBounds(bounds, true);
    747747    } else
    748748        _cubeAxesActor->GetBounds(bounds);
    749749
    750750    double unscaledBounds[6];
    751     collectUnscaledBounds(unscaledBounds, false);
     751    collectUnscaledBounds(unscaledBounds, true);
    752752
    753753    if (_axesRangeMode[X_AXIS] == RANGE_AUTO) {
     
    42784278
    42794279    double bounds[6];
    4280     collectBounds(bounds, false);
     4280    collectBounds(bounds, true);
    42814281    bool twod = is2D(bounds, &_imgCameraPlane, &_imgCameraOffset);
    42824282    if (twod) {
     
    45064506{
    45074507    double bounds[6];
    4508     collectBounds(bounds, false);
     4508    collectBounds(bounds, true);
    45094509
    45104510    switch (axis) {
Note: See TracChangeset for help on using the changeset viewer.