3D Forest
Software for analysis of Lidar data from forest environment.
ViewerViewports Class Reference

#include <ViewerViewports.hpp>

Inherits QWidget.

Public Types

enum  ViewLayout { VIEW_LAYOUT_SINGLE , VIEW_LAYOUT_TWO_COLUMNS , VIEW_LAYOUT_GRID , VIEW_LAYOUT_THREE_ROWS_RIGHT }
 

Signals

void cameraChanged (size_t viewportId)
 

Public Member Functions

 ViewerViewports (QWidget *parent=nullptr)
 
 ~ViewerViewports ()
 
void setLayout (ViewLayout viewLayout)
 
void setViewOrthographic ()
 
void setViewPerspective ()
 
void setViewTop ()
 
void setViewFront ()
 
void setViewRight ()
 
void setView3d ()
 
void setViewResetDistance ()
 
void setViewResetCenter ()
 
void selectViewport (ViewerOpenGLViewport *viewport)
 
size_t selectedViewportId () const
 
std::vector< Cameracamera (size_t viewportId) const
 
std::vector< Cameracamera () const
 
void updateScene (Editor *editor)
 
void resetScene (Editor *editor, bool resetView)
 
void resetViewport (Editor *editor, size_t viewportId, bool resetView)
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void hideEvent (QHideEvent *event) override
 
void initializeViewports ()
 
ViewerOpenGLViewportcreateViewport (size_t viewportId)
 
ViewerOpenGLViewportselectedViewport ()
 
const ViewerOpenGLViewportselectedViewport () const
 

Protected Attributes

std::vector< ViewerOpenGLViewport * > viewports_
 

Member Enumeration Documentation

◆ ViewLayout

Enumerator
VIEW_LAYOUT_SINGLE 
VIEW_LAYOUT_TWO_COLUMNS 
VIEW_LAYOUT_GRID 
VIEW_LAYOUT_THREE_ROWS_RIGHT 

Constructor & Destructor Documentation

◆ ViewerViewports()

ViewerViewports::ViewerViewports ( QWidget * parent = nullptr)
explicit

◆ ~ViewerViewports()

ViewerViewports::~ViewerViewports ( )

Member Function Documentation

◆ camera() [1/2]

std::vector< Camera > ViewerViewports::camera ( ) const

◆ camera() [2/2]

std::vector< Camera > ViewerViewports::camera ( size_t viewportId) const

◆ cameraChanged

void ViewerViewports::cameraChanged ( size_t viewportId)
signal

◆ createViewport()

ViewerOpenGLViewport * ViewerViewports::createViewport ( size_t viewportId)
protected

Referenced by setLayout().

◆ hideEvent()

void ViewerViewports::hideEvent ( QHideEvent * event)
overrideprotected

◆ initializeViewports()

void ViewerViewports::initializeViewports ( )
protected

Referenced by ViewerViewports().

◆ paintEvent()

void ViewerViewports::paintEvent ( QPaintEvent * event)
overrideprotected

◆ resetScene()

void ViewerViewports::resetScene ( Editor * editor,
bool resetView )

◆ resetViewport()

void ViewerViewports::resetViewport ( Editor * editor,
size_t viewportId,
bool resetView )

◆ resizeEvent()

void ViewerViewports::resizeEvent ( QResizeEvent * event)
overrideprotected

◆ selectedViewport() [1/2]

◆ selectedViewport() [2/2]

const ViewerOpenGLViewport * ViewerViewports::selectedViewport ( ) const
protected

◆ selectedViewportId()

size_t ViewerViewports::selectedViewportId ( ) const

◆ selectViewport()

void ViewerViewports::selectViewport ( ViewerOpenGLViewport * viewport)

◆ setLayout()

void ViewerViewports::setLayout ( ViewLayout viewLayout)

◆ setView3d()

void ViewerViewports::setView3d ( )

◆ setViewFront()

void ViewerViewports::setViewFront ( )

◆ setViewOrthographic()

void ViewerViewports::setViewOrthographic ( )

◆ setViewPerspective()

void ViewerViewports::setViewPerspective ( )

◆ setViewResetCenter()

void ViewerViewports::setViewResetCenter ( )

◆ setViewResetDistance()

void ViewerViewports::setViewResetDistance ( )

◆ setViewRight()

void ViewerViewports::setViewRight ( )

◆ setViewTop()

void ViewerViewports::setViewTop ( )

◆ showEvent()

void ViewerViewports::showEvent ( QShowEvent * event)
overrideprotected

◆ updateScene()

void ViewerViewports::updateScene ( Editor * editor)

Member Data Documentation

◆ viewports_


The documentation for this class was generated from the following files: