Version: 9.16.0
QtViewer_ViewFrame Class Reference

#include <QtViewer_ViewFrame.h>

Inheritance diagram for QtViewer_ViewFrame:
Inheritance graph

Public Types

enum  {
  DumpId , FitAllId , FitRectId , FitSelectId ,
  ZoomId , PanId , GlobalPanId , ResetId
}
 

Public Slots

virtual void showEvent (QShowEvent *)
 Handle show event. More...
 
virtual void hideEvent (QHideEvent *)
 Handle hide event. More...
 
- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
void setVisible (bool)
 

Signals

void keyPressed (QKeyEvent *)
 
void keyReleased (QKeyEvent *)
 
void mousePressed (QMouseEvent *)
 
void mouseMoving (QMouseEvent *)
 
void mouseReleased (QMouseEvent *)
 
void mouseDoubleClicked (QMouseEvent *)
 
void wheeling (QWheelEvent *)
 
void sketchingFinished (QPainterPath)
 
void Show (QShowEvent *)
 
void Hide (QHideEvent *)
 
- Signals inherited from SUIT_ViewWindow
void tryClosing (SUIT_ViewWindow *)
 
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)
 
void viewModified (SUIT_ViewWindow *)
 
void vpStartRotate (int, int, qint64)
 
void vpRotate (int, int, qint64)
 
void vpEndRotate (int, int, qint64)
 

Public Member Functions

 QtViewer_ViewFrame (SUIT_Desktop *, QtViewer_Viewer *, QWidget *w=nullptr)
 
 ~QtViewer_ViewFrame ()
 
QtViewer_ViewergetViewer () const
 
QtViewer_ViewPortgetViewPort () const
 
virtual QImage dumpView ()
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &theParameters)
 
- Public Member Functions inherited from SUIT_ViewWindow
 SUIT_ViewWindow (SUIT_Desktop *)
 
virtual ~SUIT_ViewWindow ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
SUIT_ViewManagergetViewManager () const
 
bool event (QEvent *)
 
virtual QImage dumpView ()
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &parameters)
 
void setDestructiveClose (const bool)
 
int getId () const
 
QtxActionToolMgrtoolMgr () const
 
virtual void setDropDownButtons (bool)
 Set buttons mode to drop-down (on = true) or ligned (on = false) More...
 
bool dropDownButtons () const
 Get current buttons mode. More...
 
virtual void enableAutoRotation (const bool)
 
virtual bool isAutoRotationEnabled () const
 
virtual SUIT_CameraProperties cameraProperties ()
 

Protected Slots

void onViewPan ()
 
void onViewZoom ()
 
void onViewFitAll ()
 
void onViewFitArea ()
 
void onViewFitSelect ()
 
void onViewGlobalPan ()
 
void onViewReset ()
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Protected Member Functions

virtual void createActions ()
 
virtual void createToolBar ()
 
virtual QString filter () const
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual QString filter () const
 
virtual bool action (const int)
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
virtual QActionsynchronizeAction ()
 

Private Slots

void keyEvent (QKeyEvent *)
 
void mouseEvent (QMouseEvent *)
 
void wheelEvent (QWheelEvent *)
 
void contextMenuEvent (QContextMenuEvent *)
 

Private Attributes

QtViewer_ViewermyViewer
 
QtViewer_ViewPortmyViewPort
 

Additional Inherited Members

- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Constructor & Destructor Documentation

◆ QtViewer_ViewFrame()

QtViewer_ViewFrame::QtViewer_ViewFrame ( SUIT_Desktop d,
QtViewer_Viewer vw,
QWidget w = nullptr 
)

◆ ~QtViewer_ViewFrame()

QtViewer_ViewFrame::~QtViewer_ViewFrame ( )

Member Function Documentation

◆ contextMenuEvent

void QtViewer_ViewFrame::contextMenuEvent ( QContextMenuEvent *  e)
privateslot

◆ createActions()

◆ createToolBar()

◆ dumpView()

QImage QtViewer_ViewFrame::dumpView ( )
virtual
Returns
QImage, containing all scene rendering in window

Reimplemented from SUIT_ViewWindow.

References QtViewer_ViewPort::dumpView(), and myViewPort.

◆ dumpViewToFormat()

