#include <OCCViewer_ViewPort3d.h>

Signals | |
| void | vpKeyEvent (QKeyEvent *) |
| void | vpMouseEvent (QMouseEvent *) |
| void | vpDrawExternal (QPainter *) |
| void | vpChangeBGColor (QColor) |
Public Member Functions | |
| OCCViewer_ViewPort3d (QWidget *, const Handle(V3d_Viewer)&, V3d_TypeOfView=V3d_ORTHOGRAPHIC) | |
| virtual | ~OCCViewer_ViewPort3d () |
| Handle (V3d_View) getView() const | |
| Handle (V3d_View) setView(const Handle(V3d_View)&) | |
| Handle (V3d_Viewer) getViewer() const | |
| void | setAnimationMode (bool theDegenerated) |
| virtual void | setBackgroundColor (const QColor &color) |
| virtual QColor | backgroundColor () const |
| virtual bool | syncronize (const OCCViewer_ViewPort3d *) |
| double | getZSize () const |
| void | setZSize (double) |
| virtual void | onUpdate () |
| virtual void | reset () |
| virtual void | pan (int, int) |
| virtual void | setCenter (int, int) |
| virtual void | fitRect (const QRect &) |
| virtual void | startZoomAtPoint (int, int) |
| virtual void | zoom (int, int, int, int) |
| virtual void | fitAll (bool keepScale=false, bool withZ=true, bool upd=true) |
| virtual void | rotateXY (double) |
| virtual void | startRotation (int, int, int, const gp_Pnt &) |
| virtual void | rotate (int, int, int, const gp_Pnt &) |
| virtual void | endRotation () |
| bool | isBusy () |
| void | setAdvancedZoomingEnabled (const bool theState) |
| bool | isAdvancedZoomingEnabled () const |
| void | setSketchingEnabled (bool) |
| bool | isSketchingEnabled () const |
| void | setTransformEnabled (bool) |
| bool | isTransformEnabled () const |
| void | redrawPainters () |
| virtual QPaintEngine * | paintEngine () const |
Protected Slots | |
| virtual void | onChangeBgColor () |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual void | attachWindow (const Handle(V3d_View)&, const Handle(Aspect_Window)&) |
| void | selectVisualId () |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| Handle (Aspect_Window) myWindow | |
Protected Attributes | |
| bool | myEnableSketching |
| bool | myEnableTransform |
| bool | myPaintersRedrawing |
| QList< QtxAction * > | myPopupActions |
Private Member Functions | |
| Handle (V3d_View) activeView() const | |
| Handle (V3d_View) inactiveView() const | |
| bool | mapView (const Handle(V3d_View)&) |
| bool | setWindow (const Handle(V3d_View)&) |
| bool | mapped (const Handle(V3d_View)&) const |
| Handle (V3d_View) myOrthoView | |
| Handle (V3d_View) myPerspView | |
| Handle (V3d_View) myActiveView | |
Private Attributes | |
| bool | myDegenerated |
| bool | myAnimate |
| bool | myBusy |
| double | myScale |
| bool | myIsAdvancedZoomingEnabled |
Friends | |
| class | OCCViewer_ViewTransformer |
| OCCViewer_ViewPort3d::OCCViewer_ViewPort3d | ( | QWidget * | parent, |
| const Handle(V3d_Viewer)& | viewer, | ||
| V3d_TypeOfView | type = V3d_ORTHOGRAPHIC |
||
| ) |
Constructor
References myDegenerated.
| OCCViewer_ViewPort3d::~OCCViewer_ViewPort3d | ( | ) | [virtual] |
Destructor
References Handle().
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | const |
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | const |
| OCCViewer_ViewPort3d.Handle | ( | V3d_Viewer | ) | const |
| void OCCViewer_ViewPort3d::setAnimationMode | ( | bool | theDegenerated | ) |
| void OCCViewer_ViewPort3d::setBackgroundColor | ( | const QColor & | color | ) | [virtual] |
Sets the background color [ virtual public ]
Reimplemented from OCCViewer_ViewPort.
References OCCViewer_ViewPort.vpChangeBGColor().
| QColor OCCViewer_ViewPort3d::backgroundColor | ( | ) | const [virtual] |
Returns the background color [ virtual public ]
Reimplemented from OCCViewer_ViewPort.
| bool OCCViewer_ViewPort3d::syncronize | ( | const OCCViewer_ViewPort3d * | ref | ) | [virtual] |
Syncronizes visual state of this viewport with 'ref' ( scale, projection, eye etc ) Returns 'true' if copied OK, 'false' otherwise. [ virtual public ]
References Handle().
| double OCCViewer_ViewPort3d::getZSize | ( | ) | const |
Returns Z-size of this view. [ public ]
| void OCCViewer_ViewPort3d::setZSize | ( | double | zsize | ) |
Sets Z-size of this view ( for both orthographic and perspective ). [ public ]
| void OCCViewer_ViewPort3d::onUpdate | ( | ) | [virtual] |
Updates the active viewport. [ virtual public ]
Reimplemented from OCCViewer_ViewPort.
| void OCCViewer_ViewPort3d::reset | ( | ) | [virtual] |
Resets the view. [ virtual protected ]
Implements OCCViewer_ViewPort.
| void OCCViewer_ViewPort3d::pan | ( | int | dx, |
| int | dy | ||
| ) | [virtual] |
Called at 'pan' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
| void OCCViewer_ViewPort3d::setCenter | ( | int | x, |
| int | y | ||
| ) | [virtual] |
| void OCCViewer_ViewPort3d::fitRect | ( | const QRect & | rect | ) | [virtual] |
Called at 'window fit' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
| void OCCViewer_ViewPort3d::startZoomAtPoint | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Inits 'zoom' transformation. [ protected ]
References isAdvancedZoomingEnabled().
| void OCCViewer_ViewPort3d::zoom | ( | int | x0, |
| int | y0, | ||
| int | x, | ||
| int | y | ||
| ) | [virtual] |
Called at 'zoom' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
References isAdvancedZoomingEnabled().
| void OCCViewer_ViewPort3d::fitAll | ( | bool | keepScale = false, |
| bool | withZ = true, |
||
| bool | upd = true |
||
| ) | [virtual] |
| void OCCViewer_ViewPort3d::rotateXY | ( | double | degrees | ) | [virtual] |
Rotate the view in the view plane (orthogonal to the view vector)
| void OCCViewer_ViewPort3d::startRotation | ( | int | x, |
| int | y, | ||
| int | theRotationPointType, | ||
| const gp_Pnt & | theSelectedPoint | ||
| ) | [virtual] |
Inits 'rotation' transformation. [ protected ]
References OCCViewer_ViewWindow.GRAVITY, myAnimate, myDegenerated, rx, ry, OCCViewer_ViewWindow.SELECTED, sx, sy, and zRotation.
| void OCCViewer_ViewPort3d::rotate | ( | int | x, |
| int | y, | ||
| int | theRotationPointType, | ||
| const gp_Pnt & | theSelectedPoint | ||
| ) | [virtual] |
Rotates the viewport. [ protected ]
References OCCViewer_ViewWindow.GRAVITY, rx, ry, OCCViewer_ViewWindow.SELECTED, sx, sy, and zRotation.
| void OCCViewer_ViewPort3d::endRotation | ( | ) | [virtual] |
Resets the viewport after 'rotation'. [ protected ]
References myAnimate, and myDegenerated.
| bool OCCViewer_ViewPort3d.isBusy | ( | ) |
| void OCCViewer_ViewPort3d.setAdvancedZoomingEnabled | ( | const bool | theState | ) |
| bool OCCViewer_ViewPort3d.isAdvancedZoomingEnabled | ( | ) | const |
| void OCCViewer_ViewPort3d::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
Repaints the viewport. [ virtual protected ]
Reimplemented from OCCViewer_ViewPort.
References mapped(), mapView(), myBusy, and OCCViewer_ViewPort.myPaintersRedrawing.
| void OCCViewer_ViewPort3d::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
| void OCCViewer_ViewPort3d::attachWindow | ( | const Handle(V3d_View)& | view, |
| const Handle(Aspect_Window)& | window | ||
| ) | [protected, virtual] |
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | const [private] |
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | const [private] |
| bool OCCViewer_ViewPort3d::mapView | ( | const Handle(V3d_View)& | view | ) | [private] |
Activates the desired 'type' of view in the viewer ( view of 'type' is created if it doesn't exist ). [ public ]
Maps CasCade 'view' to this viewport. [ private ]
References SUIT_ViewWindow.getViewManager(), SUIT_ViewManager.getViewModel(), OCCViewer_Viewer.isStaticTrihedronDisplayed(), mapped(), and setWindow().
| bool OCCViewer_ViewPort3d::setWindow | ( | const Handle(V3d_View)& | view | ) | [private] |
Passed the handle of native window of the component to CASCADE view. [ private ]
References attachWindow().
| bool OCCViewer_ViewPort3d::mapped | ( | const Handle(V3d_View)& | view | ) | const [private] |
Returns the current inactive view [ private ]
Returns 'true' if the given view is mapped to window. [ private ]
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | [private] |
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | [private] |
| OCCViewer_ViewPort3d.Handle | ( | V3d_View | ) | [private] |
| void OCCViewer_ViewPort::setSketchingEnabled | ( | bool | enable | ) | [inherited] |
Enables / disables sketching [ public ]
References OCCViewer_ViewPort.myEnableSketching.
| bool OCCViewer_ViewPort::isSketchingEnabled | ( | ) | const [inherited] |
Returns 'true' if sketching is enabled in this viewport. [ public ]
References OCCViewer_ViewPort.myEnableSketching.
| void OCCViewer_ViewPort::setTransformEnabled | ( | bool | enable | ) | [inherited] |
Enables / disables transformations. [ public ]
References OCCViewer_ViewPort.myEnableTransform.
| bool OCCViewer_ViewPort::isTransformEnabled | ( | ) | const [inherited] |
Returns 'true' if transformations ( rotation, zoom etc. ) are enabled in this viewport. [ public ]
References OCCViewer_ViewPort.myEnableTransform.
| void OCCViewer_ViewPort::redrawPainters | ( | ) | [inherited] |
Forces to redraw the viewport by an external painter. [ public ]
References OCCViewer_ViewPort.myPaintersRedrawing.
| QPaintEngine * OCCViewer_ViewPort::paintEngine | ( | ) | const [virtual, inherited] |
Get paint engine for the OpenGL viewer. [ virtual public ]
| void OCCViewer_ViewPort::selectVisualId | ( | ) | [protected, inherited] |
Selects visual ID for OpenGL window ( X11 specific ). [ protected ]
References test_table.a, OCCViewer_ViewPort.backgroundColor(), choose_cmap(), Plot2d.None, and Window.
| void OCCViewer_ViewPort::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual, inherited] |
Emits 'mouseEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpMouseEvent().
| void OCCViewer_ViewPort::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual, inherited] |
Emits 'mouseEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpMouseEvent().
| void OCCViewer_ViewPort::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual, inherited] |
Emits 'mouseEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpMouseEvent().
| void OCCViewer_ViewPort::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [protected, virtual, inherited] |
Emits 'mouseEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpMouseEvent().
| void OCCViewer_ViewPort::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual, inherited] |
Emits 'keyEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpKeyEvent().
| void OCCViewer_ViewPort::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual, inherited] |
Emits 'keyEvent' signal. [ virtual protected ]
References OCCViewer_ViewPort.vpKeyEvent().
| void OCCViewer_ViewPort::onChangeBgColor | ( | ) | [protected, virtual, slot, inherited] |
Creates the popup. [ virtual protected ]
Destroys the popup. [ virtual protected ]
Sets the background color with color selection dialog. [ virtual protected slot ]
References OCCViewer_ViewPort.backgroundColor(), and OCCViewer_ViewPort.setBackgroundColor().
| void OCCViewer_ViewPort.vpKeyEvent | ( | QKeyEvent * | ) | [signal, inherited] |
| void OCCViewer_ViewPort.vpMouseEvent | ( | QMouseEvent * | ) | [signal, inherited] |
| void OCCViewer_ViewPort.vpDrawExternal | ( | QPainter * | ) | [signal, inherited] |
| void OCCViewer_ViewPort.vpChangeBGColor | ( | QColor | ) | [signal, inherited] |
| OCCViewer_ViewPort.Handle | ( | Aspect_Window | ) | [protected, inherited] |
friend class OCCViewer_ViewTransformer [friend] |
bool OCCViewer_ViewPort3d.myDegenerated [private] |
bool OCCViewer_ViewPort3d.myAnimate [private] |
bool OCCViewer_ViewPort3d.myBusy [private] |
double OCCViewer_ViewPort3d.myScale [private] |
bool OCCViewer_ViewPort3d.myIsAdvancedZoomingEnabled [private] |
bool OCCViewer_ViewPort.myEnableSketching [protected, inherited] |
bool OCCViewer_ViewPort.myEnableTransform [protected, inherited] |
bool OCCViewer_ViewPort.myPaintersRedrawing [protected, inherited] |
QList<QtxAction*> OCCViewer_ViewPort.myPopupActions [protected, inherited] |