Qt wrapper around the V3d_View class.
More...
#include <occtools/qt_view.h>
|
void | paintEvent (QPaintEvent *event) override |
| Reimplemented from QWidget::paintEvent() More...
|
|
void | resizeEvent (QResizeEvent *event) override |
| Reimplemented from QWidget::resizeEvent() Called when the widget needs to resize itself, but seeing as a paint event always follows a resize event, we'll move the work into the paint event. More...
|
|
Qt wrapper around the V3d_View class.
QtView widgets are explicitely bound to a context ie an AIS_InteractiveContext. The context can be retrieved with context().
QtView does not handle input devices interaction like keyboard and mouse.
occ::QtView::QtView |
( |
const Handle_AIS_InteractiveContext & |
context3d, |
|
|
QWidget * |
parent = NULL |
|
) |
| |
Construct a QtView bound to the interactive context context3d
, and having parent
as its Qt widget parent
int occ::QtView::addPaintCallback |
( |
const PaintCallback & |
callback | ) |
|
Handle_AIS_InteractiveContext occ::QtView::context |
( |
| ) |
const |
void occ::QtView::fitAll |
( |
| ) |
|
|
slot |
Handle_V3d_View occ::QtView::internalView |
( |
| ) |
const |
Aspect_GraphicCallbackStruct * occ::QtView::paintCallbackData |
( |
| ) |
const |
QPaintEngine * occ::QtView::paintEngine |
( |
| ) |
const |
|
override |
void occ::QtView::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
Reimplemented from QWidget::paintEvent()
void occ::QtView::redraw |
( |
| ) |
|
|
slot |
Force a redraw of the view.
void occ::QtView::removePaintCallback |
( |
int |
callbackId | ) |
|
void occ::QtView::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
Reimplemented from QWidget::resizeEvent() Called when the widget needs to resize itself, but seeing as a paint event always follows a resize event, we'll move the work into the paint event.
int occ_QtView_paintCallBack |
( |
Aspect_Drawable |
, |
|
|
void * |
pointer, |
|
|
Aspect_GraphicCallbackStruct * |
data |
|
) |
| |
|
friend |
Callback executed each time a paint is requested (on paintEvent())
The documentation for this class was generated from the following files: