Source
634
634
635
635
// Implements PlotMouseTool::handleMouseEvent().
636
636
virtual void handleMouseEvent(const PlotEvent& event);
637
637
638
638
// Sets the attributes for updating background
639
639
virtual void setUpdateBackground(bool on = true);
640
640
641
641
// Inquiry if update of background is active
642
642
virtual bool isUpdateBackgroundActive();
643
643
644
+
// Manipulate mark
645
+
void clearMark();
646
+
644
647
// Inquiry if it is marked
645
-
bool isMarkedForFlag();
646
-
bool isMarkedForUnflag();
648
+
bool isMarkedForFlag() const;
649
+
bool isMarkedForUnflag() const;
650
+
651
+
// Inquiry if bgcolor is changed
652
+
bool isBackgroundColorChanged() const;
647
653
648
654
protected:
649
655
// boolean flag for whether update of background is active
650
656
bool m_draw;
651
657
658
+
// boolean flag for background color
659
+
bool m_bgcolor_changed;
660
+
652
661
// boolean flag for whether canvas is marked for flag
653
662
PlotFlagAllTool::PPFlagType m_marked;
654
663
655
664
// keep default background setting
656
665
PlotAreaFillPtr m_defaultBackground;
657
666
658
667
};
659
668
INHERITANCE_POINTER(PlotFlagAllTool, PlotFlagAllToolPtr, PlotMouseTool,
660
669
PlotMouseToolPtr, PlotTool, PlotToolPtr)
661
670
909
918
void turnTracker(bool on);
910
919
bool trackerIsOn() const;
911
920
void turnTrackerDrawText(bool on);
912
921
bool trackerDrawsText() const;
913
922
// </group>
914
923
915
924
int getSelectedRectCount();
916
925
vector<PlotRegion> getSelectedRects();
917
926
void clearSelectedRects();
918
927
928
+
// methods related to per-panel flag mode
929
+
void clearMark();
919
930
bool isMarkedForFlag();
920
931
bool isMarkedForUnflag();
932
+
bool isBackgroundColorChanged();
921
933
922
934
// Provides access to the individual tools. Note: this should be avoided
923
935
// if possible.
924
936
// <group>
925
937
PlotSelectToolPtr selectTool();
926
938
PlotZoomToolPtr zoomTool();
927
939
PlotPanToolPtr panTool();
928
940
PlotFlagAllToolPtr flagAllTool();
929
941
PlotUnflagAllToolPtr unflagAllTool();
930
942
PlotTrackerToolPtr trackerTool();