18 #ifndef GZ_GUI_APPLYFORCETORQUE_HH_
19 #define GZ_GUI_APPLYFORCETORQUE_HH_
24 #include <QStringList>
36 class ApplyForceTorquePrivate;
108 public:
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override;
111 protected:
bool eventFilter(QObject *_obj, QEvent *_event) override;
119 public: Q_INVOKABLE QString
ModelName() const;
133 public: Q_INVOKABLE
int LinkIndex() const;
144 public: Q_INVOKABLE QVector3D
Force() const;
151 public: Q_INVOKABLE
void SetForce(QVector3D _force);
155 public: Q_INVOKABLE
double ForceMag() const;
163 public: Q_INVOKABLE
void SetForceMag(
double _forceMag);
167 public: Q_INVOKABLE QVector3D
Torque() const;
174 public: Q_INVOKABLE
void SetTorque(QVector3D _torque);
178 public: Q_INVOKABLE
double TorqueMag() const;
186 public: Q_INVOKABLE
void SetTorqueMag(
double _torqueMag);
192 public: Q_INVOKABLE
void UpdateOffset(
double _x,
double _y,
double _z);
201 public: Q_INVOKABLE
void ApplyAll();
205 private:
std::unique_ptr<ApplyForceTorquePrivate> dataPtr;