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

#include <ViewerOpenGLViewport.hpp>

Inherits QOpenGLWidget, and QOpenGLFunctions.

Public Member Functions

 ViewerOpenGLViewport (QWidget *parent=nullptr)
 
 ~ViewerOpenGLViewport ()
 
void setViewports (ViewerViewports *viewer, size_t viewportId)
 
size_t viewportId () const
 
void setSelected (bool selected)
 
bool selected () const
 
void updateScene (Editor *editor)
 
void resetScene (Editor *editor, bool resetView)
 
Camera camera () const
 
void setViewOrthographic ()
 
void setViewPerspective ()
 
void setViewTop ()
 
void setViewFront ()
 
void setViewRight ()
 
void setView3d ()
 
void setViewResetDistance ()
 
void setViewResetCenter ()
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void hideEvent (QHideEvent *event) override
 
void initializeGL () override
 
void paintGL () override
 
void resizeGL (int w, int h) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void setViewDefault ()
 
void clearScreen ()
 
void renderScene ()
 
void renderFirstFrame ()
 
void renderLastFrame ()
 
void renderSegments ()
 
void renderAttributes ()
 
void renderGuides ()
 
void renderSceneSettingsEnable ()
 
void renderSceneSettingsDisable ()
 
void cameraChanged ()
 
void setFocus ()
 
void setViewDirection (const QVector3D &dir, const QVector3D &up)
 

Protected Attributes

ViewerViewportswindowViewports_
 
size_t viewportId_
 
bool selected_
 
bool resized_
 
Editoreditor_
 
ViewerAabb aabb_
 
ViewerCamera camera_
 

Constructor & Destructor Documentation

◆ ViewerOpenGLViewport()

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

◆ ~ViewerOpenGLViewport()

ViewerOpenGLViewport::~ViewerOpenGLViewport ( )

Member Function Documentation

◆ camera()

Camera ViewerOpenGLViewport::camera ( ) const

◆ cameraChanged()

void ViewerOpenGLViewport::cameraChanged ( )
protected

Referenced by mouseMoveEvent(), and wheelEvent().

◆ clearScreen()

void ViewerOpenGLViewport::clearScreen ( )
protected

Referenced by renderFirstFrame().

◆ hideEvent()

void ViewerOpenGLViewport::hideEvent ( QHideEvent * event)
overrideprotected

◆ initializeGL()

void ViewerOpenGLViewport::initializeGL ( )
overrideprotected

◆ mouseMoveEvent()

void ViewerOpenGLViewport::mouseMoveEvent ( QMouseEvent * event)
overrideprotected

◆ mousePressEvent()

void ViewerOpenGLViewport::mousePressEvent ( QMouseEvent * event)
overrideprotected

◆ mouseReleaseEvent()

void ViewerOpenGLViewport::mouseReleaseEvent ( QMouseEvent * event)
overrideprotected

◆ paintEvent()

void ViewerOpenGLViewport::paintEvent ( QPaintEvent * event)
overrideprotected

◆ paintGL()

void ViewerOpenGLViewport::paintGL ( )
overrideprotected

◆ renderAttributes()

void ViewerOpenGLViewport::renderAttributes ( )
protected

Referenced by renderFirstFrame().

◆ renderFirstFrame()

void ViewerOpenGLViewport::renderFirstFrame ( )
protected

Referenced by renderScene().

◆ renderGuides()

void ViewerOpenGLViewport::renderGuides ( )
protected

Referenced by renderFirstFrame().

◆ renderLastFrame()

void ViewerOpenGLViewport::renderLastFrame ( )
protected

Referenced by renderScene().

◆ renderScene()

void ViewerOpenGLViewport::renderScene ( )
protected

Referenced by paintGL().

◆ renderSceneSettingsDisable()

void ViewerOpenGLViewport::renderSceneSettingsDisable ( )
protected

Referenced by renderScene().

◆ renderSceneSettingsEnable()

void ViewerOpenGLViewport::renderSceneSettingsEnable ( )
protected

Referenced by renderScene().

◆ renderSegments()

void ViewerOpenGLViewport::renderSegments ( )
protected

Referenced by renderFirstFrame().

◆ resetScene()

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

◆ resizeEvent()

void ViewerOpenGLViewport::resizeEvent ( QResizeEvent * event)
overrideprotected

◆ resizeGL()

void ViewerOpenGLViewport::resizeGL ( int w,
int h )
overrideprotected

◆ selected()

bool ViewerOpenGLViewport::selected ( ) const

Referenced by setFocus(), and setSelected().

◆ setFocus()

void ViewerOpenGLViewport::setFocus ( )
protected

Referenced by mousePressEvent(), and wheelEvent().

◆ setSelected()

void ViewerOpenGLViewport::setSelected ( bool selected)

◆ setView3d()

void ViewerOpenGLViewport::setView3d ( )

◆ setViewDefault()

void ViewerOpenGLViewport::setViewDefault ( )
protected

Referenced by ViewerOpenGLViewport().

◆ setViewDirection()

void ViewerOpenGLViewport::setViewDirection ( const QVector3D & dir,
const QVector3D & up )
protected

◆ setViewFront()

void ViewerOpenGLViewport::setViewFront ( )

◆ setViewOrthographic()

void ViewerOpenGLViewport::setViewOrthographic ( )

◆ setViewPerspective()

void ViewerOpenGLViewport::setViewPerspective ( )

◆ setViewports()

void ViewerOpenGLViewport::setViewports ( ViewerViewports * viewer,
size_t viewportId )

◆ setViewResetCenter()

void ViewerOpenGLViewport::setViewResetCenter ( )

◆ setViewResetDistance()

void ViewerOpenGLViewport::setViewResetDistance ( )

◆ setViewRight()

void ViewerOpenGLViewport::setViewRight ( )

◆ setViewTop()

void ViewerOpenGLViewport::setViewTop ( )

◆ showEvent()

void ViewerOpenGLViewport::showEvent ( QShowEvent * event)
overrideprotected

◆ updateScene()

void ViewerOpenGLViewport::updateScene ( Editor * editor)

◆ viewportId()

size_t ViewerOpenGLViewport::viewportId ( ) const

◆ wheelEvent()

void ViewerOpenGLViewport::wheelEvent ( QWheelEvent * event)
overrideprotected

Member Data Documentation

◆ aabb_

◆ camera_

◆ editor_

◆ resized_

bool ViewerOpenGLViewport::resized_
protected

Referenced by renderScene(), and resizeEvent().

◆ selected_

bool ViewerOpenGLViewport::selected_
protected

Referenced by selected(), and setSelected().

◆ viewportId_

◆ windowViewports_

ViewerViewports* ViewerOpenGLViewport::windowViewports_
protected

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