VPTissue Reference Manual
SimPT_Sim::Node Class Reference

Node in cell wall. More...

#include <Node.h>

Inheritance diagram for SimPT_Sim::Node:
Inheritance graph
Collaboration diagram for SimPT_Sim::Node:
Collaboration graph

Public Member Functions

unsigned int GetIndex () const
 
bool IsAtBoundary () const
 
 operator const std::array< double, 3 > () const
 
 operator std::array< double, 3 > ()
 
std::array< double, 3 > operator+ (const Node &n) const
 
Nodeoperator+= (const std::array< double, 3 > &a)
 
std::array< double, 3 > operator- (const Node &n) const
 
Nodeoperator-= (const std::array< double, 3 > &a)
 
double & operator[] (size_t i)
 
double operator[] (size_t i) const
 
std::ostream & Print (std::ostream &os) const
 
virtual void ReadPtree (const boost::property_tree::ptree &node_pt)
 Read the given ptree into the attributes.
 
void SetAtBoundary (bool b)
 
virtual boost::property_tree::ptree ToPtree () const
 Convert the node to a ptree. More...
 
- Public Member Functions inherited from SimPT_Sim::NodeAttributes
bool IsFixed () const
 
bool IsSam () const
 
void SetFixed (bool b)
 
void SetSam (bool b)
 

Friends

class Mesh
 
class SimPT_Editor::EditableMesh
 
template<typename T , size_t N>
class SimPT_Sim::Container::SegmentedVector
 

Detailed Description

Node in cell wall.

Definition at line 39 of file Node.h.

Member Function Documentation

ptree SimPT_Sim::Node::ToPtree ( ) const
virtual

Convert the node to a ptree.

The format of a node ptree is as follows:

<id>[the index of the node]</id> <x>[the x-coordinate of the node's position]</x> <y>[the y-coordinate of the node's position]</y> <boundary>[true if the node is at the boundary of the mesh]</boundary> <attributes> NodeAttributes::ToPtree() </attributes>

Reimplemented from SimPT_Sim::NodeAttributes.

Definition at line 48 of file Node.cpp.


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