Slicer
5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/Widgets/qMRMLViewControllerBar.h>
Public Types | |
enum | LayoutBehavior { Popup =0, Panel } |
typedef qMRMLWidget | Superclass |
Superclass typedef. More... | |
Public Types inherited from qMRMLWidget | |
typedef QWidget | Superclass |
Properties | |
bool | showMaximizeViewButton |
Public Slots | |
void | maximizeView () |
void | setShowMaximizeViewButton (bool show) |
Public Slots inherited from qMRMLWidget | |
virtual void | setMRMLScene (vtkMRMLScene *newScene) |
Set the MRML scene associated with the widget. More... | |
Public Member Functions | |
Q_INVOKABLE QLayout * | barLayout () |
Q_INVOKABLE QWidget * | barWidget () |
Q_INVOKABLE QToolButton * | pinButton () |
Push-pin icon that shows additional options when clicked. More... | |
qMRMLViewControllerBar (QWidget *parent=nullptr) | |
Constructors. More... | |
Q_INVOKABLE void | setLayoutBehavior (LayoutBehavior behavior) |
bool | showMaximizeViewButton () const |
Q_INVOKABLE QLabel * | viewLabel () |
Label that displays the view's name. More... | |
~qMRMLViewControllerBar () override | |
Public Member Functions inherited from qMRMLWidget | |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Return a pointer on the current MRML scene. More... | |
qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
~qMRMLWidget () override | |
Protected Slots | |
virtual void | updateWidgetFromMRMLView () |
Protected Member Functions | |
virtual vtkMRMLAbstractViewNode * | mrmlViewNode () const |
qMRMLViewControllerBar (qMRMLViewControllerBarPrivate *pimpl, QWidget *parent=nullptr) | |
virtual void | setMRMLViewNode (vtkMRMLAbstractViewNode *viewNode) |
Protected Attributes | |
QScopedPointer< qMRMLViewControllerBarPrivate > | d_ptr |
Protected Attributes inherited from qMRMLWidget | |
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
Additional Inherited Members | |
Signals inherited from qMRMLWidget | |
void | mrmlSceneChanged (vtkMRMLScene *) |
Static Public Member Functions inherited from qMRMLWidget | |
static Q_INVOKABLE QPixmap | pixmapFromIcon (const QIcon &icon) |
static Q_INVOKABLE void | postInitializeApplication () |
Initialization that needs to be performed after application object is created. More... | |
static Q_INVOKABLE void | preInitializeApplication () |
qMRMLViewControllerBar is the base class of all the bars over views. A controller bar typically contains a pin button, a view label to uniquely define a view, a popup widget to control the view and a unique color per type of view. The popup widget can be made occupy space in the widget and is then displayed below the bar.
Definition at line 55 of file qMRMLViewControllerBar.h.
Superclass typedef.
Definition at line 64 of file qMRMLViewControllerBar.h.
Enumerator | |
---|---|
Popup | |
Panel |
Definition at line 70 of file qMRMLViewControllerBar.h.
|
readwrite |
Definition at line 60 of file qMRMLViewControllerBar.h.
|
explicit |
Constructors.
|
override |
|
protected |
Q_INVOKABLE QLayout* qMRMLViewControllerBar::barLayout | ( | ) |
Get the layout for the "bar" in the view controller. This layout is an HBoxLayout. It is packed in a VBoxLayout that contains the "bar" and other controllers.
Q_INVOKABLE QWidget* qMRMLViewControllerBar::barWidget | ( | ) |
Get the widget for the "bar" in the view controller. This is the part of the controller that is visible even when view controller is not pinned.
|
slot |
|
protectedvirtual |
Q_INVOKABLE QToolButton* qMRMLViewControllerBar::pinButton | ( | ) |
Push-pin icon that shows additional options when clicked.
Q_INVOKABLE void qMRMLViewControllerBar::setLayoutBehavior | ( | LayoutBehavior | behavior | ) |
Set the behavior of the controller, i.e. should it be a popup or should it occupy space within the widget? (not certain that this method can be called multiple times to toggle between the behaviors)
|
protectedvirtual |
Reimplemented in qMRMLThreeDViewControllerWidget.
|
slot |
bool qMRMLViewControllerBar::showMaximizeViewButton | ( | ) | const |
|
protectedvirtualslot |
Q_INVOKABLE QLabel* qMRMLViewControllerBar::viewLabel | ( | ) |
Label that displays the view's name.
|
protected |
Definition at line 107 of file qMRMLViewControllerBar.h.