creaImageIO_lib
|
Concrete derivative of GimmickView which implements a wxWidgets-based view. More...
#include <creaImageIOWxGimmickView.h>
Public Types | |
typedef int | EventType |
typedef std::map< std::string, TreeView * > | TreeViewMapType |
typedef boost::signal< void(bool)> | ValidationSignalType |
typedef ValidationSignalType::slot_function_type | ValidationCallbackType |
typedef std::vector < DicomDatabase * > | DicomDatabaseListType |
Type of list of DicomDatabase. More... | |
Public Member Functions | |
WxGimmickView (boost::shared_ptr< Gimmick >, wxWindow *parent, const wxWindowID id, const wxPoint &pos, const wxSize &size, int min_dim=2, int max_dim=3, int number_of_threads=0) | |
Ctor. More... | |
virtual | ~WxGimmickView () |
Virtual destructor. More... | |
void | GetSelectedFiles (std::vector< std::string > &s) |
void | getSelectedFiles (std::vector< OutStrGimmick > &outG, std::vector< std::string > out_infos, bool mult=false, const std::string out_model="") |
Returns the selected files in output structure. More... | |
void | GetSelectedImages (std::vector< vtkImageData * > &s, int dim) |
void | GetSelectedImagesInVector (std::vector< vtkImageData * > &s, int dim) |
Adds the selected Images to the given vector. More... | |
void | GetImages (int dim, const std::vector< std::string > &files, std::vector< vtkImageData * > &s) |
void | OnSelectionChange (const std::vector< tree::Node * > &s, bool isSelection, int selection, bool mProcess) |
Callback called when a selection from a TreeView has changed. More... | |
void | StopPlayer () |
Stops the player. More... | |
void | AddIgnoreFile (tree::Node *toRemove) |
Adds a file to ignore. More... | |
void | ClearSelection () |
Resets the default image. More... | |
void | CopyFiles (const std::vector< std::string > &filenames) |
Copies selected files. More... | |
void | AddDir (std::string dirName) |
Add selected files to the Database. More... | |
void | ReadImageThreaded (const std::vector< tree::Node * > &sel) |
Sends a request to read the currently selected node and the ones that surround it. More... | |
void | OnSaveSettingsCallback (const std::string ©Path, const std::string &dbPath, const std::string &syncEvent, const std::string &syncFreq) |
Saves the settings to the file. More... | |
void | OnListenerCallback (const std::string &drive, bool addFiles, bool removeFiles) |
Changes listener state. More... | |
void | OnDriveMount (bool mount) |
Acts upon a drive mount. More... | |
void | StartListeningThread () |
Starts the listening thread on the CD/DVD drive. More... | |
void | StopListeningThread () |
Stops the listening thread on the CD/DVD drive. More... | |
void | OnFieldsEdited (tree::Node *node, const std::string &name, const std::string &key, const std::string &val) |
Called upon when a field has been edited. More... | |
void | GetVisibleAttributes (std::vector< std::string > &shown, std::vector< std::string > &nShown, int level) |
Called upon to return the visible attributes of the current tab. More... | |
void | OnAttributesChanged (const std::vector< std::string > &nShown, int level) |
Called when there has been a change in the visible attributes of a tree view. More... | |
virtual void | Initialize () |
TreeViewMapType & | GetTreeViewMap () |
Returns the TreeViewMap (ref) More... | |
const TreeViewMapType & | GetTreeViewMap () const |
Returns the TreeViewMap (const ref) More... | |
virtual void | Finalize () |
Finalize. More... | |
int | GetMaximalPriority () |
Returns the maximal priority. More... | |
virtual void | GetSelectedImages (std::vector< vtkImageData * > &) |
Returns the vector of images corresponding to selection. More... | |
virtual void | GetImages (int dim, std::vector< std::string > files, std::vector< vtkImageData * > &s) |
void | Anonymize (std::vector< std::string > i_filenames, int type) |
Anonymize or de-anonymize data. More... | |
virtual void | SaveAs (const std::vector< std::string > &filenames) |
Copies selected files. More... | |
bool | NoValidateSelected () |
No selected image. More... | |
bool | ValidateSelected (tree::Node *sel, int min_dim, int max_dim) |
Validates the dimension compliance of the images with the maximum and minimum given, and between their sizes. More... | |
void | ReadImagesNotThreaded (std::vector< vtkImageData * > &s, std::vector< std::string > files, int dim) |
Reads the vector of images, builds it in the dimension required and returns them in the supplied vector. More... | |
void | ReadImagesNotThreadedInVector (std::vector< vtkImageData * > &s, std::vector< std::string > files, int dim) |
Reads the vector of images, builds it in the dimension required and returns them in the supplied vector. More... | |
void | RequestReading (tree::Node *n, int prio, int selection_index, boost::shared_ptr< ImagePointerHolder > p) |
current selection (-1 if not in selection) More... | |
std::string | GetMessage () |
Obtains the message of the state. More... | |
void | SetMessage (std::string mess) |
Obtains the message of the state. More... | |
void | ResetExtent () |
Resets the data of the extent and begins a new selection. More... | |
void | CreateTreeViews () |
Create the tree views. More... | |
void | CreateSingleTreeView (std::string &i_name) |
Create a tree view with a given name. More... | |
virtual void | UpdateTreeViewLevel (const std::string &, int l) |
void | OnMultiThreadImageReaderEvent (const std::string &filename, MultiThreadImageReaderUser::EventType t, vtkImageData *image) |
vtkImageData * | GetDefaultImage () |
void | ConnectValidationObserver (ValidationCallbackType callback) |
void | modifyValidationSignal (bool ivalid) |
void | readImages (std::vector< OutStrGimmick > &o_output, std::vector< std::string > im, OutputAttr i_attr, int i_dim, double i_zspc) |
bool | isSingle (const std::string i_file) |
void | stopReader () |
virtual int | GetSelectionSize () |
Returns the size of the current selection. More... | |
virtual bool | IsSelectionValid () |
Returns true if there is a valid selection. More... | |
virtual void | GetSelectedDicomNodes (std::vector< DicomNode * > &) |
Returns the vector of DicomNode corresponding to selection. More... | |
virtual DicomNode * | GetDicomNodeOfItem (const TreeItemId &i) |
Returns the DicomNode corresponding to the tree item. More... | |
virtual DicomDatabaseListType & | GetDicomDatabaseList () |
Returns the list of DicomDatabase open. More... | |
virtual const DicomDatabaseListType & | GetDicomDatabaseList () const |
Returns the list of DicomDatabase open (const) More... | |
virtual void | LoadOrCreateFavoritesDatabase () |
Loads or creates a favorites database. More... | |
void | MultiThreadImageReaderEventLock () |
void | MultiThreadImageReaderEventLock () |
void | MultiThreadImageReaderEventUnlock () |
void | MultiThreadImageReaderEventUnlock () |
wxMutex & | GetMultiThreadImageReaderUserMutex () |
QMutex * | GetMultiThreadImageReaderUserMutex () |
Public Attributes | |
OutStrGimmick | m_out |
Protected Member Functions | |
void | CreateToolBar () |
Creates the tool bar. More... | |
void | CreateTreeView (TreeHandler *) |
Create the tree view for TreeHandler provided. More... | |
virtual void | OpenOrNewDatabase (bool open) |
Opens an existing database, or else, creates a local database. More... | |
virtual void | ShowHelp () |
Shows the help. More... | |
virtual void | RebuildView () |
virtual void | UpdateDicomDatabaseView (DicomDatabase *) |
virtual void | UpdateDicomNodeView (DicomNode *n, const TreeItemId &parent) |
Private Member Functions | |
void | CreateIconList () |
void | OnAddFiles (wxCommandEvent &event) |
Callback for adding files. More... | |
void | OnAddDir (wxCommandEvent &event) |
Callback for adding dir. More... | |
void | OnRemove (wxCommandEvent &event) |
Callback for removing files. More... | |
void | OnSynchronize (wxCommandEvent &event) |
Callback for synchronization. More... | |
void | OnSettings (wxCommandEvent &event) |
Callback for settings edition. More... | |
void | OnTools (wxCommandEvent &event) |
Callback for settings edition. More... | |
void | OnImportExport (wxCommandEvent &event) |
Callback for Import/Export images. More... | |
void | ImportImages () |
void | ExportImages () |
void | CreateSettingsDialog (wxNotebook *nb, wxDialog *dial) |
Creates the settings dialog (the pages inside and the information) More... | |
void | DisplayAddSummary () |
Display a message box with the last addition statistics. More... | |
bool | isNeedRecursive (std::string i_name) |
Test a directory to know if contains sub-directory to analyze. More... | |
int | NumberFilesToAdd (const std::string &dirpath, bool recursive) |
Determines number of files potentially to add to database. More... | |
void | OnAddProgress (Gimmick::AddProgress &) |
AddProgress Gimmick callback. More... | |
void | UpdateWindowUI (long flags=wxUPDATE_UI_NONE) |
void | OnAddDB (wxCommandEvent &event) |
callback to add a database More... | |
void | OnCreateDB (wxCommandEvent &event) |
Create a DB from an Attributes Descriptor files. More... | |
std::string | ExtractName (const std::string &i_name) |
void | CreateEditFieldsDialog (tree::Node *node, std::vector< std::string > names, std::vector< std::string > keys) |
Edits the fields of a given node. More... | |
void | DumpTags (const std::string i_filename) |
Display all Dicom Tags. More... | |
void | ExportToStorage (const std::vector< std::string > i_filenames) |
Export from Storage to Storage. More... | |
void | killProgress () |
Private Attributes | |
wxBoxSizer * | mbottom_sizer |
wxBoxSizer * | msizer |
bool | mConstructed |
wxToolBar * | mToolBar |
The ToolBar and the tools. More... | |
wxToolBarToolBase * | mToolAddFile |
wxToolBarToolBase * | mToolAddDir |
wxToolBarToolBase * | mToolRemove |
wxToolBarToolBase * | mToolAddDatabase |
wxToolBarToolBase * | mToolHelp |
wxToolBarToolBase * | mToolSynchronize |
wxToolBarToolBase * | mToolSettings |
wxToolBarToolBase * | mToolTools |
wxSplitterWindow * | mSplitter |
wxPanel * | mBottomPanel |
wxStaticText * | mText |
wxNotebook * | mNotebook |
wxImageList * | mIcon |
The list of icons. More... | |
boost::shared_ptr< Gimmick > | mGimmick |
Listener * | mListener |
time_t | mstart |
wxProgressDialog * | mProgressDialog |
Progress dialog. More... | |
int | mSelectionMaxDimension |
The selection's maximum dimension. More... | |
int | mSelectionMinDimension |
The selection's minimum dimension. More... | |
WxViewer * | mViewer |
Image previewer. More... | |
tree::Node * | mCurImageItemToShow |
Currently Displayed Node. More... | |
std::vector< boost::shared_ptr < ImagePointerHolder > > | pointers |
wxString | mCurrentDirectory |
Concrete derivative of GimmickView which implements a wxWidgets-based view.
Definition at line 59 of file creaImageIOWxGimmickView.h.
|
inherited |
Type of list of DicomDatabase.
Definition at line 64 of file OldcreaImageIOGimmickView.h.
typedef int creaImageIO::WxGimmickView::EventType |
Definition at line 63 of file creaImageIOWxGimmickView.h.
|
inherited |
Type of map from View name to TreeView* (This map is equivalent for Views of the TreeHandlerMap of Gimmick)
Definition at line 96 of file creaImageIOGimmickView.h.
|
inherited |
Definition at line 206 of file creaImageIOGimmickView.h.
|
inherited |
Definition at line 205 of file creaImageIOGimmickView.h.
creaImageIO::WxGimmickView::WxGimmickView | ( | boost::shared_ptr< Gimmick > | gimmick, |
wxWindow * | parent, | ||
const wxWindowID | id, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
int | min_dim = 2 , |
||
int | max_dim = 3 , |
||
int | number_of_threads = 0 |
||
) |
Ctor.
fix warning: unused variable hsize
Definition at line 128 of file creaImageIOWxGimmickView.cpp.
References CreateIconList(), CreateToolBar(), creaImageIO::GimmickView::CreateTreeViews(), creaImageIO::GimmickView::GetDefaultImage(), GimmickDebugMessage, mbottom_sizer, mBottomPanel, mConstructed, mCurrentDirectory, mGimmick, mNotebook, mProgressDialog, mSelectionMaxDimension, mSelectionMinDimension, msizer, mSplitter, mText, mToolBar, mViewer, OnAddProgress(), pointers, creaImageIO::WxViewer::SetImageVector(), and creaImageIO::WxViewer::StartPlayer().
|
virtual |
Virtual destructor.
Destructor.
Definition at line 232 of file creaImageIOWxGimmickView.cpp.
References GimmickDebugMessage, mIcon, mViewer, and creaImageIO::WxViewer::StopPlayer().
void creaImageIO::WxGimmickView::AddDir | ( | std::string | dirName | ) |
Add selected files to the Database.
Definition at line 863 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), killProgress(), mCurrentDirectory, mGimmick, mNotebook, mProgressDialog, and creaImageIO::GimmickView::UpdateTreeViewLevel().
Referenced by creaImageIO::WxGimmickPanel::AddImagesToDB().
|
virtual |
Adds a file to ignore.
Reimplemented from creaImageIO::GimmickView.
Definition at line 849 of file creaImageIOWxGimmickView.cpp.
|
inherited |
Anonymize or de-anonymize data.
Definition at line 875 of file creaImageIOGimmickView.cpp.
Referenced by creaImageIO::WxTreeView::OnAnonymizer().
|
virtual |
Resets the default image.
Reimplemented from creaImageIO::GimmickView.
Definition at line 822 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetDefaultImage(), mViewer, pointers, creaImageIO::WxViewer::RefreshIfNecessary(), creaImageIO::GimmickView::ResetExtent(), and creaImageIO::WxViewer::SetImageVector().
Referenced by OnRemove().
|
inherited |
Adds the function f to the list of functions to call when the addition progresses. f is of type ProgressCallbackType which is: void (*ProgressCallbackType)(Progress&) To pass a member function 'f' of an instance 'c' of a class 'C' as callback you have to 'bind' it, i.e. call: ConnectValidationObserver ( boost::bind( &C::f , c, _1 ) );
Definition at line 867 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::mValidationSignal.
Referenced by creaImageIO::WxGimmickPanel::WxGimmickPanel(), and creaImageIO::WxGimmickReaderDialog::WxGimmickReaderDialog().
|
virtual |
Copies selected files.
Reimplemented from creaImageIO::GimmickView.
Definition at line 856 of file creaImageIOWxGimmickView.cpp.
|
privatevirtual |
Edits the fields of a given node.
Reimplemented from creaImageIO::GimmickView.
Definition at line 1177 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::tree::Node::GetLabel().
|
private |
Definition at line 464 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::Icon_accept, creaImageIO::Icon_add, creaImageIO::Icon_create_database, creaImageIO::Icon_database_add, creaImageIO::Icon_folder_down, creaImageIO::Icon_help, creaImageIO::icon_number, creaImageIO::Icon_page_down, creaImageIO::Icon_remove, creaImageIO::Icon_settings, creaImageIO::Icon_synchronize, creaImageIO::Icon_tools, and mIcon.
Referenced by WxGimmickView().
|
private |
Creates the settings dialog (the pages inside and the information)
Definition at line 1046 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), mGimmick, mNotebook, SETTINGS_COPY_PATH, SETTINGS_DBPATH, SETTINGS_SYNC_EVENT, and SETTINGS_SYNC_FREQ.
Referenced by OnSettings().
|
inherited |
Create a tree view with a given name.
Definition at line 162 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::CreateTreeView(), and creaImageIO::GimmickView::mGimmick.
Referenced by OnAddDB(), and OnCreateDB().
|
protected |
Creates the tool bar.
Definition at line 246 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::Icon_create_database, creaImageIO::Icon_database_add, creaImageIO::Icon_folder_down, creaImageIO::Icon_help, creaImageIO::Icon_page_down, creaImageIO::Icon_remove, creaImageIO::Icon_settings, creaImageIO::Icon_synchronize, creaImageIO::Icon_tools, mIcon, mToolAddDatabase, mToolAddDir, mToolAddFile, mToolBar, mToolHelp, mToolRemove, mToolSettings, mToolSynchronize, mToolTools, creaImageIO::TOOL_ADDDATABASE_ID, creaImageIO::TOOL_ADDDIR_ID, creaImageIO::TOOL_ADDFILES_ID, creaImageIO::TOOL_CREATEDB_ID, creaImageIO::TOOL_HELP_ID, creaImageIO::TOOL_PACS_ID, creaImageIO::TOOL_REMOVE_ID, creaImageIO::TOOL_SETTINGS_ID, creaImageIO::TOOL_SYNCHRONIZE_ID, and creaImageIO::TOOL_TOOLS_ID.
Referenced by WxGimmickView().
|
protectedvirtual |
Create the tree view for TreeHandler provided.
Create the tree view for TreeHandler provided (overloaded from GimmickView)
Reimplemented from creaImageIO::GimmickView.
Definition at line 313 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::tree::Node::GetAttribute(), creaImageIO::TreeHandler::GetTree(), creaImageIO::GimmickView::GetTreeViewMap(), GimmickMessage, and mNotebook.
|
inherited |
Create the tree views.
Definition at line 149 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::CreateTreeView(), GimmickMessage, and creaImageIO::GimmickView::mGimmick.
Referenced by WxGimmickView().
|
private |
Display a message box with the last addition statistics.
Definition at line 1266 of file creaImageIOWxGimmickView.cpp.
References mGimmick, and mstart.
Referenced by AddDir(), ExportToStorage(), OnAddDir(), OnAddFiles(), OnDriveMount(), and OnTools().
|
privatevirtual |
Display all Dicom Tags.
Reimplemented from creaImageIO::GimmickView.
Definition at line 1191 of file creaImageIOWxGimmickView.cpp.
|
private |
Definition at line 945 of file creaImageIOWxGimmickView.cpp.
Referenced by OnImportExport().
|
privatevirtual |
Export from Storage to Storage.
Reimplemented from creaImageIO::GimmickView.
Definition at line 1198 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), creaImageIO::WxExportDlg::GetStorage(), ID_EXPORT_OK, killProgress(), mGimmick, mProgressDialog, and creaImageIO::GimmickView::UpdateTreeViewLevel().
|
private |
|
virtualinherited |
|
inlineinherited |
Definition at line 202 of file creaImageIOGimmickView.h.
References creaImageIO::MultiThreadImageReader::GetImage(), and creaImageIO::GimmickView::mReader.
Referenced by ClearSelection(), creaImageIO::GimmickView::OnMultiThreadImageReaderEvent(), ReadImageThreaded(), and WxGimmickView().
|
inlinevirtualinherited |
Returns the list of DicomDatabase open.
Definition at line 66 of file OldcreaImageIOGimmickView.h.
|
inlinevirtualinherited |
Returns the list of DicomDatabase open (const)
Definition at line 69 of file OldcreaImageIOGimmickView.h.
|
virtualinherited |
Returns the DicomNode corresponding to the tree item.
void creaImageIO::WxGimmickView::GetImages | ( | int | dim, |
const std::vector< std::string > & | files, | ||
std::vector< vtkImageData * > & | s | ||
) |
Returns the images indicated by the filenames in the vector so that they comply with the given parameter(dim)
Definition at line 454 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::ReadImagesNotThreaded().
|
inlinevirtualinherited |
|
inlineinherited |
Returns the maximal priority.
Definition at line 108 of file creaImageIOGimmickView.h.
References creaImageIO::MultiThreadImageReader::GetMaximalPriority(), and creaImageIO::GimmickView::mReader.
Referenced by ReadImageThreaded().
|
inlineinherited |
Obtains the message of the state.
Definition at line 175 of file creaImageIOGimmickView.h.
References creaImageIO::GimmickView::mMess.
Referenced by OnSelectionChange().
|
inlineinherited |
Definition at line 84 of file creaImageIOMultiThreadImageReader.h.
Referenced by creaImageIO::MultiThreadImageReader::GetMaximalPriority(), creaImageIO::MultiThreadImageReader::Request(), creaImageIO::MultiThreadImageReader::SignalImageRead(), creaImageIO::MultiThreadImageReader::Start(), and creaImageIO::MultiThreadImageReader::Stop().
|
inlineinherited |
Definition at line 85 of file creaImageIOQMultiThreadImageReader.h.
|
inlinevirtualinherited |
Returns the vector of DicomNode corresponding to selection.
Definition at line 58 of file OldcreaImageIOGimmickView.h.
|
virtual |
Returns the selected files (overloaded from GimmickView)
Reimplemented from creaImageIO::GimmickView.
Definition at line 447 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), and mNotebook.
void creaImageIO::WxGimmickView::getSelectedFiles | ( | std::vector< OutStrGimmick > & | outG, |
std::vector< std::string > | i_attr, | ||
bool | mult = false , |
||
const std::string | out_model = "" |
||
) |
Returns the selected files in output structure.
By default if out_infos is empty, we dont' provide informations, we return only vtkImageData if out_infos has only one entry "all" we provide all database informations
Definition at line 357 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::OutputAttr::db, creaImageIO::GimmickView::GetTreeViewMap(), creaImageIO::GimmickView::isSingle(), mGimmick, mNotebook, creaImageIO::OutputModel::orderFilesWithZspacing(), creaImageIO::GimmickView::readImages(), SETTINGS_OUTPUT_ASK, and SETTINGS_OUTPUT_DIM.
|
inlinevirtualinherited |
Returns the vector of images corresponding to selection.
Definition at line 56 of file OldcreaImageIOGimmickView.h.
|
virtual |
Returns the selected Images so that they comply with the given parameter(4D) (overloaded from GimmickView)
Reimplemented from creaImageIO::GimmickView.
Definition at line 331 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), and mNotebook.
|
virtual |
Adds the selected Images to the given vector.
Reimplemented from creaImageIO::GimmickView.
Definition at line 345 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), mNotebook, and creaImageIO::GimmickView::ReadImagesNotThreadedInVector().
|
inlinevirtualinherited |
Returns the size of the current selection.
Definition at line 50 of file OldcreaImageIOGimmickView.h.
|
inlineinherited |
Returns the TreeViewMap (ref)
Definition at line 99 of file creaImageIOGimmickView.h.
References creaImageIO::GimmickView::mTreeViewMap.
Referenced by CreateSettingsDialog(), CreateTreeView(), GetSelectedFiles(), getSelectedFiles(), GetSelectedImages(), GetSelectedImagesInVector(), GetVisibleAttributes(), OnAttributesChanged(), OnImportExport(), OnRemove(), OnSynchronize(), ReadImageThreaded(), and creaImageIO::GimmickView::UpdateTreeViewLevel().
|
inlineinherited |
Returns the TreeViewMap (const ref)
Definition at line 101 of file creaImageIOGimmickView.h.
References creaImageIO::GimmickView::mTreeViewMap.
void creaImageIO::WxGimmickView::GetVisibleAttributes | ( | std::vector< std::string > & | shown, |
std::vector< std::string > & | nShown, | ||
int | level | ||
) |
Called upon to return the visible attributes of the current tab.
Definition at line 1088 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), and mNotebook.
Referenced by creaImageIO::WxAttributeSelectionPanel::OnComboChange().
|
private |
Definition at line 953 of file creaImageIOWxGimmickView.cpp.
Referenced by OnImportExport().
|
virtualinherited |
Initializes the view : Creates the TreeViews for all the TreeHandler of the Controller
Definition at line 133 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::mReaderStarted.
Referenced by creaImageIO::WxGimmickFrame::WxGimmickFrame(), creaImageIO::WxGimmickPanel::WxGimmickPanel(), and creaImageIO::WxGimmickReaderDialog::WxGimmickReaderDialog().
|
private |
Test a directory to know if contains sub-directory to analyze.
Definition at line 637 of file creaImageIOWxGimmickView.cpp.
Referenced by OnAddDir().
|
inlinevirtualinherited |
Returns true if there is a valid selection.
Definition at line 52 of file OldcreaImageIOGimmickView.h.
|
inherited |
Definition at line 451 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), and creaImageIO::GimmickView::mReader.
Referenced by getSelectedFiles(), and creaImageIO::GimmickView::readImages().
|
private |
Definition at line 1346 of file creaImageIOWxGimmickView.cpp.
References mProgressDialog.
Referenced by AddDir(), ExportToStorage(), OnAddDir(), OnAddFiles(), OnDriveMount(), and OnTools().
|
inlinevirtualinherited |
Loads or creates a favorites database.
Definition at line 101 of file OldcreaImageIOGimmickView.h.
|
inherited |
Definition at line 325 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::mValidationSignal.
Referenced by creaImageIO::GimmickView::NoValidateSelected(), creaImageIO::WxTreeView::RemoveSelected(), and creaImageIO::GimmickView::ValidateSelected().
|
inlineinherited |
Definition at line 80 of file creaImageIOMultiThreadImageReader.h.
Referenced by creaImageIO::ThreadedImageReader::Entry().
|
inlineinherited |
Definition at line 81 of file creaImageIOQMultiThreadImageReader.h.
|
inlineinherited |
Definition at line 82 of file creaImageIOMultiThreadImageReader.h.
Referenced by creaImageIO::ThreadedImageReader::Entry().
|
inlineinherited |
Definition at line 83 of file creaImageIOQMultiThreadImageReader.h.
|
inherited |
No selected image.
Definition at line 227 of file creaImageIOGimmickView.cpp.
References GimmickDebugMessage, creaImageIO::GimmickView::modifyValidationSignal(), creaImageIO::GimmickView::SetMessage(), and creaImageIO::GimmickView::valid.
|
private |
Determines number of files potentially to add to database.
Definition at line 612 of file creaImageIOWxGimmickView.cpp.
Referenced by OnAddDir().
|
private |
callback to add a database
Definition at line 1280 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::CreateSingleTreeView(), and mGimmick.
|
private |
Callback for adding dir.
Definition at line 558 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), isNeedRecursive(), killProgress(), mCurrentDirectory, mGimmick, mNotebook, mProgressDialog, mstart, mViewer, NumberFilesToAdd(), creaImageIO::WxViewer::StartPlayer(), creaImageIO::WxViewer::StopPlayer(), and creaImageIO::GimmickView::UpdateTreeViewLevel().
|
private |
Callback for adding files.
Definition at line 505 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), GimmickMessage, killProgress(), mGimmick, mNotebook, mProgressDialog, mViewer, creaImageIO::WxViewer::StartPlayer(), creaImageIO::WxViewer::StopPlayer(), and creaImageIO::GimmickView::UpdateTreeViewLevel().
|
private |
AddProgress Gimmick callback.
Definition at line 1242 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::TreeHandlerImageAdder::Progress::GetNumberAddedFiles(), creaImageIO::TreeHandlerImageAdder::Progress::GetNumberHandledFiles(), creaImageIO::TreeHandlerImageAdder::Progress::GetNumberScannedDirs(), creaImageIO::TreeHandlerImageAdder::Progress::GetNumberScannedFiles(), mProgressDialog, and creaImageIO::TreeHandlerImageAdder::Progress::SetStop().
Referenced by WxGimmickView().
void creaImageIO::WxGimmickView::OnAttributesChanged | ( | const std::vector< std::string > & | nShown, |
int | level | ||
) |
Called when there has been a change in the visible attributes of a tree view.
Definition at line 1095 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), and mNotebook.
Referenced by creaImageIO::WxAttributeSelectionPanel::OnSaveConfig().
|
private |
Create a DB from an Attributes Descriptor files.
Definition at line 1318 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::CreateSingleTreeView(), creaImageIO::WxDescriptorPanel::GetDescriptor(), ID_DSCP_APPLY, and mGimmick.
void creaImageIO::WxGimmickView::OnDriveMount | ( | bool | mount | ) |
Acts upon a drive mount.
Definition at line 1123 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), creaImageIO::Listener::GetMonitoredDrive(), GimmickMessage, killProgress(), mCurrentDirectory, mGimmick, mListener, mNotebook, mProgressDialog, mViewer, creaImageIO::WxViewer::StartPlayer(), creaImageIO::WxViewer::StopPlayer(), and creaImageIO::GimmickView::UpdateTreeViewLevel().
void creaImageIO::WxGimmickView::OnFieldsEdited | ( | tree::Node * | node, |
const std::string & | name, | ||
const std::string & | key, | ||
const std::string & | val | ||
) |
Called upon when a field has been edited.
Definition at line 1234 of file creaImageIOWxGimmickView.cpp.
References mGimmick, mNotebook, and creaImageIO::GimmickView::UpdateTreeViewLevel().
Referenced by creaImageIO::WxEditFieldsPanel::OnEdit().
|
private |
Callback for Import/Export images.
Definition at line 930 of file creaImageIOWxGimmickView.cpp.
References ExportImages(), creaImageIO::GimmickView::GetTreeViewMap(), ImportImages(), and mNotebook.
void creaImageIO::WxGimmickView::OnListenerCallback | ( | const std::string & | drive, |
bool | addFiles, | ||
bool | removeFiles | ||
) |
Changes listener state.
Definition at line 1114 of file creaImageIOWxGimmickView.cpp.
References mListener, creaImageIO::Listener::SetAddFilesState(), creaImageIO::Listener::SetMonitoredDrive(), and creaImageIO::Listener::SetRemoveFilesState().
Referenced by creaImageIO::WxListenerPanel::OnChangeListenState().
|
virtualinherited |
The virtual method to overload by MultiThreadImageReader users It is called when an image has been loaded or unloaded Provides :
Reimplemented from creaImageIO::MultiThreadImageReaderUser.
Definition at line 795 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReaderUser::Error, creaImageIO::GimmickView::GetDefaultImage(), GimmickDebugMessage, GimmickMessage, creaImageIO::GimmickView::ImageEventType::image, creaImageIO::MultiThreadImageReaderUser::ImageLoaded, creaImageIO::MultiThreadImageReaderUser::ImageUnloaded, creaImageIO::GimmickView::mImageEventMap, and creaImageIO::GimmickView::ImageEventType::pointerHolder.
|
private |
Callback for removing files.
Definition at line 835 of file creaImageIOWxGimmickView.cpp.
References ClearSelection(), creaImageIO::GimmickView::GetTreeViewMap(), mGimmick, mNotebook, and SETTINGS_REMOVE_PATIENT_DISPLAY.
void creaImageIO::WxGimmickView::OnSaveSettingsCallback | ( | const std::string & | copyPath, |
const std::string & | dbPath, | ||
const std::string & | syncEvent, | ||
const std::string & | syncFreq | ||
) |
Saves the settings to the file.
Definition at line 1102 of file creaImageIOWxGimmickView.cpp.
References mGimmick, SETTINGS_COPY_PATH, SETTINGS_DBPATH, SETTINGS_SYNC_EVENT, and SETTINGS_SYNC_FREQ.
Referenced by creaImageIO::WxCustomizeConfigPanel::OnSaveConfig().
|
virtual |
Callback called when a selection from a TreeView has changed.
Reimplemented from creaImageIO::GimmickView.
Definition at line 653 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetMessage(), GimmickDebugMessage, mSelectionMaxDimension, mSelectionMinDimension, mText, ReadImageThreaded(), creaImageIO::GimmickView::ResetExtent(), creaImageIO::GimmickView::valid, and creaImageIO::GimmickView::ValidateSelected().
|
private |
Callback for settings edition.
Definition at line 916 of file creaImageIOWxGimmickView.cpp.
References CreateSettingsDialog().
|
private |
Callback for synchronization.
Definition at line 881 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), mGimmick, and mNotebook.
|
private |
Callback for settings edition.
Definition at line 965 of file creaImageIOWxGimmickView.cpp.
References DisplayAddSummary(), creaImageIO::WxGimmickTools::getAddToDBCheckBoxValue(), creaImageIO::WxGimmickTools::getInputDir(), creaImageIO::WxGimmickTools::getOutputDir(), killProgress(), mCurrentDirectory, mGimmick, mNotebook, mProgressDialog, mViewer, creaImageIO::WxViewer::StartPlayer(), creaImageIO::WxViewer::StopPlayer(), and creaImageIO::GimmickView::UpdateTreeViewLevel().
|
inlineprotectedvirtualinherited |
Opens an existing database, or else, creates a local database.
Definition at line 74 of file OldcreaImageIOGimmickView.h.
|
inherited |
Definition at line 661 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::isSingle(), creaImageIO::GimmickView::readImages1(), creaImageIO::GimmickView::readImages2(), creaImageIO::GimmickView::readImages3(), and creaImageIO::GimmickView::readImages4().
Referenced by getSelectedFiles().
|
inherited |
Reads the vector of images, builds it in the dimension required and returns them in the supplied vector.
Reads Images (Non Threaded)
Definition at line 338 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), creaImageIO::GimmickView::mReader, and creaImageIO::GimmickView::stopReader().
Referenced by GetImages().
|
inherited |
Reads the vector of images, builds it in the dimension required and returns them in the supplied vector.
fix unused variable 'first'
Definition at line 732 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), GimmickDebugMessage, and creaImageIO::GimmickView::mReader.
Referenced by GetSelectedImagesInVector().
void creaImageIO::WxGimmickView::ReadImageThreaded | ( | const std::vector< tree::Node * > & | sel | ) |
Sends a request to read the currently selected node and the ones that surround it.
Reads Images (Threaded)
Definition at line 711 of file creaImageIOWxGimmickView.cpp.
References creaImageIO::GimmickView::GetDefaultImage(), creaImageIO::GimmickView::GetMaximalPriority(), creaImageIO::GimmickView::GetTreeViewMap(), GimmickDebugMessage, mCurImageItemToShow, mNotebook, mViewer, pointers, creaImageIO::GimmickView::RequestReading(), and creaImageIO::WxViewer::SetImageVector().
Referenced by OnSelectionChange().
|
inlineprotectedvirtualinherited |
Completely rebuilds the view with current DicomDatabaseList
Definition at line 124 of file OldcreaImageIOGimmickView.h.
|
inherited |
current selection (-1 if not in selection)
Requests the reading of an image.
Requests the reading of an image with priority and index in the
Definition at line 778 of file creaImageIOGimmickView.cpp.
References creaImageIO::tree::Node::GetAttribute(), creaImageIO::GimmickView::mImageEventMap, creaImageIO::GimmickView::mReader, creaImageIO::GimmickView::mReaderStarted, creaImageIO::GimmickView::ImageEventType::pointerHolder, creaImageIO::MultiThreadImageReader::Request(), and creaImageIO::MultiThreadImageReader::Start().
Referenced by ReadImageThreaded().
|
inherited |
Resets the data of the extent and begins a new selection.
Clears the status and begins a new selection process.
Definition at line 188 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::mImageExtent, and creaImageIO::GimmickView::valid.
Referenced by ClearSelection(), and OnSelectionChange().
|
inlinevirtualinherited |
Copies selected files.
Definition at line 154 of file creaImageIOGimmickView.h.
References GimmickError.
|
inlineinherited |
Obtains the message of the state.
Definition at line 178 of file creaImageIOGimmickView.h.
References creaImageIO::GimmickView::mMess.
Referenced by creaImageIO::GimmickView::NoValidateSelected(), and creaImageIO::GimmickView::ValidateSelected().
|
protectedvirtualinherited |
Shows the help.
void creaImageIO::WxGimmickView::StartListeningThread | ( | ) |
Starts the listening thread on the CD/DVD drive.
Definition at line 1164 of file creaImageIOWxGimmickView.cpp.
References mListener.
Referenced by creaImageIO::WxListenerPanel::OnChangeThreadState().
void creaImageIO::WxGimmickView::StopListeningThread | ( | ) |
Stops the listening thread on the CD/DVD drive.
Definition at line 1171 of file creaImageIOWxGimmickView.cpp.
References mListener.
Referenced by creaImageIO::WxListenerPanel::OnChangeThreadState().
|
inline |
Stops the player.
Definition at line 101 of file creaImageIOWxGimmickView.h.
References mViewer, and creaImageIO::WxViewer::StopPlayer().
|
inherited |
Definition at line 331 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::mReader, and creaImageIO::MultiThreadImageReader::Stop().
Referenced by creaImageIO::GimmickView::ReadImagesNotThreaded().
|
inlineprotectedvirtualinherited |
Recursively updates the part of the view corresponding to the DicomDatabase passed i.e. creates items for the DicomNode which do not have deletes obsolete items (whose DicomNode has been deleted)
Definition at line 129 of file OldcreaImageIOGimmickView.h.
|
inlineprotectedvirtualinherited |
Recursively updates the part of the view corresponding to the DicomNode provided. parent is its parent in the tree (where to insert / remove it)
Definition at line 133 of file OldcreaImageIOGimmickView.h.
|
virtualinherited |
Updates the TreeView of given name from level l to bottom (calls the virtual method TreeView::UpdateLevel(l))
Updates the TreeView of given name from level l to bottom (calls the virtual method TreeView::Update())
Definition at line 174 of file creaImageIOGimmickView.cpp.
References creaImageIO::GimmickView::GetTreeViewMap(), and GimmickError.
Referenced by AddDir(), ExportToStorage(), OnAddDir(), OnAddFiles(), OnDriveMount(), OnFieldsEdited(), and OnTools().
|
private |
Definition at line 811 of file creaImageIOWxGimmickView.cpp.
References mViewer, and creaImageIO::WxViewer::RefreshIfNecessary().
|
inherited |
Validates the dimension compliance of the images with the maximum and minimum given, and between their sizes.
Validates the dimension compliance of the images with the maximum and minimum given, and between their sizes
Definition at line 241 of file creaImageIOGimmickView.cpp.
References GimmickDebugMessage, creaImageIO::GimmickView::mImageExtent, creaImageIO::GimmickView::modifyValidationSignal(), creaImageIO::GimmickView::SetMessage(), and creaImageIO::GimmickView::valid.
Referenced by OnSelectionChange().
OutStrGimmick creaImageIO::WxGimmickView::m_out |
Definition at line 64 of file creaImageIOWxGimmickView.h.
|
private |
Definition at line 153 of file creaImageIOWxGimmickView.h.
Referenced by WxGimmickView().
|
private |
Definition at line 171 of file creaImageIOWxGimmickView.h.
Referenced by WxGimmickView().
|
private |
Is set to true at the end of constructor (in order to lock callbacks from threaded objects or event before everything is ok)
Definition at line 158 of file creaImageIOWxGimmickView.h.
Referenced by WxGimmickView().
|
private |
Currently Displayed Node.
Definition at line 262 of file creaImageIOWxGimmickView.h.
Referenced by ReadImageThreaded().
|
private |
Definition at line 270 of file creaImageIOWxGimmickView.h.
Referenced by AddDir(), OnAddDir(), OnDriveMount(), OnTools(), and WxGimmickView().
|
private |
Definition at line 179 of file creaImageIOWxGimmickView.h.
Referenced by AddDir(), AddIgnoreFile(), CopyFiles(), CreateSettingsDialog(), DisplayAddSummary(), ExportToStorage(), getSelectedFiles(), OnAddDB(), OnAddDir(), OnAddFiles(), OnCreateDB(), OnDriveMount(), OnFieldsEdited(), OnRemove(), OnSaveSettingsCallback(), OnSynchronize(), OnTools(), and WxGimmickView().
|
private |
The list of icons.
Definition at line 176 of file creaImageIOWxGimmickView.h.
Referenced by CreateIconList(), CreateToolBar(), and ~WxGimmickView().
|
private |
Definition at line 181 of file creaImageIOWxGimmickView.h.
Referenced by OnDriveMount(), OnListenerCallback(), StartListeningThread(), and StopListeningThread().
|
private |
Definition at line 173 of file creaImageIOWxGimmickView.h.
Referenced by AddDir(), AddIgnoreFile(), CopyFiles(), CreateSettingsDialog(), CreateTreeView(), GetSelectedFiles(), getSelectedFiles(), GetSelectedImages(), GetSelectedImagesInVector(), GetVisibleAttributes(), OnAddDir(), OnAddFiles(), OnAttributesChanged(), OnDriveMount(), OnFieldsEdited(), OnImportExport(), OnRemove(), OnSynchronize(), OnTools(), ReadImageThreaded(), and WxGimmickView().
|
private |
Progress dialog.
Definition at line 250 of file creaImageIOWxGimmickView.h.
Referenced by AddDir(), ExportToStorage(), killProgress(), OnAddDir(), OnAddFiles(), OnAddProgress(), OnDriveMount(), OnTools(), and WxGimmickView().
|
private |
The selection's maximum dimension.
Definition at line 253 of file creaImageIOWxGimmickView.h.
Referenced by OnSelectionChange(), and WxGimmickView().
|
private |
The selection's minimum dimension.
Definition at line 256 of file creaImageIOWxGimmickView.h.
Referenced by OnSelectionChange(), and WxGimmickView().
|
private |
Definition at line 154 of file creaImageIOWxGimmickView.h.
Referenced by WxGimmickView().
|
private |
Definition at line 170 of file creaImageIOWxGimmickView.h.
Referenced by WxGimmickView().
|
private |
Definition at line 215 of file creaImageIOWxGimmickView.h.
Referenced by DisplayAddSummary(), and OnAddDir().
|
private |
Definition at line 172 of file creaImageIOWxGimmickView.h.
Referenced by OnSelectionChange(), and WxGimmickView().
|
private |
Definition at line 164 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 162 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 161 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
The ToolBar and the tools.
Definition at line 160 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar(), and WxGimmickView().
|
private |
Definition at line 165 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 163 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 167 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 166 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Definition at line 168 of file creaImageIOWxGimmickView.h.
Referenced by CreateToolBar().
|
private |
Image previewer.
Definition at line 259 of file creaImageIOWxGimmickView.h.
Referenced by ClearSelection(), OnAddDir(), OnAddFiles(), OnDriveMount(), OnTools(), ReadImageThreaded(), StopPlayer(), UpdateWindowUI(), WxGimmickView(), and ~WxGimmickView().
|
private |
Definition at line 265 of file creaImageIOWxGimmickView.h.
Referenced by ClearSelection(), ReadImageThreaded(), and WxGimmickView().