NorMIT-nav
16.5
An IGT application
|
#include <cxView.h>
Public Types | |
enum | Type { VIEW, VIEW_2D, VIEW_3D, VIEW_REAL_TIME } |
Signals | |
void | resized (QSize size) |
void | mouseMove (int x, int y, Qt::MouseButtons buttons) |
void | mousePress (int x, int y, Qt::MouseButtons buttons) |
void | mouseRelease (int x, int y, Qt::MouseButtons buttons) |
void | mouseWheel (int x, int y, int delta, int orientation, Qt::MouseButtons buttons) |
void | shown () |
void | focusChange (bool gotFocus, Qt::FocusReason reason) |
void | customContextMenuRequested (const QPoint &) |
Public Member Functions | |
virtual | ~View () |
virtual Type | getType () const =0 |
virtual QString | getTypeString () const =0 |
virtual QString | getUid ()=0 |
Get a views unique id. More... | |
virtual QString | getName ()=0 |
Get a views name. More... | |
virtual void | addRep (const RepPtr &rep)=0 |
Adds and connects a rep to the view. More... | |
virtual void | removeRep (const RepPtr &rep)=0 |
Removes and disconnects the rep from the view. More... | |
virtual bool | hasRep (const RepPtr &rep) const =0 |
Checks if the view already have the rep. More... | |
virtual std::vector< RepPtr > | getReps ()=0 |
Returns all reps in the view. More... | |
virtual void | removeReps ()=0 |
Removes all reps in the view. More... | |
virtual vtkRendererPtr | getRenderer () const =0 |
Get the renderer used by this View. More... | |
virtual vtkRenderWindowPtr | getRenderWindow () const =0 |
virtual void | setModified ()=0 |
virtual void | setBackgroundColor (QColor color)=0 |
virtual QSize | size () const =0 |
virtual void | setZoomFactor (double factor)=0 |
virtual double | getZoomFactor () const =0 |
virtual Transform3D | get_vpMs () const =0 |
virtual DoubleBoundingBox3D | getViewport () const =0 |
virtual DoubleBoundingBox3D | getViewport_s () const =0 |
Base widget for displaying representations (Rep).
Use a ViewCollectionWidget to create Views.
A View represents one visualization scene, wrapping a vtkRenderer, vtkCamera and a vtkRenderWindow. The vtkRenderWindow might be shared with other Views.
Add reps to the View in order to visualize them. Although any Rep can be added to a View, it makes most sense to dedicate each view for either 2D, 3D or Video display. Most Reps are specialized to one of these three modes.
enum cx::View::Type |
|
pure virtual |
Adds and connects a rep to the view.
Implemented in cx::ViewRepCollection.
|
signal |
|
signal |
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.
|
pure virtual |
Get a views name.
Implemented in cx::ViewRepCollection.
|
pure virtual |
Get the renderer used by this View.
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewRepCollection.
|
pure virtual |
Returns all reps in the view.
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewRepCollection.
|
pure virtual |
Get a views unique id.
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.
|
pure virtual |
Checks if the view already have the rep.
Implemented in cx::ViewRepCollection.
|
signal |
|
signal |
|
signal |
|
signal |
|
pure virtual |
Removes and disconnects the rep from the view.
Implemented in cx::ViewRepCollection.
|
pure virtual |
Removes all reps in the view.
Implemented in cx::ViewRepCollection.
|
signal |
|
pure virtual |
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewRepCollection.
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.
|
signal |
|
pure virtual |
Implemented in cx::ViewLinkingViewWidget, and cx::ViewLinkingViewContainerItem.