31 #if defined (USE_GDCM2)
32 #include "gdcmCompositeNetworkFunctions.h"
39 -1, wxDefaultPosition,
54 wxStaticText * dicId=
new wxStaticText(
this,-1,_T(
" DICOM Identification: "), wxPoint(5,5));
55 wxStaticText * aet=
new wxStaticText(
this,-1,_T(
" AETitle: "), wxPoint(5,25));
56 aeTitle=
new wxTextCtrl(
this, wxID_ANY, _T(
"MyAeTitle"), wxPoint(75,25), wxSize(220,20));
58 wxStaticText * pn=
new wxStaticText(
this,-1,_T(
" Port Number: "), wxPoint(5,53));
59 pNumber=
new wxTextCtrl(
this, wxID_ANY, _T(
"3306"), wxPoint(75,50), wxSize(220,20));
60 wxStaticText * adv1=
new wxStaticText(
this,-1,_T(
" (1 - 131072) "), wxPoint(300,53));
62 wxStaticText * ad=
new wxStaticText(
this,-1,_T(
" Address: "), wxPoint(5,80));
63 address=
new wxTextCtrl(
this, wxID_ANY, _T(
"localhost"), wxPoint(75,75), wxSize(220,20));
65 wxButton *query =
new wxButton(
this,wxID_ANY,_T(
"Query PACS Server"), wxPoint(5,110) );
80 #if defined (USE_GDCM2)
81 bool didItWork = gdcm::CompositeNetworkFunctions::CEcho( crea::wx2std(
address->GetValue()).c_str(), 3600,
82 "CREATIS", crea::wx2std(
aeTitle->GetValue()).c_str() );
84 tag.ReadFromCommaSeparatedString(
"10,10");
87 std::vector< std::pair<gdcm::Tag, std::string> > keys;
89 std::pair<gdcm::Tag, std::string> pa;
92 keys.push_back(std::make_pair(tag,
""));
93 gdcm::EQueryLevel theLevel = gdcm::ePatient;
94 gdcm::ERootType theRoot = gdcm::ePatientRootType;
95 gdcm::SmartPointer<gdcm::BaseRootQuery> theQuery = gdcm::CompositeNetworkFunctions::ConstructQuery(theRoot, theLevel ,keys);
98 std::vector<gdcm::DataSet> theDataSet;
99 gdcm::CompositeNetworkFunctions::CFind(crea::wx2std(
address->GetValue()).c_str(), 3600, theQuery, theDataSet,
100 "CREATIS", crea::wx2std(
aeTitle->GetValue()).c_str());