creaImageIO_lib
|
#include <creaImageIOWxViewer.h>
Public Member Functions | |
WxViewer () | |
Ctors. More... | |
WxViewer (wxWindow *parent, const wxWindowID id, wxString title, const wxPoint &pos, const wxSize &size) | |
virtual | ~WxViewer () |
Dtor. More... | |
void | ShowNextImage () |
Shows the next image in the image vector. More... | |
void | StartPlayer () |
Starts the image player. More... | |
void | StopPlayer () |
Stops the image player. More... | |
bool | RefreshIfNecessary () |
Refreshes the interface if the current image shown has changed. More... | |
void | SetImageVector (std::vector< boost::shared_ptr< ImagePointerHolder > > &pointers) |
Sets a new image vector to be read. More... | |
void | SetValue () |
Set value of slider control. More... | |
Private Member Functions | |
void | OnCineLoop (wxCommandEvent &Event) |
Event to resume or start cine loop. More... | |
void | OnSlide (wxCommandEvent &Event) |
Event to change displayed frames with slide control. More... | |
void | ShowImage (vtkImageData *im) |
Shows the image passed as parameter. More... | |
Private Attributes | |
vtkImageViewer2 * | mViewer |
Previewer. More... | |
wxSlider * | mslide |
Slider. More... | |
wxCheckBox * | mcheck |
CheckBox to cine loop. More... | |
crea::creawxVTKRenderWindowInteractor * | mInteractor |
Associated wxvtk interactor. More... | |
int | mx1 |
Current extent. More... | |
int | mx2 |
int | my1 |
int | my2 |
int | mz1 |
int | mz2 |
double | mspx |
Current spacing. More... | |
double | mspy |
double | mspz |
int | mCurrent |
Current image shown. More... | |
WxViewerPlayer * | mPlayer |
The threaded movie player. More... | |
wxMutex | mMutex |
The mutex. More... | |
bool | mNeedRefresh |
Boolean that declares if the player needs to be refreshed. More... | |
vtkImageData * | mLastImageShown |
Last image shown. More... | |
std::vector< boost::shared_ptr < ImagePointerHolder > > | imagePointers |
The vectors of images to be shown. More... | |
wxFlexGridSizer * | mflexSizer |
Sizers to preview images. More... | |
wxBoxSizer * | mtopSizer |
Definition at line 52 of file creaImageIOWxViewer.h.
creaImageIO::WxViewer::WxViewer | ( | ) |
Ctors.
creaImageIO::WxViewer::WxViewer | ( | wxWindow * | parent, |
const wxWindowID | id, | ||
wxString | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
Definition at line 70 of file creaImageIOWxViewer.cpp.
References GimmickDebugMessage, mcheck, mCurrent, mflexSizer, mInteractor, mLastImageShown, mMutex, mNeedRefresh, mPlayer, mslide, mtopSizer, mViewer, OnCineLoop(), and OnSlide().
|
virtual |
Dtor.
Destructor.
Definition at line 122 of file creaImageIOWxViewer.cpp.
References GimmickDebugMessage, mInteractor, mMutex, and mPlayer.
|
private |
Event to resume or start cine loop.
Definition at line 326 of file creaImageIOWxViewer.cpp.
References mcheck, mPlayer, and StartPlayer().
Referenced by WxViewer().
|
private |
Event to change displayed frames with slide control.
Definition at line 341 of file creaImageIOWxViewer.cpp.
References mCurrent, mslide, and StartPlayer().
Referenced by WxViewer().
bool creaImageIO::WxViewer::RefreshIfNecessary | ( | ) |
Refreshes the interface if the current image shown has changed.
Definition at line 280 of file creaImageIOWxViewer.cpp.
References GimmickDebugMessage, mInteractor, and mNeedRefresh.
Referenced by creaImageIO::WxGimmickView::ClearSelection(), and creaImageIO::WxGimmickView::UpdateWindowUI().
void creaImageIO::WxViewer::SetImageVector | ( | std::vector< boost::shared_ptr< ImagePointerHolder > > & | pointers | ) |
Sets a new image vector to be read.
Definition at line 141 of file creaImageIOWxViewer.cpp.
References GimmickDebugMessage, imagePointers, mMutex, mslide, and StartPlayer().
Referenced by creaImageIO::WxGimmickView::ClearSelection(), creaImageIO::WxGimmickView::ReadImageThreaded(), and creaImageIO::WxGimmickView::WxGimmickView().
void creaImageIO::WxViewer::SetValue | ( | ) |
Set value of slider control.
Definition at line 350 of file creaImageIOWxViewer.cpp.
References mCurrent, and mslide.
Referenced by creaImageIO::WxViewerPlayer::Entry().
|
private |
Shows the image passed as parameter.
Definition at line 204 of file creaImageIOWxViewer.cpp.
References GimmickDebugMessage, mspx, mspy, mspz, mViewer, mx1, mx2, my1, my2, mz1, and mz2.
Referenced by ShowNextImage().
void creaImageIO::WxViewer::ShowNextImage | ( | ) |
Shows the next image in the image vector.
Definition at line 159 of file creaImageIOWxViewer.cpp.
References GimmickMessage, imagePointers, mCurrent, mLastImageShown, mMutex, mNeedRefresh, and ShowImage().
Referenced by creaImageIO::WxViewerPlayer::Entry(), and StartPlayer().
void creaImageIO::WxViewer::StartPlayer | ( | ) |
Starts the image player.
Definition at line 306 of file creaImageIOWxViewer.cpp.
References mcheck, mPlayer, and ShowNextImage().
Referenced by creaImageIO::WxGimmickView::OnAddDir(), creaImageIO::WxGimmickView::OnAddFiles(), OnCineLoop(), creaImageIO::WxGimmickView::OnDriveMount(), OnSlide(), creaImageIO::WxGimmickView::OnTools(), SetImageVector(), and creaImageIO::WxGimmickView::WxGimmickView().
void creaImageIO::WxViewer::StopPlayer | ( | ) |
Stops the image player.
Definition at line 295 of file creaImageIOWxViewer.cpp.
References mMutex, and mPlayer.
Referenced by creaImageIO::WxGimmickView::OnAddDir(), creaImageIO::WxGimmickView::OnAddFiles(), creaImageIO::WxGimmickView::OnDriveMount(), creaImageIO::WxGimmickView::OnTools(), creaImageIO::WxGimmickView::StopPlayer(), and creaImageIO::WxGimmickView::~WxGimmickView().
|
private |
The vectors of images to be shown.
Definition at line 117 of file creaImageIOWxViewer.h.
Referenced by SetImageVector(), and ShowNextImage().
|
private |
CheckBox to cine loop.
Definition at line 97 of file creaImageIOWxViewer.h.
Referenced by OnCineLoop(), StartPlayer(), and WxViewer().
|
private |
Current image shown.
Definition at line 107 of file creaImageIOWxViewer.h.
Referenced by OnSlide(), SetValue(), ShowNextImage(), and WxViewer().
|
private |
Sizers to preview images.
Definition at line 120 of file creaImageIOWxViewer.h.
Referenced by WxViewer().
|
private |
Associated wxvtk interactor.
Definition at line 100 of file creaImageIOWxViewer.h.
Referenced by RefreshIfNecessary(), WxViewer(), and ~WxViewer().
|
private |
Last image shown.
Definition at line 115 of file creaImageIOWxViewer.h.
Referenced by ShowNextImage(), and WxViewer().
|
private |
The mutex.
Definition at line 111 of file creaImageIOWxViewer.h.
Referenced by SetImageVector(), ShowNextImage(), StopPlayer(), WxViewer(), and ~WxViewer().
|
private |
Boolean that declares if the player needs to be refreshed.
Definition at line 113 of file creaImageIOWxViewer.h.
Referenced by RefreshIfNecessary(), ShowNextImage(), and WxViewer().
|
private |
The threaded movie player.
Definition at line 109 of file creaImageIOWxViewer.h.
Referenced by OnCineLoop(), StartPlayer(), StopPlayer(), WxViewer(), and ~WxViewer().
|
private |
Slider.
Definition at line 94 of file creaImageIOWxViewer.h.
Referenced by OnSlide(), SetImageVector(), SetValue(), and WxViewer().
|
private |
|
private |
Definition at line 105 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 105 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 121 of file creaImageIOWxViewer.h.
Referenced by WxViewer().
|
private |
Previewer.
Definition at line 91 of file creaImageIOWxViewer.h.
Referenced by ShowImage(), and WxViewer().
|
private |
|
private |
Definition at line 103 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 103 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 103 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 103 of file creaImageIOWxViewer.h.
Referenced by ShowImage().
|
private |
Definition at line 103 of file creaImageIOWxViewer.h.
Referenced by ShowImage().