Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Tool Class Referenceabstract

#include <tool.h>

Inheritance diagram for Tool:
Inheritance graph
Collaboration diagram for Tool:
Collaboration graph

Public Member Functions

 Tool (GuiImage *guiImage, ImageViewer *viewer)
 
virtual int type ()=0
 
virtual void mouseReleased (QPointF pt, Qt::MouseButtons buttons, size_t axis)=0
 
virtual void mouseClicked (QPointF pt, Qt::MouseButtons buttons, size_t axis)=0
 
virtual void mouseDragged (QPointF pt, Qt::MouseButtons buttons, size_t axis)=0
 
virtual void mouseMoved (QPointF pt, size_t axis)=0
 
virtual void sliceChanged (size_t axis, size_t slice)=0
 
void setVisible (bool value)
 
virtual QPixmap getLabel (size_t axis)
 
bool visible () const
 
bool hasLabel () const
 

Protected Member Functions

void setHasLabel (bool sHasLabel)
 

Protected Attributes

GuiImageguiImage
 
ImageViewerviewer
 
bool m_visible
 
bool m_hasLabel = false
 

Detailed Description

Definition at line 10 of file tool.h.

Constructor & Destructor Documentation

Tool::Tool ( GuiImage guiImage,
ImageViewer viewer 
)

Definition at line 11 of file tool.cpp.

Member Function Documentation

QPixmap Tool::getLabel ( size_t  axis)
virtual

Reimplemented in SegmentationTool.

Definition at line 18 of file tool.cpp.

bool Tool::hasLabel ( ) const

Definition at line 3 of file tool.cpp.

virtual void Tool::mouseClicked ( QPointF  pt,
Qt::MouseButtons  buttons,
size_t  axis 
)
pure virtual

Implemented in SegmentationTool, and DefaultTool.

virtual void Tool::mouseDragged ( QPointF  pt,
Qt::MouseButtons  buttons,
size_t  axis 
)
pure virtual

Implemented in SegmentationTool, and DefaultTool.

virtual void Tool::mouseMoved ( QPointF  pt,
size_t  axis 
)
pure virtual

Implemented in SegmentationTool, and DefaultTool.

virtual void Tool::mouseReleased ( QPointF  pt,
Qt::MouseButtons  buttons,
size_t  axis 
)
pure virtual

Implemented in SegmentationTool, and DefaultTool.

void Tool::setHasLabel ( bool  sHasLabel)
protected

Definition at line 7 of file tool.cpp.

void Tool::setVisible ( bool  value)

Definition at line 14 of file tool.cpp.

virtual void Tool::sliceChanged ( size_t  axis,
size_t  slice 
)
pure virtual

Implemented in SegmentationTool, and DefaultTool.

virtual int Tool::type ( )
pure virtual

Implemented in SegmentationTool, and DefaultTool.

bool Tool::visible ( ) const

Definition at line 23 of file tool.cpp.

Member Data Documentation

GuiImage* Tool::guiImage
protected

Definition at line 13 of file tool.h.

bool Tool::m_hasLabel = false
protected

Definition at line 16 of file tool.h.

bool Tool::m_visible
protected

Definition at line 15 of file tool.h.

ImageViewer* Tool::viewer
protected

Definition at line 14 of file tool.h.


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