#include <OCCViewer_ViewPort3d.h>

Public Slots | |
| virtual bool | synchronize (OCCViewer_ViewPort *) |
Public Slots inherited from OCCViewer_ViewPort | |
| virtual bool | synchronize (OCCViewer_ViewPort *) |
Signals | |
| void | vpChangeBackground (const Qtx::BackgroundData &) |
| void | vpClosed (OCCViewer_ViewPort3d *) |
| void | vpMapped (OCCViewer_ViewPort3d *) |
| void | vpResizeEvent (QResizeEvent *) |
Signals inherited from OCCViewer_ViewPort | |
| void | vpKeyEvent (QKeyEvent *) |
| void | vpMouseEvent (QMouseEvent *) |
| void | vpDrawExternal (QPainter *) |
| void | vpChangeBGColor (QColor) |
| void | vpTransformed (OCCViewer_ViewPort *) |
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 | |
| virtual void | setBackgroundColor (const QColor &color) |
| virtual QColor | backgroundColor () const |
| void | setBackground (const Qtx::BackgroundData &color) |
| Qtx::BackgroundData | background () const |
| virtual int | getBgImgHeight () |
| virtual int | getBgImgWidth () |
| virtual bool | syncronize (const OCCViewer_ViewPort3d *) |
| void | getAxialScale (double &, double &, 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 | setAxialScale (double, double, double) |
| virtual void | startRotation (int, int, int, const gp_Pnt &) |
| virtual void | rotate (int, int, int, const gp_Pnt &) |
| virtual void | endRotation () |
| void | setRotationAxis (const gp_Vec &theAxis, double theAngle, double theZAngle) |
| void | stopRotation () |
| bool | isBusy () |
| void | setAdvancedZoomingEnabled (const bool theState) |
| bool | isAdvancedZoomingEnabled () const |
| void | showStaticTrihedron (bool) |
| void | setStaticTrihedronTextFont () |
| void | setStaticTrihedronTextColor () |
| void | setDefaultCursor (Qt::CursorShape theCursorShape) |
| QCursor * | getDefaultCursor () const |
Public Member Functions inherited from OCCViewer_ViewPort | |
| OCCViewer_ViewPort (QWidget *parent) | |
| virtual | ~OCCViewer_ViewPort () |
| void | setSketchingEnabled (bool) |
| bool | isSketchingEnabled () const |
| void | setTransformEnabled (bool) |
| bool | isTransformEnabled () const |
| void | redrawPainters () |
| virtual QPaintEngine * | paintEngine () const |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual void | attachWindow (const Handle(V3d_View)&, const Handle(Aspect_Window)&) |
Protected Member Functions inherited from OCCViewer_ViewPort | |
| 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 | |
Private Slots | |
| void | updateRotation () |
| void | repaintViewAfterMove () |
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 |
| void | updateBackground () |
| void | setDefaultParams () |
| Handle (V3d_View) myActiveView | |
Private Attributes | |
| bool | myBusy |
| double | myScale |
| bool | myIsAdvancedZoomingEnabled |
| Qtx::BackgroundData | myBackground |
| int | myBgImgHeight |
| int | myBgImgWidth |
| QCursor * | myCursor |
| gp_Ax1 | myRotAxis |
| double | myRotAngle |
| bool | myIsRotating |
| qint64 | myLastRender |
| QTimer * | myRotTimer |
Friends | |
| class | OCCViewer_ViewTransformer |
Additional Inherited Members | |
Protected Slots inherited from OCCViewer_ViewPort | |
| virtual void | onChangeBackground () |
Protected Attributes inherited from OCCViewer_ViewPort | |
| bool | myEnableSketching |
| bool | myEnableTransform |
| bool | myPaintersRedrawing |
| QList< QtxAction * > | myPopupActions |
| OCCViewer_ViewPort3d::OCCViewer_ViewPort3d | ( | QWidget * | parent, |
| const Handle(V3d_Viewer)& | viewer, | ||
| V3d_TypeOfView | type = V3d_ORTHOGRAPHIC |
||
| ) |
Constructor
References myCursor, myRotTimer, and setDefaultParams().
|
virtual |
Destructor
References Handle(), myCursor, myRotTimer, and vpClosed().
| Qtx::BackgroundData OCCViewer_ViewPort3d::background | ( | ) | const |
Returns the background data
References myBackground.
|
virtual |
Returns the background color [ virtual public ] [ obsolete ]
Reimplemented from OCCViewer_ViewPort.
References background(), and Qtx::BackgroundData::color().
|
virtual |
Resets the viewport after 'rotation'. [ protected ]
References OCCViewer_ViewPort::vpTransformed().
|
virtual |
Fits all objects in view. [ virtual protected ]
Implements OCCViewer_ViewPort.
References myIsRotating, myScale, stopRotation(), and OCCViewer_ViewPort::vpTransformed().
|
virtual |
Called at 'window fit' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
References OCCViewer_ViewPort::vpTransformed().
| void OCCViewer_ViewPort3d::getAxialScale | ( | double & | xScale, |
| double & | yScale, | ||
| double & | zScale | ||
| ) |
Get axial scale to the view
|
inlinevirtual |
|
inlinevirtual |
| QCursor * OCCViewer_ViewPort3d::getDefaultCursor | ( | ) | const |
References myCursor.
|
private |
| OCCViewer_ViewPort3d::Handle | ( | V3d_View | ) | const |
|
private |
|
private |
| OCCViewer_ViewPort3d::Handle | ( | V3d_View | ) | const & |
| OCCViewer_ViewPort3d::Handle | ( | V3d_Viewer | ) | const |
|
inline |
|
inline |
|
private |
|
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 mapped(), setWindow(), and vpMapped().
|
virtual |
Updates the active viewport. [ virtual public ]
Reimplemented from OCCViewer_ViewPort.
|
protectedvirtual |
Repaints the viewport. [ virtual protected ]
Reimplemented from OCCViewer_ViewPort.
References mapped(), mapView(), myBusy, OCCViewer_ViewPort::myPaintersRedrawing, and OCCViewer_ViewPort::paintEvent().
|
virtual |
Called at 'pan' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
References myIsRotating, stopRotation(), and OCCViewer_ViewPort::vpTransformed().
|
privateslot |
Moved the viewport
|
virtual |
Resets the view. [ virtual protected ]
Implements OCCViewer_ViewPort.
References myIsRotating, stopRotation(), and OCCViewer_ViewPort::vpTransformed().
|
protectedvirtual |
Resizes the viewport. [ virtual protected ]
References mapped(), mapView(), repaintViewAfterMove(), and vpResizeEvent().
|
virtual |
Rotates the viewport. [ protected ]
References OCCViewer_ViewWindow::BBCENTER, rx, ry, OCCViewer_ViewWindow::SELECTED, sx, sy, OCCViewer_ViewPort::vpTransformed(), and zRotation.
|
virtual |
Rotate the view in the view plane (orthogonal to the view vector)
References myIsRotating, stopRotation(), and OCCViewer_ViewPort::vpTransformed().
|
inline |
|
virtual |
Set axial scale to the view
References OCCViewer_ViewPort::vpTransformed().
| void OCCViewer_ViewPort3d::setBackground | ( | const Qtx::BackgroundData & | bgData | ) |
Sets the background data
References Qtx::BackgroundData::isValid(), myBackground, updateBackground(), and vpChangeBackground().
|
virtual |
Sets the background color [ virtual public ] [ obsolete ]
Reimplemented from OCCViewer_ViewPort.
References background(), OCCViewer::color(), setBackground(), and Qtx::BackgroundData::setColor().
|
virtual |
Centers the viewport. [ virtual protected ]
Implements OCCViewer_ViewPort.
References myIsRotating, myScale, stopRotation(), and OCCViewer_ViewPort::vpTransformed().
| void OCCViewer_ViewPort3d::setDefaultCursor | ( | Qt::CursorShape | theCursorShape | ) |
References myCursor.
|
private |
| void OCCViewer_ViewPort3d::setRotationAxis | ( | const gp_Vec & | theAxis, |
| double | theAngle, | ||
| double | theZAngle | ||
| ) |
Set the rotation axis and start automatic rotation
References Handle(), myIsRotating, myLastRender, myRotAngle, myRotAxis, myRotTimer, updateRotation(), and zRotation.
| void OCCViewer_ViewPort3d::setStaticTrihedronTextColor | ( | ) |
Set the color for axes labels of static trihedron
References Handle(), and ViewerTools_TrihedronSetupBase::setTextColor().
| void OCCViewer_ViewPort3d::setStaticTrihedronTextFont | ( | ) |
Set the font for axes labels of static trihedron
References Handle(), and ViewerTools_TrihedronSetupBase::setTextFont().
|
private |
Passed the handle of native window of the component to CASCADE view. [ private ]
References attachWindow().
| void OCCViewer_ViewPort3d::showStaticTrihedron | ( | bool | on | ) |
References Handle(), setStaticTrihedronTextColor(), and setStaticTrihedronTextFont().
|
virtual |
Inits 'rotation' transformation. [ protected ]
References OCCViewer_ViewWindow::BBCENTER, myIsRotating, rx, ry, OCCViewer_ViewWindow::SELECTED, stopRotation(), sx, sy, and zRotation.
|
virtual |
Inits 'zoom' transformation. [ protected ]
References isAdvancedZoomingEnabled().
| void OCCViewer_ViewPort3d::stopRotation | ( | ) |
Stop the automatic rotation
References myIsRotating, and myRotTimer.
|
virtualslot |
|
virtual |
|
private |
References Qtx::CenterTexture, Qtx::BackgroundData::color(), Qtx::ColorBackground, OCCViewer_Viewer::Corner1Gradient, OCCViewer_Viewer::Corner2Gradient, OCCViewer_Viewer::Corner3Gradient, OCCViewer_Viewer::Corner4Gradient, Qtx::CustomGradientBackground, OCCViewer_Viewer::Diagonal1Gradient, OCCViewer_Viewer::Diagonal2Gradient, Qtx::BackgroundData::gradient(), OCCViewer_Viewer::HorizontalGradient, Qtx::BackgroundData::isTextureShown(), Qtx::BackgroundData::isValid(), OCCViewer_Viewer::LastGradient, Qtx::BackgroundData::mode(), myBackground, Qtx::SimpleGradientBackground, Qtx::StretchTexture, Qtx::BackgroundData::texture(), Qtx::TileTexture, and OCCViewer_Viewer::VerticalGradient.
|
privateslot |
Update the automatic rotation animation
References Handle(), myIsRotating, myLastRender, myRotAngle, myRotAxis, and myRotTimer.
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Called at 'zoom' transformation. [ virtual protected ]
Implements OCCViewer_ViewPort.
References isAdvancedZoomingEnabled(), and OCCViewer_ViewPort::vpTransformed().
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |