fast::DualViewWindow class

A Window with 2 views.

Base classes

class Window
Abstract base class for windows.

Derived classes

class DualViewWindow2D
A Window with 2 views in 2D mode.
class DualViewWindow3D
A Window with 2 views in 3D mode.

Constructors, destructors, conversion operators

~DualViewWindow()

Public functions

auto create(Color bgcolor, int width, int height, bool verticalMode) -> std::shared_ptr<DualViewWindow>
Create instance.
void addRendererToTopLeftView(Renderer::pointer renderer)
void addRendererToBottomRightView(Renderer::pointer renderer)
void addRendererToLeftView(Renderer::pointer renderer)
void addRendererToRightView(Renderer::pointer renderer)
void addRendererToTopView(Renderer::pointer renderer)
void addRendererToBottomView(Renderer::pointer renderer)
void removeAllRenderers()
auto getTopLeftView() -> View*
auto getBottomRightView() -> View*
void setHorizontalMode()
void setVerticalMode()
void setBackgroundColor(Color color)
void addWidget(QWidget* widget)
auto connectLeft(std::shared_ptr<Renderer> renderer) -> std::shared_ptr<DualViewWindow>
auto connectLeft(std::vector<std::shared_ptr<Renderer>> renderers) -> std::shared_ptr<DualViewWindow>
auto connectRight(std::shared_ptr<Renderer> renderer) -> std::shared_ptr<DualViewWindow>
auto connectRight(std::vector<std::shared_ptr<Renderer>> renderers) -> std::shared_ptr<DualViewWindow>
auto connectTop(std::shared_ptr<Renderer> renderer) -> std::shared_ptr<DualViewWindow>
auto connectTop(std::vector<std::shared_ptr<Renderer>> renderers) -> std::shared_ptr<DualViewWindow>
auto connectBottom(std::shared_ptr<Renderer> renderer) -> std::shared_ptr<DualViewWindow>
auto connectBottom(std::vector<std::shared_ptr<Renderer>> renderers) -> std::shared_ptr<DualViewWindow>
auto connect(QWidget* widget, WidgetPosition position = WidgetPosition::BOTTOM) -> std::shared_ptr<DualViewWindow>
auto connect(std::vector<QWidget*> widgets, WidgetPosition position = WidgetPosition::BOTTOM) -> std::shared_ptr<DualViewWindow>
auto connect(uint id, std::shared_ptr<DataObject> data) -> std::shared_ptr<Window> override
auto connect(uint id, std::shared_ptr<ProcessObject> PO, uint portID = 0) -> std::shared_ptr<Window> override

Protected functions

void createLayout()

Protected variables

bool mVerticalMode

Function documentation

std::shared_ptr<DualViewWindow> fast::DualViewWindow::create(Color bgcolor, int width, int height, bool verticalMode)

Create instance.

Parameters
bgcolor background color for both views
width Width of window, if 0 width is set automatically
height Height of window, if 0 height is set automatically
verticalMode Whether to display the two views vertically or horizontally
Returns instance