GemaMesh
The GeMA Mesh Plugin
Loading...
Searching...
No Matches
gmpNodeDataDump.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_NODE_DATA_DUMP_H_
25#define _GEMA_PLUGIN_NODE_DATA_DUMP_H_
26
27#include "gmpGemaMeshConfig.h"
28
29#include <QVariant>
30
31class GmStateDump;
32class GmMesh;
33class GmLogCategory;
34
35template <template <class> class Vector> class GmpNodeMeshData;
36
38template <template <class> class Vector>
39class GMP_GEMAMESH_API_EXPORT GmpNodeDataDump
40{
41public:
44 : _nd(nd), _state(NULL) {}
45
46 virtual bool addStateGeometryData(GmStateDump* state, int groupId);
47 virtual bool fillDumpControlMapData (GmMesh* mesh, QVariantMap* map, const GmLogCategory& logger);
48 virtual bool dumpControlMapDataLoaded(GmMesh* mesh, QVariantMap* map, const GmLogCategory& logger);
49
50 virtual void setState(GmStateDump* state) { _state = state; }
51
52private:
55};
56
57#endif
58
A helper class to implement state dump operations for a GmpNodeMeshData<Vector> object.
Definition gmpNodeDataDump.h:40
GmStateDump * _state
The state dump object when loading mesh data during Lua mesh model loading (always NULL during orches...
Definition gmpNodeDataDump.h:54
GmpNodeMeshData< Vector > * _nd
The node mesh data object being dumped / recovered.
Definition gmpNodeDataDump.h:53
GmpNodeDataDump(GmpNodeMeshData< Vector > *nd)
Constructor.
Definition gmpNodeDataDump.h:43
Auxiliar interface used to share node data between the mesh implementation and GmpMeshLoader....
Definition gmpNodeMeshData.h:53
Declaration of useful configuration definitions for the plugin library.