SPlot2d_ViewWindow Class Reference

#include <SPlot2d_ViewWindow.h>

Inheritance diagram for SPlot2d_ViewWindow:

Inheritance graph

Public Slots

void onChangeHorMode ()
void onChangeVerMode ()
void onChangeCurveMode ()
void onChangeLegendMode ()
void onFitAll ()
void onFitRect ()
void onZoom ()
void onPanning ()
void onGlobalPanning ()
void onViewHorMode ()
void onViewVerMode ()
void onLegend ()
void onCurves ()
void onDumpView ()

Signals

void cloneView ()
void closing (SUIT_ViewWindow *)
void mousePressed (SUIT_ViewWindow *, QMouseEvent *)
void mouseReleased (SUIT_ViewWindow *, QMouseEvent *)
void mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *)
void mouseMoving (SUIT_ViewWindow *, QMouseEvent *)
void wheeling (SUIT_ViewWindow *, QWheelEvent *)
void keyPressed (SUIT_ViewWindow *, QKeyEvent *)
void keyReleased (SUIT_ViewWindow *, QKeyEvent *)
void contextMenuRequested (QContextMenuEvent *e)

Public Member Functions

 SPlot2d_ViewWindow (SUIT_Desktop *, Plot2d_Viewer *)
virtual ~SPlot2d_ViewWindow ()
Plot2d_ViewergetModel ()
void putInfo (QString theMsg)
Plot2d_ViewFramegetViewFrame ()
QToolBargetToolBar ()
void contextMenuPopup (QPopupMenu *thePopup)
virtual QString getVisualParameters ()
virtual void setVisualParameters (const QString &parameters)
virtual void RefreshDumpImage ()
bool dumpViewToFormat (const QString &fileName, const QString &format)
void setViewManager (SUIT_ViewManager *)
SUIT_ViewManagergetViewManager () const
bool event (QEvent *)
bool onAccelAction (int)

Protected Types

typedef QMap< int, QtxAction * > ActionsMap
enum  {
  DumpId, FitAllId, FitRectId, ZoomId,
  PanId, GlobalPanId, HorId, VerId,
  LegendId, CurvPointsId, CurvLinesId, CurvSplinesId,
  CurvSettingsId, CloneId, PModeXLinearId, PModeXLogarithmicId,
  PModeYLinearId, PModeYLogarithmicId
}

Protected Member Functions

virtual bool action (const int)
virtual QImage dumpView ()
virtual QString filter () const
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
void closeEvent (QCloseEvent *)
virtual void contextMenuEvent (QContextMenuEvent *)

Protected Attributes

ActionsMap myActionsMap
SUIT_DesktopmyDesktop
SUIT_ViewManagermyManager

Member Typedef Documentation

typedef QMap<int, QtxAction*> Plot2d_ViewWindow.ActionsMap [protected, inherited]
 


Member Enumeration Documentation

anonymous enum [protected, inherited]
 

Enumerator:
DumpId 
FitAllId 
FitRectId 
ZoomId 
PanId 
GlobalPanId 
HorId 
VerId 
LegendId 
CurvPointsId 
CurvLinesId 
CurvSplinesId 
CurvSettingsId 
CloneId 
PModeXLinearId 
PModeXLogarithmicId 
PModeYLinearId 
PModeYLogarithmicId 


Constructor & Destructor Documentation

SPlot2d_ViewWindow::SPlot2d_ViewWindow SUIT_Desktop theDesktop,
Plot2d_Viewer theModel
 

Constructor

SPlot2d_ViewWindow::~SPlot2d_ViewWindow  )  [virtual]
 

Destructor


Member Function Documentation

bool SPlot2d_ViewWindow::action const   int  )  [protected, virtual]
 

Performs action

Parameters:
theAction - type of action

Reimplemented from SUIT_ViewWindow.

Plot2d_Viewer* Plot2d_ViewWindow.getModel  )  [inherited]
 

void Plot2d_ViewWindow::putInfo QString  theMsg  )  [inherited]
 

Puts message to status bar

Parameters:
theMsg - message text

Plot2d_ViewFrame* Plot2d_ViewWindow.getViewFrame  )  [inherited]
 

QToolBar* Plot2d_ViewWindow.getToolBar  )  [inherited]
 

void Plot2d_ViewWindow::contextMenuPopup QPopupMenu thePopup  )  [inherited]
 

Fills popup menu with custom actions

Parameters:
popup - popup menu to be filled with

QString Plot2d_ViewWindow::getVisualParameters  )  [virtual, inherited]
 

Returns:
the visual parameters of this view as a formated string

Reimplemented from SUIT_ViewWindow.

void Plot2d_ViewWindow::setVisualParameters const QString &  parameters  )  [virtual, inherited]
 

The method restors visual parameters of this view from a formated string

