Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GLViewer_ViewFrame Class Reference

#include <GLViewer_ViewFrame.h>

Inheritance diagram for GLViewer_ViewFrame:
Inheritance graph

Public Types

enum  {
  DumpId, FitAllId, FitRectId, FitSelectId,
  ZoomId, PanId, GlobalPanId, ResetId
}
 Actions ID. More...
 

Signals

void vfDrawExternal (QPainter *)
 
void vfViewClosing (QCloseEvent *)
 
- 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 *)
 

Public Member Functions

 GLViewer_ViewFrame (SUIT_Desktop *, GLViewer_Viewer *)
 
 ~GLViewer_ViewFrame ()
 
void setViewer (GLViewer_Viewer *)
 
GLViewer_ViewergetViewer () const
 
void setViewPort (GLViewer_ViewPort *)
 
GLViewer_ViewPortgetViewPort () const
 
void setBackgroundColor (const QColor &)
 
QColor backgroundColor () const
 
QSize sizeHint () const
 
virtual void onUpdate (int)
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &parameters)
 
virtual QImage dumpView ()
 
QWidgetgetViewWidget ()
 
- 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 *)
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
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 SUIT_CameraProperties cameraProperties ()
 

Protected Slots

void onViewPan ()
 
void onViewZoom ()
 
void onViewFitAll ()
 
void onViewFitArea ()
 
void onViewFitSelect ()
 
void onViewGlobalPan ()
 
void onViewRotate ()
 
void onViewReset ()
 
void onViewFront ()
 
void onViewBack ()
 
void onViewRight ()
 
void onViewLeft ()
 
void onViewBottom ()
 
void onViewTop ()
 
void onViewTrihedron ()
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Protected Attributes

GLViewer_ViewermyViewer
 
GLViewer_ViewPortmyVP
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Private Slots

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

Private Member Functions

void createActions ()
 
void createToolBar ()
 

Additional Inherited Members

- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
- 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 ()
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 

Detailed Description

Frame window for viewport in QAD-based application

Member Enumeration Documentation

anonymous enum
Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Constructor & Destructor Documentation

GLViewer_ViewFrame::GLViewer_ViewFrame ( SUIT_Desktop d,
GLViewer_Viewer vw 
)
GLViewer_ViewFrame::~GLViewer_ViewFrame ( )

Destructor

Member Function Documentation

QColor GLViewer_ViewFrame::backgroundColor ( ) const

Returns background of the viewport. [ public ]

References GLViewer_ViewPort::backgroundColor(), and myVP.

QImage GLViewer_ViewFrame::dumpView ( )
virtual

SLOT: called on dump view operation is activated, stores scene to raster file

Reimplemented from SUIT_ViewWindow.

References myVP.

GLViewer_Viewer * GLViewer_ViewFrame::getViewer ( ) const

Returns the viewer of this view. [ public ]

References myViewer.

GLViewer_ViewPort * GLViewer_ViewFrame::getViewPort ( ) const

Returns the viewport of this frame. [ public ]

References myVP.

QWidget* GLViewer_ViewFrame::getViewWidget ( )
inline
QString GLViewer_ViewFrame::getVisualParameters ( )
virtual
Returns
the visual parameters of this view as a formated string

Reimplemented from SUIT_ViewWindow.

References GLViewer_ViewPort2d::getPan(), GLViewer_ViewPort2d::getScale(), and myVP.

void GLViewer_ViewFrame::keyEvent ( QKeyEvent *  e)
privateslot

Dispatches key events

References SUIT_ViewWindow::keyPressed(), and SUIT_ViewWindow::keyReleased().

void GLViewer_ViewFrame::mouseEvent ( QMouseEvent *  e)
privateslot
void GLViewer_ViewFrame::onUpdate ( int  )
virtual

Called by viewer's 'update()' method. Does nothing by default [ virtual public ]

void GLViewer_ViewFrame::onViewBack ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewBottom ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewFitAll ( )
protectedslot
void GLViewer_ViewFrame::onViewFitArea ( )
protectedslot
void GLViewer_ViewFrame::onViewFitSelect ( )
protectedslot
void GLViewer_ViewFrame::onViewFront ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewGlobalPan ( )
protectedslot
void GLViewer_ViewFrame::onViewLeft ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewPan ( )
protectedslot
void GLViewer_ViewFrame::onViewReset ( )
protectedslot

Start reset default view aspects

References GLViewer_Viewer::activateTransform(), myViewer, and GLViewer_Viewer::Reset.

void GLViewer_ViewFrame::onViewRight ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewRotate ( )
protectedslot

Start rotating

void GLViewer_ViewFrame::onViewTop ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewTrihedron ( )
inlineprotectedslot
void GLViewer_ViewFrame::onViewZoom ( )
protectedslot
void GLViewer_ViewFrame::setBackgroundColor ( const QColor &  color)

Set background of the viewport. [ public ]

References myVP, and GLViewer_ViewPort::setBackgroundColor().

void GLViewer_ViewFrame::setViewer ( GLViewer_Viewer v)

Sets the viewer for this view. [ public ]

References myViewer.

void GLViewer_ViewFrame::setViewPort ( GLViewer_ViewPort vp)
void GLViewer_ViewFrame::setVisualParameters ( const QString &  parameters)
virtual

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

Reimplemented from SUIT_ViewWindow.

References GLViewer_ViewPort2d::getGLWidget(), myVP, GLViewer_Widget::setPan(), and GLViewer_Widget::setScale().

QSize GLViewer_ViewFrame::sizeHint ( ) const

Returns the preferred view size. [ virtual public ]

void GLViewer_ViewFrame::vfDrawExternal ( QPainter *  )
signal
void GLViewer_ViewFrame::vfViewClosing ( QCloseEvent *  )
signal
void GLViewer_ViewFrame::wheelEvent ( QWheelEvent *  e)
privateslot

Dispatches wheel events

References SUIT_ViewWindow::wheeling().

Member Data Documentation

GLViewer_Viewer* GLViewer_ViewFrame::myViewer
protected
GLViewer_ViewPort* GLViewer_ViewFrame::myVP
protected

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