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

#include <NodeSelectionTree.h>

Signals

void closeSignal (void *widget)
 
void itemSelectionChanged ()
 
- Signals inherited from mars::main_gui::BaseWidget
void hideSignal (void)
 
void closeSignal (void)
 

Public Member Functions

 NodeSelectionTree (interfaces::ControlCenter *c, QWidget *parent=NULL)
 
 ~NodeSelectionTree ()
 
virtual void selectEvent (unsigned long int id, bool mode)
 
std::vector< unsigned long > selectedNodes (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 Member Functions inherited from mars::interfaces::GraphicsEventClient
virtual ~GraphicsEventClient ()
 
virtual void selectEvent (unsigned long id, bool mode)=0
 

Public Attributes

main_gui::PropertyDialogpDialog
 

Private Slots

virtual void valueChanged (QtProperty *property, const QVariant &value)
 
void selectNodes (void)
 

Private Member Functions

void closeEvent (QCloseEvent *event)
 
void fill (unsigned long id, QTreeWidgetItem *current=NULL)
 
void selectRecursively (QTreeWidgetItem *current, bool mode)
 
QTreeWidgetItem * findByNodeId (unsigned long id, QTreeWidgetItem *parent=NULL)
 
void reset (void)
 
void createTree (unsigned long root)
 
void createList (void)
 

Private Attributes

interfaces::ControlCentercontrol
 
bool filled
 
bool select_allowed
 
QtVariantProperty * node_view_mode
 
QtVariantProperty * node_selection_mode
 
QtVariantProperty * root
 
std::vector< interfaces::core_objects_exchangesimNodes
 
std::vector< unsigned long > present
 
QTreeWidget * treeWidget
 

Additional Inherited Members

- 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

Definition at line 46 of file NodeSelectionTree.h.

Constructor & Destructor Documentation

◆ NodeSelectionTree()

mars::gui::NodeSelectionTree::NodeSelectionTree ( interfaces::ControlCenter c,
QWidget *  parent = NULL 
)

Definition at line 34 of file NodeSelectionTree.cpp.

◆ ~NodeSelectionTree()

mars::gui::NodeSelectionTree::~NodeSelectionTree ( )

Definition at line 86 of file NodeSelectionTree.cpp.

Member Function Documentation

◆ closeEvent()

void mars::gui::NodeSelectionTree::closeEvent ( QCloseEvent *  event)
private

Definition at line 300 of file NodeSelectionTree.cpp.

◆ closeSignal

void mars::gui::NodeSelectionTree::closeSignal ( void *  widget)
signal

◆ createList()

void mars::gui::NodeSelectionTree::createList ( void  )
private

Definition at line 188 of file NodeSelectionTree.cpp.

◆ createTree()

void mars::gui::NodeSelectionTree::createTree ( unsigned long  root)
private

Definition at line 169 of file NodeSelectionTree.cpp.

◆ fill()

void mars::gui::NodeSelectionTree::fill ( unsigned long  id,
QTreeWidgetItem *  current = NULL 
)
private

Definition at line 124 of file NodeSelectionTree.cpp.

◆ findByNodeId()

QTreeWidgetItem * mars::gui::NodeSelectionTree::findByNodeId ( unsigned long  id,
QTreeWidgetItem *  parent = NULL 
)
private

Definition at line 221 of file NodeSelectionTree.cpp.

◆ itemSelectionChanged

void mars::gui::NodeSelectionTree::itemSelectionChanged ( )
signal

◆ reset()

void mars::gui::NodeSelectionTree::reset ( void  )
private

Definition at line 200 of file NodeSelectionTree.cpp.

◆ selectedNodes()

vector< unsigned long > mars::gui::NodeSelectionTree::selectedNodes ( void  )

Definition at line 288 of file NodeSelectionTree.cpp.

◆ selectEvent()

void mars::gui::NodeSelectionTree::selectEvent ( unsigned long int  id,
bool  mode 
)
virtual

Definition at line 249 of file NodeSelectionTree.cpp.

◆ selectNodes

void mars::gui::NodeSelectionTree::selectNodes ( void  )
privateslot

Definition at line 261 of file NodeSelectionTree.cpp.

◆ selectRecursively()

void mars::gui::NodeSelectionTree::selectRecursively ( QTreeWidgetItem *  current,
bool  mode 
)
private

Definition at line 208 of file NodeSelectionTree.cpp.

◆ valueChanged

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

Definition at line 96 of file NodeSelectionTree.cpp.

Member Data Documentation

◆ control

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

Definition at line 63 of file NodeSelectionTree.h.

◆ filled

bool mars::gui::NodeSelectionTree::filled
private

Definition at line 64 of file NodeSelectionTree.h.

◆ node_selection_mode

QtVariantProperty * mars::gui::NodeSelectionTree::node_selection_mode
private

Definition at line 65 of file NodeSelectionTree.h.

◆ node_view_mode

QtVariantProperty* mars::gui::NodeSelectionTree::node_view_mode
private

Definition at line 65 of file NodeSelectionTree.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::NodeSelectionTree::pDialog

Definition at line 55 of file NodeSelectionTree.h.

◆ present

std::vector<unsigned long> mars::gui::NodeSelectionTree::present
private

Definition at line 68 of file NodeSelectionTree.h.

◆ root

QtVariantProperty * mars::gui::NodeSelectionTree::root
private

Definition at line 65 of file NodeSelectionTree.h.

◆ select_allowed

bool mars::gui::NodeSelectionTree::select_allowed
private

Definition at line 64 of file NodeSelectionTree.h.

◆ simNodes

std::vector<interfaces::core_objects_exchange> mars::gui::NodeSelectionTree::simNodes
private

Definition at line 67 of file NodeSelectionTree.h.

◆ treeWidget

QTreeWidget* mars::gui::NodeSelectionTree::treeWidget
private

Definition at line 70 of file NodeSelectionTree.h.


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