#include <OCCViewer_ViewPort.h>
Public Slots | |
virtual bool | synchronize (OCCViewer_ViewPort *) |
Signals | |
void | vpKeyEvent (QKeyEvent *) |
void | vpMouseEvent (QMouseEvent *) |
void | vpDrawExternal (QPainter *) |
void | vpChangeBGColor (QColor) |
void | vpTransformed (OCCViewer_ViewPort *) |
Public Member Functions | |
OCCViewer_ViewPort (QWidget *parent) | |
virtual | ~OCCViewer_ViewPort () |
void | setSketchingEnabled (bool) |
bool | isSketchingEnabled () const |
void | setTransformEnabled (bool) |
bool | isTransformEnabled () const |
virtual QColor | backgroundColor () const |
virtual void | setBackgroundColor (const QColor &) |
void | redrawPainters () |
virtual void | onUpdate () |
virtual QPaintEngine * | paintEngine () const |
Protected Slots | |
virtual void | onChangeBackground () |
Protected Member Functions | |
void | selectVisualId () |
virtual void | paintEvent (QPaintEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
virtual void | reset ()=0 |
virtual void | pan (int, int)=0 |
virtual void | setCenter (int, int)=0 |
virtual void | fitRect (const QRect &)=0 |
virtual void | zoom (int, int, int, int)=0 |
virtual void | fitAll (bool keepScale=false, bool withZ=true, bool upd=true)=0 |
Handle (Aspect_Window) myWindow | |
Protected Attributes | |
bool | myEnableSketching |
bool | myEnableTransform |
bool | myPaintersRedrawing |
QList< QtxAction * > | myPopupActions |
Private Member Functions | |
void | initialize () |
void | cleanup () |
Static Private Attributes | |
static int | nCounter |
Friends | |
class | OCCViewer_ViewSketcher |
Visualisation canvas of SUIT-based application
OCCViewer_ViewPort::OCCViewer_ViewPort | ( | QWidget * | parent | ) |
Constructor
References initialize().
|
virtual |
Destructor
References cleanup().
|
virtual |
Returns the background color. [ virtual ]
Reimplemented in OCCViewer_ViewPort3d.
|
private |
Cleans up the viewport. [ private ]
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
|
protected |
|
private |
Initializes viewport. [ private ]
References myEnableSketching, myEnableTransform, and myPaintersRedrawing.
bool OCCViewer_ViewPort::isSketchingEnabled | ( | ) | const |
Returns 'true' if sketching is enabled in this viewport. [ public ]
References myEnableSketching.
bool OCCViewer_ViewPort::isTransformEnabled | ( | ) | const |
Returns 'true' if transformations ( rotation, zoom etc. ) are enabled in this viewport. [ public ]
References myEnableTransform.
|
protectedvirtual |
Emits 'keyEvent' signal. [ virtual protected ]
References vpKeyEvent().
|
protectedvirtual |
Emits 'keyEvent' signal. [ virtual protected ]
References vpKeyEvent().
|
protectedvirtual |
Emits 'mouseEvent' signal. [ virtual protected ]
References vpMouseEvent().
|
protectedvirtual |
Emits 'mouseEvent' signal. [ virtual protected ]
References vpMouseEvent().
|
protectedvirtual |
Emits 'mouseEvent' signal. [ virtual protected ]
References vpMouseEvent().
|
protectedvirtual |
Emits 'mouseEvent' signal. [ virtual protected ]
References vpMouseEvent().
|
protectedvirtualslot |
Sets the background color with color selection dialog. [ virtual protected slot ]
References backgroundColor(), and setBackgroundColor().
|
virtual |
Updates this view. Does nothing by default. [ virtual public ]
Reimplemented in OCCViewer_ViewPort3d.
|
virtual |
Get paint engine for the OpenGL viewer. [ virtual public ]
|
protectedvirtual |
Repaints the viewport. [ virtual protected ]
Reimplemented in OCCViewer_ViewPort3d.
References myPaintersRedrawing, and vpDrawExternal().
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
void OCCViewer_ViewPort::redrawPainters | ( | ) |
Forces to redraw the viewport by an external painter. [ public ]
References myPaintersRedrawing.
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
|
protected |
Selects visual ID for OpenGL window ( X11 specific ). [ protected ]
References backgroundColor(), choose_cmap(), Plot2d::None, and Window.
|
virtual |
Sets the background 'color'. [ virtual ]
Reimplemented in OCCViewer_ViewPort3d.
References vpChangeBGColor().
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
void OCCViewer_ViewPort::setSketchingEnabled | ( | bool | enable | ) |
Enables / disables sketching [ public ]
References myEnableSketching.
void OCCViewer_ViewPort::setTransformEnabled | ( | bool | enable | ) |
Enables / disables transformations. [ public ]
References myEnableTransform.
|
virtualslot |
Performs synchronization of view parameters with the specified view. Returns true
if synchronization is done successfully or false
otherwise. Default implementation does nothing (return false
)
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedpure virtual |
Implemented in OCCViewer_ViewPort3d.
|
friend |
|
protected |
|
protected |
|
protected |
|
staticprivate |