creaImageIO_lib
|
#include <creaImageIOWxDescriptorPanel.h>
Public Member Functions | |
WxDescriptorPanel () | |
WxDescriptorPanel (wxWindow *parent, const std::string path) | |
~WxDescriptorPanel () | |
Destructor. More... | |
const std::string & | GetDescriptor () |
Private Member Functions | |
void | OnAddAttribute (wxCommandEvent &event) |
Add an attribute (DICOM or own) More... | |
void | onAddAttribute (const std::string &att, const std::string &name_att, std::string level="") |
Add an attribute (DICOM or own) More... | |
void | OnAddLevel (wxCommandEvent &event) |
Add a Level. More... | |
void | onAddLevel (const std::string &level) |
Add a Level. More... | |
void | OnDicomAttribute (wxCommandEvent &event) |
Find a DICOM attribute from group and element values. More... | |
void | OnRemove (wxCommandEvent &event) |
Remove a value (level or attribute) More... | |
void | OnNew (wxCommandEvent &event) |
Create a new descriptor. More... | |
void | OnLoad (wxCommandEvent &event) |
Load an exsitant descriptor. More... | |
void | OnOK (wxCommandEvent &event) |
Save a descriptor. More... | |
void | OnApply (wxCommandEvent &event) |
Save a descriptor and use it. More... | |
void | OnCancel (wxCommandEvent &event) |
Cancel. More... | |
void | CreateDescriptor (int type) |
Create a descriptor structure. More... | |
bool | addLevel (const std::string &name) |
add a level More... | |
bool | addAtribute (const std::string &level, const std::string &name) |
add an attribute More... | |
bool | RemoveAttribute (const std::string &level, const std::string &name) |
remove an attribute More... | |
bool | RemoveLevel (const std::string &name) |
remove a level More... | |
void | createDescriptorFile () |
Create a descriptor file. More... | |
void | loadDescriptor (const std::string i_name) |
load a descriptor file More... | |
std::string | findLevel () |
find a level'name More... | |
std::string | OwnAttribute (const std::string name) |
determine values for own attributes More... | |
const std::string | saveDescriptor () |
save a descriptor in a file More... | |
Private Attributes | |
wxTextCtrl * | LevelCtrl |
wxTextCtrl * | GRCtrl |
wxTextCtrl * | ELCtrl |
wxTextCtrl * | ResultCtrl |
wxComboBox * | AttributeCombo |
int | lv |
number of level More... | |
long | InsertPt |
Insert point in result control. More... | |
std::string | m_DscpFile |
Output file for Descriptor. More... | |
std::string | outDscp |
Output Descriptor. More... | |
std::vector< std::string > | VLevel |
std::map< std::string, std::vector< std::string > > | DscpTree |
std::map< std::string, std::string > | ownatt |
std::map< int, std::string > | lvlist |
std::string | m_path |
Gimmick DB are based on descriptors with a tree structure . Each level contains attributes (DICOM or other) to identify data WxDescriptorPanel allows creation, modification and save of descriptors.
Definition at line 66 of file creaImageIOWxDescriptorPanel.h.
creaImageIO::WxDescriptorPanel::WxDescriptorPanel | ( | ) |
creaImageIO::WxDescriptorPanel::WxDescriptorPanel | ( | wxWindow * | parent, |
const std::string | path | ||
) |
fix warning: unused variable line1
fix warning: unused variable LevelText
fix warning: unused variable line2
fix warning: unused variable GR
fix warning: unused variable EL
fix warning: unused variable line3
fix warning: unused variable line4
fix warning: unused variable Cancel
Definition at line 47 of file creaImageIOWxDescriptorPanel.cpp.
References addLevel(), AttributeCombo, CreateDescriptor(), ELCtrl, GimmickDebugMessage, GRCtrl, ID_ATTRIBUTE_ADD, ID_ATTRIBUTE_CTRL, ID_EL_CTRL, ID_GR_CTRL, ID_LEVEL_ADD, ID_REMOVE_ADD, LevelCtrl, lv, OnAddAttribute(), OnAddLevel(), OnApply(), OnDicomAttribute(), OnLoad(), OnNew(), OnOK(), OnRemove(), ownatt, and ResultCtrl.
creaImageIO::WxDescriptorPanel::~WxDescriptorPanel | ( | ) |
Destructor.
Definition at line 134 of file creaImageIOWxDescriptorPanel.cpp.
References GimmickDebugMessage.
|
private |
add an attribute
Definition at line 515 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree.
Referenced by onAddAttribute().
|
private |
add a level
Definition at line 454 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree, lv, and lvlist.
Referenced by onAddLevel(), and WxDescriptorPanel().
|
private |
Create a descriptor structure.
Definition at line 406 of file creaImageIOWxDescriptorPanel.cpp.
References ELCtrl, GRCtrl, LevelCtrl, lv, and outDscp.
Referenced by WxDescriptorPanel().
|
private |
Create a descriptor file.
Definition at line 676 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree, lvlist, outDscp, and ownatt.
Referenced by saveDescriptor().
|
private |
find a level'name
Definition at line 335 of file creaImageIOWxDescriptorPanel.cpp.
References ResultCtrl.
Referenced by onAddAttribute(), and OnRemove().
|
inline |
Definition at line 74 of file creaImageIOWxDescriptorPanel.h.
References m_DscpFile.
Referenced by creaImageIO::WxGimmickView::OnCreateDB().
|
private |
load a descriptor file
Definition at line 737 of file creaImageIOWxDescriptorPanel.cpp.
References onAddAttribute(), and onAddLevel().
Referenced by OnLoad().
|
private |
Add an attribute (DICOM or own)
Definition at line 145 of file creaImageIOWxDescriptorPanel.cpp.
References AttributeCombo, ELCtrl, GRCtrl, onAddAttribute(), and OwnAttribute().
Referenced by WxDescriptorPanel().
|
private |
Add an attribute (DICOM or own)
Definition at line 168 of file creaImageIOWxDescriptorPanel.cpp.
References addAtribute(), findLevel(), InsertPt, lv, and ResultCtrl.
Referenced by loadDescriptor(), and OnAddAttribute().
|
private |
Add a Level.
Definition at line 216 of file creaImageIOWxDescriptorPanel.cpp.
References LevelCtrl, and onAddLevel().
Referenced by WxDescriptorPanel().
|
private |
Add a Level.
Definition at line 229 of file creaImageIOWxDescriptorPanel.cpp.
References addLevel(), InsertPt, lv, and ResultCtrl.
Referenced by loadDescriptor(), and OnAddLevel().
|
private |
Save a descriptor and use it.
Definition at line 628 of file creaImageIOWxDescriptorPanel.cpp.
References ID_DSCP_APPLY, m_DscpFile, and saveDescriptor().
Referenced by WxDescriptorPanel().
|
private |
|
private |
Find a DICOM attribute from group and element values.
Definition at line 268 of file creaImageIOWxDescriptorPanel.cpp.
References AttributeCombo, ELCtrl, and GRCtrl.
Referenced by WxDescriptorPanel().
|
private |
Load an exsitant descriptor.
Definition at line 589 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree, LevelCtrl, loadDescriptor(), lv, m_path, and ResultCtrl.
Referenced by WxDescriptorPanel().
|
private |
Create a new descriptor.
Definition at line 576 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree, LevelCtrl, lv, and ResultCtrl.
Referenced by WxDescriptorPanel().
|
private |
Save a descriptor.
Definition at line 617 of file creaImageIOWxDescriptorPanel.cpp.
References saveDescriptor().
Referenced by WxDescriptorPanel().
|
private |
Remove a value (level or attribute)
Definition at line 361 of file creaImageIOWxDescriptorPanel.cpp.
References findLevel(), lv, RemoveAttribute(), RemoveLevel(), and ResultCtrl.
Referenced by WxDescriptorPanel().
|
private |
determine values for own attributes
Definition at line 314 of file creaImageIOWxDescriptorPanel.cpp.
References ownatt.
Referenced by OnAddAttribute().
|
private |
remove an attribute
Definition at line 547 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree.
Referenced by OnRemove().
|
private |
remove a level
Definition at line 480 of file creaImageIOWxDescriptorPanel.cpp.
References DscpTree, and lvlist.
Referenced by OnRemove().
|
private |
save a descriptor in a file
Definition at line 635 of file creaImageIOWxDescriptorPanel.cpp.
References createDescriptorFile(), and outDscp.
Referenced by OnApply(), and OnOK().
|
private |
Definition at line 83 of file creaImageIOWxDescriptorPanel.h.
Referenced by OnAddAttribute(), OnDicomAttribute(), and WxDescriptorPanel().
|
private |
Definition at line 164 of file creaImageIOWxDescriptorPanel.h.
Referenced by addAtribute(), addLevel(), createDescriptorFile(), OnLoad(), OnNew(), RemoveAttribute(), and RemoveLevel().
|
private |
Definition at line 81 of file creaImageIOWxDescriptorPanel.h.
Referenced by CreateDescriptor(), OnAddAttribute(), OnDicomAttribute(), and WxDescriptorPanel().
|
private |
Definition at line 80 of file creaImageIOWxDescriptorPanel.h.
Referenced by CreateDescriptor(), OnAddAttribute(), OnDicomAttribute(), and WxDescriptorPanel().
|
private |
Insert point in result control.
Definition at line 152 of file creaImageIOWxDescriptorPanel.h.
Referenced by onAddAttribute(), and onAddLevel().
|
private |
Definition at line 79 of file creaImageIOWxDescriptorPanel.h.
Referenced by CreateDescriptor(), OnAddLevel(), OnLoad(), OnNew(), and WxDescriptorPanel().
|
private |
number of level
Definition at line 149 of file creaImageIOWxDescriptorPanel.h.
Referenced by addLevel(), CreateDescriptor(), onAddAttribute(), onAddLevel(), OnLoad(), OnNew(), OnRemove(), and WxDescriptorPanel().
|
private |
Definition at line 170 of file creaImageIOWxDescriptorPanel.h.
Referenced by addLevel(), createDescriptorFile(), and RemoveLevel().
|
private |
Output file for Descriptor.
Definition at line 155 of file creaImageIOWxDescriptorPanel.h.
Referenced by GetDescriptor(), and OnApply().
|
private |
Definition at line 173 of file creaImageIOWxDescriptorPanel.h.
Referenced by OnLoad().
|
private |
Output Descriptor.
Definition at line 158 of file creaImageIOWxDescriptorPanel.h.
Referenced by CreateDescriptor(), createDescriptorFile(), and saveDescriptor().
|
private |
Definition at line 167 of file creaImageIOWxDescriptorPanel.h.
Referenced by createDescriptorFile(), OwnAttribute(), and WxDescriptorPanel().
|
private |
Definition at line 82 of file creaImageIOWxDescriptorPanel.h.
Referenced by findLevel(), onAddAttribute(), onAddLevel(), OnLoad(), OnNew(), OnRemove(), and WxDescriptorPanel().
|
private |
Definition at line 161 of file creaImageIOWxDescriptorPanel.h.