Visual Computing Library
Loading...
Searching...
No Matches
vcl::qt::MeshViewer Class Reference
Inheritance diagram for vcl::qt::MeshViewer:

Public Slots

void visibilityDrawableObjectChanged ()
 Slot called when the user changed the visibility of an object in the DrawableObjectVectorFrame.
 
void selectedDrawableObjectChanged (uint i)
 Slot called when the user selected a different DrawableObject in the DrawableObjectVectorFrame.
 
void renderSettingsUpdated ()
 Slot called every time that the MeshRenderSettingsFrame emits 'settingsUpdated()', that is when the user changes render settings of a GeneriDrawableMesh.
 
void fitScene ()
 
void updateGUI ()
 

Public Member Functions

 MeshViewer (QWidget *parent=nullptr)
 MeshViewer constructor.
 
void setDrawableObjectVector (const std::shared_ptr< vcl::DrawableObjectVector > &v)
 Sets the current DrawableObjectVector, and updates the GUI accordingly.
 
void setUnlistedDrawableObjectVector (const std::shared_ptr< vcl::DrawableObjectVector > &v)
 
uint selectedDrawableObject () const
 
TextEditLoggerlogger ()
 
void setDrawVectorIconFunction (const DrawableObjectVectorFrame::IconFunction &f)
 

Private Attributes

Ui::MeshViewer * mUI
 
std::shared_ptr< vcl::DrawableObjectVectormDrawableObjectVector
 
std::shared_ptr< vcl::DrawableObjectVectormListedDrawableObjects
 
std::shared_ptr< vcl::DrawableObjectVectormUnlistedDrawableObjects
 

Constructor & Destructor Documentation

◆ MeshViewer()

vcl::qt::MeshViewer::MeshViewer ( QWidget *  parent = nullptr)
explicit

MeshViewer constructor.

Creates a MeshViewer having the given parent. // Todo: document

Parameters
parent

Member Function Documentation

◆ renderSettingsUpdated

void vcl::qt::MeshViewer::renderSettingsUpdated ( )
slot

Slot called every time that the MeshRenderSettingsFrame emits 'settingsUpdated()', that is when the user changes render settings of a GeneriDrawableMesh.

We need to get the selected GeneriDrawableMesh first, and then update the settings to it.

◆ selectedDrawableObjectChanged

void vcl::qt::MeshViewer::selectedDrawableObjectChanged ( uint  i)
slot

Slot called when the user selected a different DrawableObject in the DrawableObjectVectorFrame.

Parameters
i

◆ setDrawableObjectVector()

void vcl::qt::MeshViewer::setDrawableObjectVector ( const std::shared_ptr< vcl::DrawableObjectVector > &  v)

Sets the current DrawableObjectVector, and updates the GUI accordingly.

Parameters
v

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