![]() |
Fraxinus
17.12-rc2
An IGT application
|
Creates a pool of views and offers an interface to them, also handles layouts on a centralwidget. More...
#include <cxViewImplService.h>
Public Slots | |
virtual void | aboutToStop () |
![]() | |
virtual void | aboutToStop ()=0 |
Public Member Functions | |
ViewImplService (ctkPluginContext *context) | |
virtual | ~ViewImplService () |
virtual ViewPtr | get3DView (int group=0, int index=0) |
virtual int | getActiveGroupId () const |
virtual ViewGroupDataPtr | getGroup (int groupIdx) const |
virtual void | setRegistrationMode (REGISTRATION_STATUS mode) |
virtual void | autoShowData (DataPtr data) |
virtual void | enableRender (bool val) |
virtual bool | renderingIsEnabled () const |
virtual QWidget * | createLayoutWidget (QWidget *parent, int index) |
Get the specified layout widget, create if necessary. More... | |
virtual QWidget * | getLayoutWidget (int index) |
Get the specified layout widget, NULL if not created. More... | |
virtual QString | getActiveLayout (int widgetIndex=0) const |
virtual void | setActiveLayout (const QString &uid, int widgetIndex) |
virtual ClippersPtr | getClippers () |
virtual InteractiveCropperPtr | getCropper () |
virtual CyclicActionLoggerPtr | getRenderTimer () |
virtual NavigationPtr | getNavigation (int group=0) |
virtual LayoutRepositoryPtr | getLayoutRepository () |
virtual CameraControlPtr | getCameraControl () |
virtual QActionGroup * | getInteractorStyleActionGroup () |
virtual void | centerToImageCenterInActiveViewGroup () |
virtual void | addDefaultLayout (LayoutData layoutData) |
virtual void | enableContextMenuForViews (bool enable=true) |
virtual bool | isNull () |
virtual void | setCameraStyle (CAMERA_STYLE_TYPE style, int groupIdx) |
virtual void | zoomCamera3D (int viewGroup3DNumber, int zoomFactor) |
![]() | |
RepContainerPtr | get3DReps (int group=0, int index=0) |
unsigned | groupCount () const |
virtual void | deactivateLayout () |
ViewGroupDataPtr | getActiveViewGroup () |
Protected Slots | |
void | layoutWidgetDestroyed (QObject *object) |
Protected Member Functions | |
void | rebuildLayouts () |
QList< unsigned > | getViewGroupsToAutoShowIn () |
Protected Attributes | |
VisServicesPtr | mServices |
std::vector< QPointer< ViewCollectionWidget > > | mLayoutWidgets |
RenderWindowFactoryPtr | mRenderWindowFactory |
RenderLoopPtr | mRenderLoop |
Additional Inherited Members | |
![]() | |
void | fps (int number) |
Emits number of frames per second. More... | |
void | activeLayoutChanged () |
emitted when the active layout changes More... | |
void | activeViewChanged () |
emitted when the active view changes More... | |
void | renderingEnabledChanged () |
emitted then rendering is enabled/disabled More... | |
void | pointSampled (Vector3D p_r) |
void | renderFinished () |
![]() | |
static ViewServicePtr | getNullObject () |
Creates a pool of views and offers an interface to them, also handles layouts on a centralwidget.
Implementation of ViewService.
The primitive element is the View. Various derivations of ViewWrapper controls each view and fills them with Reps. ViewWrapper2D controls a 2D slice, ViewWrapper3D controls a full 3D scene, ViewWrapperRTSource shows a video stream.
ViewService handles the visualization of the 3D data. It composes the Views onto the QWidget using a QGridLayout. This is called a Layout in the GUI. Available layouts can be found inside ViewService. The QWidget is the centralWidget in the MainWindow.
The views are divided into several groups. Each group, represented by a ViewGroup, has some common characteristics, such as which data to display. These data are stored in a ViewGroupData. The View/ViewWrappers connected to a group, uses the ViewGroupData to know what they should visualize. Each ViewWrapper formats the data in their own way (as slices or 3D renderings).
The right-click menu in the Views are created inside the ViewWrappers. The data they manipulate are (mostly) stored within ViewGroupData.
The Layout uses QGridLayout to organize the views. Each view belong to a group that show the same data in different ways (for example: 3D+ACS). The layout and grouping can be reconfigured in the OR.
Definition at line 104 of file cxViewImplService.h.
cx::ViewImplService::ViewImplService | ( | ctkPluginContext * | context | ) |
Definition at line 69 of file cxViewImplService.cpp.
|
virtual |
Definition at line 84 of file cxViewImplService.cpp.
|
virtualslot |
Definition at line 730 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 705 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 613 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 740 of file cxViewImplService.cpp.
|
virtual |
Get the specified layout widget, create if necessary.
Implements cx::ViewService.
Definition at line 187 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 710 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 140 of file cxViewImplService.cpp.
|
virtual |
Look for the index'th 3DView in given group.
Implements cx::ViewService.
Definition at line 367 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 287 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 271 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 623 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 735 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 266 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 403 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 577 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 547 of file cxViewImplService.cpp.
|
virtual |
Get the specified layout widget, NULL if not created.
Implements cx::ViewService.
Definition at line 180 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 174 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 677 of file cxViewImplService.cpp.
|
protected |
Definition at line 632 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 725 of file cxViewImplService.cpp.
|
protectedslot |
When GUI deletes the layout widget, we must clear resources here. Our own destructor gets called in a secondary thread (from pluginframework->stop), which shouldnt destroy GL stuff.
Definition at line 219 of file cxViewImplService.cpp.
|
protected |
Definition at line 443 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 150 of file cxViewImplService.cpp.
|
virtual |
Change layout from current to layout.
Implements cx::ViewService.
Definition at line 420 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 682 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 720 of file cxViewImplService.cpp.
|
virtual |
Implements cx::ViewService.
Definition at line 696 of file cxViewImplService.cpp.
|
protected |
Definition at line 165 of file cxViewImplService.h.
|
protected |
Definition at line 167 of file cxViewImplService.h.
|
protected |
Definition at line 166 of file cxViewImplService.h.
|
protected |
Definition at line 164 of file cxViewImplService.h.