class HYDROData_Bathymetry;
class AIS_ColorScale;
class HYDROGUI_OCCDisplayer;
+class OCCViewer_ViewWindow;
class HYDROGUI_ShapeBathymetry : public HYDROGUI_Shape
{
void GetRange( double& theMin, double& theMax ) const;
void UpdateWithColorScale( const Handle(AIS_ColorScale)& );
+ // Re-scale by visible points
+ void RescaleByVisible( OCCViewer_ViewWindow* );
+ // Re-scale by selected points
+ void RescaleBySelection();
+ // Custom (user) re-scale
+ void Rescale( double theMin, double theMax );
+ // Default re-scale (by all points)
+ void RescaleDefault();
+
+ void TextLabels( bool isOn, bool isUpdateCurrentViewer=true );
+
virtual void display( const bool theIsUpdateViewer = true );
virtual void erase( const bool theIsUpdateViewer = true );
virtual void setVisible( const bool theState,
const bool theIsUpdateViewer = true );
+
+ void Build();
+
protected:
virtual QList<Handle(AIS_InteractiveObject)> createShape() const;
virtual void displayShape( const bool theIsUpdateViewer );
void setToUpdateColorScale( bool isChanged );
+ void Rescale( const QVector<int>& theIndices, bool isForcedAll );
+
+ QVector<int> selected() const;
private:
HYDROGUI_OCCDisplayer* myDisplayer;
Handle(TColgp_HArray1OfPnt) myCoords;
Handle(Quantity_HArray1OfColor) myColors;
+
+ double myMin;
+ double myMax;
+ bool myRangeInitialized;
};
#endif