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

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

#include <Dialog_Add_Force.h>

Public Member Functions

 Dialog_Add_Force (interfaces::ControlCenter *c, main_gui::GuiInterface *gui)
 Creates the Dialog. More...
 
 ~Dialog_Add_Force ()
 
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 force 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 force to nodes.

Definition at line 43 of file Dialog_Add_Force.h.

Constructor & Destructor Documentation

◆ Dialog_Add_Force()

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

Creates the Dialog.

Adds a QDialog to set force to nodes.

Definition at line 35 of file Dialog_Add_Force.cpp.

◆ ~Dialog_Add_Force()

mars::gui::Dialog_Add_Force::~Dialog_Add_Force ( )

Definition at line 64 of file Dialog_Add_Force.cpp.

Member Function Documentation

◆ accept

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

apply force to selected node

Definition at line 70 of file Dialog_Add_Force.cpp.

◆ close()

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

Definition at line 59 of file Dialog_Add_Force.h.

◆ closeDialog

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

Definition at line 93 of file Dialog_Add_Force.cpp.

◆ getNodeListPtr()

std::vector< interfaces::core_objects_exchange > * mars::gui::Dialog_Add_Force::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 105 of file Dialog_Add_Force.cpp.

◆ hide()

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

Definition at line 57 of file Dialog_Add_Force.h.

◆ isHidden()

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

Definition at line 58 of file Dialog_Add_Force.h.

◆ reject

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

Definition at line 88 of file Dialog_Add_Force.cpp.

◆ show()

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

Definition at line 56 of file Dialog_Add_Force.h.

◆ valueChanged

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

Definition at line 66 of file Dialog_Add_Force.h.

Member Data Documentation

◆ control

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

Definition at line 71 of file Dialog_Add_Force.h.

◆ magnitude

QtVariantProperty* mars::gui::Dialog_Add_Force::magnitude
private

Definition at line 77 of file Dialog_Add_Force.h.

◆ mainGui

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

Definition at line 72 of file Dialog_Add_Force.h.

◆ myNodes

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

Definition at line 70 of file Dialog_Add_Force.h.

◆ node

QtVariantProperty* mars::gui::Dialog_Add_Force::node
private

Definition at line 78 of file Dialog_Add_Force.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::Dialog_Add_Force::pDialog

Definition at line 55 of file Dialog_Add_Force.h.

◆ vector_x

QtVariantProperty* mars::gui::Dialog_Add_Force::vector_x
private

Definition at line 74 of file Dialog_Add_Force.h.

◆ vector_y

QtVariantProperty* mars::gui::Dialog_Add_Force::vector_y
private

Definition at line 75 of file Dialog_Add_Force.h.

◆ vector_z

QtVariantProperty* mars::gui::Dialog_Add_Force::vector_z
private

Definition at line 76 of file Dialog_Add_Force.h.


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