52#include "MergeToolbox.hh"
62 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Merge")
69 void updatedObject(
int _identifier,
const UpdateType& _type);
72 void log(
Logtype _type, QString _message );
73 void log( QString _message );
76 void addEmptyObject(
DataType _type,
int &_objectId );
77 void deleteObject(
int _id );
80 void addToolbox( QString _name , QWidget* _widget );
81 void addToolbox( QString _name , QWidget* _widget , QIcon* _icon );
84 void setSlotDescription(QString _slotName, QString _slotDescription,
85 QStringList _parameters, QStringList _descriptions);
87 void cleanup(
DataType _type,
bool _deleteSeparateObjects);
94 QString
name() {
return (QString(
"Merge")); };
95 QString
description( ) {
return (QString(
"Merge target objects")); };
100 std::vector<int> convertedIds;
101 std::vector< BaseObjectData* > objects;
102 int polyMergeID, triMergeID;
104 DataType checkType(
const std::vector< BaseObjectData* > &);
108 void noguiSupported( ) {} ;
113 void pluginsInitialized();
124 int mergeObjects(
const std::vector< BaseObjectData* > & _objects, QString _name =
"merged object",
bool _deleteSeparateObjects =
true,
DataType type_ =
typeId(
"TriangleMesh"));
146 template<
class MeshT >
147 void mergeMeshes(
const std::vector< MeshT* >& _meshes );
149 template<
class MeshT >
150 void mergeMeshes(
const std::vector< MeshT* >& _meshes,
typename MeshT::VertexHandle& _vhB);
153 QString version() {
return QString(
"1.1"); };
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which do logging to the logging window of the framework.
void mergeMeshes(const std::vector< MeshT * > &_meshes)
merges Meshes into the first mesh
QString name()
Return a name for the plugin.
void slotCleanup(DataType _type, bool _deleteSeparateObjects)
slotCleanup is called when the cleanup event is processed at the end of mergeObjects.
QString description()
Return a description of what the plugin is doing.
void initializePlugin()
init the Toolbox
void mergeObjects()
merge two objects with target flag
Interface for all Plugins which provide scriptable Functions.