62 #ifndef FILEPTSPLUGIN_HH
63 #define FILEPTSPLUGIN_HH
98 #if QT_VERSION >= 0x050000
99 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FilePTS")
104 void openedFile(
int _objectId );
107 void addEmptyObject(
DataType _type,
int &_objectId );
108 void deleteObject (
int _objectId );
109 void updatedObject(
int _objectId,
const UpdateType &_type );
112 void log( QString _message );
113 void log(
Logtype _type, QString _message );
118 void noguiSupported() { }
127 QString
name() {
return QString(
"FilePTS" ); }
128 QString
description( ) {
return QString( tr(
"Load/Save SplatCloud format files") ); }
134 QString
getSaveFilters() {
return QString( tr(
"SplatCloud format files ( *.pts *.bin )") ); }
135 QString
getLoadFilters() {
return QString( tr(
"SplatCloud format files ( *.pts *.bin )") ); }
142 QString version() {
return QString(
"1.0" ); }
145 int loadObject( QString _filename );
146 bool saveObject(
int _objectId, QString _filename );
151 bool readBinaryFile(
const char *_filename,
SplatCloud &_splatCloud ) ;
152 bool readTextFile (
const char *_filename,
SplatCloud &_splatCloud ) ;
155 bool writeBinaryFile(
const char *_filename,
const SplatCloudNode *_splatCloudNode ) ;
156 bool writeTextFile (
const char *_filename,
const SplatCloudNode *_splatCloudNode ) ;
159 QWidget *loadOptions_;
160 QWidget *saveOptions_;
163 QCheckBox *loadBinaryFile_;
164 QCheckBox *loadNormals_;
165 QCheckBox *loadPointsizes_;
166 QCheckBox *loadColors_;
167 QComboBox *loadColorRange_;
168 QCheckBox *loadIndices_;
171 QCheckBox *saveBinaryFile_;
172 QCheckBox *saveNormals_;
173 QCheckBox *savePointsizes_;
174 QCheckBox *saveColors_;
175 QComboBox *saveColorRange_;
176 QCheckBox *saveIndices_;
179 QPushButton *loadMakeDefaultButton_;
180 QPushButton *saveMakeDefaultButton_;
185 void slotUpdateLoadColorRange();
186 void slotUpdateSaveColorRange();
189 void slotLoadMakeDefaultButtonClicked();
190 void slotSaveMakeDefaultButtonClicked();
197 #endif // FILEPTSPLUGIN_HH
QString name()
Return a name for the plugin.
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for file handling.
Interface to call functions across plugins.
QWidget * loadOptionsWidget(QString)
Interface for all Plugins which provide scriptable Functions.
QWidget * saveOptionsWidget(QString)
Interface for all plugins which want to Load or Save files and create Objects.
QString description()
Return a description of what the plugin is doing.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )