More generalized code.

MultiImageLayer and FlatLayer now use the same code for arranging nodes,
rather than then same logic twice.
This commit is contained in:
2018-02-27 15:32:38 +01:00
parent 2dec364b1b
commit 7fdce48259
5 changed files with 41 additions and 38 deletions

View File

@@ -10,11 +10,6 @@ namespace fmri
class FlatLayerVisualisation : public LayerVisualisation
{
public:
enum class Ordering {
LINE,
SQUARE,
};
explicit FlatLayerVisualisation(const LayerData &layer, Ordering ordering);
void render() override;
@@ -43,7 +38,5 @@ namespace fmri
// Various functions defining the way the nodes will be aligned.
void initializeNodePositions();
void computeNodePositionsLine();
void computeNodePositionsSquare();
};
}