MorphoGraphX  2.0-1-227
Subdivide.hpp
Go to the documentation of this file.
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef SUBDIVIDE_HPP
12 #define SUBDIVIDE_HPP
13 
19 #include <Config.hpp>
20 #include <Types.hpp>
21 #include <Information.hpp>
22 
23 namespace mgx
24 {
25  class Subdivide
26  {
27  public:
28  Subdivide() {}
29  virtual ~Subdivide() {}
30 
40  virtual bool updateCellData(cell /*c*/, cell /*l*/, cell /*r*/) { return true; }
41 
50  virtual bool updateEdgeData(vertex /*l*/, vertex /*v*/, vertex /*r*/, double /*s*/) { return true; }
51  };
52 }
53 
54 #endif
mgx::Subdivide::updateEdgeData
virtual bool updateEdgeData(vertex, vertex, vertex, double)
Update data when an edge is split.
Definition: Subdivide.hpp:50
mgx::Subdivide::Subdivide
Subdivide()
Definition: Subdivide.hpp:28
Information.hpp
mgx
Distributed matrix library.
Definition: Assert.hpp:26
mgx::Subdivide::~Subdivide
virtual ~Subdivide()
Definition: Subdivide.hpp:29
Types.hpp
mgx::Subdivide::updateCellData
virtual bool updateCellData(cell, cell, cell)
Update data when a cell divides.
Definition: Subdivide.hpp:40
mgx::Subdivide
Definition: Subdivide.hpp:25
mgx::Vertex
Definition: Vertex.hpp:58