Developer Documentation
|
#include <Package-Staging/Plugin-Align/AlignPlugin.hh>
Public Slots | |
QString | version () |
Signals | |
void | createBackup (int objectId, QString name, UpdateType type=UPDATE_ALL) |
void | updateView () |
void | updatedObject (int objectId, UpdateType const &type) |
void | log (Logtype type, QString message) |
void | log (QString message) |
void | addToolbox (QString name, QWidget *widget, QIcon *icon) |
Signals inherited from BackupInterface | |
virtual void | createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
Tell Backup Plugin to create a backup. More... | |
virtual void | aboutToRestore (int _objectid) |
Backup Plugin tells other Plugins that a restore will happen. More... | |
virtual void | generateBackup (int _id, QString _name, UpdateType _type) |
This signal is emitted by a BackupPlugin and tells a TypePlugin to generate a backup. More... | |
Signals inherited from BaseInterface | |
virtual void | updateView () |
Update current view in Main Application. More... | |
virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
Set a description for a public slot. More... | |
virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
Set a renderer for the given viewer. More... | |
Signals inherited from LoadSaveInterface | |
virtual void | save (int _id, QString _filename) |
Save object to a file. More... | |
virtual void | load (QString _filename, DataType _type, int &_id) |
Load object from file with a specific DataType. More... | |
Signals inherited from LoggingInterface | |
virtual void | log (Logtype _type, QString _message)=0 |
virtual void | log (QString _message)=0 |
Signals inherited from ToolboxInterface | |
virtual void | addToolbox (QString _name, QWidget *_widget) |
Add a toolbox widget to the gui with the given name. More... | |
Public Member Functions | |
AlignPlugin () | |
QString | name () |
Return a name for the plugin. More... | |
QString | description () |
Return a description of what the plugin is doing. More... | |
Private Types | |
typedef std::pair < Eigen::Vector3d, Eigen::Vector3d > | BBox |
typedef std::vector < Eigen::Vector3d > | Point_container |
Private Slots | |
void | initializePlugin () |
void | pluginsInitialized () |
void | slotObjectUpdated (int, UpdateType const &) |
void | slotObjectSelectionChanged (int) |
void | objectDeleted (int objectId) |
void | slotAlignMeshes () |
void | slotSourceMeshChanged (int objectId) |
void | slotTargetMeshChanged (int objectId) |
Private Member Functions | |
void | updateGui () |
Point_container | getPoints (BaseObjectData *object) |
void | transformObject (BaseObjectData *object, Eigen::Affine3d const &t) |
void | transformPoints (Point_container &points, Eigen::Affine3d const &t) |
BBox | computeBoundingBox (Point_container const &points) |
Eigen::Vector3d | computeCentroid (Point_container const &points) |
bool | computePCA (Point_container const &points, Eigen::Vector3d ¢roid, Eigen::Matrix3d &principal_directions) |
Private Member Functions inherited from BackupInterface | |
virtual void | createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types) |
Tell Backup Plugin to create a group backup. More... | |
virtual void | undo (int _objectid) |
Tell Backup Plugin to undo the last action of an object. More... | |
virtual void | redo (int _objectid) |
Tell Backup Plugin to redo the last action on an object. More... | |
virtual void | undo () |
Tell Backup Plugin to undo the last action. More... | |
virtual void | redo () |
Tell Backup Plugin to redo the last action. More... | |
virtual | ~BackupInterface () |
Destructor. | |
virtual void | restored (int _objectid) |
Backup Plugin tells other Plugins that a restore has happened. More... | |
Private Member Functions inherited from BaseInterface | |
virtual void | noguiSupported () |
virtual | ~BaseInterface () |
Destructor. | |
virtual void | blockScenegraphUpdates (bool _block) |
Tell the core to prevent scenegraph updates. More... | |
virtual void | updatedObject (int _objectId) |
An object has been changed or added by this plugin. More... | |
virtual void | updatedObject (int _identifier, const UpdateType &_type) |
An object has been changed or added by this plugin. More... | |
virtual void | nodeVisibilityChanged (int _identifier) |
A scenegraph node has been shown or hidden. More... | |
virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
Get the current renderer for the given viewer. More... | |
Private Member Functions inherited from LoadSaveInterface | |
virtual | ~LoadSaveInterface () |
Destructor. | |
virtual void | addEmptyObject (DataType _type, int &_id) |
virtual void | copyObject (int _oldId, int &_newId) |
virtual void | emptyObjectAdded (int _id) |
DEPRECATED HERE (Moved to Type Interface)! Emit this signal if an empty object has been created. More... | |
virtual void | deleteObject (int _id) |
Delete an object This signal can be called from any thread. . More... | |
virtual void | deleteAllObjects () |
Delete all Objects. More... | |
virtual void | getAllFileFilters (QStringList &_filters) |
Get all file filters that are registered. More... | |
Private Member Functions inherited from LoggingInterface | |
virtual | ~LoggingInterface () |
Destructor. | |
Private Member Functions inherited from ToolboxInterface | |
virtual | ~ToolboxInterface () |
Destructor. | |
virtual void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon) |
Add a toolbox widget to the gui with the given name and an icon. More... | |
virtual void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget) |
Add a toolbox widget to the gui with the given name, icon and header area widget. More... | |
Private Attributes | |
QComboBox * | sourceMeshCombo_ |
ObjectInfoListModel < Is_source_mesh > | sourceMeshList_ |
QComboBox * | targetMeshCombo_ |
ObjectInfoListModel < Is_target_mesh > | targetMeshList_ |
QCheckBox * | doScaleCheckBox_ |
QPushButton * | alignMeshesButton_ |
int | sourceId_ |
int | targetId_ |
Definition at line 23 of file AlignPlugin.hh.
AlignPlugin::AlignPlugin | ( | ) |
Definition at line 13 of file AlignPlugin.cc.
|
inlinevirtual |
Return a description of what the plugin is doing.
This function has to return a basic description of the plugin
Implements BaseInterface.
Definition at line 108 of file AlignPlugin.hh.
|
privateslot |
Definition at line 7 of file ToolboxGui.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 103 of file AlignPlugin.hh.