API Documentation
Loading...
Searching...
No Matches
DesignWidget Class Reference

A widget showing key properties of a DesignObject selection, used primarily in a SelectionWidget. More...

#include <DesignWidget.h>

Inheritance diagram for DesignWidget:
[legend]
Collaboration diagram for DesignWidget:
[legend]

Classes

struct  PropertiesStruct
 

Public Types

enum  WidgetMode { e_normal , e_measurement }
 

Public Member Functions

void clear ()
 
 DesignWidget (QTModelManager *model_manager, QWidget *parent)
 
QSize minimumSizeHint () const override
 
Buffer< UUIDmodelIDs () const
 
Buffer< Modelmodels () const
 
const PropertiesStructpropertiesStruct () const
 
void refreshFromModel (const UUID &id)
 
void refreshFromModels ()
 
void setHorizontal (bool is_horizontal)
 
void setMode (const WidgetMode mode)
 
void setModelIDs (const Buffer< UUID > &model_ids)
 
virtual ~DesignWidget ()
 

Protected Member Functions

void collectProperties (PropertiesStruct &properties) const
 
ThreadcreateCalcThread ()
 
void onMaterialModeButtonClicked ()
 
void setupMaterialSection (Model &model, uint04 duration)
 
void updateProperties ()
 
void updateVolumeAndAreaWidget (const Vector< 2, fltp08 > &volume_and_area)
 

Protected Attributes

CameraLocationCombo * m_camera_location_combo
 
bool m_is_horizontal
 
bool m_is_volume_queued
 
Vector< 2, fltp08m_last_volume_area
 
WidgetMode m_mode
 
Buffer< UUIDm_model_ids
 
QTModelManagerm_model_manager
 
PropertiesStruct m_properties
 
QTResourceListenerm_units_listener
 
Threadm_volume_thread
 
Ui::DesignWidgetUI * ui
 

Friends

class DesignCalcThread
 

Detailed Description

A widget showing key properties of a DesignObject selection, used primarily in a SelectionWidget.


Member Enumeration Documentation

◆ WidgetMode

enum WidgetMode
Enumerator
e_normal 
e_measurement 

Constructor & Destructor Documentation

◆ DesignWidget()

DesignWidget ( QTModelManager * model_manager,
QWidget * parent )

◆ ~DesignWidget()

virtual ~DesignWidget ( )
virtual

Member Function Documentation

◆ clear()

void clear ( )

◆ collectProperties()

void collectProperties ( PropertiesStruct & properties) const
protected

◆ createCalcThread()

Thread * createCalcThread ( )
protected

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ modelIDs()

Buffer< UUID > modelIDs ( ) const
inline

◆ models()

Buffer< Model > models ( ) const

◆ onMaterialModeButtonClicked()

void onMaterialModeButtonClicked ( )
protected

◆ propertiesStruct()

const PropertiesStruct & propertiesStruct ( ) const
inline

◆ refreshFromModel()

void refreshFromModel ( const UUID & id)

◆ refreshFromModels()

void refreshFromModels ( )

◆ setHorizontal()

void setHorizontal ( bool is_horizontal)

◆ setMode()

void setMode ( const WidgetMode mode)

◆ setModelIDs()

void setModelIDs ( const Buffer< UUID > & model_ids)

◆ setupMaterialSection()

void setupMaterialSection ( Model & model,
uint04 duration )
protected

◆ updateProperties()

void updateProperties ( )
protected

◆ updateVolumeAndAreaWidget()

void updateVolumeAndAreaWidget ( const Vector< 2, fltp08 > & volume_and_area)
protected

Friends And Related Symbol Documentation

◆ DesignCalcThread

friend class DesignCalcThread
friend

Member Data Documentation

◆ m_camera_location_combo

CameraLocationCombo* m_camera_location_combo
protected

◆ m_is_horizontal

bool m_is_horizontal
protected

◆ m_is_volume_queued

bool m_is_volume_queued
protected

◆ m_last_volume_area

Vector<2, fltp08> m_last_volume_area
protected

◆ m_mode

WidgetMode m_mode
protected

◆ m_model_ids

Buffer<UUID> m_model_ids
protected

◆ m_model_manager

QTModelManager* m_model_manager
protected

◆ m_properties

PropertiesStruct m_properties
protected

◆ m_units_listener

QTResourceListener* m_units_listener
protected

◆ m_volume_thread

Thread* m_volume_thread
protected

◆ ui

Ui::DesignWidgetUI* ui
protected

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