fw4spl
|
Registry of Segment Properties. This class defines a registry which links a structure type to an entry. Each entry is composed of 5 attributes : More...
#include <SegmentedPropertyRegistry.hpp>
Public Types | |
typedef std::array< std::string, 5 > | EntryType |
Entry containing the 5 attributes of a structure type. | |
Public Member Functions | |
FWGDCMIO_API | SegmentedPropertyRegistry () |
Constructor. | |
FWGDCMIO_API bool | readSegmentedPropertyRegistryFile (const ::boost::filesystem::path &filepath, bool omitFirstLine=false, const std::shared_ptr< ::fwLog::Logger > &logger=0) |
Read an extract registry values from a CSV file Each lines shall contain at least 6 elements : More... | |
FWGDCMIO_API bool | readSegmentedPropertyRegistryFile (std::istream &csvStream, bool omitFirstLine=false, const std::shared_ptr< ::fwLog::Logger > &logger=0) |
Read an extract registry values from a CSV stream Each lines shall contain at least 6 elements : More... | |
FWGDCMIO_API bool | empty () const |
Returns whether the registry is empty or not. | |
FWGDCMIO_API std::size_t | count () const |
Returns the number of entries. | |
FWGDCMIO_API void | clear () |
Clear the registry. | |
FWGDCMIO_API bool | hasEntry (const std::string &structureType) const |
Check if there is an entry for the corresponding structure type. More... | |
FWGDCMIO_API EntryType | getEntry (const std::string &structureType) const |
Returns matching entry for the corresponding structure type. More... | |
FWGDCMIO_API std::string | getStructureType (const std::string &propertyType, const std::string &propertyCategory, const std::string &propertyTypeModifiers, const std::string &anatomicRegion, const std::string &anatomicRegionModifiers) const |
Returns the structure type associated to the attribute list. If no match is found, it returns an empty string. More... | |
FWGDCMIO_API std::string | getPropertyType (const std::string &structureType) const |
Getters for entry's attributes. More... | |
FWGDCMIO_API std::string | getPropertyCategory (const std::string &structureType) const |
Getters for entry's attributes. More... | |
FWGDCMIO_API std::string | getPropertyTypeModifiers (const std::string &structureType) const |
Getters for entry's attributes. More... | |
FWGDCMIO_API std::string | getAnatomicRegion (const std::string &structureType) const |
Getters for entry's attributes. More... | |
FWGDCMIO_API std::string | getAnatomicRegionModifiers (const std::string &structureType) const |
Getters for entry's attributes. More... | |
Registry of Segment Properties. This class defines a registry which links a structure type to an entry. Each entry is composed of 5 attributes :
Definition at line 40 of file SegmentedPropertyRegistry.hpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getAnatomicRegion | ( | const std::string & | structureType | ) | const |
Getters for entry's attributes.
[in] | structureType | Structure type |
Definition at line 256 of file SegmentedPropertyRegistry.cpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getAnatomicRegionModifiers | ( | const std::string & | structureType | ) | const |
Getters for entry's attributes.
[in] | structureType | Structure type |
Definition at line 263 of file SegmentedPropertyRegistry.cpp.
SegmentedPropertyRegistry::EntryType fwGdcmIO::helper::SegmentedPropertyRegistry::getEntry | ( | const std::string & | structureType | ) | const |
Returns matching entry for the corresponding structure type.
[in] | structureType | Structure type |
Definition at line 213 of file SegmentedPropertyRegistry.cpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getPropertyCategory | ( | const std::string & | structureType | ) | const |
Getters for entry's attributes.
[in] | structureType | Structure type |
Definition at line 242 of file SegmentedPropertyRegistry.cpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getPropertyType | ( | const std::string & | structureType | ) | const |
Getters for entry's attributes.
[in] | structureType | Structure type |
Definition at line 235 of file SegmentedPropertyRegistry.cpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getPropertyTypeModifiers | ( | const std::string & | structureType | ) | const |
Getters for entry's attributes.
[in] | structureType | Structure type |
Definition at line 249 of file SegmentedPropertyRegistry.cpp.
std::string fwGdcmIO::helper::SegmentedPropertyRegistry::getStructureType | ( | const std::string & | propertyType, |
const std::string & | propertyCategory, | ||
const std::string & | propertyTypeModifiers, | ||
const std::string & | anatomicRegion, | ||
const std::string & | anatomicRegionModifiers | ||
) | const |
Returns the structure type associated to the attribute list. If no match is found, it returns an empty string.
[in] | propertyType | Property Type |
[in] | propertyCategory | Property Category |
[in] | propertyTypeModifiers | Property Modifiers |
[in] | anatomicRegion | Anatomic Region |
[in] | anatomicRegionModifiers | Anatomic Region Modifiers |
Definition at line 272 of file SegmentedPropertyRegistry.cpp.
bool fwGdcmIO::helper::SegmentedPropertyRegistry::hasEntry | ( | const std::string & | structureType | ) | const |
Check if there is an entry for the corresponding structure type.
[in] | structureType | Structure type |
Definition at line 206 of file SegmentedPropertyRegistry.cpp.
FWGDCMIO_API bool fwGdcmIO::helper::SegmentedPropertyRegistry::readSegmentedPropertyRegistryFile | ( | const ::boost::filesystem::path & | filepath, |
bool | omitFirstLine = false , |
||
const std::shared_ptr< ::fwLog::Logger > & | logger = 0 |
||
) |
Read an extract registry values from a CSV file Each lines shall contain at least 6 elements :
[in] | filepath | Path of the CSV file |
[in] | omitFirstLine | If set to 'true', the first line of the file is omitted |
[in] | logger | Logger used to display errors |
Referenced by fwGdcmIO::writer::ie::Surface::loadSegmentedPropertyRegistry(), and SegmentedPropertyRegistry().
FWGDCMIO_API bool fwGdcmIO::helper::SegmentedPropertyRegistry::readSegmentedPropertyRegistryFile | ( | std::istream & | csvStream, |
bool | omitFirstLine = false , |
||
const std::shared_ptr< ::fwLog::Logger > & | logger = 0 |
||
) |
Read an extract registry values from a CSV stream Each lines shall contain at least 6 elements :
[in] | csvStream | CSV stream |
[in] | omitFirstLine | If set to 'true', the first line of the file is omitted |
[in] | logger | Logger used to display errors |