Documentation for VNodeDetail class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-21 16:18:25 +02:00
parent 0a958ceb8e
commit 4457a69972

View File

@ -35,7 +35,7 @@
namespace NodeDetail namespace NodeDetail
{ {
/** /**
* @brief The NodeDetail enum * @brief The NodeDetail enum node can be node of contour or node modeling.
*/ */
enum NodeDetail { Contour, Modeling }; enum NodeDetail { Contour, Modeling };
Q_DECLARE_FLAGS(NodeDetails, NodeDetail) Q_DECLARE_FLAGS(NodeDetails, NodeDetail)
@ -43,106 +43,105 @@ namespace NodeDetail
Q_DECLARE_OPERATORS_FOR_FLAGS(NodeDetail::NodeDetails) Q_DECLARE_OPERATORS_FOR_FLAGS(NodeDetail::NodeDetails)
/** /**
* @brief The VNodeDetail class * @brief The VNodeDetail class keep information about detail node.
*/ */
class VNodeDetail class VNodeDetail
{ {
public: public:
/** /**
* @brief VNodeDetail * @brief VNodeDetail default constructor.
*/ */
VNodeDetail(); VNodeDetail();
/** /**
* @brief VNodeDetail * @brief VNodeDetail constructor.
* @param id * @param id object id
* @param typeTool * @param typeTool type tool
* @param mode * @param typeNode type node
* @param typeNode * @param mx object bias x axis
* @param mx * @param my object bias y axis
* @param my
*/ */
VNodeDetail(qint64 id, Tool::Tools typeTool, NodeDetail::NodeDetails typeNode, qreal mx = 0, VNodeDetail(qint64 id, Tool::Tools typeTool, NodeDetail::NodeDetails typeNode, qreal mx = 0,
qreal my = 0); qreal my = 0);
/** /**
* @brief VNodeDetail * @brief VNodeDetail copy constructor
* @param node * @param node node
*/ */
VNodeDetail(const VNodeDetail &node); VNodeDetail(const VNodeDetail &node);
/** /**
* @brief operator = * @brief operator = assignment operator
* @param node * @param node node
* @return * @return node
*/ */
VNodeDetail &operator=(const VNodeDetail &node); VNodeDetail &operator=(const VNodeDetail &node);
/** /**
* @brief getId * @brief getId return object id.
* @return * @return id.
*/ */
inline qint64 getId() const {return id;} inline qint64 getId() const {return id;}
/** /**
* @brief setId * @brief setId set object id.
* @param value * @param value object id.
*/ */
inline void setId(const qint64 &value) {id = value;} inline void setId(const qint64 &value) {id = value;}
/** /**
* @brief getTypeTool * @brief getTypeTool return tool type.
* @return * @return tool type.
*/ */
inline Tool::Tools getTypeTool() const {return typeTool;} inline Tool::Tools getTypeTool() const {return typeTool;}
/** /**
* @brief setTypeTool * @brief setTypeTool set tool type.
* @param value * @param value tool type.
*/ */
inline void setTypeTool(const Tool::Tools &value) {typeTool = value;} inline void setTypeTool(const Tool::Tools &value) {typeTool = value;}
/** /**
* @brief getTypeNode * @brief getTypeNode return node type.
* @return * @return node type.
*/ */
inline NodeDetail::NodeDetails getTypeNode() const {return typeNode;} inline NodeDetail::NodeDetails getTypeNode() const {return typeNode;}
/** /**
* @brief setTypeNode * @brief setTypeNode set node type.
* @param value * @param value node type.
*/ */
inline void setTypeNode(const NodeDetail::NodeDetails &value) {typeNode = value;} inline void setTypeNode(const NodeDetail::NodeDetails &value) {typeNode = value;}
/** /**
* @brief getMx * @brief getMx return object bias x axis.
* @return * @return bias x axis.
*/ */
inline qreal getMx() const {return mx;} inline qreal getMx() const {return mx;}
/** /**
* @brief setMx * @brief setMx set object bias x axis.
* @param value * @param value bias x axis.
*/ */
inline void setMx(const qreal &value) {mx = value;} inline void setMx(const qreal &value) {mx = value;}
/** /**
* @brief getMy * @brief getMy return object bias y axis.
* @return * @return bias y axis.
*/ */
inline qreal getMy() const {return my;} inline qreal getMy() const {return my;}
/** /**
* @brief setMy * @brief setMy set object bias y axis.
* @param value * @param value bias y axis.
*/ */
inline void setMy(const qreal &value) {my = value;} inline void setMy(const qreal &value) {my = value;}
private: private:
/** /**
* @brief id * @brief id object id.
*/ */
qint64 id; qint64 id;
/** /**
* @brief typeTool * @brief typeTool type of tool
*/ */
Tool::Tools typeTool; Tool::Tools typeTool;
/** /**
* @brief typeNode * @brief typeNode node type.
*/ */
NodeDetail::NodeDetails typeNode; NodeDetail::NodeDetails typeNode;
/** /**
* @brief mx * @brief mx bias x axis.
*/ */
qreal mx; qreal mx;
/** /**
* @brief my * @brief my bias y axis.
*/ */
qreal my; qreal my;
}; };