This is the viewer, you can add ImageView to display on it, or overlay using Shape.
Definition at line 33 of file Viewer.hpp.
Public Slots |
|
void | exportView () |
Signals |
|
void | onKeyPress (QKeyEvent *event) |
|
void | onMouseClick (QGraphicsSceneMouseEvent *mouseEvent, bool isClick) |
|
void | onMouseMove (QGraphicsSceneMouseEvent *mouseEvent) |
Public Member Functions |
| | Viewer (int mosaicWidth=0, int mosaicHeight=0, QGraphicsScene *scene=0) |
| | Create a new viewer.
|
|
void | setBackgroundColor (int R, int G, int B) |
|
QGraphicsScene * | scene () |
| ImageView * | imageItem (int row=0, int col=0) |
| void | setImageView (ImageView *ii, int row=0, int col=0) |
|
int | rows () |
|
int | cols () |
| void | addShape (qdisplay::Shape *si) |
|
void | splitVertical () |
|
void | splitHorizontal () |
| void | addLine (qdisplay::Line *li) |
|
void | addPolyLine (qdisplay::PolyLine *pl) |
|
bool | isVisible () |
| void | scaleView (qreal scaleFactor) |
| | Scale the view.
|
| void | setWindowSize (int width, int height) |
| | Set the window size parameters.
|
|
void | close () |
| | Close the view.
|
|
void | setTitle (const std::string &_title) |
|
void | setTitleWithMouseCoordinates (double x, double y) |
|
std::string const & | getTitle () |
| void | setStatusMessage (QString &infoString, int timeout=0) |
| | Set the status message appearing in the status bar.
|
| void | setStatusMessage (const char *infoString, int timeout=0) |
| | Overloading of function setStatusMessage(QString&, int)
|
|
void | exportView (const std::string &fileName) |
| | Export the view to the given file name.
|
Protected Member Functions |
|
virtual void | contextMenuEvent (QContextMenuEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
virtual void | resizeEvent (QResizeEvent *event) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event) |
|
virtual void | mouseMoveEvent (QMouseEvent *event) |
Private Member Functions |
|
void | createCursor () |
| | Draw the custom cursor crossCursor by build our own QPixmap and adjusting the perfect hostpot for precise pointing.
|
Private Attributes |
|
QGraphicsScene * | m_scene |
QMap< int, QMap< int,
ImageView * > > | m_imageMosaic |
|
int | m_mosaicWidth |
|
int | m_mosaicHeight |
|
int | m_windowWidth |
|
int | m_windowHeight |
|
double | m_currentZ |
|
QAction * | m_exportView |
|
std::string | title |
|
QCursor * | crossCursor |
| | This cursor is a custom cursor created in the Viewer constructor to provide a precise cross cursor similar to the crossHair cursor without double bars.
|
| QStatusBar * | statusBar |
| | Status bar to display information statusBar->showMessage( QString)
|
|
QStatusBar * | statusBarShadow |
Friends |
|
class | MouseGraphicsScene |