anatomist  5.1.2
3D neuroimaging data viewer
ALandmarkPicker Class Reference

Tool for selecting landmarks on a surface. More...

#include <anatomist/landmark/landmPicker.h>

Inheritance diagram for ALandmarkPicker:
Collaboration diagram for ALandmarkPicker:

Public Slots

void pickPoint ()
 

Public Member Functions

 ALandmarkPicker (const std::set< anatomist::AObject * > &obj)
 
virtual ~ALandmarkPicker ()
 
virtual void update (const anatomist::Observable *obs, void *arg)
 This method is called whenever the observed object is changed. More...
 
- Public Member Functions inherited from anatomist::Observer
virtual ~Observer ()
 

Static Public Member Functions

static void startInterface (const std::set< anatomist::AObject * > &obj)
 Callback function to start it from the GUI. More...
 

Protected Member Functions

float nearestEuclidian (anatomist::GLComponent *obj, const Point3df &pt, unsigned &index, Point3df &vpos)
 Finds nearest vertex from given point in object, using euclidian distance. More...
 
anatomist::AObjectnearestVertex (const Point3df &pt, unsigned &index, float &dist, Point3df &vpos)
 Finds nearest vertex in all observed objects according to current distance mode. More...
 
void createLandmark (const Point3df &pt)
 
virtual void unregisterObservable (anatomist::Observable *)
 Called when an observable is destroyed, only called by Observable: don't use this function directly. More...
 
- Protected Member Functions inherited from anatomist::Observer
virtual void cleanupObserver ()
 call this function from inherited classes destructors. More...
 
virtual void registerObservable (Observable *)
 only called by Observable: don't use this function directly More...
 
const std::set< Observable * > & observed () const
 

Protected Attributes

std::set< anatomist::AObject * > _obj
 
anatomist::ALandmarkPicker_privateData * _privdata
 

Detailed Description

Tool for selecting landmarks on a surface.

Definition at line 57 of file landmPicker.h.

Constructor & Destructor Documentation

◆ ALandmarkPicker()

ALandmarkPicker::ALandmarkPicker ( const std::set< anatomist::AObject * > &  obj)

◆ ~ALandmarkPicker()

virtual ALandmarkPicker::~ALandmarkPicker ( )
virtual

Member Function Documentation

◆ createLandmark()

void ALandmarkPicker::createLandmark ( const Point3df pt)
protected

◆ nearestEuclidian()

float ALandmarkPicker::nearestEuclidian ( anatomist::GLComponent obj,
const Point3df pt,
unsigned &  index,
Point3df vpos 
)
protected

Finds nearest vertex from given point in object, using euclidian distance.

Parameters
objobject to look in
pt3D point
index(return) index of the nearest vertex of obj
Returns
minimum distance

◆ nearestVertex()

anatomist::AObject* ALandmarkPicker::nearestVertex ( const Point3df pt,
unsigned &  index,
float &  dist,
Point3df vpos 
)
protected

Finds nearest vertex in all observed objects according to current distance mode.

◆ pickPoint

void ALandmarkPicker::pickPoint ( )
slot

◆ startInterface()

static void ALandmarkPicker::startInterface ( const std::set< anatomist::AObject * > &  obj)
static

Callback function to start it from the GUI.

References slots.

◆ unregisterObservable()

virtual void ALandmarkPicker::unregisterObservable ( anatomist::Observable )
protectedvirtual

Called when an observable is destroyed, only called by Observable: don't use this function directly.

Reimplemented from anatomist::Observer.

◆ update()

virtual void ALandmarkPicker::update ( const anatomist::Observable observable,
void *  arg 
)
virtual

This method is called whenever the observed object is changed.

The programmer calls an observable object's notifyObservers method to have all the object's observers notified of the change.

Parameters
observablethe observable object

Implements anatomist::Observer.

Member Data Documentation

◆ _obj

std::set<anatomist::AObject *> ALandmarkPicker::_obj
protected

Definition at line 89 of file landmPicker.h.

◆ _privdata

anatomist::ALandmarkPicker_privateData* ALandmarkPicker::_privdata
protected

Definition at line 90 of file landmPicker.h.


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