CustusX  20.03-rc1
An IGT application
cx::Branch Class Reference

#include <cxBranch.h>

Public Member Functions

 Branch ()
 
virtual ~Branch ()
 
void setPositions (Eigen::MatrixXd pos)
 
Eigen::MatrixXd getPositions ()
 
void setOrientations (Eigen::MatrixXd orient)
 
Eigen::MatrixXd getOrientations ()
 
void addChildBranch (BranchPtr child)
 
void setChildBranches (branchVector children)
 
void deleteChildBranches ()
 
branchVector getChildBranches ()
 
void setParentBranch (BranchPtr parent)
 
int findGenerationNumber ()
 
double findBranchRadius ()
 
BranchPtr getParentBranch ()
 
int findParentIndex (branchVector bv) const
 Branch::findParentIndex Given a vector of branches, find this branch's parent branch in that vector. Return the index in the vector of the parent branch. More...
 

Detailed Description

Definition at line 30 of file cxBranch.h.

Constructor & Destructor Documentation

cx::Branch::Branch ( )

Definition at line 16 of file cxBranch.cpp.

cx::Branch::~Branch ( )
virtual

Definition at line 131 of file cxBranch.cpp.

Member Function Documentation

void cx::Branch::addChildBranch ( BranchPtr  child)

Definition at line 43 of file cxBranch.cpp.

void cx::Branch::deleteChildBranches ( )

Definition at line 53 of file cxBranch.cpp.

double cx::Branch::findBranchRadius ( )

Definition at line 112 of file cxBranch.cpp.

int cx::Branch::findGenerationNumber ( )

Definition at line 93 of file cxBranch.cpp.

int cx::Branch::findParentIndex ( branchVector  bv) const

Branch::findParentIndex Given a vector of branches, find this branch's parent branch in that vector. Return the index in the vector of the parent branch.

Parameters
bvA vector of branches
Returns
The index the parent branch has in the input vector. Or -1 if the parent branch is not found in the vector.

Definition at line 82 of file cxBranch.cpp.

branchVector cx::Branch::getChildBranches ( )

Definition at line 58 of file cxBranch.cpp.

Eigen::MatrixXd cx::Branch::getOrientations ( )

Definition at line 38 of file cxBranch.cpp.

BranchPtr cx::Branch::getParentBranch ( )

Definition at line 67 of file cxBranch.cpp.

Eigen::MatrixXd cx::Branch::getPositions ( )

Definition at line 28 of file cxBranch.cpp.

void cx::Branch::setChildBranches ( branchVector  children)

Definition at line 48 of file cxBranch.cpp.

void cx::Branch::setOrientations ( Eigen::MatrixXd  orient)

Definition at line 33 of file cxBranch.cpp.

void cx::Branch::setParentBranch ( BranchPtr  parent)

Definition at line 63 of file cxBranch.cpp.

void cx::Branch::setPositions ( Eigen::MatrixXd  pos)

Definition at line 23 of file cxBranch.cpp.


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