SET(USE_GDCM_VTK ON)
SET(USE_VTK ON)
-SET(USE_ITK OFF)
+
SET(USE_BOOST ON)
OPTION(USE_WXWIDGETS "Use WxWidgets GUI" ON)
OPTION(USE_QT4 "USE QT4GUI" OFF)
OPTION(USE_GDCM_ANOM "use gdcm2 anonymizer tool" OFF)
#TO DO TEST IF GDCM_USE_SYSTEM_OPENSSL is valid
ENDIF(USE_GDCM2)
+OPTION(USE_ITK "use ITK" ON)
CREA_FIND_AND_USE_LIBRARIES()
+message ("itk libs : ${ITK_LIBRARIES}")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
ADD_SUBDIRECTORY(TestQtGimmick)
ENDIF(USE_QT4)
-
+IF(USE_ITK)
+ ADD_SUBDIRECTORY(TestWxItkView)
+ENDIF(USE_ITK)
#ADD_SUBDIRECTORY(TestWxGimmickReaderDialogJava)
#LSE (BUILD_V2)
# ADD_SUBDIRECTORY(TestWxGimmickDialog)
+
//#pragma comment(lib, "creaImageIO.lib")
//#pragma comment(lib, "DelayImp.lib")
//
CREA_WXMAIN_WITH_CONSOLE
+
+
bool myApp::OnInit( )
{
wxApp::OnInit();
${SOURCES_CREAIMAGEIO_IMG_DICOM_READER}
${SOURCES_CREAIMAGEIO_MULTI_IMG_READER}
)
+IF(USE_ITK)
+FILE(GLOB SOURCES_CREAIMAGEIO_ITK_DLG
+ creaImageIOWxIsimpleDlg.h
+ creaImageIOWxIsimpleDlg.txx
+ )
+ENDIF(USE_ITK)
+
#--------------------------------------------
# The wxWidgets-based components
if (USE_WXWIDGETS)
${SOURCES_CREAIMAGEIO_IMG_DICOM_READER})
SOURCE_GROUP("Source Files\\Tree" FILES ${SOURCES_CREAIMAGEIO_TREE})
-
+SOURCE_GROUP("Source Files\\ITK" FILES ${SOURCES_CREAIMAGEIO_ITK_DLG})
IF(USE_WXWIDGETS)
${SOURCES_CREAIMAGEIO_IMG_DICOM_READER}
${GUI_SRCS}
${SOURCES_CREAIMAGEIO_TREE}
+ ${SOURCES_CREAIMAGEIO_ITK_DLG}
)
${VTK_LIBRARIES}
${GDCM_LIBRARIES}
${BOOST_LIBRARIES}
+ ${ITK_LIBRARIES}
sqlite3)
ELSE(NOT USE_XERCES)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
sql += " SET ";
sql += key;
sql += " = '";
- sql += value;
+ sql += convert(value);
sql += "' WHERE ID = '";
sql += n->GetAttribute("ID");
sql +="'";
out<<"commit transaction;";
UPDATEDB(out.str());
}
+ const std::string SQLiteTreeHandler::convert(const std::string &i_word)
+ {
+ std::string temp = i_word;
+ boost::algorithm::replace_all(temp,"'","''");
+ return temp.c_str();
+ }
} // namespace creaImageIO
void SetWritable(bool w) { mWritable = w; }
bool GetWritable() const { return mWritable; }
bool mIsAdding;
+ const std::string convert(const std::string &i_word);
};
std::string pat=path.c_str();
CleanName(pat);
insert="INSERT INTO ADD_OPS (PATH,RECURSIVE,FILES_ADDED,REFERENCEDDB) VALUES('";
- insert+=pat+"','";
+ insert+=convert(pat)+"','";
insert+=recursive+"',";
insert+=nChildren+",'";
insert+=refdb+"');";
std::string insert;
insert="INSERT INTO IGNORED_FILES (ADD_KEY,PATH,REMOVE,TIME) VALUES('";
insert+=addKey+"','";
- insert+=pat+"','";
+ insert+=convert(pat)+"','";
insert+=remove+"',";
insert+=time+");";
UPDATESYNCDB(insert);
std::string insert;
insert="INSERT INTO IGNORED_FILES (ADD_KEY,PATH,REMOVE,TIME) VALUES('";
insert+=addKey+"','";
- insert+=pat+"','";
+ insert+=convert(pat)+"','";
insert+=remove+"',";
insert+=time+");";
UPDATESYNCDB(insert);
{
std::stringstream query;
std::string result;
- std::string sVal=searchValue.c_str();
+ std::string sVal=convert(searchValue.c_str());
CleanName(sVal);
query<<"SELECT "<<attribute<<" FROM "<<table<<" WHERE "<<searchParam<<" = '"<<sVal;
if(table.compare("ADD_OPS")==0)
const std::string& refdb)
{
std::string val=value.c_str();
- std::string sVal=searchValue.c_str();
+ std::string sVal=convert(searchValue.c_str());
CleanName(val);
CleanName(sVal);
std::string sql = "UPDATE ";
}
return valid;
}
+ const std::string Synchronizer::convert(const std::string &i_word)
+ {
+ std::string temp = i_word;
+ boost::algorithm::replace_all(temp,"'","''");
+
+ return temp.c_str();
+ }
}
void CleanName(std::string& str) const;
///Gets the ignore list
std::vector<std::string> GetIgnoreList(const std::string &i_key);
+ const std::string convert(const std::string &i_word);
};
//================================================================================================================
break;
long adr = GetCtrl(l-1)->GetItemData(item);
tree::Node* n = ((ItemData*)adr)->node;
- if(mLastSelected==item)
+ /* FCY 18-04-2011: don't understand the real purpose of these lines,
+ if uncomment add last frame in first place
+ if(mLastSelected==item)
{
std::vector<tree::Node*>::iterator it;
it = sel.begin();
it = sel.insert ( it , n );
}
else
- {
+ {*/
sel.push_back(n);
- }
+ //}
}
/*int n = GetCtrl(l-1)->GetItemCount();
imagePointers=pointers;
mslide->SetMax(pointers.size());
+ mslide->SetMin(1);
// Refresh don't work, TO MODIFY
mslide->Refresh();
mslide->ClearTicks();
void WxViewer::OnSlide(wxCommandEvent &Event)
{
- mCurrent = mslide->GetValue();
+ mCurrent = mslide->GetValue() -1;
StartPlayer();
}
//================================================================
endif ( MSVC )
endif ( WIN32 )
+ FIND_PACKAGE(GDCM REQUIRED)
+ INCLUDE_DIRECTORIES(${GDCM_INCLUDE_DIRS})
+
+
+# ${GDCM_DIR}/bin/Debug/gdcmDSED.lib
+ # ${GDCM_DIR}/bin/Debug/gdcmMSFF.lib)
+
add_library ( sqlite3 SHARED
${SOURCES}
${HEADERS}
+ gdcmDSED.lib
)
INSTALL ( TARGETS sqlite3