(#396) Reset the zoom to show the entire depth range only when the first curve is added

Additional additions or changed parameters (by the user) will not change
the visible depth settings. Did some code cleanup.
This commit is contained in:
Pål Hagen
2015-09-04 14:14:56 +02:00
parent 94095a16f0
commit a1d95f2b8a
4 changed files with 56 additions and 32 deletions

View File

@@ -49,10 +49,11 @@ public:
void zoomDepth(double zoomFactor);
void panDepth(double panFactor);
void setDepthRange(double minimumDepth, double maximumDepth);
void setVisibleDepthRange(double minimumDepth, double maximumDepth);
void updateAvailableDepthRange();
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
void availableDepthRange(double* minimumDepth, double* maximumDepth) const;
bool hasAvailableDepthRange() const;
void visibleDepthRange(double* minimumDepth, double* maximumDepth) const;
void updateAxisRanges();