MeVisLab Toolbox Reference
WEMPatchPersistence.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2015, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "MLWEMIncludes.h"
17
19
21
22class WEMPatch;
23class WEMPrimitiveValueList;
24
26
29{
30public:
32
34
36
37private:
38 WEMPatch* _patch;
39
43 void writePVLsToStream(OutStreamWrapper& ostreamWrapper);
44
46 void readEdgesFromMap(FileMapWrapper& mapper, size_t numEdges, const WEMPersistenceParameters& persistenceParameters, const WEMReadParameters& parameters, WEMProgressUpdater& progress);
48 void readPVLsFromMap(FileMapWrapper& mapper, const WEMReadParameters& parameters);
49};
50
52
Wraps a FileMap so we can handle errors and exceptions more easily.
Class to save/load a WEMPatch.
void saveTo(OutStreamWrapper &ostreamWrapper, const WEMPersistenceParameters &persistenceParameters, WEMProgressUpdater &progressUpdater)
WEMPatchPersistence(WEMPatch *patch)
unsigned int loadFrom(FileMapWrapper &mapper, const WEMPersistenceParameters &persistenceParameters, const WEMReadParameters &readParameters, WEMProgressUpdater &progressUpdater)
Base class for triangle and quad patches.
Definition WEMPatch.h:48
Stores a value list where the values are associated to primitives (WEMNode, WEMEdge,...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Structure to gather persistence parameters.
Helper struct for updating the progress bar while loading/saving.
Helper struct for bundling parameters to keep method interfaces small.