Gui: moved dragger classes to separate folder and files
* renamed SoFCCSysDragger to SoTransformDragger * moved TDragger, RDragger and TPlanarDragger to separate files and also renamed them to be more descriptive
This commit is contained in:
committed by
Kacper Donat
parent
3fa260f869
commit
d2ff41dbd7
@@ -54,9 +54,9 @@
|
||||
#include <Gui/BitmapFactory.h>
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Gui/Control.h>
|
||||
#include <Gui/Inventor/Draggers/SoTransformDragger.h>
|
||||
#include <Gui/MDIView.h>
|
||||
#include <Gui/MainWindow.h>
|
||||
#include <Gui/SoFCCSysDragger.h>
|
||||
#include <Gui/View3DInventor.h>
|
||||
#include <Gui/View3DInventorViewer.h>
|
||||
#include <Gui/ViewParams.h>
|
||||
@@ -267,7 +267,7 @@ void ViewProviderAssembly::setDragger()
|
||||
{
|
||||
// Create the dragger coin object
|
||||
assert(!asmDragger);
|
||||
asmDragger = new Gui::SoFCCSysDragger();
|
||||
asmDragger = new Gui::SoTransformDragger();
|
||||
asmDragger->setAxisColors(Gui::ViewParams::instance()->getAxisXColor(),
|
||||
Gui::ViewParams::instance()->getAxisYColor(),
|
||||
Gui::ViewParams::instance()->getAxisZColor());
|
||||
@@ -1144,7 +1144,7 @@ Base::Placement ViewProviderAssembly::getDraggerPlacement()
|
||||
Base::convertTo<Base::Rotation>(asmDragger->rotation.getValue())};
|
||||
}
|
||||
|
||||
Gui::SoFCCSysDragger* ViewProviderAssembly::getDragger()
|
||||
Gui::SoTransformDragger* ViewProviderAssembly::getDragger()
|
||||
{
|
||||
return asmDragger;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class SoFieldSensor;
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
class SoFCCSysDragger;
|
||||
class SoTransformDragger;
|
||||
class View3DInventorViewer;
|
||||
} // namespace Gui
|
||||
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
bool getDraggerVisibility();
|
||||
void setDraggerPlacement(Base::Placement plc);
|
||||
Base::Placement getDraggerPlacement();
|
||||
Gui::SoFCCSysDragger* getDragger();
|
||||
Gui::SoTransformDragger* getDragger();
|
||||
|
||||
static Base::Vector3d getCenterOfBoundingBox(const std::vector<MovingObject>& movingObjs);
|
||||
|
||||
@@ -222,7 +222,7 @@ public:
|
||||
std::vector<std::pair<App::DocumentObject*, double>> objectMasses;
|
||||
std::vector<MovingObject> docsToMove;
|
||||
|
||||
Gui::SoFCCSysDragger* asmDragger = nullptr;
|
||||
Gui::SoTransformDragger* asmDragger = nullptr;
|
||||
SoSwitch* asmDraggerSwitch = nullptr;
|
||||
SoFieldSensor* translationSensor = nullptr;
|
||||
SoFieldSensor* rotationSensor = nullptr;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<UserDocu>
|
||||
Return the assembly dragger coin object.
|
||||
|
||||
getDragger() -> SoFCCSysDragger
|
||||
getDragger() -> SoTransformDragger
|
||||
|
||||
Returns: dragger coin object of the assembly
|
||||
</UserDocu>
|
||||
|
||||
@@ -97,7 +97,7 @@ PyObject* ViewProviderAssemblyPy::getDragger(PyObject* args)
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
}
|
||||
Gui::SoFCCSysDragger* asmDragger = getViewProviderAssemblyPtr()->getDragger();
|
||||
Gui::SoTransformDragger* asmDragger = getViewProviderAssemblyPtr()->getDragger();
|
||||
|
||||
return Base::Interpreter().createSWIGPointerObj("pivy.coin", "SoDragger *", asmDragger, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user