anatomist  5.1.2
3D neuroimaging data viewer
QAProfileWindow Class Reference

#include <anatomist/winprof/profWin.h>

Inheritance diagram for QAProfileWindow:
Collaboration diagram for QAProfileWindow:

Public Types

enum  Direction { alongX , alongY , alongZ , alongT }
 
enum  ProfileSize { profileWidth = 512 , profileHeight = 256 }
 
- Public Types inherited from anatomist::AWindow
enum  Type { CTRL_WINDOW = 100 , WINDOW_2D = 101 , WINDOW_3D = 102 }
 
enum  SubType {
  AXIAL_WINDOW = 200 , SAGITTAL_WINDOW = 201 , CORONAL_WINDOW = 202 , OBLIQUE_WINDOW = 203 ,
  OTHER = 299
}
 
enum  RecordingState { OFF , ON , DISABLED }
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

Public Slots

void dirChange (int)
 
- Public Slots inherited from QAWindow
virtual bool needsRedraw () const
 
virtual void detach ()
 detach view from a block More...
 
virtual void toggleToolBars ()
 
virtual void toggleFullScreen ()
 
void triggeredRefresh ()
 calls refreshNow() and cleanup More...
 

Public Member Functions

 QAProfileWindow (QWidget *parent=0, const char *name=0, carto::Object options=carto::none(), Qt::WindowFlags f=Qt::Window)
 
virtual ~QAProfileWindow ()
 
virtual Type type () const
 Get the window type (2D, 3D or control) More...
 
virtual void displayClickPoint ()
 
virtual void refreshNow ()
 Real drawing function, replacing AWindow::Refresh in subclasses of QAWindow - Don't forget to call QAWindow::refreshNow from overloaded functions. More...
 
virtual void registerObject (anatomist::AObject *object, bool temporaryObject=false, int position=-1)
 
virtual void unregisterObject (anatomist::AObject *object)
 
void setDirection (Direction)
 
virtual const std::set< unsigned > & typeCount () const
 
virtual std::set< unsigned > & typeCount ()
 
virtual const std::string & baseTitle () const
 
- Public Member Functions inherited from QAWindow
 QAWindow (QWidget *parent=0, const char *name=0, carto::Object params=carto::none(), Qt::WindowFlags f=Qt::WindowFlags())
 
virtual ~QAWindow ()
 
virtual void setGeometry (int x, int y, unsigned w, unsigned h)
 
virtual void geometry (int *x, int *y, unsigned *w, unsigned *h)
 Get position and dimensions of the window. More...
 
virtual void show ()
 
virtual void hide ()
 
virtual void iconify ()
 
virtual void unIconify ()
 
virtual bool close ()
 
virtual void showToolBars (int state=2)
 Shows or hides all tools (menu, toolbars) around the main view area. More...
 
void setFullScreen (int state=2)
 
bool isFullScreen () const
 
virtual void setTitle (const std::string &name)
 
virtual void enableDetachMenu (bool x)
 
void Refresh ()
 In QAWindows, Refresh() doesn't redraw right now. More...
 
virtual QToolBar * addToolBar (const QString &title, const QString &name)
 
virtual QToolBar * addToolBar (Qt::ToolBarArea area, const QString &title, const QString &name)
 
virtual void addToolBar (QToolBar *, const QString &name)
 
virtual void addToolBar (Qt::ToolBarArea area, QToolBar *toolbar, const QString &name)
 
virtual QToolBar * insertToolBar (int pos, Qt::ToolBarArea area, const QString &title, const QString &name)
 
virtual void removeToolBar (QToolBar *toolbar)
 
virtual QToolBar * removeToolBar (const QString &name)
 
QToolBar * toolBar (const QString &name)
 
void setDetachMenuAction (QAction *)
 
- Public Member Functions inherited from anatomist::AWindow
virtual ~AWindow ()
 Unregisters from the application and other objects. More...
 
void displayTalairach ()
 Affiche les coordonnees de Talairach qui correspondent a la position du curseur lie (window 2D) More...
 
virtual bool toolBarsVisible () const
 
virtual void showReferential ()
 
virtual void setupWindow ()
 Sets correct size and lookup of the window. More...
 
virtual std::string Title () const
 
void setId (int id)
 Set the window identifier. More...
 
void SetRefreshFlag ()
 Set the refresh flag on. More...
 
void ResetRefreshFlag ()
 Set the refresh flag off. More...
 
bool lookupChanged () const
 
void setLookupChanged (bool flg=true)
 
int id () const
 Get the window identifier. More...
 
virtual SubType subtype () const
 
