#include <Plot2d_ViewFrame.h>

Public Types | |
| enum | ObjectType { MainTitle, XTitle, YTitle, Y2Title, XAxis, YAxis, Y2Axis } |
Public Slots | |
| void | onViewPan () |
| void | onViewZoom () |
| void | onViewFitAll () |
| void | onViewFitArea () |
| void | onViewGlobalPan () |
| void | onSettings () |
| void | onFitData () |
| void | onChangeBackground () |
| void | onPanLeft () |
| void | onPanRight () |
| void | onPanUp () |
| void | onPanDown () |
| void | onZoomIn () |
| void | onZoomOut () |
Signals | |
| void | vpModeHorChanged () |
| void | vpModeVerChanged () |
| void | vpCurveChanged () |
| void | contextMenuRequested (QContextMenuEvent *) |
| void | legendClicked (QwtPlotItem *) |
Public Member Functions | |
| Plot2d_ViewFrame (QWidget *, const QString &="") | |
| virtual | ~Plot2d_ViewFrame () |
| QWidget * | getViewWidget () |
| virtual void | DisplayAll () |
| virtual void | EraseAll () |
| void | Repaint () |
| void | Display (const Plot2d_Prs *) |
| void | Erase (const Plot2d_Prs *, const bool=false) |
| Plot2d_Prs * | CreatePrs (const char *=0) |
| virtual bool | eventFilter (QObject *, QEvent *) |
| void | updateTitles () |
| void | setTitle (const QString &) |
| QString | getTitle () const |
| void | displayCurve (Plot2d_Curve *, bool=false) |
| void | displayCurves (const curveList &, bool=false) |
| void | eraseCurve (Plot2d_Curve *, bool=false) |
| void | eraseCurves (const curveList &, bool=false) |
| int | getCurves (curveList &) const |
| CurveDict | getCurves () const |
| void | updateCurve (Plot2d_Curve *, bool=false) |
| void | displayObject (Plot2d_Object *, bool=false) |
| void | displayObjects (const objectList &, bool=false) |
| void | eraseObject (Plot2d_Object *, bool=false) |
| void | eraseObjects (const objectList &, bool=false) |
| int | getObjects (objectList &) const |
| bool | isVisible (Plot2d_Object *) const |
| void | updateObject (Plot2d_Object *, bool=false) |
| void | updateLegend (const Plot2d_Prs *) |
| void | fitAll () |
| void | fitArea (const QRect &) |
| void | fitData (const int, const double, const double, const double, const double, const double=0, const double=0) |
| void | getFitRanges (double &, double &, double &, double &, double &, double &) |
| void | getFitRangeByCurves (double &, double &, double &, double &, double &, double &) |
| void | copyPreferences (Plot2d_ViewFrame *) |
| void | setCurveType (int, bool=true) |
| int | getCurveType () const |
| void | setCurveTitle (Plot2d_Curve *, const QString &) |
| void | setObjectTitle (Plot2d_Object *, const QString &) |
| void | showLegend (bool, bool=true) |
| void | setLegendPos (int) |
| int | getLegendPos () const |
| void | setMarkerSize (const int, bool=true) |
| int | getMarkerSize () const |
| void | setBackgroundColor (const QColor &) |
| QColor | backgroundColor () const |
| void | setXGrid (bool, const int, bool, const int, bool=true) |
| void | setYGrid (bool, const int, bool, const int, bool, const int, bool, const int, bool=true) |
| void | setTitle (bool, const QString &, ObjectType, bool=true) |
| QString | getTitle (ObjectType) const |
| void | setFont (const QFont &, ObjectType, bool=true) |
| void | setHorScaleMode (const int, bool=true) |
| int | getHorScaleMode () const |
| void | setVerScaleMode (const int, bool=true) |
| int | getVerScaleMode () const |
| bool | isModeHorLinear () |
| bool | isModeVerLinear () |
| bool | isLegendShow () const |
| bool | isXLogEnabled () const |
| bool | isYLogEnabled () const |
| void | setEnableAxis (QwtPlot::Axis, bool) |
| virtual bool | print (const QString &, const QString &) const |
| void | printPlot (QPainter *, const QRect &, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) const |
| Print Plot2d window. | |
| QString | getVisualParameters () |
| void | setVisualParameters (const QString &) |
| void | incrementalPan (const int, const int) |
| void | incrementalZoom (const int, const int) |
| QwtPlotCanvas * | getPlotCanvas () const |
| Plot2d_Curve * | getClosestCurve (QPoint, double &, int &) const |
| Plot2d_Object * | getPlotObject (QwtPlotItem *) const |
Protected Member Functions | |
| int | testOperation (const QMouseEvent &) |
| void | readPreferences () |
| void | writePreferences () |
| QString | getInfo (const QPoint &) |
| virtual void | wheelEvent (QWheelEvent *) |
| QwtPlotCurve * | getPlotCurve (Plot2d_Curve *) const |
| bool | hasPlotCurve (Plot2d_Curve *) const |
| void | setCurveType (QwtPlotCurve *, int) |
| QwtPlotItem * | getPlotObject (Plot2d_Object *) const |
| bool | hasPlotObject (Plot2d_Object *) const |
| virtual void | customEvent (QEvent *) |
| void | plotMousePressed (const QMouseEvent &) |
| bool | plotMouseMoved (const QMouseEvent &) |
| void | plotMouseReleased (const QMouseEvent &) |
Protected Attributes | |
| Plot2d_Plot2d * | myPlot |
| int | myOperation |
| QPoint | myPnt |
| int | myCurveType |
| bool | myShowLegend |
| int | myLegendPos |
| int | myMarkerSize |
| QColor | myBackground |
| QString | myTitle |
| QString | myXTitle |
| QString | myYTitle |
| QString | myY2Title |
| bool | myTitleEnabled |
| bool | myXTitleEnabled |
| bool | myYTitleEnabled |
| bool | myY2TitleEnabled |
| bool | myXGridMajorEnabled |
| bool | myYGridMajorEnabled |
| bool | myY2GridMajorEnabled |
| bool | myXGridMinorEnabled |
| bool | myYGridMinorEnabled |
| bool | myY2GridMinorEnabled |
| int | myXGridMaxMajor |
| int | myYGridMaxMajor |
| int | myY2GridMaxMajor |
| int | myXGridMaxMinor |
| int | myYGridMaxMinor |
| int | myY2GridMaxMinor |
| int | myXMode |
| int | myYMode |
| double | myXDistance |
| double | myYDistance |
| double | myYDistance2 |
| bool | mySecondY |
| ObjectDict | myObjects |
| bool | myIsDefTitle |
Private Types | |
| enum | { NoOpId, FitAreaId, ZoomId, PanId, GlPanId, DumpId, ModeXLinearId, ModeXLogarithmicId, ModeYLinearId, ModeYLogarithmicId, LegendId, CurvePointsId, CurveLinesId, CurveSplinesId } |
anonymous enum [private] |
| Plot2d_ViewFrame::Plot2d_ViewFrame | ( | QWidget * | parent, |
| const QString & | title = "" |
||
| ) |
Constructor
References legendClicked(), MainTitle, myBackground, myCurveType, myLegendPos, myPlot, mySecondY, myShowLegend, myTitle, myTitleEnabled, myXDistance, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitle, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2Title, myY2TitleEnabled, myYDistance, myYDistance2, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitle, myYTitleEnabled, readPreferences(), Plot2d_Plot2d.replot(), setBackgroundColor(), setCurveType(), setHorScaleMode(), setLegendPos(), setTitle(), setVerScaleMode(), setXGrid(), setYGrid(), showLegend(), XTitle, Y2Title, and YTitle.
| Plot2d_ViewFrame::~Plot2d_ViewFrame | ( | ) | [virtual] |
Destructor
| void Plot2d_ViewFrame::DisplayAll | ( | ) | [virtual] |
Actually this method just re-displays all curves which are presented in the viewer
References getObjects(), myPlot, Plot2d_Plot2d.replot(), updateObject(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::EraseAll | ( | ) | [virtual] |
Removes all curves from the view
References eraseObjects(), getObjects(), myObjects, myPlot, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::Repaint | ( | ) |
Redraws viewframe contents
References myPlot, and Plot2d_Plot2d.replot().
| void Plot2d_ViewFrame::Display | ( | const Plot2d_Prs * | prs | ) |
Display presentation
References displayObjects(), Plot2d_Prs.getObjects(), Plot2d_Prs.IsNull(), Plot2d_Prs.isSecondY(), myPlot, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, setEnableAxis(), setXGrid(), setYGrid(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::Erase | ( | const Plot2d_Prs * | prs, |
| const bool | = false |
||
| ) |
Erase presentation
References eraseObjects(), Plot2d_Prs.getObjects(), Plot2d_Prs.IsNull(), myPlot, and Plot2d_Plot2d.zoomer().
| Plot2d_Prs * Plot2d_ViewFrame::CreatePrs | ( | const char * | = 0 | ) |
Creates presentation of object Default implementation is empty
References myPlot, plotMouseMoved(), plotMousePressed(), and plotMouseReleased().
| void Plot2d_ViewFrame::updateTitles | ( | ) |
References test_big_table.aName, BRACKETIZE, Plot2d_Object.getHorTitle(), Plot2d_Object.getHorUnits(), Plot2d_Object.getTableTitle(), Plot2d_Object.getVerTitle(), Plot2d_Object.getVerUnits(), Plot2d_Object.getYAxis(), MainTitle, myIsDefTitle, myObjects, mySecondY, myXTitleEnabled, myY2TitleEnabled, myYTitleEnabled, setTitle(), XTitle, Y2Title, and YTitle.
| void Plot2d_ViewFrame::setTitle | ( | const QString & | title | ) |
Sets title
References MainTitle, myIsDefTitle, and myTitleEnabled.
| QString Plot2d_ViewFrame::getTitle | ( | ) | const |
Gets title
References myTitle.
| void Plot2d_ViewFrame::displayCurve | ( | Plot2d_Curve * | curve, |
| bool | update = false |
||
| ) |
Adds curve into view
References displayObject().
| void Plot2d_ViewFrame::displayCurves | ( | const curveList & | curves, |
| bool | update = false |
||
| ) |
Adds curves into view
References displayObjects().
| void Plot2d_ViewFrame::eraseCurve | ( | Plot2d_Curve * | curve, |
| bool | update = false |
||
| ) |
Erases curve
References eraseObject().
| void Plot2d_ViewFrame::eraseCurves | ( | const curveList & | curves, |
| bool | update = false |
||
| ) |
Erases curves
References eraseObjects().
| int Plot2d_ViewFrame::getCurves | ( | curveList & | curves | ) | const |
Gets lsit of displayed curves
References getCurves().
| void Plot2d_ViewFrame::updateCurve | ( | Plot2d_Curve * | curve, |
| bool | update = false |
||
| ) |
Updates curves attributes
References updateObject().
| void Plot2d_ViewFrame::displayObject | ( | Plot2d_Object * | object, |
| bool | update = false |
||
| ) |
Adds object into view
References Plot2d_Object.autoFill(), Plot2d_Object.getMinX(), Plot2d_Object.getMinY(), getPlotCurve(), Plot2d_Object.getYAxis(), hasPlotObject(), Plot2d_Object.isAutoAssign(), myCurveType, myMarkerSize, myObjects, myPlot, mySecondY, myXMode, myYMode, Plot2d_Plot2d.replot(), Plot2d_Object.rtti(), setCurveType(), setHorScaleMode(), Plot2d_Curve.setMarkerSize(), setVerScaleMode(), updateObject(), Plot2d_Curve.updatePlotItem(), updateTitles(), Plot2d_Plot2d.updateYAxisIdentifiers(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::displayObjects | ( | const objectList & | objects, |
| bool | update = false |
||
| ) |
Adds objects into view
References displayObject(), fitAll(), myPlot, and Plot2d_Plot2d.replot().
| void Plot2d_ViewFrame::eraseObject | ( | Plot2d_Object * | object, |
| bool | update = false |
||
| ) |
Erases object
References getPlotObject(), hasPlotObject(), myObjects, myPlot, Plot2d_Plot2d.replot(), updateTitles(), Plot2d_Plot2d.updateYAxisIdentifiers(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::eraseObjects | ( | const objectList & | objects, |
| bool | update = false |
||
| ) |
Erases objects
References eraseObject(), myPlot, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| int Plot2d_ViewFrame::getObjects | ( | objectList & | objects | ) | const |
Gets lsit of displayed curves
References myObjects.
| bool Plot2d_ViewFrame::isVisible | ( | Plot2d_Object * | object | ) | const |
Returns true if the curve is visible
References getPlotObject(), and hasPlotObject().
| void Plot2d_ViewFrame::updateObject | ( | Plot2d_Object * | object, |
| bool | update = false |
||
| ) |
Updates objects attributes
References getPlotObject(), hasPlotObject(), myPlot, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::updateLegend | ( | const Plot2d_Prs * | prs | ) |
update legend
References Plot2d_Object.getName(), getPlotObject(), Plot2d_Object.getVerTitle(), hasPlotObject(), Plot2d_Prs.IsNull(), and myObjects.
| void Plot2d_ViewFrame::fitAll | ( | ) |
Fits the view to see all data
References FITALL_EVENT, getFitRangeByCurves(), myPlot, mySecondY, Plot2d_Plot2d.polished(), Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::fitArea | ( | const QRect & | area | ) |
Fits the view to rectangle area (pixels)
References MIN_RECT_SIZE, myPlot, mySecondY, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::fitData | ( | const int | mode, |
| const double | xMin, | ||
| const double | xMax, | ||
| const double | yMin, | ||
| const double | yMax, | ||
| const double | y2Min = 0, |
||
| const double | y2Max = 0 |
||
| ) |
"Fit Data" command for TUI interface
References myPlot, mySecondY, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| void Plot2d_ViewFrame::getFitRanges | ( | double & | xMin, |
| double & | xMax, | ||
| double & | yMin, | ||
| double & | yMax, | ||
| double & | y2Min, | ||
| double & | y2Max | ||
| ) |
| void Plot2d_ViewFrame::getFitRangeByCurves | ( | double & | xMin, |
| double & | xMax, | ||
| double & | yMin, | ||
| double & | yMax, | ||
| double & | y2Min, | ||
| double & | y2Max | ||
| ) |
Gets current fit ranges by Curves
References isModeHorLinear(), isModeVerLinear(), and myObjects.
| void Plot2d_ViewFrame::copyPreferences | ( | Plot2d_ViewFrame * | vf | ) |
Copies preferences from other viewframe
| vf | - other view frame |
References myBackground, myCurveType, myLegendPos, myMarkerSize, mySecondY, myShowLegend, myTitle, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitle, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2Title, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitle, and myYTitleEnabled.
| void Plot2d_ViewFrame::setCurveType | ( | int | curveType, |
| bool | update = true |
||
| ) |
Sets curve type
References getCurves(), myCurveType, myPlot, Plot2d_Plot2d.replot(), and vpCurveChanged().
| int Plot2d_ViewFrame::getCurveType | ( | ) | const |
Gets curve type
References myCurveType.
| void Plot2d_ViewFrame::setCurveTitle | ( | Plot2d_Curve * | curve, |
| const QString & | title | ||
| ) |
| void Plot2d_ViewFrame::setObjectTitle | ( | Plot2d_Object * | object, |
| const QString & | title | ||
| ) |
Sets object title
| object | - object id |
| title | - new title |
References getPlotObject(), and hasPlotObject().
| void Plot2d_ViewFrame::showLegend | ( | bool | show, |
| bool | update = true |
||
| ) |
Shows/hides legend
References myLegendPos, myPlot, myShowLegend, Plot2d_Plot2d.replot(), and setLegendPos().
| void Plot2d_ViewFrame::setLegendPos | ( | int | pos | ) |
Sets legend position : 0 - left, 1 - right, 2 - top, 3 - bottom
References myLegendPos, and myPlot.
| int Plot2d_ViewFrame::getLegendPos | ( | ) | const |
Gets legend position : 0 - left, 1 - right, 2 - top, 3 - bottom
References myLegendPos.
| void Plot2d_ViewFrame::setMarkerSize | ( | const int | size, |
| bool | update = true |
||
| ) |
Sets new marker size
References getCurves(), myMarkerSize, myPlot, and Plot2d_Plot2d.replot().
| int Plot2d_ViewFrame::getMarkerSize | ( | ) | const |
Gets new marker size
References myMarkerSize.
| void Plot2d_ViewFrame::setBackgroundColor | ( | const QColor & | color | ) |
Sets background color
References Plot2d_Plot2d.getLegend(), myBackground, myPlot, and Repaint().
| QColor Plot2d_ViewFrame::backgroundColor | ( | ) | const |
Gets background color
References myBackground.
| void Plot2d_ViewFrame::setXGrid | ( | bool | xMajorEnabled, |
| const int | xMajorMax, | ||
| bool | xMinorEnabled, | ||
| const int | xMinorMax, | ||
| bool | update = true |
||
| ) |
Sets hor.axis grid parameters
References Plot2d_Plot2d.grid(), myPlot, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, and Plot2d_Plot2d.replot().
| void Plot2d_ViewFrame::setYGrid | ( | bool | yMajorEnabled, |
| const int | yMajorMax, | ||
| bool | yMinorEnabled, | ||
| const int | yMinorMax, | ||
| bool | y2MajorEnabled, | ||
| const int | y2MajorMax, | ||
| bool | y2MinorEnabled, | ||
| const int | y2MinorMax, | ||
| bool | update = true |
||
| ) |
Sets ver.axis grid parameters
References Plot2d_Plot2d.grid(), myPlot, mySecondY, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, and Plot2d_Plot2d.replot().
| void Plot2d_ViewFrame::setTitle | ( | bool | enabled, |
| const QString & | title, | ||
| ObjectType | type, | ||
| bool | update = true |
||
| ) |
Sets title for some axis
References MainTitle, myPlot, myTitle, myTitleEnabled, myXTitle, myXTitleEnabled, myY2Title, myY2TitleEnabled, myYTitle, myYTitleEnabled, Plot2d_Plot2d.replot(), XTitle, Y2Title, and YTitle.
| QString Plot2d_ViewFrame::getTitle | ( | ObjectType | type | ) | const |
| void Plot2d_ViewFrame::setFont | ( | const QFont & | font, |
| ObjectType | type, | ||
| bool | update = true |
||
| ) |
| void Plot2d_ViewFrame::setHorScaleMode | ( | const int | mode, |
| bool | update = true |
||
| ) |
Sets scale mode for horizontal axis: 0 - linear, 1 - logarithmic
References fitAll(), isXLogEnabled(), myPlot, myXMode, Plot2d_Plot2d.setLogScale(), vpModeHorChanged(), and SUIT_MessageBox.warning().
| int Plot2d_ViewFrame::getHorScaleMode | ( | ) | const |
Gets scale mode for horizontal axis: 0 - linear, 1 - logarithmic
References myXMode.
| void Plot2d_ViewFrame::setVerScaleMode | ( | const int | mode, |
| bool | update = true |
||
| ) |
Sets scale mode for vertical axis: 0 - linear, 1 - logarithmic
References fitAll(), isYLogEnabled(), myPlot, mySecondY, myYMode, Plot2d_Plot2d.setLogScale(), vpModeVerChanged(), and SUIT_MessageBox.warning().
| int Plot2d_ViewFrame::getVerScaleMode | ( | ) | const |
Gets scale mode for vertical axis: 0 - linear, 1 - logarithmic
References myYMode.
| bool Plot2d_ViewFrame::isModeHorLinear | ( | ) |
Return, scale mode for horizontal axis
References myXMode.
| bool Plot2d_ViewFrame::isModeVerLinear | ( | ) |
Return, scale mode for vertical axis
References myYMode.
| bool Plot2d_ViewFrame::isLegendShow | ( | ) | const |
Return True if legend is shown
References myShowLegend.
| bool Plot2d_ViewFrame::isXLogEnabled | ( | ) | const |
Precaution for logarithmic X scale
References myObjects.
| bool Plot2d_ViewFrame::isYLogEnabled | ( | ) | const |
Precaution for logarithmic Y scale
References myObjects.
| void Plot2d_ViewFrame::setEnableAxis | ( | QwtPlot::Axis | theAxis, |
| bool | isEnable | ||
| ) |
| bool Plot2d_ViewFrame::print | ( | const QString & | file, |
| const QString & | format | ||
| ) | const [virtual] |
Outputs content of viewframe to file
| file | - file name |
| format | - file format |
References myPlot.
| void Plot2d_ViewFrame::printPlot | ( | QPainter * | p, |
| const QRect & | rect, | ||
| const QwtPlotPrintFilter & | filter = QwtPlotPrintFilter() |
||
| ) | const |
References myPlot.
| QString Plot2d_ViewFrame::getVisualParameters | ( | ) |
References getFitRanges(), mySecondY, myXMode, and myYMode.
| void Plot2d_ViewFrame::setVisualParameters | ( | const QString & | parameters | ) |
Restores all visual parameters from string
References fitData(), myPlot, mySecondY, myXMode, myY2Title, myY2TitleEnabled, myYDistance2, myYMode, setHorScaleMode(), setTitle(), setVerScaleMode(), and Y2Title.
| void Plot2d_ViewFrame::incrementalPan | ( | const int | incrX, |
| const int | incrY | ||
| ) |
Incremental zooming operation
References myPlot, mySecondY, and Plot2d_Plot2d.replot().
| void Plot2d_ViewFrame::incrementalZoom | ( | const int | incrX, |
| const int | incrY | ||
| ) |
Incremental panning operation
References myPlot, mySecondY, and Plot2d_Plot2d.replot().
| QwtPlotCanvas * Plot2d_ViewFrame::getPlotCanvas | ( | ) | const |
References myPlot.
| Plot2d_Curve * Plot2d_ViewFrame::getClosestCurve | ( | QPoint | p, |
| double & | distance, | ||
| int & | index | ||
| ) | const |
return closest curve if it exist, else 0
References getCurves().
| Plot2d_Object * Plot2d_ViewFrame::getPlotObject | ( | QwtPlotItem * | plotItem | ) | const |
Return Plot2d_Object by the QwtPlotItem
References myObjects.
| int Plot2d_ViewFrame::testOperation | ( | const QMouseEvent & | me | ) | [protected] |
| void Plot2d_ViewFrame::readPreferences | ( | ) | [protected] |
Reads Plot2d view settings from the preferences
References QtxResourceMgr.booleanValue(), QtxResourceMgr.colorValue(), QtxResourceMgr.integerValue(), myBackground, myCurveType, myLegendPos, myMarkerSize, mySecondY, myShowLegend, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitleEnabled, SUIT_Session.resourceMgr(), SUIT_Session.session(), setCurveType(), setHorScaleMode(), and setVerScaleMode().
| void Plot2d_ViewFrame::writePreferences | ( | ) | [protected] |
Writes Plot2d view settings to the preferences
References myBackground, myCurveType, myLegendPos, myMarkerSize, mySecondY, myShowLegend, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitleEnabled, SUIT_Session.resourceMgr(), SUIT_Session.session(), and QtxResourceMgr.setValue().
| QString Plot2d_ViewFrame::getInfo | ( | const QPoint & | pnt | ) | [protected] |
| void Plot2d_ViewFrame::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Slot, called when user wheeling mouse
References myPlot, myPnt, mySecondY, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.zoomer().
| QwtPlotCurve * Plot2d_ViewFrame::getPlotCurve | ( | Plot2d_Curve * | curve | ) | const [protected] |
Returns qwt plot curve if it is existed in map of curves and 0 otherwise
References getPlotObject().
| bool Plot2d_ViewFrame::hasPlotCurve | ( | Plot2d_Curve * | curve | ) | const [protected] |
Returns true if qwt plot curve is existed in map of curves and false otherwise
References hasPlotObject().
| void Plot2d_ViewFrame::setCurveType | ( | QwtPlotCurve * | curve, |
| int | curveType | ||
| ) | [protected] |
Sets curve type
References myCurveType.
| QwtPlotItem * Plot2d_ViewFrame::getPlotObject | ( | Plot2d_Object * | object | ) | const [protected] |
Returns qwt plot curve if it is existed in map of curves and 0 otherwise
References myObjects.
| bool Plot2d_ViewFrame::hasPlotObject | ( | Plot2d_Object * | object | ) | const [protected] |
Returns true if qwt plot curve is existed in map of curves and false otherwise
References myObjects.
| void Plot2d_ViewFrame::onViewPan | ( | ) | [slot] |
View operations : Pan view
References myOperation, myPlot, and PanId.
| void Plot2d_ViewFrame::onViewZoom | ( | ) | [slot] |
View operations : Zoom view
References imageZoomCursor, myOperation, myPlot, and ZoomId.
| void Plot2d_ViewFrame::onViewFitAll | ( | ) | [slot] |
View operations : Fot All
References fitAll().
| void Plot2d_ViewFrame::onViewFitArea | ( | ) | [slot] |
View operations : Fit Area
References FitAreaId, myOperation, myPlot, and Plot2d_Plot2d.setPickerMousePattern().
| void Plot2d_ViewFrame::onViewGlobalPan | ( | ) | [slot] |
View operations : Global panning
References fitAll(), GlPanId, imageCrossCursor, myOperation, myPlot, mySecondY, myXDistance, myYDistance, myYDistance2, Plot2d_Plot2d.replot(), and Plot2d_Plot2d.setLogScale().
| void Plot2d_ViewFrame::onSettings | ( | ) | [slot] |
"Settings" toolbar action slot
References Plot2d_SetupViewDlg.getBackgroundColor(), Plot2d_SetupViewDlg.getCurveType(), Plot2d_SetupViewDlg.getLegendPos(), Plot2d_SetupViewDlg.getMainTitle(), Plot2d_SetupViewDlg.getMajorGrid(), Plot2d_SetupViewDlg.getMarkerSize(), Plot2d_SetupViewDlg.getMinorGrid(), Plot2d_SetupViewDlg.getXScaleMode(), Plot2d_SetupViewDlg.getXTitle(), Plot2d_SetupViewDlg.getY2Title(), Plot2d_SetupViewDlg.getYScaleMode(), Plot2d_SetupViewDlg.getYTitle(), Plot2d_SetupViewDlg.isLegendEnabled(), Plot2d_SetupViewDlg.isMainTitleEnabled(), Plot2d_SetupViewDlg.isSetAsDefault(), Plot2d_SetupViewDlg.isXTitleEnabled(), Plot2d_SetupViewDlg.isY2TitleEnabled(), Plot2d_SetupViewDlg.isYTitleEnabled(), MainTitle, myBackground, myCurveType, myIsDefTitle, myLegendPos, myMarkerSize, myPlot, mySecondY, myShowLegend, myTitle, myTitleEnabled, myXGridMajorEnabled, myXGridMinorEnabled, myXMode, myXTitle, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMinorEnabled, myY2Title, myY2TitleEnabled, myYGridMajorEnabled, myYGridMinorEnabled, myYMode, myYTitle, myYTitleEnabled, Plot2d_Plot2d.replot(), setBackgroundColor(), Plot2d_SetupViewDlg.setBackgroundColor(), setCurveType(), Plot2d_SetupViewDlg.setCurveType(), setHorScaleMode(), Plot2d_SetupViewDlg.setLegend(), setLegendPos(), Plot2d_SetupViewDlg.setMainTitle(), Plot2d_SetupViewDlg.setMajorGrid(), setMarkerSize(), Plot2d_SetupViewDlg.setMarkerSize(), Plot2d_SetupViewDlg.setMinorGrid(), Plot2d_SetupViewDlg.setScaleMode(), setTitle(), setVerScaleMode(), setXGrid(), Plot2d_SetupViewDlg.setXTitle(), Plot2d_SetupViewDlg.setY2Title(), setYGrid(), Plot2d_SetupViewDlg.setYTitle(), showLegend(), writePreferences(), XTitle, Y2Title, and YTitle.
| void Plot2d_ViewFrame::onFitData | ( | ) | [slot] |
"Fit Data" command slot
References fitData(), getFitRanges(), Plot2d_FitDataDlg.getRange(), mySecondY, and Plot2d_FitDataDlg.setRange().
| void Plot2d_ViewFrame::onChangeBackground | ( | ) | [slot] |
Change background color
References backgroundColor(), and setBackgroundColor().
| void Plot2d_ViewFrame::onPanLeft | ( | ) | [slot] |
Performs incremental panning to the left
References INCREMENT_FOR_OP, and incrementalPan().
| void Plot2d_ViewFrame::onPanRight | ( | ) | [slot] |
Performs incremental panning to the right
References INCREMENT_FOR_OP, and incrementalPan().
| void Plot2d_ViewFrame::onPanUp | ( | ) | [slot] |
Performs incremental panning to the top
References INCREMENT_FOR_OP, and incrementalPan().
| void Plot2d_ViewFrame::onPanDown | ( | ) | [slot] |
Performs incremental panning to the bottom
References INCREMENT_FOR_OP, and incrementalPan().
| void Plot2d_ViewFrame::onZoomIn | ( | ) | [slot] |
Performs incremental zooming in
References INCREMENT_FOR_OP, and incrementalZoom().
| void Plot2d_ViewFrame::onZoomOut | ( | ) | [slot] |
Performs incremental zooming out
References INCREMENT_FOR_OP, and incrementalZoom().
| void Plot2d_ViewFrame::customEvent | ( | QEvent * | ce | ) | [protected, virtual] |
Schedules a FitAll operation by putting it to the application's event queue. This ensures that other important events (show, resize, etc.) are processed first.
References fitAll(), and FITALL_EVENT.
| void Plot2d_ViewFrame::plotMousePressed | ( | const QMouseEvent & | me | ) | [protected] |
Slot, called when user presses mouse button
References getInfo(), GlPanId, myOperation, myPlot, myPnt, mySecondY, myXDistance, myYDistance, myYDistance2, NoOpId, Plot2d_ViewWindow.putInfo(), Plot2d_Plot2d.replot(), and testOperation().
| bool Plot2d_ViewFrame::plotMouseMoved | ( | const QMouseEvent & | me | ) | [protected] |
Slot, called when user moves mouse
References getInfo(), incrementalPan(), incrementalZoom(), myOperation, myPnt, NoOpId, PanId, Plot2d_ViewWindow.putInfo(), and ZoomId.
| void Plot2d_ViewFrame::plotMouseReleased | ( | const QMouseEvent & | me | ) | [protected] |
Slot, called when user releases mouse
References contextMenuRequested(), Plot2d_Plot2d.defaultPicker(), myOperation, myPlot, NoOpId, and Plot2d_ViewWindow.putInfo().
| void Plot2d_ViewFrame.vpModeHorChanged | ( | ) | [signal] |
| void Plot2d_ViewFrame.vpModeVerChanged | ( | ) | [signal] |
| void Plot2d_ViewFrame.vpCurveChanged | ( | ) | [signal] |
| void Plot2d_ViewFrame.contextMenuRequested | ( | QContextMenuEvent * | ) | [signal] |
| void Plot2d_ViewFrame.legendClicked | ( | QwtPlotItem * | ) | [signal] |
Plot2d_Plot2d* Plot2d_ViewFrame.myPlot [protected] |
int Plot2d_ViewFrame.myOperation [protected] |
QPoint Plot2d_ViewFrame.myPnt [protected] |
int Plot2d_ViewFrame.myCurveType [protected] |
bool Plot2d_ViewFrame.myShowLegend [protected] |
int Plot2d_ViewFrame.myLegendPos [protected] |
int Plot2d_ViewFrame.myMarkerSize [protected] |
QColor Plot2d_ViewFrame.myBackground [protected] |
QString Plot2d_ViewFrame.myTitle [protected] |
QString Plot2d_ViewFrame.myXTitle [protected] |
QString Plot2d_ViewFrame.myYTitle [protected] |
QString Plot2d_ViewFrame.myY2Title [protected] |
bool Plot2d_ViewFrame.myTitleEnabled [protected] |
bool Plot2d_ViewFrame.myXTitleEnabled [protected] |
bool Plot2d_ViewFrame.myYTitleEnabled [protected] |
bool Plot2d_ViewFrame.myY2TitleEnabled [protected] |
bool Plot2d_ViewFrame.myXGridMajorEnabled [protected] |
bool Plot2d_ViewFrame.myYGridMajorEnabled [protected] |
bool Plot2d_ViewFrame.myY2GridMajorEnabled [protected] |
bool Plot2d_ViewFrame.myXGridMinorEnabled [protected] |
bool Plot2d_ViewFrame.myYGridMinorEnabled [protected] |
bool Plot2d_ViewFrame.myY2GridMinorEnabled [protected] |
int Plot2d_ViewFrame.myXGridMaxMajor [protected] |
int Plot2d_ViewFrame.myYGridMaxMajor [protected] |
int Plot2d_ViewFrame.myY2GridMaxMajor [protected] |
int Plot2d_ViewFrame.myXGridMaxMinor [protected] |
int Plot2d_ViewFrame.myYGridMaxMinor [protected] |
int Plot2d_ViewFrame.myY2GridMaxMinor [protected] |
int Plot2d_ViewFrame.myXMode [protected] |
int Plot2d_ViewFrame.myYMode [protected] |
double Plot2d_ViewFrame.myXDistance [protected] |
double Plot2d_ViewFrame.myYDistance [protected] |
double Plot2d_ViewFrame.myYDistance2 [protected] |
bool Plot2d_ViewFrame.mySecondY [protected] |
ObjectDict Plot2d_ViewFrame.myObjects [protected] |
bool Plot2d_ViewFrame.myIsDefTitle [protected] |