Changeset 4793
- Timestamp:
- Nov 26, 2014 12:52:50 AM (9 years ago)
- Location:
- vtkvis/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/trunk/Renderer.cpp
r4649 r4793 80 80 _cameraMode(PERSPECTIVE), 81 81 _cameraAspect(ASPECT_NATIVE), 82 _computeOnlyVisibleBounds(true), 82 83 _imgCameraPlane(PLANE_XY), 83 84 _imgCameraOffset(0), … … 509 510 _axesAutoBounds[Y_AXIS] || 510 511 _axesAutoBounds[Z_AXIS]) { 511 collectBounds(newBounds, true);512 collectBounds(newBounds, _computeOnlyVisibleBounds); 512 513 } 513 514 } … … 744 745 double bounds[6]; 745 746 if (_cameraMode == IMAGE) { 746 collectBounds(bounds, true);747 collectBounds(bounds, _computeOnlyVisibleBounds); 747 748 } else 748 749 _cubeAxesActor->GetBounds(bounds); 749 750 750 751 double unscaledBounds[6]; 751 collectUnscaledBounds(unscaledBounds, true);752 collectUnscaledBounds(unscaledBounds, _computeOnlyVisibleBounds); 752 753 753 754 if (_axesRangeMode[X_AXIS] == RANGE_AUTO) { … … 2744 2745 //setViewAngle(_windowHeight); 2745 2746 //double bounds[6]; 2746 //collectBounds(bounds, false);2747 //collectBounds(bounds, _computeOnlyVisibleBounds); 2747 2748 //_renderer->ResetCamera(bounds); 2748 2749 if (_needsAxesReset) { … … 4278 4279 4279 4280 double bounds[6]; 4280 collectBounds(bounds, true);4281 collectBounds(bounds, _computeOnlyVisibleBounds); 4281 4282 bool twod = is2D(bounds, &_imgCameraPlane, &_imgCameraOffset); 4282 4283 if (twod) { … … 4506 4507 { 4507 4508 double bounds[6]; 4508 collectBounds(bounds, true);4509 collectBounds(bounds, _computeOnlyVisibleBounds); 4509 4510 4510 4511 switch (axis) { -
vtkvis/trunk/Renderer.h
r4090 r4793 1088 1088 CameraMode _cameraMode; 1089 1089 Aspect _cameraAspect; 1090 bool _computeOnlyVisibleBounds; 1090 1091 double _imgWorldOrigin[2]; 1091 1092 double _imgWorldDims[2];
Note: See TracChangeset
for help on using the changeset viewer.