refactoredCPPNeuronMesher
SWCNode Struct Reference

Structure representing a single node in an SWC neuron morphology. More...

#include <neurongraph.h>

Public Attributes

int id
 Unique identifier for the node. More...
 
int pid
 Parent node ID (-1 for root nodes) More...
 
int type
 Node type identifier. More...
 
double x
 X-coordinate in 3D space. More...
 
double y
 Y-coordinate in 3D space. More...
 
double z
 Z-coordinate in 3D space. More...
 
double radius
 Radius of the neural process at this node. More...
 
int parent
 
float x
 
float y
 
float z
 
float radius
 

Detailed Description

Structure representing a single node in an SWC neuron morphology.

This structure holds the essential properties of a neuron morphology node as defined in the SWC (Single-Write-Cable) format. Each node represents a 3D point in the neuron structure with associated metadata.

See also
http://www.neuronland.org/NLMorphologyConverter/MorphologyFormats/SWC/Spec.html

Member Data Documentation

◆ id

int SWCNode::id

Unique identifier for the node.

◆ parent

int SWCNode::parent

◆ pid

int SWCNode::pid

Parent node ID (-1 for root nodes)

◆ radius [1/2]

double SWCNode::radius

Radius of the neural process at this node.

◆ radius [2/2]

float SWCNode::radius

◆ type

int SWCNode::type

Node type identifier.

Standard SWC types:

  • 0: undefined
  • 1: soma
  • 2: axon
  • 3: basal dendrite
  • 4: apical dendrite
  • 5-7: custom types (user-defined)

◆ x [1/2]

double SWCNode::x

X-coordinate in 3D space.

◆ x [2/2]

float SWCNode::x

◆ y [1/2]

double SWCNode::y

Y-coordinate in 3D space.

◆ y [2/2]

float SWCNode::y

◆ z [1/2]

double SWCNode::z

Z-coordinate in 3D space.

◆ z [2/2]

float SWCNode::z

The documentation for this struct was generated from the following files: