#include #include #include #if defined (USE_GDCM2) #include "gdcmCompositeNetworkFunctions.h" #endif namespace creaImageIO { // CTor WxPACSConnectionPanel::WxPACSConnectionPanel(wxWindow *parent, wxDialog* dial, WxGimmickView* view) : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX | wxMAXIMIZE_BOX | wxMINIMIZE_BOX | wxCAPTION ), dialog(dial), mView(view) { GimmickDebugMessage(1,"WxPACSConnectionPanel::WxPACSConnectionPanel" <GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxPACSConnectionPanel::OnQueryPACS ); Layout(); } /// Destructor WxPACSConnectionPanel::~WxPACSConnectionPanel() { GimmickDebugMessage(1,"WxPACSConnectionPanel::~WxPACSConnectionPanel" <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 > keys; std::pair 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 theQuery = gdcm::CompositeNetworkFunctions::ConstructQuery(theRoot, theLevel ,keys); std::vector theDataSet; gdcm::CompositeNetworkFunctions::CFind(crea::wx2std(address->GetValue()).c_str(), 3600, theQuery, theDataSet, "CREATIS", crea::wx2std(aeTitle->GetValue()).c_str()); #endif } //====================================================================== //====================================================================== } // EO namespace creaImageIO