Content of a vertex for the 2D cell system. More...
#include <algorithms/cellsystem.h>
Public Member Functions | |
bool | serialize (storage::VVEStorage &) |
Serialization method. | |
Public Attributes | |
Point3d | force |
Force of the junction. | |
Point3d | pos |
Position of the vertex. | |
Point3d | velocity |
Velocity of the junction. |
Content of a vertex for the 2D cell system.
Definition at line 337 of file cellsystem.h.
bool cell_system::CellSystemJunction::serialize | ( | storage::VVEStorage & | store | ) |
Serialization method.
Definition at line 25 of file cellsystem.cpp.
References storage::VVEStorage::field(), force, pos, and velocity.
00026 { 00027 if(!store.field("Position", pos)) 00028 return false; 00029 if(!store.field("Force", force)) 00030 { 00031 cerr << "Warning, cell system junction without any force. Starting with zero force." << endl; 00032 force = Point3d(); 00033 } 00034 if(!store.field("Velocity", velocity)) 00035 { 00036 cerr << "Warning, cell system junction without any velocity. Starting with zero velocity." << endl; 00037 velocity = Point3d(); 00038 } 00039 return true; 00040 }