9 #include "fwMedData/config.hpp" 10 #include "fwMedData/Series.hpp" 11 #include "fwMedData/types.hpp" 13 #include <fwData/factory/new.hpp> 15 #include <fwMemory/BufferObject.hpp> 17 #include <boost/filesystem/path.hpp> 19 fwCampAutoDeclareDataMacro((
fwMedData)(DicomSeries), FWMEDDATA_API);
33 ::fwData::factory::New< DicomSeries >);
37 typedef std::map < std::size_t, ::fwMemory::BufferObject::sptr > DicomContainerType;
39 typedef std::set < std::string > SOPClassUIDContainerType;
41 typedef std::map < std::string, std::string > ComputedTagValueContainerType;
53 FWMEDDATA_API
void shallowCopy( const ::fwData::Object::csptr& _source )
override;
56 FWMEDDATA_API
void cachedDeepCopy( const ::fwData::Object::csptr& _source, DeepCopyCacheType& cache )
override;
59 FWMEDDATA_API
void addDicomPath(std::size_t instanceIndex, const ::boost::filesystem::path& path);
62 FWMEDDATA_API
void addBinary(std::size_t instanceIndex, const ::fwMemory::BufferObject::sptr& buffer);
67 FWMEDDATA_API
bool isInstanceAvailable(std::size_t instanceIndex)
const;
73 FWMEDDATA_API
void addSOPClassUID(
const std::string& sopClassUID);
80 FWMEDDATA_API
void addComputedTagValue(
const std::string& tagName,
const std::string& value);
87 FWMEDDATA_API
bool hasComputedValues(
const std::string& tagName)
const;
94 return m_numberOfInstances;
100 m_numberOfInstances = val;
109 return m_dicomContainer;
115 m_dicomContainer = dicomContainer;
122 m_dicomContainer.clear();
131 return m_SOPClassUIDs;
137 m_SOPClassUIDs = val;
146 return m_computedTagValues;
152 m_computedTagValues = val;
161 return m_firstInstanceNumber;
168 m_firstInstanceNumber = firstInstanceNumber;
void clearDicomContainer()
Dicom container.
const ComputedTagValueContainerType & getComputedTagValues() const
Computed Tag Values.
std::size_t m_firstInstanceNumber
First instance number (0 or 1) - Used for PACS preview.
std::size_t getFirstInstanceNumber() const
First Instance Number (0 or 1) - Used for PACS preview.
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
size_t m_numberOfInstances
Number of instances in the series (0020,1209)
ComputedTagValueContainerType m_computedTagValues
Computed tag values.
void setNumberOfInstances(std::size_t val)
Number of instances in the series (0020,1009)
size_t getNumberOfInstances() const
Number of instances in the series (0020,1009)
DicomContainerType m_dicomContainer
Dicom container.
void setDicomContainer(const DicomContainerType &dicomContainer)
Dicom container.
SOPClassUIDContainerType m_SOPClassUIDs
SOP Class UIDs.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
void setComputedTagValues(const ComputedTagValueContainerType &val)
Computed Tag Values.
Base class for each data object.
const SOPClassUIDContainerType & getSOPClassUIDs() const
SOP Class UID.
void setSOPClassUIDs(const SOPClassUIDContainerType &val)
SOP Class UID.
const DicomContainerType & getDicomContainer() const
Dicom container.
Holds series information.
void setFirstInstanceNumber(std::size_t firstInstanceNumber)
First Instance Number (0 or 1) - Used for PACS preview.