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

Public Slots

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

Public Member Functions

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

Protected Member Functions

DrawableObjectVectorTreedrawableObjectVectorTree () const
 
void keyPressEvent (QKeyEvent *event) override
 
MeshViewerRenderAppviewer () const
 Returns the MeshViewerRenderApp used by this MeshViewer.
 

Private Attributes

std::shared_ptr< vcl::DrawableObjectVectormDrawableObjectVector
 
std::shared_ptr< vcl::DrawableObjectVectormListedDrawableObjects
 
Ui::MeshViewer * mUI
 
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

◆ viewer()

MeshViewerRenderApp & vcl::qt::MeshViewer::viewer ( ) const
protected

Returns the MeshViewerRenderApp used by this MeshViewer.

Returns
MeshViewerRenderApp

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