Selection windows factory, providing Qt windows / widgets.  
 More...
#include <anatomist/selection/qSelectFactory.h>
|  | 
|  | QSelectFactory () | 
|  | 
| virtual | ~QSelectFactory () | 
|  | 
| virtual anatomist::WSelectChooser * | createSelectChooser (unsigned group, const std::set< anatomist::AObject * > &objects) const | 
|  | Creates a selection choice window.  More... 
 | 
|  | 
| virtual void | handleSelectionMenu (anatomist::AWindow *win, int x, int y, const Tree *specific=0) | 
|  | draws / handles the selection menu (right click)  More... 
 | 
|  | 
| virtual void | selectNeighbours (anatomist::AGraph *graph, anatomist::AGraphObject *go, std::set< anatomist::AObject * > &toselect) const | 
|  | 
| virtual void | selectNodesWith (std::set< anatomist::AObject * > &tosel, const Graph *gr, const std::string &attr, const std::string &val) | 
|  | 
|  | SelectFactory () | 
|  | 
| virtual | ~SelectFactory () | 
|  | 
| const std::map< unsigned, std::set< AObject * > > & | selected () const | 
|  | 
| virtual void | select (unsigned group, const std::set< AObject * > &obj, const HColor *col=0) const | 
|  | 
| virtual void | unselect (unsigned group, const std::set< AObject * > &obj) const | 
|  | 
| virtual void | unselectAll (unsigned group) const | 
|  | 
| virtual void | selectAll (AWindow *win, const HColor *col=0) const | 
|  | Selects all selectable objects in a given window.  More... 
 | 
|  | 
| virtual void | flip (unsigned group, const std::set< AObject * > &obj, const HColor *col=0) const | 
|  | Inverts state of given objects.  More... 
 | 
|  | 
| virtual void | select (SelectMode mode, unsigned group, const std::set< AObject * > &obj, const HColor *col=0) const | 
|  | 
| virtual bool | isSelected (unsigned group, AObject *obj) const | 
|  | 
| virtual HColor | highlightColor (AObject *obj) const | 
|  | 
| virtual void | setHighlightColor (AObject *obj, const HColor *col=0) const | 
|  | 
| virtual void | refresh () const | 
|  | Redraws objects in involved windows.  More... 
 | 
|  | 
| virtual void | refreshSelectionRendering () const | 
|  | Redraws all windows containing selected objects (called after selection rendering mode has changed)  More... 
 | 
|  | 
| virtual void | propagateSelection (unsigned group) const | 
|  | 
| virtual void | remove (anatomist::AWindow *win) | 
|  | 
| virtual void | removeFromThisWindow (anatomist::AWindow *win) | 
|  | 
|  | 
| enum | SelectMode { Normal = 0
, Add = 1
, Toggle = 2
 } | 
|  | 
| static void | setFactory (SelectFactory *fac) | 
|  | 
| static SelectFactory * | factory () | 
|  | 
| static bool | hasAncestor (const AWindow *win, AObject *obj) | 
|  | tells if win sees obj or one of its ancestors  More... 
 | 
|  | 
| static AObject * | objectAt (AObject *o, const std::vector< float > &pos, float tolerence, const Referential *wref, const Point3df &wgeom, const std::string &selector="default") | 
|  | 
| static void | select (AWindow *w, const std::vector< float > &pos, float tolerence, int modifier, const std::string &selector="default") | 
|  | 
| static void | findObjectsAt (AWindow *w, const std::vector< float > &pos, float tolerence, std::set< AObject * > &shown, std::set< AObject * > &hidden, const std::string &selector) | 
|  | 
| static void | registerSelector (const std::string &key, Selector *s) | 
|  | 
| static void | registerPostSelector (const std::string &key, PostSelector *s) | 
|  | Registers possible actions to be taken after object selection.  More... 
 | 
|  | 
| static void | activatePostSelector (int priority, const std::string &psel) | 
|  | Activates a registered post-selector, it will be used after every object selection with a given priority.  More... 
 | 
|  | 
| static void | deactivatePostSelector (const std::string &psel) | 
|  | Dectivates a post-selector: won't be called anymore.  More... 
 | 
|  | 
| static void | setSelectColor (const HColor &col) | 
|  | 
| static HColor & | selectColor () | 
|  | 
| static bool & | selectColorInverse () | 
|  | 
Selection windows factory, providing Qt windows / widgets. 
Definition at line 59 of file qSelectFactory.h.
◆ QSelectFactory()
      
        
          | QSelectFactory::QSelectFactory | ( |  | ) |  | 
      
 
 
◆ ~QSelectFactory()
  
  | 
        
          | virtual QSelectFactory::~QSelectFactory | ( |  | ) |  |  | virtual | 
 
 
◆ createSelectChooser()
Creates a selection choice window. 
The default factory returns a base object which is not really a window (see SelectChooser). This mechanism enables to switch between Motif windows and Qt windows (see QSelectFactory) implementations 
Reimplemented from anatomist::SelectFactory.
 
 
◆ handleSelectionMenu()
  
  | 
        
          | virtual void QSelectFactory::handleSelectionMenu | ( | anatomist::AWindow * | win, |  
          |  |  | int | x, |  
          |  |  | int | y, |  
          |  |  | const Tree * | specific = 0 |  
          |  | ) |  |  |  | virtual | 
 
draws / handles the selection menu (right click) 
- Parameters
- 
  
    | specific | if given, describes the menu tree for window-specific actions. The callbacks must be in the tree, like in AObject's option trees. Callbacks type is void (*func)( void * ), with an optional "client_data" attribute passed to the function |  
 
Reimplemented from anatomist::SelectFactory.
 
 
◆ neighbours
◆ remove
◆ removeFromThisWindow
◆ selAttrib
◆ selectAll
◆ selectNeighbours()
◆ selectNodesWith()
  
  | 
        
          | virtual void QSelectFactory::selectNodesWith | ( | std::set< anatomist::AObject * > & | tosel, |  
          |  |  | const Graph * | gr, |  
          |  |  | const std::string & | attr, |  
          |  |  | const std::string & | val |  
          |  | ) |  |  |  | virtual | 
 
 
◆ unselect
◆ view
◆ _selMenu
The documentation for this class was generated from the following file: