-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preliminary cube model import plugin.
- Loading branch information
1 parent
cf9c9df
commit 3c397cf
Showing
6 changed files
with
419 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/* | ||
*** Cube Model File Plugin | ||
*** src/plugins/io_cube/cubemodel.hui | ||
Copyright T. Youngs 2016-2018 | ||
|
||
This file is part of Aten. | ||
|
||
Aten 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, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
Aten 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. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with Aten. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef ATEN_CUBEMODELPLUGIN_H | ||
#define ATEN_CUBEMODELPLUGIN_H | ||
|
||
#include "plugins/interfaces/fileplugin.h" | ||
|
||
ATEN_BEGIN_NAMESPACE | ||
|
||
// Forward Declarations | ||
/* none */ | ||
|
||
// Cube Model Plugin | ||
class CubeModelPlugin : public QObject, public FilePluginInterface | ||
{ | ||
Q_OBJECT | ||
Q_PLUGIN_METADATA(IID "com.projectaten.Aten.FilePluginInterface.v1") | ||
Q_INTERFACES(AtenSpace::FilePluginInterface) | ||
|
||
|
||
public: | ||
// Constructor | ||
CubeModelPlugin(); | ||
// Destructor | ||
~CubeModelPlugin(); | ||
|
||
|
||
/* | ||
* Instance Handling | ||
*/ | ||
private: | ||
// Return a copy of the plugin object | ||
BasePluginInterface* makeCopy() const; | ||
|
||
|
||
/* | ||
* Definition | ||
*/ | ||
public: | ||
// Return type of plugin | ||
PluginTypes::PluginType type() const; | ||
// Return category of plugin | ||
int category() const; | ||
// Return name of plugin | ||
QString name() const; | ||
// Return nickname of plugin | ||
QString nickname() const; | ||
// Return whether plugin is enabled | ||
bool enabled() const; | ||
// Return description (long name) of plugin | ||
QString description() const; | ||
// Return related file extensions | ||
QStringList extensions() const; | ||
// Return exact names | ||
QStringList exactNames() const; | ||
|
||
|
||
/* | ||
* Input / Output | ||
*/ | ||
public: | ||
// Return whether this plugin can import data | ||
bool canImport() const; | ||
// Import data via the supplied parser | ||
bool importData(); | ||
// Return whether this plugin can export data | ||
bool canExport() const; | ||
// Export data via the supplied parser | ||
bool exportData(); | ||
// Import next partial data chunk | ||
bool importNextPart(); | ||
// Skip next partial data chunk | ||
bool skipNextPart(); | ||
|
||
|
||
/* | ||
* Options | ||
*/ | ||
public: | ||
// Return whether the plugin has import options | ||
bool hasImportOptions() const; | ||
// Show import options dialog | ||
bool showImportOptionsDialog(KVMap& targetOptions) const; | ||
// Return whether the plugin has export options | ||
bool hasExportOptions() const; | ||
// Show export options dialog | ||
bool showExportOptionsDialog(KVMap& targetOptions) const; | ||
}; | ||
|
||
ATEN_END_NAMESPACE | ||
|
||
#endif |
Oops, something went wrong.