Documentation for VToolPointOfContact class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-27 11:07:01 +02:00
parent 27353c7354
commit 081d2d2859

View File

@ -33,22 +33,22 @@
#include "../../dialogs/dialogpointofcontact.h" #include "../../dialogs/dialogpointofcontact.h"
/** /**
* @brief The VToolPointOfContact class * @brief The VToolPointOfContact class tool for creation point intersection line and arc.
*/ */
class VToolPointOfContact : public VToolPoint class VToolPointOfContact : public VToolPoint
{ {
public: public:
/** /**
* @brief VToolPointOfContact * @brief VToolPointOfContact constructor.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
* @param id object id in container * @param id object id in container.
* @param radius * @param radius string with formula radius arc.
* @param center * @param center id center arc point.
* @param firstPointId * @param firstPointId id first line point.
* @param secondPointId * @param secondPointId id second line point.
* @param typeCreation way we create this tool. * @param typeCreation way we create this tool.
* @param parent parent object * @param parent parent object.
*/ */
VToolPointOfContact(VDomDocument *doc, VContainer *data, const qint64 &id, VToolPointOfContact(VDomDocument *doc, VContainer *data, const qint64 &id,
const QString &radius, const qint64 &center, const QString &radius, const qint64 &center,
@ -59,37 +59,37 @@ public:
*/ */
virtual void setDialog(); virtual void setDialog();
/** /**
* @brief FindPoint * @brief FindPoint return point intersection line and arc.
* @param radius * @param radius string with formula radius arc.
* @param center * @param center center arc point.
* @param firstPoint * @param firstPoint first line point.
* @param secondPoint * @param secondPoint second line point.
* @return * @return point intersection.
*/ */
static QPointF FindPoint(const qreal &radius, const QPointF &center, const QPointF &firstPoint, static QPointF FindPoint(const qreal &radius, const QPointF &center, const QPointF &firstPoint,
const QPointF &secondPoint); const QPointF &secondPoint);
/** /**
* @brief Create help create tool * @brief Create help create tool from GUI.
* @param dialog * @param dialog dialog.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
*/ */
static void Create(QSharedPointer<DialogPointOfContact> &dialog, VMainGraphicsScene *scene, static void Create(QSharedPointer<DialogPointOfContact> &dialog, VMainGraphicsScene *scene,
VDomDocument *doc, VContainer *data); VDomDocument *doc, VContainer *data);
/** /**
* @brief Create help create tool * @brief Create help create tool.
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param radius * @param radius string with formula radius arc.
* @param center * @param center id center arc point.
* @param firstPointId * @param firstPointId id first line point.
* @param secondPointId * @param secondPointId id second line point.
* @param pointName point name. * @param pointName point name.
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
* @param parse parser file mode. * @param parse parser file mode.
* @param typeCreation way we create this tool. * @param typeCreation way we create this tool.
*/ */
@ -97,9 +97,6 @@ public:
const qint64 &firstPointId, const qint64 &secondPointId, const QString &pointName, const qint64 &firstPointId, const qint64 &secondPointId, const QString &pointName,
const qreal &mx, const qreal &my, VMainGraphicsScene *scene, VDomDocument *doc, const qreal &mx, const qreal &my, VMainGraphicsScene *scene, VDomDocument *doc,
VContainer *data, const Document::Documents &parse, const Tool::Sources &typeCreation); VContainer *data, const Document::Documents &parse, const Tool::Sources &typeCreation);
/**
* @brief ToolType
*/
static const QString ToolType; static const QString ToolType;
public slots: public slots:
/** /**
@ -108,7 +105,7 @@ public slots:
virtual void FullUpdateFromFile(); virtual void FullUpdateFromFile();
/** /**
* @brief FullUpdateFromGui refresh tool data from change options. * @brief FullUpdateFromGui refresh tool data from change options.
* @param result * @param result result working dialog.
*/ */
virtual void FullUpdateFromGui(int result); virtual void FullUpdateFromGui(int result);
/** /**
@ -116,11 +113,15 @@ public slots:
* @param factor scene scale factor. * @param factor scene scale factor.
*/ */
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
/**
* @brief ShowContextMenu show context menu.
* @param event context menu event.
*/
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent handle context menu events. * @brief contextMenuEvent handle context menu events.
* @param event * @param event context menu event.
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
/** /**
@ -137,23 +138,23 @@ protected:
virtual void RemoveReferens(); virtual void RemoveReferens();
private: private:
/** /**
* @brief radius * @brief radius string with formula radius arc.
*/ */
QString radius; QString radius;
/** /**
* @brief center * @brief center id center arc point.
*/ */
qint64 center; qint64 center;
/** /**
* @brief firstPointId * @brief firstPointId id first line point.
*/ */
qint64 firstPointId; qint64 firstPointId;
/** /**
* @brief secondPointId * @brief secondPointId id second line point.
*/ */
qint64 secondPointId; qint64 secondPointId;
/** /**
* @brief dialogPointOfContact * @brief dialogPointOfContact dialog.
*/ */
QSharedPointer<DialogPointOfContact> dialogPointOfContact; QSharedPointer<DialogPointOfContact> dialogPointOfContact;
}; };