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")); };
99 std::vector<int> convertedIds;
100 std::vector< BaseObjectData* > objects;
101 int polyMergeID, triMergeID;
103 DataType checkType(
const std::vector< BaseObjectData* > &);
107 void noguiSupported( ) {} ;
112 void pluginsInitialized();
123 int mergeObjects(
const std::vector< BaseObjectData* > & _objects, QString _name =
"merged object",
bool _deleteSeparateObjects =
true,
DataType type_ =
typeId(
"TriangleMesh"));
145 template<
class MeshT >
146 void mergeMeshes(
const std::vector< MeshT* >& _meshes );
148 template<
class MeshT >
149 void mergeMeshes(
const std::vector< MeshT* >& _meshes,
typename MeshT::VertexHandle& _vhB);
152 QString version() {
return QString(
"1.1"); };
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which provide scriptable Functions.
void initializePlugin()
init the Toolbox
void mergeMeshes(const std::vector< MeshT * > &_meshes)
merges Meshes into the first mesh
void slotCleanup(DataType _type, bool _deleteSeparateObjects)
slotCleanup is called when the cleanup event is processed at the end of mergeObjects.
Interface for all Plugins which do logging to the logging window of the framework.
void mergeObjects()
merge two objects with target flag
QString description()
Return a description of what the plugin is doing.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
Interface class from which all plugins have to be created.
QString name()
Return a name for the plugin.
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.