Privacy
An open-source, flexible 3D physical simulation framework
mars::gui::Dialog_Rescale_Environment Class Reference

Dialog for rescaling the environment every node in the environment is rescaled (including its position) More...

#include <Dialog_Rescale_Environment.h>

Public Member Functions

 Dialog_Rescale_Environment (interfaces::ControlCenter *c, main_gui::GuiInterface *gui)
 Creates the Dialog. More...
 
 ~Dialog_Rescale_Environment ()
 
void show (void)
 
void hide (void)
 
bool isHidden (void)
 
void close (void)
 
- Public Member Functions inherited from mars::main_gui::BaseWidget
 BaseWidget (QWidget *parent, cfg_manager::CFGManagerInterface *_cfg, std::string _widgetName)
 
 ~BaseWidget ()
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
void setHiddenCloseState (bool v)
 
bool getHiddenCloseState ()
 
void show ()
 
void hide ()
 
bool isHidden ()
 
void saveState ()
 
const std::string & getName ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 
- Public Member Functions inherited from mars::main_gui::PropertyCallback
virtual ~PropertyCallback ()
 Destructor. More...
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 Called every time a property has changed its value. More...
 
virtual void topLevelItemChanged (QtProperty *current)
 Called every time another branch of a QtTreePropertyBrowser has been selected. More...
 
virtual void accept ()
 Associated with the OK button of the Property Dialog. More...
 
virtual void reject ()
 Associated with the Cancel button of the Property Dialog. More...
 

Public Attributes

main_gui::PropertyDialogpDialog
 

Private Slots

virtual void accept ()
 
virtual void reject ()
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 
void closeDialog ()
 

Private Attributes

interfaces::ControlCentercontrol
 
main_gui::GuiInterfacemainGui
 
QtVariantProperty * x_factor
 
QtVariantProperty * y_factor
 
QtVariantProperty * z_factor
 

Additional Inherited Members

- Signals inherited from mars::main_gui::BaseWidget
void hideSignal (void)
 
void closeSignal (void)
 
- Protected Member Functions inherited from mars::main_gui::BaseWidget
void changeEvent (QEvent *ev)
 
void cfgWindow (void)
 
void applyGeometry ()
 
void hideEvent (QHideEvent *event)
 
void closeEvent (QCloseEvent *event)
 
- Protected Attributes inherited from mars::main_gui::BaseWidget
cfg_manager::CFGManagerInterfacecfg
 
bool setWindowProp
 
bool hiddenState
 

Detailed Description

Dialog for rescaling the environment every node in the environment is rescaled (including its position)

Definition at line 45 of file Dialog_Rescale_Environment.h.

Constructor & Destructor Documentation

◆ Dialog_Rescale_Environment()

mars::gui::Dialog_Rescale_Environment::Dialog_Rescale_Environment ( interfaces::ControlCenter c,
main_gui::GuiInterface gui 
)

Creates the Dialog.

Definition at line 31 of file Dialog_Rescale_Environment.cpp.

◆ ~Dialog_Rescale_Environment()

mars::gui::Dialog_Rescale_Environment::~Dialog_Rescale_Environment ( )

Definition at line 54 of file Dialog_Rescale_Environment.cpp.

Member Function Documentation

◆ accept

void mars::gui::Dialog_Rescale_Environment::accept ( void  )
privatevirtualslot

Definition at line 57 of file Dialog_Rescale_Environment.cpp.

◆ close()

void mars::gui::Dialog_Rescale_Environment::close ( void  )
inline

Definition at line 57 of file Dialog_Rescale_Environment.h.

◆ closeDialog

void mars::gui::Dialog_Rescale_Environment::closeDialog ( )
privateslot

Definition at line 73 of file Dialog_Rescale_Environment.cpp.

◆ hide()

void mars::gui::Dialog_Rescale_Environment::hide ( void  )
inline

Definition at line 55 of file Dialog_Rescale_Environment.h.

◆ isHidden()

bool mars::gui::Dialog_Rescale_Environment::isHidden ( void  )
inline

Definition at line 56 of file Dialog_Rescale_Environment.h.

◆ reject

void mars::gui::Dialog_Rescale_Environment::reject ( void  )
privatevirtualslot

Definition at line 64 of file Dialog_Rescale_Environment.cpp.

◆ show()

void mars::gui::Dialog_Rescale_Environment::show ( void  )
inline

Definition at line 54 of file Dialog_Rescale_Environment.h.

◆ valueChanged

void mars::gui::Dialog_Rescale_Environment::valueChanged ( QtProperty *  property,
const QVariant &  value 
)
privatevirtualslot

Definition at line 68 of file Dialog_Rescale_Environment.cpp.

Member Data Documentation

◆ control

interfaces::ControlCenter* mars::gui::Dialog_Rescale_Environment::control
private

Definition at line 67 of file Dialog_Rescale_Environment.h.

◆ mainGui

main_gui::GuiInterface* mars::gui::Dialog_Rescale_Environment::mainGui
private

Definition at line 68 of file Dialog_Rescale_Environment.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::Dialog_Rescale_Environment::pDialog

Definition at line 53 of file Dialog_Rescale_Environment.h.

◆ x_factor

QtVariantProperty* mars::gui::Dialog_Rescale_Environment::x_factor
private

Definition at line 69 of file Dialog_Rescale_Environment.h.

◆ y_factor

QtVariantProperty * mars::gui::Dialog_Rescale_Environment::y_factor
private

Definition at line 69 of file Dialog_Rescale_Environment.h.

◆ z_factor

QtVariantProperty * mars::gui::Dialog_Rescale_Environment::z_factor
private

Definition at line 69 of file Dialog_Rescale_Environment.h.


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