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

Adds a QDialog to set torque to nodes. More...

#include <Dialog_Add_Torque.h>

Public Member Functions

 Dialog_Add_Torque (interfaces::ControlCenter *c, main_gui::GuiInterface *gui)
 Creates the Dialog. More...
 
 ~Dialog_Add_Torque ()
 
std::vector< interfaces::core_objects_exchange > * getNodeListPtr (void)
 return the address of the NodeList vector More...
 
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 ()
 apply torque to selected node More...
 
virtual void reject ()
 
virtual void valueChanged (QtProperty *, const QVariant &)
 
void closeDialog ()
 

Private Attributes

std::vector< interfaces::core_objects_exchangemyNodes
 
interfaces::ControlCentercontrol
 
main_gui::GuiInterfacemainGui
 
QtVariantProperty * vector_x
 
QtVariantProperty * vector_y
 
QtVariantProperty * vector_z
 
QtVariantProperty * magnitude
 
QtVariantProperty * node
 

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

Adds a QDialog to set torque to nodes.

Definition at line 45 of file Dialog_Add_Torque.h.

Constructor & Destructor Documentation

◆ Dialog_Add_Torque()

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

Creates the Dialog.

Adds a QDialog to set torque to nodes.

Definition at line 33 of file Dialog_Add_Torque.cpp.

◆ ~Dialog_Add_Torque()

mars::gui::Dialog_Add_Torque::~Dialog_Add_Torque ( )

Definition at line 62 of file Dialog_Add_Torque.cpp.

Member Function Documentation

◆ accept

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

apply torque to selected node

Definition at line 68 of file Dialog_Add_Torque.cpp.

◆ close()

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

Definition at line 61 of file Dialog_Add_Torque.h.

◆ closeDialog

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

Definition at line 90 of file Dialog_Add_Torque.cpp.

◆ getNodeListPtr()

std::vector< interfaces::core_objects_exchange > * mars::gui::Dialog_Add_Torque::getNodeListPtr ( void  )

return the address of the NodeList vector

returns the pointer to the nodeList vector, so that the vector can be filled by the MyMainWidnow

Definition at line 102 of file Dialog_Add_Torque.cpp.

◆ hide()

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

Definition at line 59 of file Dialog_Add_Torque.h.

◆ isHidden()

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

Definition at line 60 of file Dialog_Add_Torque.h.

◆ reject

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

Definition at line 85 of file Dialog_Add_Torque.cpp.

◆ show()

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

Definition at line 58 of file Dialog_Add_Torque.h.

◆ valueChanged

virtual void mars::gui::Dialog_Add_Torque::valueChanged ( QtProperty *  ,
const QVariant &   
)
inlineprivatevirtualslot

Definition at line 68 of file Dialog_Add_Torque.h.

Member Data Documentation

◆ control

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

Definition at line 73 of file Dialog_Add_Torque.h.

◆ magnitude

QtVariantProperty* mars::gui::Dialog_Add_Torque::magnitude
private

Definition at line 79 of file Dialog_Add_Torque.h.

◆ mainGui

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

Definition at line 74 of file Dialog_Add_Torque.h.

◆ myNodes

std::vector<interfaces::core_objects_exchange> mars::gui::Dialog_Add_Torque::myNodes
private

Definition at line 72 of file Dialog_Add_Torque.h.

◆ node

QtVariantProperty* mars::gui::Dialog_Add_Torque::node
private

Definition at line 80 of file Dialog_Add_Torque.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::Dialog_Add_Torque::pDialog

Definition at line 57 of file Dialog_Add_Torque.h.

◆ vector_x

QtVariantProperty* mars::gui::Dialog_Add_Torque::vector_x
private

Definition at line 76 of file Dialog_Add_Torque.h.

◆ vector_y

QtVariantProperty* mars::gui::Dialog_Add_Torque::vector_y
private

Definition at line 77 of file Dialog_Add_Torque.h.

◆ vector_z

QtVariantProperty* mars::gui::Dialog_Add_Torque::vector_z
private

Definition at line 78 of file Dialog_Add_Torque.h.


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