#include <creaImageIOWxPACSConnectionPanel.h>

Public Member Functions | |
| WxPACSConnectionPanel () | |
| WxPACSConnectionPanel (wxWindow *parent, wxDialog *dial, WxGimmickView *view) | |
| ~WxPACSConnectionPanel () | |
| Destructor. | |
| void | OnQueryPACS (wxCommandEvent &event) |
| Queries the PACS. | |
Private Attributes | |
| wxTextCtrl * | aeTitle |
| wxTextCtrl * | pNumber |
| wxTextCtrl * | address |
| wxDialog * | dialog |
| WxGimmickView * | mView |
Definition at line 16 of file creaImageIOWxPACSConnectionPanel.h.
| creaImageIO::WxPACSConnectionPanel::WxPACSConnectionPanel | ( | ) |
| creaImageIO::WxPACSConnectionPanel::WxPACSConnectionPanel | ( | wxWindow * | parent, | |
| wxDialog * | dial, | |||
| WxGimmickView * | view | |||
| ) |
Definition at line 10 of file creaImageIOWxPACSConnectionPanel.cpp.
References address, aeTitle, GimmickDebugMessage, OnQueryPACS(), and pNumber.
: wxPanel( parent,
-1, wxDefaultPosition,
wxDefaultSize,
wxRESIZE_BORDER |
wxSYSTEM_MENU |
wxCLOSE_BOX |
wxMAXIMIZE_BOX |
wxMINIMIZE_BOX |
wxCAPTION
),
dialog(dial),
mView(view)
{
GimmickDebugMessage(1,"WxPACSConnectionPanel::WxPACSConnectionPanel"
<<std::endl);
wxStaticText * dicId=new wxStaticText(this,-1,_T(" DICOM Identification: "), wxPoint(5,5));
wxStaticText * aet=new wxStaticText(this,-1,_T(" AETitle: "), wxPoint(5,25));
aeTitle=new wxTextCtrl(this, wxID_ANY, _T("MyAeTitle"), wxPoint(75,25), wxSize(220,20));
wxStaticText * pn=new wxStaticText(this,-1,_T(" Port Number: "), wxPoint(5,53));
pNumber=new wxTextCtrl(this, wxID_ANY, _T("3306"), wxPoint(75,50), wxSize(220,20));
wxStaticText * adv1=new wxStaticText(this,-1,_T(" (1 - 131072) "), wxPoint(300,53));
wxStaticText * ad=new wxStaticText(this,-1,_T(" Address: "), wxPoint(5,80));
address=new wxTextCtrl(this, wxID_ANY, _T("localhost"), wxPoint(75,75), wxSize(220,20));
wxButton *query = new wxButton(this,wxID_ANY,_T("Query PACS Server"), wxPoint(5,110) );
Connect( query->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxPACSConnectionPanel::OnQueryPACS );
Layout();
}

| creaImageIO::WxPACSConnectionPanel::~WxPACSConnectionPanel | ( | ) |
Destructor.
Definition at line 44 of file creaImageIOWxPACSConnectionPanel.cpp.
References GimmickDebugMessage.
{
GimmickDebugMessage(1,"WxPACSConnectionPanel::~WxPACSConnectionPanel"
<<std::endl);
}
| void creaImageIO::WxPACSConnectionPanel::OnQueryPACS | ( | wxCommandEvent & | event | ) |
Queries the PACS.
Definition at line 50 of file creaImageIOWxPACSConnectionPanel.cpp.
References address, and aeTitle.
Referenced by WxPACSConnectionPanel().
{
#if defined (USE_GDCM2)
bool didItWork = gdcm::CompositeNetworkFunctions::CEcho( crea::wx2std(address->GetValue()).c_str(), 3600,
"CREATIS", crea::wx2std(aeTitle->GetValue()).c_str() );
gdcm::Tag tag;
tag.ReadFromCommaSeparatedString("10,10");
/* tag.SetElement(8);
tag.SetGroup(8);*/
std::vector< std::pair<gdcm::Tag, std::string> > keys;
std::pair<gdcm::Tag, std::string> pa;
pa.first = tag;
pa.second = "";
keys.push_back(std::make_pair(tag, ""));
gdcm::EQueryLevel theLevel = gdcm::ePatient;
gdcm::ERootType theRoot = gdcm::ePatientRootType;
gdcm::SmartPointer<gdcm::BaseRootQuery> theQuery = gdcm::CompositeNetworkFunctions::ConstructQuery(theRoot, theLevel ,keys);
std::vector<gdcm::DataSet> theDataSet;
gdcm::CompositeNetworkFunctions::CFind(crea::wx2std(address->GetValue()).c_str(), 3600, theQuery, theDataSet,
"CREATIS", crea::wx2std(aeTitle->GetValue()).c_str());
#endif
}

wxTextCtrl* creaImageIO::WxPACSConnectionPanel::address [private] |
Definition at line 31 of file creaImageIOWxPACSConnectionPanel.h.
Referenced by OnQueryPACS(), and WxPACSConnectionPanel().
wxTextCtrl* creaImageIO::WxPACSConnectionPanel::aeTitle [private] |
Definition at line 29 of file creaImageIOWxPACSConnectionPanel.h.
Referenced by OnQueryPACS(), and WxPACSConnectionPanel().
wxDialog* creaImageIO::WxPACSConnectionPanel::dialog [private] |
Definition at line 32 of file creaImageIOWxPACSConnectionPanel.h.
Definition at line 33 of file creaImageIOWxPACSConnectionPanel.h.
wxTextCtrl* creaImageIO::WxPACSConnectionPanel::pNumber [private] |
Definition at line 30 of file creaImageIOWxPACSConnectionPanel.h.
Referenced by WxPACSConnectionPanel().
1.7.1