Reimplemented from SUIT_ViewWindow.

void Plot2d_ViewWindow::RefreshDumpImage  )  [virtual, inherited]
 

QImage, containing all scene rendering in window

QImage Plot2d_ViewWindow::dumpView  )  [protected, virtual, inherited]
 

Returns:
QImage, containing all scene rendering in window

Reimplemented from SUIT_ViewWindow.

QString Plot2d_ViewWindow::filter  )  const [protected, virtual, inherited]
 

Returns:
filter of image files

Reimplemented from SUIT_ViewWindow.

bool Plot2d_ViewWindow::dumpViewToFormat const QImage &  img,
const QString &  fileName,
const QString &  format
[protected, virtual, inherited]
 

Saves scene rendering in window to file

Parameters:
fileName - name of file
format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")

Reimplemented from SUIT_ViewWindow.

bool SUIT_ViewWindow::dumpViewToFormat const QString &  fileName,
const QString &  format
[inherited]
 

Saves scene rendering in window to file

Parameters:
fileName - name of file
format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")

void Plot2d_ViewWindow::onChangeHorMode  )  [slot, inherited]
 

SLOT: called if scale mode for horizontal axis is changed

void Plot2d_ViewWindow::onChangeVerMode  )  [slot, inherited]
 

SLOT: called if scale mode for vertical axis is changed

void Plot2d_ViewWindow::onChangeCurveMode  )  [slot, inherited]
 

SLOT: called if curve type is changed

void Plot2d_ViewWindow::onChangeLegendMode  )  [slot, inherited]
 

SLOT: called if legend mode is changed

void Plot2d_ViewWindow::onFitAll  )  [slot, inherited]
 

SLOT: called if action "Fit all" is activated

void Plot2d_ViewWindow::onFitRect  )  [slot, inherited]
 

SLOT: called if action "Fit rect" is activated

void Plot2d_ViewWindow::onZoom  )  [slot, inherited]
 

SLOT: called if action "Zoom" is activated

void Plot2d_ViewWindow::onPanning  )  [slot, inherited]
 

SLOT: called if action "Panning" is activated

void Plot2d_ViewWindow::onGlobalPanning  )  [slot, inherited]
 

SLOT: called if action "Global panning" is activated

void Plot2d_ViewWindow::onViewHorMode  )  [slot, inherited]
 

SLOT: called if action of scale mode for horizontal axis changing is activated

void Plot2d_ViewWindow::onViewVerMode  )  [slot, inherited]
 

SLOT: called if action of scale mode for vertical axis changing is activated

void Plot2d_ViewWindow::onLegend  )  [slot, inherited]
 

SLOT: called if action "Show legend" is activated

void Plot2d_ViewWindow::onCurves  )  [slot, inherited]
 

SLOT: called if action "Change curve type" is activated

void Plot2d_ViewWindow::onDumpView  )  [virtual, slot, inherited]
 

SLOT: called if action "Dump view" is activated

Reimplemented from SUIT_ViewWindow.

void Plot2d_ViewWindow.cloneView  )  [signal, inherited]
 

void SUIT_ViewWindow::setViewManager SUIT_ViewManager theManager  )  [inherited]
 

Sets new view manager for window

Parameters:
theManager - new view manager

SUIT_ViewManager * SUIT_ViewWindow::getViewManager  )  const [inherited]
 

Returns:
view manager of window

bool SUIT_ViewWindow::event QEvent *  e  )  [inherited]
 

Reaction view window on event e.

bool SUIT_ViewWindow::onAccelAction int  _action  )  [inherited]
 

Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active

void SUIT_ViewWindow.closing SUIT_ViewWindow  )  [signal, inherited]
 

void SUIT_ViewWindow.mousePressed SUIT_ViewWindow ,
QMouseEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.mouseReleased SUIT_ViewWindow ,
QMouseEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.mouseDoubleClicked SUIT_ViewWindow ,
QMouseEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.mouseMoving SUIT_ViewWindow ,
QMouseEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.wheeling SUIT_ViewWindow ,
QWheelEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.keyPressed SUIT_ViewWindow ,
QKeyEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.keyReleased SUIT_ViewWindow ,
QKeyEvent * 
[signal, inherited]
 

void SUIT_ViewWindow.contextMenuRequested QContextMenuEvent *  e  )  [signal, inherited]
 

void SUIT_ViewWindow::closeEvent QCloseEvent *  theEvent  )  [protected, inherited]
 

Close event theEvent.

void SUIT_ViewWindow::contextMenuEvent QContextMenuEvent *  e  )  [protected, virtual, inherited]
 

Context menu requested for event e.


Field Documentation

ActionsMap Plot2d_ViewWindow.myActionsMap [protected, inherited]
 

SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited]
 

SUIT_ViewManager* SUIT_ViewWindow.myManager [protected, inherited]