75 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-HoleFilling")
80 void updatedObject(
int _id,
const UpdateType& _type);
82 void addPickMode(
const std::string& _mode );
84 void log(
Logtype _type, QString _message);
85 void log(QString _message);
89 void scriptInfo( QString _functionName );
91 void setSlotDescription(QString _slotName , QString _slotDescription,
92 QStringList _parameters , QStringList _descriptions);
95 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
101 void slotMouseWheelEvent(QWheelEvent * ,
const std::string & ){};
117 QString
name() {
return (QString(
"HoleFiller")); };
118 QString
description( ) {
return (QString(
"Fill Holes or connect meshes")); };
126 void noguiSupported( ) {} ;
133 void getSelectedHoles(std::vector<int>& _holeIds, std::vector<int>& _objIds);
146 void fillHole(
int _objectID,
int _edgeHandle);
150 QString version() {
return QString(
"1.3"); };
void getSelectedHoles(std::vector< int > &_holeIds, std::vector< int > &_objIds)
get a map from objectID to (selected) holeIDs
void detectButton()
detect holes on all objects
Interface class for exporting functions to python.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void initializePlugin()
Initialize the toolbox widget.
Interface class for receiving mouse events.
HoleFillerPlugin()
Constructor.
void slotItemSelectionChanged()
slot for displaying selected holes
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
QString name()
Return a name for the plugin.
void slotObjectUpdated(int _identifier, const UpdateType &_type)
check for holes if an object has changed
std::vector< std::pair< int, int > > holeMapping_
map from the index in the table to (object-id, hole-id)
void fillAllHoles(int _objectID)
fill all holes from a given object
QString description()
Return a description of what the plugin is doing.
void fillHole(int _objectID, int _edgeHandle)
fill a hole in given object where _edgeHandle is on the boundary
Interface for all Plugins which provide scriptable Functions.
void pluginsInitialized()
add PickModes after initialization
void slotMouseEvent(QMouseEvent *)
Mouse Event from main application ( Picking Mode )
void slotCellDoubleClicked(int _row, int _col)
Slot for filling holes from double-clicked rows.
Interface class from which all plugins have to be created.
void slotFillSelection()
Fill all selected holes.
HoleFillerToolbarWidget * tool_
Widget for Toolbox.
Allow access to picking functions.
Interface class for backup handling.
void update_menu()
update the entries in the tableWidget