-
Notifications
You must be signed in to change notification settings - Fork 4
/
PMVSCamFilter.h
61 lines (49 loc) · 2.71 KB
/
PMVSCamFilter.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//##########################################################################
//# #
//# CLOUDCOMPARE #
//# #
//# This program is free software; you can redistribute it and/or modify #
//# it under the terms of the GNU General Public License as published by #
//# the Free Software Foundation; version 2 of the License. #
//# #
//# This program is distributed in the hope that it will be useful, #
//# but WITHOUT ANY WARRANTY; without even the implied warranty of #
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
//# GNU General Public License for more details. #
//# #
//# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
//# #
//##########################################################################
#ifndef CC_PMVSCAMFILTER_H
#define CC_PMVSCAMFILTER_H
#include "FileIOFilter.h"
#include <qsharedpointer.h>
// ASCII Camera Sensor I/O filter
class QCC_IO_LIB_API PMVSCamFilter: public FileIOFilter
{
public:
//static accessors
static inline QString GetFileFilter() { return "PMVS Camera (*.txt)"; }
static inline QString GetDefaultExtension() { return "txt"; }
//inherited from FileIOFilter
virtual bool importSupported() const { return true; }
virtual bool exportSupported() const { return true; }
virtual CC_FILE_ERROR loadFile(QString filename, ccHObject& container, LoadParameters& parameters);
virtual CC_FILE_ERROR saveToFile(ccHObject* entity, QString filename, SaveParameters& parameters);
virtual QStringList getFileFilters(bool onImport) const { return QStringList(GetFileFilter()); }
virtual QString getDefaultExtension() const { return GetDefaultExtension(); }
virtual bool canLoadExtension(QString upperCaseExt) const;
virtual bool canSave(CC_CLASS_ENUM type, bool& multiple, bool& exclusive) const;
//! Returns associated dialog (creates it if necessary)
//static QSharedPointer<AsciiOpenDlg> GetOpenDialog();
//! Returns associated dialog (creates it if necessary)
//static QSharedPointer<AsciiSaveDlg> GetSaveDialog();
protected:
//! Internal use only
CC_FILE_ERROR saveFile(ccHObject* entity, FILE *theFile);
//! Associated (export) dialog
//static QSharedPointer<AsciiSaveDlg> s_saveDialog;
//! Associated (import) dialog
//static QSharedPointer<AsciiOpenDlg> s_openDialog;
};
#endif