#include <vasculature.h>
Read API | |
Vasculature (const std::string &source) | |
Vasculature (Vasculature &&)=default | |
virtual | ~Vasculature ()=default |
Vasculature & | operator= (const Vasculature &)=default |
Vasculature & | operator= (Vasculature &&)=default |
std::vector< Section > | sections () const |
Section | section (uint32_t id) const |
const std::vector< uint32_t > | sectionOffsets () const noexcept |
const Points & | points () const noexcept |
const std::vector< morphio::floatType > & | diameters () const noexcept |
const std::vector< property::SectionType::Type > & | sectionTypes () const noexcept |
const std::vector< morphio::vasculature::property::Connection::Type > & | sectionConnectivity () const noexcept |
graph_iterator | begin () const |
graph_iterator | end () const |
The entry-point class to access vasculature(blood) data
By design, it is the equivalent of the Morphology class but at the vasculature level. As the Morphology class, it implements a section accessor and a root section accessor returning views on the Properties object for the queried vasculature section.
|
explicit |
Open the given source to a vasculature file and parse it.
graph_iterator morphio::vasculature::Vasculature::begin | ( | ) | const |
graph iterator pointing to the begin
|
inlinenoexcept |
Return a vector with all diameters from all sections
graph_iterator morphio::vasculature::Vasculature::end | ( | ) | const |
graph iterator pointing to the end
|
inlinenoexcept |
Return a vector with all points from all sections
Section morphio::vasculature::Vasculature::section | ( | uint32_t | id | ) | const |
Return the Section with the given id.
RawDataError | if the id is out of range |
|
noexcept |
Return a vector with all the connections between sections
|
noexcept |
Returns a list with offsets to access data of a specific section in the points and diameters arrays. p Example: accessing diameters of n'th section will be located in the Vasculature::diameters array from diameters[sectionOffsets(n)] to diameters[sectionOffsets(n+1)-1]
Note: for convenience, the last point of this array is the points() array size so that the above example works also for the last section.
std::vector<Section> morphio::vasculature::Vasculature::sections | ( | ) | const |
Return a vector containing all section objects.
|
inlinenoexcept |
Return a vector with the section type of every section