MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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
35
38
39private:
40 WEMPatch* _patch;
41
43 WEMProgressUpdater& progress);
45 WEMProgressUpdater& progress);
47 WEMProgressUpdater& progress);
48 void writePVLsToStream(OutStreamWrapper& ostreamWrapper);
49
50 void readNodesFromMap(FileMapWrapper& mapper, size_t numNodes, WEMPrimitiveValueList* pvl,
52 WEMProgressUpdater& progress);
53 void readEdgesFromMap(FileMapWrapper& mapper, size_t numEdges, const WEMPersistenceParameters& persistenceParameters,
55 void readFacesFromMap(FileMapWrapper& mapper, size_t numFaces, const WEMPersistenceParameters& persistenceParameters,
57 void readPVLsFromMap(FileMapWrapper& mapper, const WEMReadParameters& parameters);
58};
59
61
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:61
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.