1 #ifndef CONNECT_EDITOR_H
2 #define CONNECT_EDITOR_H
5 #include "../EditorController/ControllableAbility.h"
14 using namespace vrecko;
16 namespace APConnectEditor {
28 bool bApplyConnecting;
30 bool bNotApplyScaling;
42 virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *pParametersNode);
47 virtual void fillDefaultInfo();
48 virtual bool activate();
49 virtual void deactivate();
70 void icp_iteration(osg::Vec3Array* targetPoints, osg::Vec3Array* sourcePoints, vector<int> targetSnappingRegion, vector<int> closestPoints,
float transformation[8]);
73 void icp_scale(osg::Vec3Array* targetPoints, osg::Vec3Array* sourcePoints, vector<int> targetSnappingRegion, vector<int> sourceSnappingRegion,
float transformation[8]);
74 void icp_translate(osg::Vec3Array* targetPoints, osg::Vec3Array* sourcePoints, vector<int> targetSnappingRegion, vector<int> sourceSnappingRegion,
float transformation[8]);
77 float computeError(osg::Vec3Array* targetPoints, osg::Vec3Array* sourcePoints, vector<int> targetSnappingRegion, vector<int> closestPoints);
83 bool connectObjects();
84 void optimalizeEraseLoop(vector<int> &eraseLoop);
86 bool testPreConditions();
95 #endif //CONNECT_EDITOR_H