#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 | onAnalyticalCurve () |
void | onFitData () |
void | onChangeBackground () |
void | onPanLeft () |
void | onPanRight () |
void | onPanUp () |
void | onPanDown () |
void | onZoomIn () |
void | onZoomOut () |
Signals | |
void | vpModeHorChanged () |
void | vpModeVerChanged () |
void | vpNormLModeChanged () |
void | vpNormRModeChanged () |
void | vpCurveChanged () |
void | contextMenuRequested (QContextMenuEvent *) |
void | clicked (const QVariant &, int) |
Protected Member Functions | |
int | testOperation (const QMouseEvent &) |
virtual void | readPreferences () |
virtual void | writePreferences () |
QString | getInfo (const QPoint &) |
virtual void | wheelEvent (QWheelEvent *) |
bool | hasPlotCurve (Plot2d_Curve *) const |
void | setCurveType (QwtPlotCurve *, int) |
bool | hasPlotObject (Plot2d_Object *) const |
QString | getXmlVisualParameters () |
bool | setXmlVisualParameters (const QString &) |
virtual void | customEvent (QEvent *) |
void | plotMousePressed (const QMouseEvent &) |
bool | plotMouseMoved (const QMouseEvent &) |
void | plotMouseReleased (const QMouseEvent &) |
Private Types | |
enum | { NoOpId, FitAreaId, ZoomId, PanId, GlPanId, DumpId, ModeXLinearId, ModeXLogarithmicId, ModeYLinearId, ModeYLogarithmicId, LegendId, CurvePointsId, CurveLinesId, CurveSplinesId } |
Private Attributes | |
QList< QwtPlotItem * > | myQwtPlotCurveList |
QList< QwtPlotCurve * > | myIntermittentSegmentList |
QList< Plot2d_Curve * > | myPlot2dCurveList |
|
private |
Constructor
References Init(), myLNormAlgo, myPlot, and myRNormAlgo.
|
virtual |
Destructor
|
virtual |
Implements Plot2d_CurveContainer.
References myAnalyticalCurves.
QColor Plot2d_ViewFrame::backgroundColor | ( | ) | const |
Gets background color
References myBackground.
|
signal |
|
signal |
void Plot2d_ViewFrame::copyPreferences | ( | Plot2d_ViewFrame * | vf | ) |
Copies preferences from other viewframe
vf | - other view frame |
References myBackground, myCurveType, myLegendFont, myLegendPos, myLegendSymbolType, myMarkerSize, mySecondY, mySelectedLegendFontColor, mySelectionColor, myShowLegend, myTitle, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitle, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2Title, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitle, and myYTitleEnabled.
Plot2d_Curve * Plot2d_ViewFrame::createPlot2dCurve | ( | QString & | title, |
QString & | unit, | ||
QList< double > & | xList, | ||
QList< double > & | yList, | ||
QList< QString > & | tooltipList, | ||
Plot2d::LineType | lineKind, | ||
int | lineWidth, | ||
QColor & | lineColor, | ||
QwtSymbol::Style | markerKind, | ||
Plot2d_QwtPlotPicker * | picker, | ||
bool | toDraw, | ||
bool | displayLegend = true |
||
) |
Create and display an y=f(x) curve of points Parameters : toDraw : true => Display the created curve Draw the points'markers and create associated tooltips
References Plot2d_Object::addPoint(), displayCurve(), getPlotObject(), myPlot, myPlot2dCurveList, Plot2d_Curve::setColor(), Plot2d_Curve::setLine(), Plot2d_Curve::setMarkerSize(), Plot2d_Curve::setMarkerStyle(), Plot2d_Object::setVerTitle(), and Plot2d_Object::setVerUnits().
Plot2d_Prs * Plot2d_ViewFrame::CreatePrs | ( | const char * | = 0 | ) |
Creates presentation of object Default implementation is empty
QwtPlotCurve * Plot2d_ViewFrame::createSegment | ( | double * | X, |
double * | Y, | ||
int | nbPoint, | ||
Qt::PenStyle | lineKind, | ||
int | lineWidth, | ||
QColor & | lineColor, | ||
QwtSymbol::Style | markerKind, | ||
bool | side = false |
||
) |
Create and display a segment with nbPoint=2 points
References myIntermittentSegmentList, myPlot, yLeft, and yRight.
|
protectedvirtual |
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::deselectAnalyticalCurves | ( | ) |
References myAnalyticalCurves, and Plot2d_AnalyticalCurve::setSelected().
void Plot2d_ViewFrame::deselectObjects | ( | ) |
References myObjects.
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(), yRight, and Plot2d_Plot2d::zoomer().
|
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::displayCurve | ( | Plot2d_Curve * | curve, |
bool | update = false |
||
) |
Adds curve into view
References displayObject(), and myQwtPlotCurveList.
Adds curves into view
References displayObjects().
QwtPlotItem * Plot2d_ViewFrame::displayObject | ( | Plot2d_Object * | object, |
bool | update = false |
||
) |
Adds object into view
References Plot2d_Object::autoFill(), Plot2d_Curve::getMarkerSize(), Plot2d_Object::getMinX(), Plot2d_Object::getMinY(), getPlotCurve(), Plot2d_Object::getYAxis(), hasPlotObject(), Plot2d_Object::isAutoAssign(), myCurveType, myMarkerSize, myObjects, myPlot, mySecondY, myXMode, myYMode, processFiltering(), Plot2d_Plot2d::replot(), Plot2d_Object::rtti(), setCurveType(), setHorScaleMode(), Plot2d_Curve::setMarkerSize(), setVerScaleMode(), updateObject(), updatePlotItem(), updateTitles(), Plot2d_Plot2d::updateYAxisIdentifiers(), yRight, 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().
QVector< QVector< QwtPlotCurve * > > Plot2d_ViewFrame::displayPlot2dCurveList | ( | const QList< QList< Plot2d_Curve * > > & | sysCoCurveList, |
bool | displayLegend, | ||
const QList< QList< bool > > & | sides | ||
) |
Display curves of the list of lists by systems and components
Draw points markers and create associated tooltips. Draw connection segments (intermittent line) between all the curves of a component.
QVector< QVector< QwtPlotCurve * > > Plot2d_ViewFrame::displayPlot2dCurveList | ( | const QList< Plot2d_Curve * > & | curveList, |
int | groupSize, | ||
bool | displayLegend, | ||
const QList< bool > & | sides | ||
) |
Display list of curves by group of consecutive curves.
Draw points markers and create associated tooltips Draw connection segments (intermittent line) between the curves
[in] | sides | sorted as in curveList. If true->right if false->left |
References createSegment(), displayCurve(), Plot2d_Curve::getColor(), Plot2d_Object::getData(), Plot2d_Curve::getLine(), Plot2d_Curve::getLineWidth(), Plot2d_Curve::getMarkerStyle(), getPlotObject(), Plot2d_Object::getVerTitle(), myPlot, Plot2d_Curve::setColor(), Plot2d_Curve::setLine(), Plot2d_Curve::setMarkerStyle(), showLegend(), yLeft, and yRight.
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().
|
virtual |
Removes all curves from the view
References eraseObjects(), getObjects(), myIntermittentSegmentList, myObjects, myPlot, myPlot2dCurveList, myQwtPlotCurveList, Plot2d_Plot2d::replot(), and Plot2d_Plot2d::zoomer().
void Plot2d_ViewFrame::eraseBasicObject | ( | QwtPlotItem * | object, |
bool | update = false |
||
) |
References myObjects, myPlot, Plot2d_Plot2d::replot(), updateTitles(), and Plot2d_Plot2d::updateYAxisIdentifiers().
void Plot2d_ViewFrame::eraseBasicObjects | ( | const QList< QwtPlotItem * > & | objects, |
bool | update = false |
||
) |
References eraseBasicObject(), myPlot, Plot2d_Plot2d::replot(), and Plot2d_Plot2d::zoomer().
void Plot2d_ViewFrame::eraseCurve | ( | Plot2d_Curve * | curve, |
bool | update = false |
||
) |
Erases curve
References eraseObject().
Erases curves
References eraseObjects().
void Plot2d_ViewFrame::eraseObject | ( | Plot2d_Object * | object, |
bool | update = false |
||
) |
Erases object
References eraseBasicObject(), getPlotObject(), hasPlotObject(), myPlot, 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().
References myPlot, plotMouseMoved(), plotMousePressed(), and plotMouseReleased().
void Plot2d_ViewFrame::fitAll | ( | ) |
Fits the view to see all data
References getFitRangeByCurves(), getFitRangeByMarkers(), myPlot, mySecondY, Plot2d_Plot2d::replot(), xBottom, yLeft, yRight, 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(), xBottom, yLeft, yRight, 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(), xBottom, yLeft, yRight, and Plot2d_Plot2d::zoomer().
Plot2d_AnalyticalCurve * Plot2d_ViewFrame::getAnalyticalCurve | ( | QwtPlotItem * | theItem | ) |
Get analytical curve by plot item.
References myAnalyticalCurves.
|
virtual |
Return list of the alalytical curves.
Implements Plot2d_CurveContainer.
References myAnalyticalCurves.
Plot2d_Curve * Plot2d_ViewFrame::getClosestCurve | ( | QPoint | p, |
double & | distance, | ||
int & | index | ||
) | const |
return closest curve if it exist, else 0
References getCurves().
int Plot2d_ViewFrame::getCurves | ( | curveList & | curves | ) | const |
Gets lsit of displayed curves
References getCurves().
int Plot2d_ViewFrame::getCurveType | ( | ) | const |
Gets curve type
References myCurveType.
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(), myObjects, and yRight.
void Plot2d_ViewFrame::getFitRangeByMarkers | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax, | ||
double & | y2Min, | ||
double & | y2Max | ||
) |
Gets current fit ranges by Markers All parameters are inout.
References Plot2d_Plot2d::getPicker(), myPlot, Plot2d_QwtPlotPicker::pMarkers, and yRight.
void Plot2d_ViewFrame::getFitRanges | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax, | ||
double & | y2Min, | ||
double & | y2Max | ||
) |
int Plot2d_ViewFrame::getHorScaleMode | ( | ) | const |
Gets scale mode for horizontal axis: 0 - linear, 1 - logarithmic
References myXMode.
|
protected |
QFont Plot2d_ViewFrame::getLegendFont | ( | ) | const |
Gets legend font
References myLegendFont.
QColor Plot2d_ViewFrame::getLegendFontColor | ( | ) | const |
Gets legend font color
References myLegendColor.
int Plot2d_ViewFrame::getLegendPos | ( | ) | const |
Gets legend position : 0 - left, 1 - right, 2 - top, 3 - bottom
References myLegendPos.
int Plot2d_ViewFrame::getLegendSymbolType | ( | ) | const |
Gets legend symbol type : 0 - marker on line, 1 - marker above line
References myLegendSymbolType.
int Plot2d_ViewFrame::getMarkerSize | ( | ) | const |
Gets new marker size
References myMarkerSize.
bool Plot2d_ViewFrame::getNormLMaxMode | ( | ) | const |
Gets normalization mode to the global maximum by left Y axis
References myNormLMax.
bool Plot2d_ViewFrame::getNormLMinMode | ( | ) | const |
Gets normalization mode to the global minimum by left Y axis
References myNormLMax.
bool Plot2d_ViewFrame::getNormRMaxMode | ( | ) | const |
Gets normalization mode to the global maximum by right Y axis
References myNormRMax.
bool Plot2d_ViewFrame::getNormRMinMode | ( | ) | const |
Gets normalization mode to the global minimum by right Y axis
References myNormRMax.
int Plot2d_ViewFrame::getObjects | ( | objectList & | objects | ) | const |
Gets lsit of displayed curves
References myObjects.
|
inline |
QColor Plot2d_ViewFrame::getPlot2dCurveColor | ( | Plot2d_Curve * | plot2dCurve | ) |
Get curve's color
References OCCViewer::color(), and getPlotObject().
QwtPlotCanvas * Plot2d_ViewFrame::getPlotCanvas | ( | ) | const |
References myPlot.
QwtPlotCurve * Plot2d_ViewFrame::getPlotCurve | ( | Plot2d_Curve * | curve | ) | const |
Returns qwt plot curve if it is existed in map of curves and 0 otherwise
References getPlotObject().
Plot2d_Object * Plot2d_ViewFrame::getPlotObject | ( | QwtPlotItem * | plotItem | ) | const |
Return Plot2d_Object by the QwtPlotItem
References myObjects.
QwtPlotItem * Plot2d_ViewFrame::getPlotObject | ( | Plot2d_Object * | object | ) | const |
Returns qwt plot curve if it is existed in map of curves and 0 otherwise
References myObjects.
QColor Plot2d_ViewFrame::getSelectedLegendFontColor | ( | ) | const |
Gets selected legend font color
References mySelectedLegendFontColor.
QString Plot2d_ViewFrame::getTitle | ( | ) | const |
Gets title
References myTitle.
QString Plot2d_ViewFrame::getTitle | ( | ObjectType | type | ) | const |
int Plot2d_ViewFrame::getVerScaleMode | ( | ) | const |
Gets scale mode for vertical axis: 0 - linear, 1 - logarithmic
References myYMode.
QString Plot2d_ViewFrame::getVisualParameters | ( | ) |
References getXmlVisualParameters().
|
protected |
Store visual parameters in xml format.
References backgroundColor(), Plot2d_AnalyticalCurve::getColor(), Plot2d_AnalyticalCurve::getExpression(), getFitRanges(), Plot2d_AnalyticalCurve::getLine(), Plot2d_AnalyticalCurve::getLineWidth(), Plot2d_AnalyticalCurve::getMarker(), Plot2d_AnalyticalCurve::getName(), Plot2d_AnalyticalCurve::getNbIntervals(), Plot2d_AnalyticalCurve::isActive(), Plot2d_AnalyticalCurve::isAutoAssign(), myAnalyticalCurves, myLegendColor, myLegendFont, myNormLMax, myNormLMin, myNormRMax, myNormRMin, mySecondY, myShowLegend, myXMode, and myYMode.
|
protected |
Returns true if qwt plot curve is existed in map of curves and false otherwise
References hasPlotObject().
|
protected |
Returns true if qwt plot curve is existed in map of curves and false otherwise
References myObjects.
void Plot2d_ViewFrame::Init | ( | ) |
Performs the initial setup.
References MainTitle, myBackground, myCurveType, myLegendColor, myLegendFont, myLegendPos, myLegendSymbolType, myPlot, mySecondY, mySelectedLegendFontColor, mySelectionColor, 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(), setLegendFont(), setLegendFontColor(), setLegendPos(), setLegendSymbolType(), setSelectedLegendFontColor(), setSelectionColor(), setTitle(), setVerScaleMode(), setXGrid(), setYGrid(), showLegend(), xBottom, XTitle, Y2Title, yLeft, yRight, and YTitle.
bool Plot2d_ViewFrame::isLegendShow | ( | ) | const |
Return True
if legend is shown
References myShowLegend.
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::isNormLMaxMode | ( | ) |
Return True
if curves are normalize to the global maximum by left Y axis
References myNormLMax.
bool Plot2d_ViewFrame::isNormLMinMode | ( | ) |
Return True
if curves are normalize to the global minimum by left Y axis
References myNormLMin.
bool Plot2d_ViewFrame::isNormRMaxMode | ( | ) |
Return True
if curves are normalize to the global maximum by right Y axis
References myNormRMax.
bool Plot2d_ViewFrame::isNormRMinMode | ( | ) |
Return True
if curves are normalize to the global minimum by right Y axis
References myNormRMin.
bool Plot2d_ViewFrame::isVisible | ( | Plot2d_Object * | object | ) | const |
Returns true if the curve is visible
References getPlotObject(), and hasPlotObject().
bool Plot2d_ViewFrame::isXLogEnabled | ( | ) | const |
Precaution for logarithmic X scale
References myObjects.
bool Plot2d_ViewFrame::isYLogEnabled | ( | ) | const |
Precaution for logarithmic Y scale
References myObjects.
|
slot |
"Analytical Curves" toolbar action slot
References updateAnalyticalCurves().
|
slot |
Change background color
References backgroundColor(), and setBackgroundColor().
|
slot |
"Fit Data" command slot
References fitData(), getFitRanges(), Plot2d_FitDataDlg::getRange(), mySecondY, Plot2d_FitDataDlg::setRange(), and updateAnalyticalCurves().
|
slot |
Performs incremental panning to the bottom
References INCREMENT_FOR_OP, incrementalPan(), and updateAnalyticalCurves().
|
slot |
Performs incremental panning to the left
References INCREMENT_FOR_OP, incrementalPan(), and updateAnalyticalCurves().
|
slot |
Performs incremental panning to the right
References INCREMENT_FOR_OP, incrementalPan(), and updateAnalyticalCurves().
|
slot |
Performs incremental panning to the top
References INCREMENT_FOR_OP, incrementalPan(), and updateAnalyticalCurves().
|
slot |
"Settings" toolbar action slot
References OCCViewer::color(), Plot2d_SetupViewDlg::getBackgroundColor(), Plot2d_SetupViewDlg::getCurveType(), Plot2d_SetupViewDlg::getDeviationMarkerCl(), Plot2d_SetupViewDlg::getDeviationMarkerLw(), Plot2d_SetupViewDlg::getDeviationMarkerTs(), Plot2d_SetupViewDlg::getLegendColor(), Plot2d_SetupViewDlg::getLegendFont(), Plot2d_SetupViewDlg::getLegendPos(), Plot2d_SetupViewDlg::getLegendSymbolType(), Plot2d_SetupViewDlg::getLMaxNormMode(), Plot2d_SetupViewDlg::getLMinNormMode(), Plot2d_SetupViewDlg::getMainTitle(), Plot2d_SetupViewDlg::getMajorGrid(), Plot2d_SetupViewDlg::getMarkerSize(), Plot2d_SetupViewDlg::getMinorGrid(), Plot2d_SetupViewDlg::getRMaxNormMode(), Plot2d_SetupViewDlg::getRMinNormMode(), Plot2d_SetupViewDlg::getSelectedLegendColor(), Plot2d_SetupViewDlg::getSelectionColor(), 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, myLegendColor, myLegendFont, myLegendPos, myLegendSymbolType, myMarkerSize, myNormLMax, myNormLMin, myNormRMax, myNormRMin, myPlot, mySecondY, mySelectedLegendFontColor, mySelectionColor, myShowLegend, myTitle, myTitleEnabled, myXGridMajorEnabled, myXGridMinorEnabled, myXMode, myXTitle, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMinorEnabled, myY2Title, myY2TitleEnabled, myYGridMajorEnabled, myYGridMinorEnabled, myYMode, myYTitle, myYTitleEnabled, PLOT2D_DEVIATION_COLOR, PLOT2D_DEVIATION_LW, PLOT2D_DEVIATION_TS, Plot2d_Plot2d::replot(), Plot2d_SetupViewDlg::setBackgroundColor(), setBackgroundColor(), Plot2d_SetupViewDlg::setCurveType(), setCurveType(), Plot2d_SetupViewDlg::setDeviationMarkerCl(), Plot2d_SetupViewDlg::setDeviationMarkerLw(), Plot2d_SetupViewDlg::setDeviationMarkerTs(), setHorScaleMode(), Plot2d_SetupViewDlg::setLegend(), setLegendFont(), setLegendFontColor(), setLegendPos(), setLegendSymbolType(), Plot2d_SetupViewDlg::setLMaxNormMode(), Plot2d_SetupViewDlg::setLMinNormMode(), Plot2d_SetupViewDlg::setMainTitle(), Plot2d_SetupViewDlg::setMajorGrid(), Plot2d_SetupViewDlg::setMarkerSize(), setMarkerSize(), Plot2d_SetupViewDlg::setMinorGrid(), setNormLMaxMode(), setNormLMinMode(), setNormRMaxMode(), setNormRMinMode(), Plot2d_SetupViewDlg::setRMaxNormMode(), Plot2d_SetupViewDlg::setRMinNormMode(), Plot2d_SetupViewDlg::setScaleMode(), setSelectedLegendFontColor(), Plot2d_SetupViewDlg::setSelectionColor(), setSelectionColor(), setTitle(), setVerScaleMode(), setXGrid(), Plot2d_SetupViewDlg::setXTitle(), Plot2d_SetupViewDlg::setY2Title(), setYGrid(), Plot2d_SetupViewDlg::setYTitle(), showLegend(), writePreferences(), xBottom, XTitle, Y2Title, yLeft, yRight, and YTitle.
|
slot |
View operations : Fit All
References Plot2d_Plot2d::defaultPicker(), fitAll(), myOperation, myPlot, and NoOpId.
|
slot |
View operations : Fit Area
References FitAreaId, myOperation, myPlot, and Plot2d_Plot2d::setPickerMousePattern().
|
slot |
View operations : Global panning
References Plot2d_Plot2d::defaultPicker(), GlPanId, imageCrossCursor, myOperation, myPlot, mySecondY, myXDistance, myYDistance, myYDistance2, Plot2d_Plot2d::replot(), Plot2d_Plot2d::setLogScale(), xBottom, yLeft, and yRight.
|
slot |
View operations : Pan view
References Plot2d_Plot2d::defaultPicker(), myOperation, myPlot, and PanId.
|
slot |
View operations : Zoom view
References Plot2d_Plot2d::defaultPicker(), imageZoomCursor, myOperation, myPlot, and ZoomId.
|
slot |
Performs incremental zooming in
References INCREMENT_FOR_OP, incrementalZoom(), and updateAnalyticalCurves().
|
slot |
Performs incremental zooming out
References INCREMENT_FOR_OP, incrementalZoom(), and updateAnalyticalCurves().
|
protected |
Slot, called when user moves mouse
References getInfo(), incrementalPan(), incrementalZoom(), myOperation, myPnt, NoOpId, PanId, Plot2d_ViewWindow::putInfo(), and ZoomId.
|
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(), testOperation(), xBottom, yLeft, and yRight.
|
protected |
Slot, called when user releases mouse
References contextMenuRequested(), Plot2d_Plot2d::defaultPicker(), myOperation, myPlot, NoOpId, Plot2d_ViewWindow::putInfo(), and updateAnalyticalCurves().
Outputs content of viewframe to file
file | - file name |
format | - file format |
References myPlot.
void Plot2d_ViewFrame::processFiltering | ( | bool | update = false | ) |
References Plot2d_NormalizeAlgorithm::execute(), getCurves(), Plot2d_Object::getYAxis(), myLNormAlgo, myNormLMax, myNormLMin, myNormRMax, myNormRMin, myPlot, myRNormAlgo, Plot2d_NormalizeAlgorithm::NormalizeNone, Plot2d_NormalizeAlgorithm::NormalizeToMax, Plot2d_NormalizeAlgorithm::NormalizeToMin, Plot2d_NormalizeAlgorithm::NormalizeToMinMax, Plot2d_Plot2d::replot(), Plot2d_Algorithm::setInput(), Plot2d_NormalizeAlgorithm::setNormalizationMode(), updatePlotItem(), and yRight.
|
protectedvirtual |
Reads Plot2d view settings from the preferences
References QtxResourceMgr::booleanValue(), QtxResourceMgr::colorValue(), QtxResourceMgr::fontValue(), QtxResourceMgr::integerValue(), myBackground, myCurveType, myLegendColor, myLegendFont, myLegendPos, myLegendSymbolType, myMarkerSize, myNormLMax, myNormLMin, myNormRMax, myNormRMin, myPlot, mySecondY, mySelectedLegendFontColor, mySelectionColor, myShowLegend, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitleEnabled, PLOT2D_DEVIATION_COLOR, PLOT2D_DEVIATION_LW, PLOT2D_DEVIATION_TS, SUIT_Session::resourceMgr(), SUIT_Session::session(), setCurveType(), setHorScaleMode(), setNormLMaxMode(), setNormLMinMode(), setNormRMaxMode(), setNormRMinMode(), and setVerScaleMode().
|
virtual |
Implements Plot2d_CurveContainer.
References Plot2d_AnalyticalCurve::ActRemoveFromView, and Plot2d_AnalyticalCurve::setAction().
void Plot2d_ViewFrame::Repaint | ( | ) |
Redraws viewframe contents
References myPlot, and Plot2d_Plot2d::replot().
QColor Plot2d_ViewFrame::selectionColor | ( | ) | const |
Gets selection color
References mySelectionColor.
|
virtual |
Sets background color
References OCCViewer::color(), Plot2d_Plot2d::getLegend(), myBackground, myPlot, Repaint(), and updateLegend().
void Plot2d_ViewFrame::setCurveTitle | ( | Plot2d_Curve * | curve, |
const QString & | title | ||
) |
void Plot2d_ViewFrame::setCurveType | ( | int | curveType, |
bool | update = true |
||
) |
Sets curve type
References getCurves(), myAnalyticalCurves, myCurveType, myPlot, Plot2d_Plot2d::replot(), and vpCurveChanged().
|
protected |
Sets curve type
References myCurveType.
void Plot2d_ViewFrame::setEnableAxis | ( | QwtPlot::Axis | theAxis, |
bool | isEnable | ||
) |
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(), SUIT_MessageBox::warning(), and xBottom.
void Plot2d_ViewFrame::setLegendFont | ( | const QFont & | fnt | ) |
Sets legend font
References myLegendFont, and myPlot.
void Plot2d_ViewFrame::setLegendFontColor | ( | const QColor & | col | ) |
Sets legend font color
References myLegendColor, and myPlot.
void Plot2d_ViewFrame::setLegendPos | ( | int | pos | ) |
Sets legend position : 0 - left, 1 - right, 2 - top, 3 - bottom
References myLegendPos, and myPlot.
void Plot2d_ViewFrame::setLegendSymbolType | ( | int | type | ) |
Sets legend symbol type : 0 - marker on line, 1 - marker above line
References myLegendSymbolType, myPlot, Plot2d_Plot2d::setLegendSymbolType(), and updateLegend().
void Plot2d_ViewFrame::setMarkerSize | ( | const int | size, |
bool | update = true |
||
) |
Sets new marker size
References getCurves(), myMarkerSize, myPlot, and Plot2d_Plot2d::replot().
void Plot2d_ViewFrame::setNormLMaxMode | ( | bool | mode, |
bool | update = true |
||
) |
Sets normalization mode to the global maximum by left Y axis
References fitAll(), myNormLMax, processFiltering(), and vpNormLModeChanged().
void Plot2d_ViewFrame::setNormLMinMode | ( | bool | mode, |
bool | update = true |
||
) |
Sets normalization mode to the global minimum by left Y axis
References fitAll(), myNormLMin, processFiltering(), and vpNormLModeChanged().
void Plot2d_ViewFrame::setNormRMaxMode | ( | bool | mode, |
bool | update = true |
||
) |
Sets normalization mode to the global maximum by right Y axis
References fitAll(), myNormRMax, processFiltering(), and vpNormRModeChanged().
void Plot2d_ViewFrame::setNormRMinMode | ( | bool | mode, |
bool | update = true |
||
) |
Sets normalization mode to the global minimum by right Y axis
References fitAll(), myNormRMin, processFiltering(), and vpNormRModeChanged().
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::SetPreference | ( | ) |
References myBackground, myCurveType, myLegendColor, myLegendFont, myLegendPos, myLegendSymbolType, myMarkerSize, myPlot, mySelectedLegendFontColor, mySelectionColor, myShowLegend, readPreferences(), Plot2d_Plot2d::replot(), setBackgroundColor(), setCurveType(), setLegendFont(), setLegendFontColor(), setLegendPos(), setLegendSymbolType(), setMarkerSize(), setSelectedLegendFontColor(), setSelectionColor(), and showLegend().
void Plot2d_ViewFrame::setSelectedLegendFontColor | ( | const QColor & | col | ) |
Sets selected legend font color
References mySelectedLegendFontColor, and Plot2d_Object::setHighlightedLegendTextColor().
|
virtual |
Sets selection color
References OCCViewer::color(), mySelectionColor, and Plot2d_Object::setSelectionColor().
void Plot2d_ViewFrame::setTitle | ( | const QString & | title | ) |
Sets title
References MainTitle, myIsDefTitle, and myTitleEnabled.
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(), xBottom, XTitle, Y2Title, yLeft, yRight, and YTitle.
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(), SUIT_MessageBox::warning(), yLeft, and yRight.
void Plot2d_ViewFrame::setVisualParameters | ( | const QString & | parameters | ) |
Restores all visual parameters from string
References addAnalyticalCurve(), Plot2d_AnalyticalCurve::autoFill(), fitData(), Plot2d_AnalyticalCurve::isAutoAssign(), myLegendColor, myLegendFont, myPlot, mySecondY, myXMode, myY2Title, myY2TitleEnabled, myYDistance2, myYMode, Plot2d_Plot2d::replot(), Plot2d_AnalyticalCurve::setActive(), Plot2d_AnalyticalCurve::setAutoAssign(), setBackgroundColor(), Plot2d_AnalyticalCurve::setColor(), Plot2d_AnalyticalCurve::setExpression(), setHorScaleMode(), setLegendFont(), setLegendFontColor(), Plot2d_AnalyticalCurve::setLine(), Plot2d_AnalyticalCurve::setLineWidth(), Plot2d_AnalyticalCurve::setMarker(), Plot2d_AnalyticalCurve::setName(), Plot2d_AnalyticalCurve::setNbIntervals(), setTitle(), setVerScaleMode(), setXmlVisualParameters(), Qtx::stringToColor(), updateAnalyticalCurve(), Y2Title, and yRight.
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, Plot2d_Plot2d::replot(), and xBottom.
|
protected |
Restore visual parameters from xml format.
References addAnalyticalCurve(), Plot2d_AnalyticalCurve::autoFill(), fitData(), Plot2d_AnalyticalCurve::isAutoAssign(), myLegendColor, myLegendFont, myPlot, mySecondY, myShowLegend, myXMode, myY2Title, myY2TitleEnabled, myYDistance2, myYMode, Plot2d_AnalyticalCurve::setActive(), Plot2d_AnalyticalCurve::setAutoAssign(), setBackgroundColor(), Plot2d_AnalyticalCurve::setColor(), Plot2d_AnalyticalCurve::setExpression(), setHorScaleMode(), setLegendFont(), setLegendFontColor(), Plot2d_AnalyticalCurve::setLine(), Plot2d_AnalyticalCurve::setLineWidth(), Plot2d_AnalyticalCurve::setMarker(), Plot2d_AnalyticalCurve::setName(), Plot2d_AnalyticalCurve::setNbIntervals(), setNormLMaxMode(), setNormLMinMode(), setNormRMaxMode(), setNormRMinMode(), setTitle(), setVerScaleMode(), showLegend(), updateAnalyticalCurve(), Y2Title, and yRight.
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, Plot2d_Plot2d::replot(), yLeft, and yRight.
void Plot2d_ViewFrame::showLegend | ( | bool | show, |
bool | update = true |
||
) |
Shows/hides legend
References clicked(), myLegendColor, myLegendFont, myLegendPos, myPlot, myShowLegend, Plot2d_Plot2d::replot(), setLegendFont(), setLegendFontColor(), setLegendPos(), and updateLegend().
|
protected |
|
virtual |
Implements Plot2d_CurveContainer.
References Plot2d_AnalyticalCurve::ActAddInView, Plot2d_AnalyticalCurve::ActNothing, Plot2d_AnalyticalCurve::ActRemoveFromView, Plot2d_AnalyticalCurve::ActUpdateInView, Plot2d_AnalyticalCurve::calculate(), Plot2d_AnalyticalCurve::getAction(), Plot2d_AnalyticalCurve::isActive(), myMarkerSize, myPlot, Plot2d_AnalyticalCurve::plotItem(), Plot2d_Plot2d::replot(), Plot2d_AnalyticalCurve::setAction(), Plot2d_AnalyticalCurve::setMarkerSize(), Plot2d_AnalyticalCurve::setRangeBegin(), Plot2d_AnalyticalCurve::setRangeEnd(), Plot2d_AnalyticalCurve::updatePlotItem(), and xBottom.
|
virtual |
void Plot2d_ViewFrame::updateCurve | ( | Plot2d_Curve * | curve, |
bool | update = false |
||
) |
Updates curves attributes
References updateObject().
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::updateLegend | ( | ) |
update legend
References myPlot.
void Plot2d_ViewFrame::updateObject | ( | Plot2d_Object * | object, |
bool | update = false |
||
) |
Updates objects attributes
References getPlotObject(), hasPlotObject(), myPlot, Plot2d_Plot2d::replot(), updatePlotItem(), and Plot2d_Plot2d::zoomer().
void Plot2d_ViewFrame::updatePlotItem | ( | Plot2d_Object * | theObject, |
QwtPlotItem * | theItem | ||
) |
References Plot2d_NormalizeAlgorithm::getBkoef(), Plot2d_NormalizeAlgorithm::getKkoef(), Plot2d_Object::getName(), Plot2d_NormalizeAlgorithm::getNormalizationMode(), Plot2d_Algorithm::getOutput(), Plot2d_Object::getVerTitle(), Plot2d_Object::getYAxis(), myLNormAlgo, myRNormAlgo, Plot2d_NormalizeAlgorithm::NormalizeNone, Plot2d_Object::updatePlotItem(), and yRight.
void Plot2d_ViewFrame::updateTitles | ( | const bool | update = true | ) |
References BRACKETIZE, Plot2d_Object::getHorTitle(), Plot2d_Object::getHorUnits(), Plot2d_Object::getTableTitle(), Plot2d_Object::getVerTitle(), Plot2d_Object::getVerUnits(), Plot2d_Object::getYAxis(), MainTitle, myIsDefTitle, myObjects, myPlot, mySecondY, myXTitleEnabled, myY2TitleEnabled, myYTitleEnabled, Plot2d_Plot2d::replot(), setTitle(), XTitle, Y2Title, yLeft, and YTitle.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedvirtual |
Slot, called when user wheeling mouse
References myPlot, myPnt, mySecondY, Plot2d_Plot2d::replot(), updateAnalyticalCurves(), xBottom, yLeft, yRight, and Plot2d_Plot2d::zoomer().
|
protectedvirtual |
Writes Plot2d view settings to the preferences
References myBackground, myCurveType, myLegendColor, myLegendFont, myLegendPos, myLegendSymbolType, myMarkerSize, myNormLMax, myNormLMin, myNormRMax, myNormRMin, myPlot, mySecondY, mySelectedLegendFontColor, mySelectionColor, myShowLegend, myTitleEnabled, myXGridMajorEnabled, myXGridMaxMajor, myXGridMaxMinor, myXGridMinorEnabled, myXMode, myXTitleEnabled, myY2GridMajorEnabled, myY2GridMaxMajor, myY2GridMaxMinor, myY2GridMinorEnabled, myY2TitleEnabled, myYGridMajorEnabled, myYGridMaxMajor, myYGridMaxMinor, myYGridMinorEnabled, myYMode, myYTitleEnabled, PLOT2D_DEVIATION_COLOR, PLOT2D_DEVIATION_LW, PLOT2D_DEVIATION_TS, SUIT_Session::resourceMgr(), SUIT_Session::session(), and QtxResourceMgr::setValue().
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |