Public Member Functions | Public Attributes
morphio::mut::MitoSection Class Reference

#include <mito_section.h>

Public Member Functions

 MitoSection (Mitochondria *mitochondria, unsigned int id, const Property::MitochondriaPointLevel &pointProperties)
 
 MitoSection (Mitochondria *mitochondria, unsigned int id, const morphio::MitoSection &section)
 
 MitoSection (Mitochondria *mitochondria, unsigned int id, const MitoSection &section)
 
std::shared_ptr< MitoSectionappendSection (const Property::MitochondriaPointLevel &points)
 Append a MitoSection.
 
std::shared_ptr< MitoSectionappendSection (const std::shared_ptr< MitoSection > &original_section, bool recursive)
 
std::shared_ptr< MitoSectionappendSection (const morphio::MitoSection &section, bool recursive)
 
std::shared_ptr< MitoSectionparent () const
 Get the Section parent.
 
bool isRoot () const
 Return true if section is a root section.
 
const std::vector< std::shared_ptr< MitoSection > > & children () const
 Get the Section children.
 
bool hasSameShape (const MitoSection &other) const noexcept
 Return true if the both sections have the same neuriteSectionIds, diameters and pathLengths.
 
uint32_t id () const noexcept
 Return the section id.
 
const std::vector< morphio::floatType > & diameters () const noexcept
 
std::vector< morphio::floatType > & diameters () noexcept
 
const std::vector< uint32_t > & neuriteSectionIds () const noexcept
 
std::vector< uint32_t > & neuriteSectionIds () noexcept
 
const std::vector< morphio::floatType > & pathLengths () const noexcept
 
std::vector< morphio::floatType > & pathLengths () noexcept
 

Public Attributes

Property::MitochondriaPointLevel _mitoPoints
 

Detailed Description

Mutable(editable) morphio::MitoSection

Member Function Documentation

◆ appendSection() [1/2]

std::shared_ptr<MitoSection> morphio::mut::MitoSection::appendSection ( const morphio::MitoSection section,
bool  recursive 
)

Append a MitoSection

If recursive == true, all descendent mito sections will be appended as well

◆ appendSection() [2/2]

std::shared_ptr<MitoSection> morphio::mut::MitoSection::appendSection ( const std::shared_ptr< MitoSection > &  original_section,
bool  recursive 
)

Append a MitoSection

If recursive == true, all descendent mito sections will be appended as well

◆ diameters()

std::vector< morphio::floatType > & morphio::mut::MitoSection::diameters ( ) const
inlinenoexcept

Return the diameters of all points of this section

◆ neuriteSectionIds()

std::vector< uint32_t > & morphio::mut::MitoSection::neuriteSectionIds ( ) const
inlinenoexcept

Return the neurite section Ids of all points of this section

◆ pathLengths()

std::vector< morphio::floatType > & morphio::mut::MitoSection::pathLengths ( ) const
inlinenoexcept

Return the relative distance (between 0 and 1) between the start of the neuronal section and each point of this mitochondrial section