Workspace 6.21.5
Public Slots | Signals | Public Member Functions | List of all members
SelectedMeshWidget Class Reference

Widget for viewing information about the selected mesh in a rendering window.

#include <Rendering/Widgets/selectedmeshwidget.h>

Inherits QWidget.

Public Slots

void selectModel (const CSIRO::Rendering::PickedItem &item, const CSIRO::Rendering::PickFilter &filter)
 
void selectNone ()
 

Signals

void elementSelected (const Mesh::ElementType::Type *type, Mesh::ItemHandle::size_type elementIndex)
 
void nodeSelected (Mesh::ItemHandle::size_type nodeIndex)
 

Public Member Functions

 SelectedMeshWidget (QWidget *parent=nullptr)
 
 ~SelectedMeshWidget () override
 
bool getAllowUpdateRequests () const
 
void setAllowUpdateRequests (bool b)
 
QSize sizeHint () const override
 

Constructor & Destructor Documentation

◆ SelectedMeshWidget()

SelectedMeshWidget ( QWidget *  parent = nullptr)
explicit

◆ ~SelectedMeshWidget()

~SelectedMeshWidget ( )
override

Member Function Documentation

◆ elementSelected

void elementSelected ( const Mesh::ElementType::Type type,
Mesh::ItemHandle::size_type  elementIndex 
)
signal

◆ getAllowUpdateRequests()

bool getAllowUpdateRequests ( ) const
Returns
True if update requests are allowed, false otherwise.
See also
setAllowUpdateRequests

◆ nodeSelected

void nodeSelected ( Mesh::ItemHandle::size_type  nodeIndex)
signal

◆ selectModel

void selectModel ( const CSIRO::Rendering::PickedItem item,
const CSIRO::Rendering::PickFilter filter 
)
slot
Parameters
itemInformation specifying which model to select (e.g. id)
filterInformation about the type of selection that was made (e.g. was the whole model selected, or just one of its elements?)

Select the specified model in the widget, and display its information.

◆ selectNone

void selectNone ( )
slot

◆ setAllowUpdateRequests()

void setAllowUpdateRequests ( bool  b)
Parameters
bIf true, we are allowing update requests from this widget.

This function allows the UI designer to decide whether they want to allow this widget to request updates from MeshModelSource operations on the underlying workflow. This means that in the case that a selection was performed a cached copy of MeshModelInterface data, such that the original MeshModelInterface data is not in memory, the widget will request that that data be brought into memory so that it can display the relevant information.

See also
getAllowUpdateRequests

◆ sizeHint()

QSize sizeHint ( ) const
override