bool RefreshFlag () const
 Get the refresh flag status. More...
 
std::set< AObject * > Objects () const
 Get the objects. More...
 
bool hasObject (AObject *obj) const
 
virtual Point3df getPosition () const
 Get position of cursor. More...
 
float getTime () const
 Get time position of cursor. More...
 
virtual std::vector< float > getFullPosition () const
 
virtual void setPosition (const Point3df &position, const Referential *refdep)
 Set position of cursor. More...
 
virtual void setPosition (const std::vector< float > &position, const Referential *refdep=0)
 
virtual void setTime (float time)
 Set time position of cursor. More...
 
ReferentialgetReferential () const
 
virtual void setReferential (Referential *ref)
 
GeometrywindowGeometry () const
 
void setWindowGeometry (Geometry *geom)
 
virtual void updateWindowGeometry ()
 adapts geometry to the current contents and referential More...
 
int Group () const
 
void setGroup (int group)
 
void setHasCursor (int hasCursor)
 
bool hasCursor () const
 takes both the global and own flags into account More...
 
int hasSelfCursor () const
 returns the own flag of the window (see hasGlobalCursor) (tri-state) More...
 
virtual bool positionFromCursor (int x, int y, Point3df &pos)
 Translates mouse position to Anatomist geometry position. More...
 
virtual AObjectobjectAt (const std::vector< float > &pos)
 
virtual void selectObject (const std::vector< float > &pos, int modifier)
 Selects (highlights) object at a given 4D space position. More...
 
virtual void button3clicked (int x, int y)
 handles button3 click (menu) More...
 
virtual void findObjectsAt (const std::vector< float > &pos, std::set< AObject * > &shown, std::set< AObject * > &hidden)
 finds objects at given position (internal) More...
 
virtual void update (const Observable *observable, void *arg)
 This method is called whenever the observed object is changed. More...
 
virtual void recordImages ()
 
virtual RecordingState recordingState () const
 
virtual void startRecord ()
 
virtual void startRecord (const std::string &filename)
 
virtual void stopRecord ()
 
virtual bool needsRedraw () const
 returns true if a refresh has been triggered and not performed yet (in subclasses: AWindow always returns false) More...
 
bool isTemporary (AObject *o) const
 
const std::set< AObject * > & temporaryObjects () const
 
- Public Member Functions inherited from carto::SharedObject
 SharedObject ()
 
 SharedObject (const SharedObject &x)
 
virtual ~SharedObject ()
 
SharedObjectoperator= (const SharedObject &)
 
bool testDeletable ()
 
bool tryDelete ()
 
- Public Member Functions inherited from carto::WeakObject
void attachWeakPtr (weak_ptr< T > &) const
 
void detachWeakPtr (weak_ptr< T > &) const
 
void attachWeakPtr (weak_shared_ptr< T > &) const
 
void detachWeakPtr (weak_shared_ptr< T > &) const
 
virtual ~WeakObject ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 
- Public Member Functions inherited from anatomist::Observer
virtual ~Observer ()
 
- Public Member Functions inherited from anatomist::ControlSwitchObserver
 ControlSwitchObserver ()
 
virtual ~ControlSwitchObserver ()
 
virtual void updateAvailableControls ()
 
virtual void updateActivableControls ()
 
virtual void updateActiveControl ()
 
virtual void updateActions ()
 

Static Public Member Functions

static AWindowcreateProfileWindow (void *, carto::Object)
 
- Static Public Member Functions inherited from anatomist::AWindow
static void setLeftRightDisplay (bool state)
 
static int leftRightDisplay ()
 
static void setLeftRightDisplaySize (int size)
 
static int leftRightDisplaySize ()
 
static void setDisplayedAnnotations (const std::vector< std::string > &annotation_list)
 
static std::vector< std::string > displayedAnnotations ()
 
static void setGlobalHasCursor (bool hasCursor)
 
static int hasGlobalCursor ()
 
static void setCursorSize (int cursorSize)
 
static int cursorSize ()
 
static void setUseDefaultCursorColor (bool state)
 Set the default color cursor flag. More...
 
static int useDefaultCursorColor ()
 Give the default color cursor flag. More...
 
static void setCursorColor (const AimsRGB &cursCol)
 Set the color cursor. More...
 
static AimsRGB cursorColor ()
 Give the color cursor. More...
 
static float selectTolerence ()
 Selection tolerence distance. More...
 
static void setSelectTolerence (float tol)
 Set the selection tolerence distance. More...
 
static void recordCbk (void *clientdata)
 

Protected Member Functions

