creaImageIO_lib
|
Abstract class that handles views, attributes and previews (GUI) for Gimmick. More...
#include <creaImageIOGimmickView.h>
Classes | |
struct | ImageEventType |
Public Types | |
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... | |
enum | EventType { ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded, Error, ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded, Error } |
enum | EventType { ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded, Error, ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded, Error } |
Public Member Functions | |
GimmickView (boost::shared_ptr< Gimmick >, int number_of_threads=0) | |
Ctor. More... | |
virtual | ~GimmickView () |
Virtual destructor. 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 | GetSelectedImagesInVector (std::vector< vtkImageData * > &s, int dim) |
Adds the selected Images to the given vector. More... | |
virtual void | GetSelectedImages (std::vector< vtkImageData * > &s, int dim) |
Adds the selected Images to the given vector and validates to see if they comply with the given parameter (4D) More... | |
virtual void | GetSelectedFiles (std::vector< std::string > &s) |
virtual void | GetImages (int dim, std::vector< std::string > files, std::vector< vtkImageData * > &s) |
virtual void | OnSelectionChange (const std::vector< tree::Node * > &s, bool isSelection, int selection, bool mProcess) |
virtual void | ClearSelection () |
virtual void | AddIgnoreFile (tree::Node *toRemove) |
Adds a file to ignore. More... | |
virtual void | CopyFiles (const std::vector< std::string > &filenames) |
Copies selected files. More... | |
virtual void | CreateEditFieldsDialog (tree::Node *node, std::vector< std::string > names, std::vector< std::string > keys) |
Edits the fields of a given node. More... | |
void | Anonymize (std::vector< std::string > i_filenames, int type) |
Anonymize or de-anonymize data. More... | |
virtual void | DumpTags (const std::string filename) |
Display all Dicom Tags. More... | |
virtual void | ExportToStorage (const std::vector< std::string > keys) |
Edits the fields of a given node. 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 | CreateTreeView (TreeHandler *) |
Create the tree view for TreeHandler provided. 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 () |
GimmickView () | |
Ctor. More... | |
virtual | ~GimmickView () |
Virtual destructor. More... | |
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 | GetSelectedFiles (std::vector< std::string > &) |
Returns the vector of full filenames of selected images. More... | |
virtual void | GetSelectedImages (std::vector< vtkImageData * > &) |
Returns the vector of images corresponding to 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 () |
Protected Member Functions | |
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 Types | |
typedef void(* | readXD )(std::vector< OutStrGimmick > &, std::vector< std::string >, OutputAttr, double) |
typedef std::map< std::string, ImageEventType > | ImageEventTypeMap |
typedef std::deque < ImageEventType > | ImageEventQueueType |
typedef WxGimmickTreeItemData | TreeItemData |
Type definition of the data regarding the tree. More... | |
typedef WxGimmickDicomNodeData | NodeData |
Type definition of the data insid a node of the tree. More... | |
Private Member Functions | |
void | getAttributes (const std::string i_file, std::map< std::string, std::string > &o_infos, OutputAttr i_attr) |
virtual void | readImages2 (std::vector< OutStrGimmick > &o_output, std::vector< std::string > im, OutputAttr i_attr, double i_zspc) |
virtual void | readImages3 (std::vector< OutStrGimmick > &o_output, std::vector< std::string > im, OutputAttr i_attr, double i_zspc) |
virtual void | readImages4 (std::vector< OutStrGimmick > &o_output, std::vector< std::string > im, OutputAttr i_attr) |
virtual void | readImages1 (std::vector< OutStrGimmick > &o_output, std::vector< std::string > im, OutputAttr i_attr) |
const std::string & | GetDatabaseExtension () |
Gets the extension of the database. More... | |
virtual void | SetDatabaseExtension (const std::string &ext) |
Sets the extension of the database. More... | |
virtual void | ShowImage (vtkImageData *image) |
Shows the image sent as a parameter. More... | |
void | CreateUserSettingsDirectory () |
Creates the user settings directory. More... | |
const std::string & | GetUserSettingsDirectory () |
Obtains the user settings directory. More... | |
virtual void | ShowInformation (DicomNode *) |
Shows the Information regarding the node sent as a parameter. More... | |
TreeItemData * | GetItemData (const TreeItemId &id) |
Gets the item data of the tree item passed as a parameter. More... | |
Private Attributes | |
boost::shared_ptr< Gimmick > | mGimmick |
Controller which manages the interaction with the model. More... | |
TreeViewMapType | mTreeViewMap |
The views. More... | |
std::string | mMess |
The message that results from the validation. More... | |
MultiThreadImageReader | mReader |
Multi-thread image reader. More... | |
ImageEventTypeMap | mImageEventMap |
boost::shared_ptr< ImageExtent > | mImageExtent |
The current image extent. More... | |
ValidationSignalType | mValidationSignal |
The validation signal. More... | |
bool | valid |
Boolean that determines if the selection is valid. More... | |
bool | mReaderStarted |
Boolean that determines if the reader has been started. More... | |
int | mSelectionType |
int | mSelectionMaxImageDimension |
int | mCurrentSelectionImageSize [4] |
DicomDatabaseListType | mDicomDatabaseList |
Existent Database List. More... | |
DicomDatabase * | mFavoriteDatabase |
Favorites database. More... | |
std::string | mDatabaseListFile |
Path to the database list file. More... | |
std::string | mDatabaseExtension |
Extension of the database. More... | |
bool | mJustStarted |
int | mFirstDicomDatabaseIconIndex |
vtkImageViewer2 * | mViewer |
int | mx1 |
int | mx2 |
int | my1 |
int | my2 |
int | mz1 |
int | mz2 |
double | mspx |
double | mspy |
double | mspz |
std::map< std::string, DicomNode * > | mImageFileNameToNode |
Gimmick * | controller |
Abstract class that handles views, attributes and previews (GUI) for Gimmick.
Definition at line 82 of file creaImageIOGimmickView.h.
typedef std::vector<DicomDatabase*> creaImageIO::GimmickView::DicomDatabaseListType |
Type of list of DicomDatabase.
Definition at line 64 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 282 of file creaImageIOGimmickView.h.
|
private |
Definition at line 276 of file creaImageIOGimmickView.h.
|
private |
Type definition of the data insid a node of the tree.
Definition at line 141 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 231 of file creaImageIOGimmickView.h.
|
private |
Type definition of the data regarding the tree.
Definition at line 137 of file OldcreaImageIOGimmickView.h.
typedef std::map<std::string, TreeView*> creaImageIO::GimmickView::TreeViewMapType |
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.
typedef ValidationSignalType::slot_function_type creaImageIO::GimmickView::ValidationCallbackType |
Definition at line 206 of file creaImageIOGimmickView.h.
typedef boost::signal<void (bool)> creaImageIO::GimmickView::ValidationSignalType |
Definition at line 205 of file creaImageIOGimmickView.h.
|
inherited |
Enumerator | |
---|---|
ThreadedReaderStarted | |
ThreadedReaderStopped | |
ImageLoaded | |
ImageUnloaded | |
Error | |
ThreadedReaderStarted | |
ThreadedReaderStopped | |
ImageLoaded | |
ImageUnloaded | |
Error |
Definition at line 61 of file creaImageIOMultiThreadImageReader.h.
|
inherited |
Enumerator | |
---|---|
ThreadedReaderStarted | |
ThreadedReaderStopped | |
ImageLoaded | |
ImageUnloaded | |
Error | |
ThreadedReaderStarted | |
ThreadedReaderStopped | |
ImageLoaded | |
ImageUnloaded | |
Error |
Definition at line 62 of file creaImageIOQMultiThreadImageReader.h.
creaImageIO::GimmickView::GimmickView | ( | boost::shared_ptr< Gimmick > | gimmick, |
int | number_of_threads = 0 |
||
) |
|
virtual |
Virtual destructor.
Destructor.
Definition at line 122 of file creaImageIOGimmickView.cpp.
References GimmickDebugMessage.
creaImageIO::GimmickView::GimmickView | ( | ) |
Ctor.
|
virtual |
Virtual destructor.
|
inlinevirtual |
Adds a file to ignore.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 131 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::RemoveSelected().
void creaImageIO::GimmickView::Anonymize | ( | std::vector< std::string > | i_filenames, |
int | type | ||
) |
Anonymize or de-anonymize data.
Definition at line 875 of file creaImageIOGimmickView.cpp.
Referenced by creaImageIO::WxTreeView::OnAnonymizer().
|
inlinevirtual |
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 127 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::OnItemSelected(), creaImageIO::WxTreeView::OnKeyDown(), and creaImageIO::WxTreeView::OnPopupFilter().
void creaImageIO::GimmickView::ConnectValidationObserver | ( | ValidationCallbackType | callback | ) |
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 mValidationSignal.
Referenced by creaImageIO::WxGimmickPanel::WxGimmickPanel(), and creaImageIO::WxGimmickReaderDialog::WxGimmickReaderDialog().
|
inlinevirtual |
Copies selected files.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 135 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::OnLocalCopy().
|
inlinevirtual |
Edits the fields of a given node.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 139 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::OnEditField().
void creaImageIO::GimmickView::CreateSingleTreeView | ( | std::string & | i_name | ) |
Create a tree view with a given name.
Definition at line 162 of file creaImageIOGimmickView.cpp.
References CreateTreeView(), and mGimmick.
Referenced by creaImageIO::WxGimmickView::OnAddDB(), and creaImageIO::WxGimmickView::OnCreateDB().
|
inlinevirtual |
Create the tree view for TreeHandler provided.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 190 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by CreateSingleTreeView(), and CreateTreeViews().
void creaImageIO::GimmickView::CreateTreeViews | ( | ) |
Create the tree views.
Definition at line 149 of file creaImageIOGimmickView.cpp.
References CreateTreeView(), GimmickMessage, and mGimmick.
Referenced by creaImageIO::WxGimmickView::WxGimmickView().
|
inlineprivate |
Creates the user settings directory.
Definition at line 104 of file OldcreaImageIOGimmickView.h.
|
inlinevirtual |
Display all Dicom Tags.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 146 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::OnDumpTags().
|
inlinevirtual |
Edits the fields of a given node.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 150 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::OnExportToStorage().
|
virtual |
|
private |
Definition at line 471 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::getAttributes(), creaImageIO::OutputAttr::inside, mGimmick, mReader, and creaImageIO::OutputAttr::outside.
Referenced by readImages1(), readImages2(), readImages3(), and readImages4().
|
inlineprivate |
Gets the extension of the database.
Definition at line 80 of file OldcreaImageIOGimmickView.h.
|
inline |
Definition at line 202 of file creaImageIOGimmickView.h.
References creaImageIO::MultiThreadImageReader::GetImage(), and mReader.
Referenced by creaImageIO::WxGimmickView::ClearSelection(), OnMultiThreadImageReaderEvent(), creaImageIO::WxGimmickView::ReadImageThreaded(), and creaImageIO::WxGimmickView::WxGimmickView().
|
inlinevirtual |
Returns the list of DicomDatabase open.
Definition at line 66 of file OldcreaImageIOGimmickView.h.
|
inlinevirtual |
Returns the list of DicomDatabase open (const)
Definition at line 69 of file OldcreaImageIOGimmickView.h.
|
virtual |
Returns the DicomNode corresponding to the tree item.
|
inlinevirtual |
|
inlineprivate |
Gets the item data of the tree item passed as a parameter.
Definition at line 139 of file OldcreaImageIOGimmickView.h.
|
inline |
Returns the maximal priority.
Definition at line 108 of file creaImageIOGimmickView.h.
References creaImageIO::MultiThreadImageReader::GetMaximalPriority(), and mReader.
Referenced by creaImageIO::WxGimmickView::ReadImageThreaded().
|
inline |
Obtains the message of the state.
Definition at line 175 of file creaImageIOGimmickView.h.
References mMess.
Referenced by creaImageIO::WxGimmickView::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.
|
inlinevirtual |
Returns the vector of DicomNode corresponding to selection.
Definition at line 58 of file OldcreaImageIOGimmickView.h.
|
inlinevirtual |
Returns the vector of full filenames of selected images.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 54 of file OldcreaImageIOGimmickView.h.
|
inlinevirtual |
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 118 of file creaImageIOGimmickView.h.
References GimmickError.
|
inlinevirtual |
Returns the vector of images corresponding to selection.
Definition at line 56 of file OldcreaImageIOGimmickView.h.
|
inlinevirtual |
Adds the selected Images to the given vector and validates to see if they comply with the given parameter (4D)
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 115 of file creaImageIOGimmickView.h.
References GimmickError.
|
inlinevirtual |
Adds the selected Images to the given vector.
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 111 of file creaImageIOGimmickView.h.
References GimmickError.
|
inlinevirtual |
Returns the size of the current selection.
Definition at line 50 of file OldcreaImageIOGimmickView.h.
|
inline |
Returns the TreeViewMap (ref)
Definition at line 99 of file creaImageIOGimmickView.h.
References mTreeViewMap.
Referenced by creaImageIO::WxGimmickView::CreateSettingsDialog(), creaImageIO::WxGimmickView::CreateTreeView(), creaImageIO::WxGimmickView::GetSelectedFiles(), creaImageIO::WxGimmickView::getSelectedFiles(), creaImageIO::WxGimmickView::GetSelectedImages(), creaImageIO::WxGimmickView::GetSelectedImagesInVector(), creaImageIO::WxGimmickView::GetVisibleAttributes(), creaImageIO::WxGimmickView::OnAttributesChanged(), creaImageIO::WxGimmickView::OnImportExport(), creaImageIO::WxGimmickView::OnRemove(), creaImageIO::WxGimmickView::OnSynchronize(), creaImageIO::WxGimmickView::ReadImageThreaded(), and UpdateTreeViewLevel().
|
inline |
Returns the TreeViewMap (const ref)
Definition at line 101 of file creaImageIOGimmickView.h.
References mTreeViewMap.
|
inlineprivate |
Obtains the user settings directory.
Definition at line 106 of file OldcreaImageIOGimmickView.h.
|
virtual |
Initializes the view : Creates the TreeViews for all the TreeHandler of the Controller
Definition at line 133 of file creaImageIOGimmickView.cpp.
References mReaderStarted.
Referenced by creaImageIO::WxGimmickFrame::WxGimmickFrame(), creaImageIO::WxGimmickPanel::WxGimmickPanel(), and creaImageIO::WxGimmickReaderDialog::WxGimmickReaderDialog().
|
inlinevirtual |
Returns true if there is a valid selection.
Definition at line 52 of file OldcreaImageIOGimmickView.h.
bool creaImageIO::GimmickView::isSingle | ( | const std::string | i_file | ) |
Definition at line 451 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), and mReader.
Referenced by creaImageIO::WxGimmickView::getSelectedFiles(), and readImages().
|
inlinevirtual |
Loads or creates a favorites database.
Definition at line 101 of file OldcreaImageIOGimmickView.h.
void creaImageIO::GimmickView::modifyValidationSignal | ( | bool | ivalid | ) |
Definition at line 325 of file creaImageIOGimmickView.cpp.
References mValidationSignal.
Referenced by NoValidateSelected(), creaImageIO::WxTreeView::RemoveSelected(), and 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.
bool creaImageIO::GimmickView::NoValidateSelected | ( | ) |
No selected image.
Definition at line 227 of file creaImageIOGimmickView.cpp.
References GimmickDebugMessage, modifyValidationSignal(), SetMessage(), and valid.
|
virtual |
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, GetDefaultImage(), GimmickDebugMessage, GimmickMessage, creaImageIO::GimmickView::ImageEventType::image, creaImageIO::MultiThreadImageReaderUser::ImageLoaded, creaImageIO::MultiThreadImageReaderUser::ImageUnloaded, mImageEventMap, and creaImageIO::GimmickView::ImageEventType::pointerHolder.
|
inlinevirtual |
Reimplemented in creaImageIO::WxGimmickView.
Definition at line 124 of file creaImageIOGimmickView.h.
References GimmickError.
Referenced by creaImageIO::WxTreeView::ValidateSelectedImages().
|
inlineprotectedvirtual |
Opens an existing database, or else, creates a local database.
Definition at line 74 of file OldcreaImageIOGimmickView.h.
void creaImageIO::GimmickView::readImages | ( | std::vector< OutStrGimmick > & | o_output, |
std::vector< std::string > | im, | ||
OutputAttr | i_attr, | ||
int | i_dim, | ||
double | i_zspc | ||
) |
Definition at line 661 of file creaImageIOGimmickView.cpp.
References isSingle(), readImages1(), readImages2(), readImages3(), and readImages4().
Referenced by creaImageIO::WxGimmickView::getSelectedFiles().
|
privatevirtual |
Definition at line 486 of file creaImageIOGimmickView.cpp.
References getAttributes(), creaImageIO::MultiThreadImageReader::GetImage(), creaImageIO::OutStrGimmick::img, creaImageIO::OutStrGimmick::infos, mReader, and creaImageIO::OutputAttr::mult.
Referenced by readImages().
|
privatevirtual |
Definition at line 561 of file creaImageIOGimmickView.cpp.
References getAttributes(), creaImageIO::MultiThreadImageReader::GetImage(), creaImageIO::OutStrGimmick::img, mReader, and creaImageIO::OutputAttr::mult.
Referenced by readImages().
|
privatevirtual |
!!!out.img->SetSpacing(i_zspc);
Definition at line 510 of file creaImageIOGimmickView.cpp.
References getAttributes(), creaImageIO::MultiThreadImageReader::GetImage(), creaImageIO::OutStrGimmick::img, creaImageIO::OutStrGimmick::infos, and mReader.
Referenced by readImages().
|
privatevirtual |
Definition at line 612 of file creaImageIOGimmickView.cpp.
References getAttributes(), creaImageIO::MultiThreadImageReader::GetImage(), creaImageIO::OutStrGimmick::img, mReader, and creaImageIO::OutputAttr::mult.
Referenced by readImages().
void creaImageIO::GimmickView::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.
Reads Images (Non Threaded)
Definition at line 338 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), mReader, and stopReader().
Referenced by creaImageIO::WxGimmickView::GetImages().
void creaImageIO::GimmickView::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.
fix unused variable 'first'
Definition at line 732 of file creaImageIOGimmickView.cpp.
References creaImageIO::MultiThreadImageReader::GetImage(), GimmickDebugMessage, and mReader.
Referenced by creaImageIO::WxGimmickView::GetSelectedImagesInVector().
|
inlineprotectedvirtual |
Completely rebuilds the view with current DicomDatabaseList
Definition at line 124 of file OldcreaImageIOGimmickView.h.
void creaImageIO::GimmickView::RequestReading | ( | tree::Node * | n, |
int | prio, | ||
int | selection_index, | ||
boost::shared_ptr< ImagePointerHolder > | p | ||
) |
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(), mImageEventMap, mReader, mReaderStarted, creaImageIO::GimmickView::ImageEventType::pointerHolder, creaImageIO::MultiThreadImageReader::Request(), and creaImageIO::MultiThreadImageReader::Start().
Referenced by creaImageIO::WxGimmickView::ReadImageThreaded().
void creaImageIO::GimmickView::ResetExtent | ( | ) |
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 mImageExtent, and valid.
Referenced by creaImageIO::WxGimmickView::ClearSelection(), and creaImageIO::WxGimmickView::OnSelectionChange().
|
inlinevirtual |
Copies selected files.
Definition at line 154 of file creaImageIOGimmickView.h.
References GimmickError.
|
inlineprivatevirtual |
Sets the extension of the database.
Definition at line 82 of file OldcreaImageIOGimmickView.h.
|
inline |
Obtains the message of the state.
Definition at line 178 of file creaImageIOGimmickView.h.
References mMess.
Referenced by NoValidateSelected(), and ValidateSelected().
|
protectedvirtual |
Shows the help.
|
inlineprivatevirtual |
Shows the image sent as a parameter.
Definition at line 92 of file OldcreaImageIOGimmickView.h.
|
inlineprivatevirtual |
Shows the Information regarding the node sent as a parameter.
Definition at line 115 of file OldcreaImageIOGimmickView.h.
void creaImageIO::GimmickView::stopReader | ( | ) |
Definition at line 331 of file creaImageIOGimmickView.cpp.
References mReader, and creaImageIO::MultiThreadImageReader::Stop().
Referenced by ReadImagesNotThreaded().
|
inlineprotectedvirtual |
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.
|
inlineprotectedvirtual |
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.
|
virtual |
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 GetTreeViewMap(), and GimmickError.
Referenced by creaImageIO::WxGimmickView::AddDir(), creaImageIO::WxGimmickView::ExportToStorage(), creaImageIO::WxGimmickView::OnAddDir(), creaImageIO::WxGimmickView::OnAddFiles(), creaImageIO::WxGimmickView::OnDriveMount(), creaImageIO::WxGimmickView::OnFieldsEdited(), and creaImageIO::WxGimmickView::OnTools().
bool creaImageIO::GimmickView::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.
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, mImageExtent, modifyValidationSignal(), SetMessage(), and valid.
Referenced by creaImageIO::WxGimmickView::OnSelectionChange().
|
private |
Definition at line 180 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 151 of file OldcreaImageIOGimmickView.h.
|
private |
Extension of the database.
Definition at line 161 of file OldcreaImageIOGimmickView.h.
|
private |
Path to the database list file.
Definition at line 159 of file OldcreaImageIOGimmickView.h.
|
private |
Existent Database List.
Definition at line 154 of file OldcreaImageIOGimmickView.h.
|
private |
Favorites database.
Definition at line 156 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 165 of file OldcreaImageIOGimmickView.h.
|
private |
Controller which manages the interaction with the model.
Definition at line 249 of file creaImageIOGimmickView.h.
Referenced by CreateSingleTreeView(), CreateTreeViews(), and getAttributes().
|
private |
Map of images' names to ImageEventType Used to associated a filename to a the data of a request
Definition at line 279 of file creaImageIOGimmickView.h.
Referenced by OnMultiThreadImageReaderEvent(), and RequestReading().
|
private |
The current image extent.
Definition at line 287 of file creaImageIOGimmickView.h.
Referenced by ResetExtent(), and ValidateSelected().
|
private |
Definition at line 177 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 163 of file OldcreaImageIOGimmickView.h.
|
private |
The message that results from the validation.
Definition at line 255 of file creaImageIOGimmickView.h.
Referenced by GetMessage(), and SetMessage().
|
private |
Multi-thread image reader.
Definition at line 258 of file creaImageIOGimmickView.h.
Referenced by getAttributes(), GetDefaultImage(), GetMaximalPriority(), isSingle(), readImages1(), readImages2(), readImages3(), readImages4(), ReadImagesNotThreaded(), ReadImagesNotThreadedInVector(), RequestReading(), and stopReader().
|
private |
Boolean that determines if the reader has been started.
Definition at line 296 of file creaImageIOGimmickView.h.
Referenced by Initialize(), and RequestReading().
|
private |
Definition at line 150 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 149 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 171 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 171 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 171 of file OldcreaImageIOGimmickView.h.
|
private |
|
private |
The validation signal.
Definition at line 290 of file creaImageIOGimmickView.h.
Referenced by ConnectValidationObserver(), and modifyValidationSignal().
|
private |
Definition at line 168 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Definition at line 170 of file OldcreaImageIOGimmickView.h.
|
private |
Boolean that determines if the selection is valid.
Definition at line 293 of file creaImageIOGimmickView.h.
Referenced by NoValidateSelected(), creaImageIO::WxGimmickView::OnSelectionChange(), ResetExtent(), and ValidateSelected().