summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/Testing/HDF5_Consumer/HDF5_Consumer.h
blob: 9ce8f2b1bd7a6d7751bef3b72beb3426b8a04dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2008 Nanorex, Inc.  See LICENSE file for details.

#ifndef HDF5_CONSUMER_H
#define HDF5_CONSUMER_H

#include <stdlib.h>
#include <stdio.h>

#include <string>

#include <QThread>
#include <QCoreApplication>

#include "Nanorex/Interface/NXEntityManager.h"
using namespace Nanorex;


/* CLASS: HDF5_Consumer */
class HDF5_Consumer : public QObject {

	Q_OBJECT
	
	public:
		HDF5_Consumer(NXEntityManager* entityManager) {
			this->entityManager = entityManager;
			_frameIndex = 0;
		}
		~HDF5_Consumer() { }
	
	public slots:
		void render(int frameSetId, int frameIndex,
					NXMoleculeSet* newMoleculeSet);
		
	private:
		unsigned int _frameIndex;
		NXEntityManager* entityManager;
};


#endif