# okay in fact you need at least cmake 2.0.4 to get swig working properly
# and you cannot use cmake 2.0.6 out of the box due to a bug (patched in debian package)
+
+ if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+ endif(COMMAND cmake_policy)
+
+
+
#-----------------------------------------------------------------------------
# GDCM version number, usefull for packaging and doxygen doc:
SET(GDCM_MAJOR_VERSION 1)
Program: gdcm
Module: $RCSfile: gdcmDataEntry.cxx,v $
Language: C++
- Date: $Date: 2009/02/05 09:50:09 $
- Version: $Revision: 1.55 $
+ Date: $Date: 2010/07/09 09:20:20 $
+ Version: $Revision: 1.56 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
Flag = FLAG_NONE;
BinArea = 0;
-
+
SelfArea = true;
Copy(e);
DataEntry::~DataEntry ()
{
DeleteBinArea();
-
}
//-----------------------------------------------------------------------------
bool DataEntry::IsNumerical()
{
const VRKey &vr = GetVR();
-
+
return
vr == "DS" ||
vr == "FL" ||
{
/// \todo rewrite the whole method, in order *not to use* std::string !
std::vector<std::string> tokens;
-
+
Util::Tokenize ( GetString().c_str(), tokens, "\\" );
-
+
int nbValues= tokens.size();
if (nbValues == 0)
return false;
else
for (loop=0; loop<nbValues; loop++)
valueVector.push_back(atoi(tokens[loop].c_str()));
-
+
return true;
}
-
+
uint32_t nbValues = GetValueCount();
if (nbValues == 0)
return false;
-
+
if( vr == "US") {
for (loop=0; loop<nbValues; loop++)
valueVector.push_back(((uint16_t *)BinArea)[loop]);
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2010/07/01 11:13:09 $
- Version: $Revision: 1.384 $
+ Date: $Date: 2010/07/09 09:20:21 $
+ Version: $Revision: 1.385 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
VRKey vr = FindDocEntryVR();
VRKey realVR = vr;
- /*
- std::string vr, realVR;
- if (group == 0xfffe && (elem == 0xe000 || elem == 0xe00d || elem == 0xe0dd))
- {
- // DICOM PS 3.6-2009, page 117 states:
- // The VR for Data Elements, Item (FFFE,E000), Item Delimitation
- // Item (FFFE,E00D), and Sequence Delimitation Item (FFFE,E0DD)
- // do not exist. See PS 3.5 for explanation.
- vr = GDCM_UNKNOWN;
- realVR = GDCM_UNKNOWN;
- }
- else
- {
- vr = FindDocEntryVR();
- realVR = vr;
- }
if ( vr == GDCM_VRUNKNOWN )
{
{
realVR = "UL";
}
-*/
+
// Was commented out in order not to generate 'Shadow Groups' where some
// Data Elements are Explicit VR and some other ones Implicit VR
// -> Better we fix the problem at Write time