virtual void Draw (bool flush=true)
 
- Protected Member Functions inherited from QAWindow
virtual void createTitle ()
 Creates a new title for the window. More...
 
virtual void dragEnterEvent (QDragEnterEvent *)
 
virtual void dragMoveEvent (QDragMoveEvent *)
 
virtual void dropEvent (QDropEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void closeEvent (QCloseEvent *event)
 
- Protected Member Functions inherited from anatomist::AWindow
 AWindow ()
 AWindow constructor registers itself in the application. More...
 
void setWindowTitle ()
 Set the title of the window. More...
 
virtual void unregisterObservable (Observable *obs)
 Called when an observable is destroyed, only called by Observable: don't use this function directly. More...
 
void manageAutoReferential ()
 automatically set the contained objects referential to the window if it has not been set manually, and if all objetcs share the same referential. More...
 
- Protected Member Functions inherited from carto::SharedObject
void disableRefCount ()
 
- Protected Member Functions inherited from carto::WeakObject
 WeakObject ()
 
 WeakObject (const WeakObject &)
 
WeakObjectoperator= (const WeakObject &)
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from anatomist::AWindow
int _id
 Window identificator. More...
 
bool _refresh
 Should the window be refreshed? More...
 
bool _lookupChanged
 Lookup has changed (title or geometry) More...
 
std::list< carto::shared_ptr< AObject > > _objects
 List of the objects contained in the window. More...
 
std::set< AObject * > _sobjects
 Same but as a set (for fast search) More...
 
std::set< AObject * > _tempObjects
 
std::vector< float > _timepos
 Cursor time + next dimensions. More...
 
Referential_referential
 Referentiel. More...
 
Geometry_geometry
 Geometry. More...
 
std::string _title
 Title of the window. More...
 
int _instNumber
 Number of instance of the window class. More...
 
int _group
 Group number, for linked windows. More...
 
Point3df _position
 Click position. More...
 

Detailed Description

Definition at line 48 of file profWin.h.

Member Enumeration Documentation

◆ Direction

Enumerator
alongX 
alongY 
alongZ 
alongT 

Definition at line 54 of file profWin.h.

◆ ProfileSize

Enumerator
profileWidth 
profileHeight 

Definition at line 62 of file profWin.h.

Constructor & Destructor Documentation

◆ QAProfileWindow()

QAProfileWindow::QAProfileWindow ( QWidget *  parent = 0,
const char *  name = 0,
carto::Object  options = carto::none(),
Qt::WindowFlags  f = Qt::Window 
)

◆ ~QAProfileWindow()

virtual QAProfileWindow::~QAProfileWindow ( )
virtual

Member Function Documentation

◆ baseTitle()

virtual const std::string& QAProfileWindow::baseTitle ( ) const
virtual

Reimplemented from anatomist::AWindow.

◆ createProfileWindow()

static AWindow* QAProfileWindow::createProfileWindow ( void *  ,
carto::Object   
)
static

◆ dirChange

void QAProfileWindow::dirChange ( int  )
slot

◆ displayClickPoint()

virtual void QAProfileWindow::displayClickPoint ( )
virtual

Reimplemented from anatomist::AWindow.

◆ Draw()

virtual void QAProfileWindow::Draw ( bool  flush = true)
protectedvirtual

References slots.

◆ refreshNow()

virtual void QAProfileWindow::refreshNow ( )
virtual

Real drawing function, replacing AWindow::Refresh in subclasses of QAWindow - Don't forget to call QAWindow::refreshNow from overloaded functions.

Reimplemented from QAWindow.

◆ registerObject()

virtual void QAProfileWindow::registerObject ( anatomist::AObject object,
bool  temporaryObject = false,
int  position = -1 
)
virtual

Reimplemented from anatomist::AWindow.

◆ setDirection()

void QAProfileWindow::setDirection ( Direction  )

◆ type()

virtual Type QAProfileWindow::type ( ) const
inlinevirtual

Get the window type (2D, 3D or control)

Implements anatomist::AWindow.

Definition at line 74 of file profWin.h.

◆ typeCount() [1/2]

virtual std::set<unsigned>& QAProfileWindow::typeCount ( )
virtual

Reimplemented from anatomist::AWindow.

◆ typeCount() [2/2]

virtual const std::set<unsigned>& QAProfileWindow::typeCount ( ) const
virtual

Reimplemented from anatomist::AWindow.

◆ unregisterObject()

virtual void QAProfileWindow::unregisterObject ( anatomist::AObject object)
virtual

Reimplemented from anatomist::AWindow.


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