bool QtViewer_ViewFrame::dumpViewToFormat ( const QImage &  img,
const QString &  fileName,
const QString &  format 
)
protectedvirtual

Saves image to file according to the format

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

Reimplemented from SUIT_ViewWindow.

References QtViewer_ViewPort::dumpViewToFormat(), SUIT_ViewWindow::dumpViewToFormat(), and myViewPort.

◆ filter()

QString QtViewer_ViewFrame::filter ( ) const
protectedvirtual
Returns
filters for image files

Reimplemented from SUIT_ViewWindow.

References SUIT_ViewWindow::filter().

◆ getViewer()

QtViewer_Viewer * QtViewer_ViewFrame::getViewer ( ) const
inline

◆ getViewPort()

QtViewer_ViewPort * QtViewer_ViewFrame::getViewPort ( ) const
inline

◆ getVisualParameters()

QString QtViewer_ViewFrame::getVisualParameters ( )
virtual
Returns
string containing visual parameters of window

Reimplemented from SUIT_ViewWindow.

References myViewPort.

◆ Hide

void QtViewer_ViewFrame::Hide ( QHideEvent *  )
signal

◆ hideEvent

void QtViewer_ViewFrame::hideEvent ( QHideEvent *  theEvent)
virtualslot

Handle hide event.

Emits Hide() signal.

Parameters
theEventhide event

References Hide().

◆ keyEvent

void QtViewer_ViewFrame::keyEvent ( QKeyEvent *  e)
privateslot

References keyPressed(), and keyReleased().

◆ keyPressed

void QtViewer_ViewFrame::keyPressed ( QKeyEvent *  )
signal

◆ keyReleased

void QtViewer_ViewFrame::keyReleased ( QKeyEvent *  )
signal

◆ mouseDoubleClicked

void QtViewer_ViewFrame::mouseDoubleClicked ( QMouseEvent *  )
signal

◆ mouseEvent

void QtViewer_ViewFrame::mouseEvent ( QMouseEvent *  e)
privateslot

◆ mouseMoving

void QtViewer_ViewFrame::mouseMoving ( QMouseEvent *  )
signal

◆ mousePressed

void QtViewer_ViewFrame::mousePressed ( QMouseEvent *  )
signal

◆ mouseReleased

void QtViewer_ViewFrame::mouseReleased ( QMouseEvent *  )
signal

◆ onViewFitAll

void QtViewer_ViewFrame::onViewFitAll ( )
protectedslot

◆ onViewFitArea

void QtViewer_ViewFrame::onViewFitArea ( )
protectedslot

◆ onViewFitSelect

void QtViewer_ViewFrame::onViewFitSelect ( )
protectedslot

◆ onViewGlobalPan

void QtViewer_ViewFrame::onViewGlobalPan ( )
protectedslot

◆ onViewPan

void QtViewer_ViewFrame::onViewPan ( )
protectedslot

References myViewer, and QtViewer_Viewer::pan().

◆ onViewReset

void QtViewer_ViewFrame::onViewReset ( )
protectedslot

◆ onViewZoom

void QtViewer_ViewFrame::onViewZoom ( )
protectedslot

◆ setVisualParameters()

void QtViewer_ViewFrame::setVisualParameters ( const QString &  parameters)
virtual

Sets visual parameters of window by its string representation

Parameters
parameters- string with visual parameters

Reimplemented from SUIT_ViewWindow.

References myViewPort.

◆ Show

void QtViewer_ViewFrame::Show ( QShowEvent *  )
signal

◆ showEvent

void QtViewer_ViewFrame::showEvent ( QShowEvent *  theEvent)
virtualslot

Handle show event.

Emits Show() signal.

Parameters
theEventshow event

References Show().

◆ sketchingFinished

void QtViewer_ViewFrame::sketchingFinished ( QPainterPath  )
signal

◆ wheelEvent

void QtViewer_ViewFrame::wheelEvent ( QWheelEvent *  e)
privateslot

References wheeling().

◆ wheeling

void QtViewer_ViewFrame::wheeling ( QWheelEvent *  )
signal

Member Data Documentation

◆ myViewer

QtViewer_Viewer* QtViewer_ViewFrame::myViewer
private

◆ myViewPort

QtViewer_ViewPort* QtViewer_ViewFrame::myViewPort
private

The documentation for this class was generated from the following files: