anatomist  5.1.2
3D neuroimaging data viewer
graphLandmark.h
Go to the documentation of this file.
1 /* This software and supporting documentation are distributed by
2  * Institut Federatif de Recherche 49
3  * CEA/NeuroSpin, Batiment 145,
4  * 91191 Gif-sur-Yvette cedex
5  * France
6  *
7  * This software is governed by the CeCILL-B license under
8  * French law and abiding by the rules of distribution of free software.
9  * You can use, modify and/or redistribute the software under the
10  * terms of the CeCILL-B license as circulated by CEA, CNRS
11  * and INRIA at the following URL "http://www.cecill.info".
12  *
13  * As a counterpart to the access to the source code and rights to copy,
14  * modify and redistribute granted by the license, users are provided only
15  * with a limited warranty and the software's author, the holder of the
16  * economic rights, and the successive licensors have only limited
17  * liability.
18  *
19  * In this respect, the user's attention is drawn to the risks associated
20  * with loading, using, modifying and/or developing or reproducing the
21  * software by the user in light of its specific status of free software,
22  * that may mean that it is complicated to manipulate, and that also
23  * therefore means that it is reserved for developers and experienced
24  * professionals having in-depth computer knowledge. Users are therefore
25  * encouraged to load and test the software's suitability as regards their
26  * requirements in conditions enabling the security of their systems and/or
27  * data to be ensured and, more generally, to use and operate it in the
28  * same conditions as regards security.
29  *
30  * The fact that you are presently reading this means that you have had
31  * knowledge of the CeCILL-B license and that you accept its terms.
32  */
33 
34 
35 #ifndef ANATOMIST_LANDMARK_GRAPHLANDMARK_H
36 #define ANATOMIST_LANDMARK_GRAPHLANDMARK_H
37 
38 #ifndef QT_CELAN_NAMESPACE
39 #define QT_CELAN_NAMESPACE
40 #endif
41 #include <qwidget.h>
43 #include <aims/vector/vector.h>
44 #include <set>
45 
46 class Tree;
47 
48 namespace anatomist
49 {
50  class AObject;
51  class AGraph;
52  //class APointCollector;
53  struct GraphLandmarkPicker_privateData;
54 }
55 
56 
57 //namespace anatomist
58 //{
59 
61 class GraphLandmarkPicker : public QWidget, public anatomist::Observer
62 {
63  Q_OBJECT
64 
65 public:
66  GraphLandmarkPicker( anatomist::AGraph* ag, QWidget* parent = 0,
67  const char* name = 0,
68  Qt::WindowFlags f = Qt::WindowFlags() );
70 
71  static void addGraphLandmarkOptions( Tree* tr );
72  static void startInterface( const std::set<anatomist::AObject *> & );
73 
74  virtual void update( const anatomist::Observable* obs, void* arg );
75 
76 public slots:
77  void pickLandmark();
78 
79 protected:
80  void createLandmark( const Point3df & pt );
82 
83 private:
84  //static void clickPointCbk( APointCollector* caller, void *clientdata );
85 
86  anatomist::AGraph *_graph;
87  anatomist::GraphLandmarkPicker_privateData *pdat;
88 };
89 
90 //}
91 
92 
93 #endif
#define slots
Landmarks organized into a graph, associated with a 2D object.
Definition: graphLandmark.h:62
virtual void unregisterObservable(anatomist::Observable *)
Called when an observable is destroyed, only called by Observable: don't use this function directly.
static void addGraphLandmarkOptions(Tree *tr)
virtual void update(const anatomist::Observable *obs, void *arg)
This method is called whenever the observed object is changed.
virtual ~GraphLandmarkPicker()
void createLandmark(const Point3df &pt)
GraphLandmarkPicker(anatomist::AGraph *ag, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::WindowFlags())
static void startInterface(const std::set< anatomist::AObject * > &)
AGraph object class.
Definition: Graph.h:57
This class can be subclassed to represent an object that the programmer wants to have observed.
Definition: Observable.h:68
A class can implement the Observer interface when it wants to be informed of changes in observable ob...
Definition: Observer.h:55