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)
 
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
 
bool isRoot () const
 
const std::vector< std::shared_ptr< MitoSection > > & children () const
 
bool hasSameShape (const MitoSection &other) const noexcept
 
uint32_t id () const noexcept
 
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

◆ diameters()

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

Return the diameters of all points of this section

◆ hasSameShape()

bool morphio::mut::MitoSection::hasSameShape ( const MitoSection other) const
noexcept

Return true if the both sections have the same neuriteSectionIds, diameters and pathLengths

◆ id()

uint32_t morphio::mut::MitoSection::id ( ) const
inlinenoexcept

Return the section id

◆ 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