2013-11-15 13:41:26 +01:00
|
|
|
/************************************************************************
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:50:05 +01:00
|
|
|
** @file vtoolalongline.cpp
|
2014-04-30 07:38:52 +02:00
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
2013-11-15 13:50:05 +01:00
|
|
|
** @date November 15, 2013
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
2015-02-27 11:27:48 +01:00
|
|
|
** Copyright (C) 2013-2015 Valentina project
|
2013-11-15 13:41:26 +01:00
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
2013-09-18 21:16:19 +02:00
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
2013-10-27 13:36:29 +01:00
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
2013-09-18 21:16:19 +02:00
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
*************************************************************************/
|
2013-09-18 21:16:19 +02:00
|
|
|
|
2013-07-28 00:18:06 +02:00
|
|
|
#include "vtoolalongline.h"
|
2013-11-06 18:06:00 +01:00
|
|
|
#include "../../container/calculator.h"
|
2014-02-21 14:04:39 +01:00
|
|
|
#include "../../dialogs/tools/dialogalongline.h"
|
2014-06-08 20:10:57 +02:00
|
|
|
#include "../../geometry/vpointf.h"
|
2014-12-10 19:01:33 +01:00
|
|
|
#include "../../libs/ifc/exception/vexceptionobjecterror.h"
|
2014-09-03 15:52:16 +02:00
|
|
|
#include "../../visualization/vistoolalongline.h"
|
2014-05-21 12:12:52 +02:00
|
|
|
|
2013-10-29 14:45:07 +01:00
|
|
|
const QString VToolAlongLine::ToolType = QStringLiteral("alongLine");
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief VToolAlongLine constuctor.
|
|
|
|
* @param doc dom document container.
|
|
|
|
* @param data container with variables.
|
|
|
|
* @param id object id in container.
|
|
|
|
* @param formula string with length formula.
|
|
|
|
* @param firstPointId id first point of line.
|
|
|
|
* @param secondPointId id second point of line.
|
|
|
|
* @param typeLine line type. line type.
|
|
|
|
* @param typeCreation way we create this tool.
|
|
|
|
* @param parent parent object.
|
|
|
|
*/
|
2014-02-25 15:40:24 +01:00
|
|
|
VToolAlongLine::VToolAlongLine(VPattern *doc, VContainer *data, quint32 id, const QString &formula,
|
|
|
|
const quint32 &firstPointId, const quint32 &secondPointId,
|
2015-02-07 12:17:31 +01:00
|
|
|
const QString &typeLine, const QString &lineColor, const Source &typeCreation,
|
2013-11-04 21:35:15 +01:00
|
|
|
QGraphicsItem *parent)
|
2015-02-07 12:17:31 +01:00
|
|
|
:VToolLinePoint(doc, data, id, typeLine, lineColor, formula, firstPointId, 0, parent), secondPointId(secondPointId)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2013-07-28 00:18:06 +02:00
|
|
|
|
2014-06-12 09:22:29 +02:00
|
|
|
if (typeCreation == Source::FromGui)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2013-07-31 13:34:39 +02:00
|
|
|
AddToFile();
|
2013-07-28 00:18:06 +02:00
|
|
|
}
|
2013-12-24 12:24:29 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
RefreshDataInFile();
|
|
|
|
}
|
2013-07-28 00:18:06 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief FullUpdateFromFile update tool data form file.
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void VToolAlongLine::FullUpdateFromFile()
|
|
|
|
{
|
2015-02-06 18:43:31 +01:00
|
|
|
ReadAttributes();
|
2013-07-31 13:34:39 +02:00
|
|
|
RefreshGeometry();
|
2014-09-03 15:52:16 +02:00
|
|
|
|
|
|
|
if (vis != nullptr)
|
|
|
|
{
|
|
|
|
VisToolAlongLine * visual = qobject_cast<VisToolAlongLine *>(vis);
|
|
|
|
visual->setPoint1Id(basePointId);
|
|
|
|
visual->setPoint2Id(secondPointId);
|
2014-09-20 17:00:29 +02:00
|
|
|
visual->setLength(qApp->FormulaToUser(formulaLength));
|
2015-01-29 16:47:02 +01:00
|
|
|
visual->setLineStyle(VAbstractTool::LineStyleToPenStyle(typeLine));
|
2014-09-03 15:52:16 +02:00
|
|
|
visual->RefreshGeometry();
|
|
|
|
}
|
2013-07-30 20:46:40 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief SetFactor set current scale factor of scene.
|
|
|
|
* @param factor scene scale factor.
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void VToolAlongLine::SetFactor(qreal factor)
|
|
|
|
{
|
2013-10-16 11:17:34 +02:00
|
|
|
VDrawTool::SetFactor(factor);
|
|
|
|
RefreshGeometry();
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief contextMenuEvent handle context menu events. handle context menu event.
|
|
|
|
* @param event context menu event.
|
|
|
|
*/
|
2014-01-27 16:48:11 +01:00
|
|
|
//cppcheck-suppress unusedFunction
|
2013-11-04 21:35:15 +01:00
|
|
|
void VToolAlongLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|
|
|
{
|
2014-02-06 14:57:23 +01:00
|
|
|
ContextMenu<DialogAlongLine>(this, event);
|
2014-01-09 13:51:09 +01:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief RemoveReferens decrement value of reference.
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void VToolAlongLine::RemoveReferens()
|
|
|
|
{
|
2013-09-30 18:29:03 +02:00
|
|
|
doc->DecrementReferens(secondPointId);
|
|
|
|
VToolLinePoint::RemoveReferens();
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief SaveDialog save options into file after change in dialog.
|
|
|
|
*/
|
2014-02-06 14:57:23 +01:00
|
|
|
void VToolAlongLine::SaveDialog(QDomElement &domElement)
|
|
|
|
{
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialog != nullptr);
|
2014-02-06 14:57:23 +01:00
|
|
|
DialogAlongLine *dialogTool = qobject_cast<DialogAlongLine*>(dialog);
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialogTool != nullptr);
|
2014-02-25 15:02:09 +01:00
|
|
|
doc->SetAttribute(domElement, AttrName, dialogTool->getPointName());
|
2015-02-03 11:17:04 +01:00
|
|
|
doc->SetAttribute(domElement, AttrTypeLine, dialogTool->GetTypeLine());
|
2015-02-06 18:50:33 +01:00
|
|
|
doc->SetAttribute(domElement, AttrLineColor, dialogTool->GetLineColor());
|
2015-02-03 11:17:04 +01:00
|
|
|
doc->SetAttribute(domElement, AttrLength, dialogTool->GetFormula());
|
|
|
|
doc->SetAttribute(domElement, AttrFirstPoint, dialogTool->GetFirstPointId());
|
|
|
|
doc->SetAttribute(domElement, AttrSecondPoint, dialogTool->GetSecondPointId());
|
2014-02-06 14:57:23 +01:00
|
|
|
}
|
|
|
|
|
2014-08-30 12:41:21 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-08-30 21:58:31 +02:00
|
|
|
void VToolAlongLine::SaveOptions(QDomElement &tag, QSharedPointer<VGObject> &obj)
|
2014-08-30 12:41:21 +02:00
|
|
|
{
|
2014-08-30 21:58:31 +02:00
|
|
|
QSharedPointer<VPointF> point = qSharedPointerDynamicCast<VPointF>(obj);
|
|
|
|
SCASSERT(point.isNull() == false);
|
|
|
|
|
2014-08-30 12:41:21 +02:00
|
|
|
doc->SetAttribute(tag, VDomDocument::AttrId, id);
|
|
|
|
doc->SetAttribute(tag, AttrType, ToolType);
|
2014-08-30 21:58:31 +02:00
|
|
|
doc->SetAttribute(tag, AttrName, point->name());
|
|
|
|
doc->SetAttribute(tag, AttrMx, qApp->fromPixel(point->mx()));
|
|
|
|
doc->SetAttribute(tag, AttrMy, qApp->fromPixel(point->my()));
|
2014-08-30 12:41:21 +02:00
|
|
|
|
|
|
|
doc->SetAttribute(tag, AttrTypeLine, typeLine);
|
2015-02-06 19:05:52 +01:00
|
|
|
doc->SetAttribute(tag, AttrLineColor, lineColor);
|
2014-08-30 12:41:21 +02:00
|
|
|
doc->SetAttribute(tag, AttrLength, formulaLength);
|
|
|
|
doc->SetAttribute(tag, AttrFirstPoint, basePointId);
|
|
|
|
doc->SetAttribute(tag, AttrSecondPoint, secondPointId);
|
|
|
|
}
|
|
|
|
|
2015-02-06 18:43:31 +01:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
void VToolAlongLine::ReadToolAttributes(const QDomElement &domElement)
|
|
|
|
{
|
|
|
|
typeLine = doc->GetParametrString(domElement, AttrTypeLine, TypeLineLine);
|
|
|
|
lineColor = doc->GetParametrString(domElement, AttrLineColor, ColorBlack);
|
|
|
|
formulaLength = doc->GetParametrString(domElement, AttrLength, "");
|
|
|
|
basePointId = doc->GetParametrUInt(domElement, AttrFirstPoint, NULL_ID_STR);
|
|
|
|
secondPointId = doc->GetParametrUInt(domElement, AttrSecondPoint, NULL_ID_STR);
|
|
|
|
}
|
|
|
|
|
2014-08-30 12:41:21 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2015-02-03 11:17:04 +01:00
|
|
|
quint32 VToolAlongLine::GetSecondPointId() const
|
2014-08-30 12:41:21 +02:00
|
|
|
{
|
|
|
|
return secondPointId;
|
|
|
|
}
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2015-02-03 11:17:04 +01:00
|
|
|
void VToolAlongLine::SetSecondPointId(const quint32 &value)
|
2014-08-30 12:41:21 +02:00
|
|
|
{
|
2014-09-01 16:47:44 +02:00
|
|
|
if (value != NULL_ID)
|
|
|
|
{
|
|
|
|
secondPointId = value;
|
2014-08-30 12:41:21 +02:00
|
|
|
|
2014-09-01 16:47:44 +02:00
|
|
|
QSharedPointer<VGObject> obj = VAbstractTool::data.GetGObject(id);
|
|
|
|
SaveOption(obj);
|
|
|
|
}
|
2014-08-30 12:41:21 +02:00
|
|
|
}
|
|
|
|
|
2014-09-03 15:52:16 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
void VToolAlongLine::ShowVisualization(bool show)
|
|
|
|
{
|
|
|
|
if (show)
|
|
|
|
{
|
|
|
|
if (vis == nullptr)
|
|
|
|
{
|
|
|
|
VisToolAlongLine *visual = new VisToolAlongLine(getData());
|
|
|
|
VMainGraphicsScene *scene = qApp->getCurrentScene();
|
|
|
|
connect(scene, &VMainGraphicsScene::NewFactor, visual, &Visualization::SetFactor);
|
|
|
|
scene->addItem(visual);
|
|
|
|
|
|
|
|
visual->setPoint1Id(basePointId);
|
|
|
|
visual->setPoint2Id(secondPointId);
|
2014-09-20 17:00:29 +02:00
|
|
|
visual->setLength(qApp->FormulaToUser(formulaLength));
|
2015-01-29 16:47:02 +01:00
|
|
|
visual->setLineStyle(VAbstractTool::LineStyleToPenStyle(typeLine));
|
2014-09-03 15:52:16 +02:00
|
|
|
visual->RefreshGeometry();
|
|
|
|
vis = visual;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
VisToolAlongLine * visual = qobject_cast<VisToolAlongLine *>(vis);
|
|
|
|
if (visual != nullptr)
|
|
|
|
{
|
|
|
|
visual->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
delete vis;
|
|
|
|
vis = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief setDialog set dialog when user want change tool option.
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void VToolAlongLine::setDialog()
|
|
|
|
{
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialog != nullptr);
|
2014-02-06 14:57:23 +01:00
|
|
|
DialogAlongLine *dialogTool = qobject_cast<DialogAlongLine*>(dialog);
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialogTool != nullptr);
|
2014-08-21 14:44:40 +02:00
|
|
|
const QSharedPointer<VPointF> p = VAbstractTool::data.GeometricObject<VPointF>(id);
|
2015-02-03 11:17:04 +01:00
|
|
|
dialogTool->SetTypeLine(typeLine);
|
2015-02-06 18:43:31 +01:00
|
|
|
dialogTool->SetLineColor(lineColor);
|
2015-02-03 11:17:04 +01:00
|
|
|
dialogTool->SetFormula(formulaLength);
|
|
|
|
dialogTool->SetFirstPointId(basePointId);
|
|
|
|
dialogTool->SetSecondPointId(secondPointId);
|
|
|
|
dialogTool->SetPointName(p->name());
|
2013-08-13 18:48:36 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief Create help create tool form GUI.
|
|
|
|
* @param dialog dialog options.
|
|
|
|
* @param scene pointer to scene.
|
|
|
|
* @param doc dom document container.
|
|
|
|
* @param data container with variables.
|
|
|
|
*/
|
2014-06-08 11:14:16 +02:00
|
|
|
VToolAlongLine* VToolAlongLine::Create(DialogTool *dialog, VMainGraphicsScene *scene, VPattern *doc, VContainer *data)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialog != nullptr);
|
2014-02-06 14:57:23 +01:00
|
|
|
DialogAlongLine *dialogTool = qobject_cast<DialogAlongLine*>(dialog);
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(dialogTool != nullptr);
|
2015-02-03 11:17:04 +01:00
|
|
|
QString formula = dialogTool->GetFormula();
|
|
|
|
const quint32 firstPointId = dialogTool->GetFirstPointId();
|
|
|
|
const quint32 secondPointId = dialogTool->GetSecondPointId();
|
|
|
|
const QString typeLine = dialogTool->GetTypeLine();
|
2015-02-07 12:17:31 +01:00
|
|
|
const QString lineColor = dialogTool->GetLineColor();
|
2014-05-30 13:50:41 +02:00
|
|
|
const QString pointName = dialogTool->getPointName();
|
2014-06-08 11:14:16 +02:00
|
|
|
VToolAlongLine *point=nullptr;
|
2015-02-07 12:17:31 +01:00
|
|
|
point = Create(0, pointName, typeLine, lineColor, formula, firstPointId, secondPointId, 5, 10, scene, doc, data,
|
|
|
|
Document::FullParse, Source::FromGui);
|
2014-06-08 11:14:16 +02:00
|
|
|
if (point != nullptr)
|
|
|
|
{
|
|
|
|
point->dialog=dialogTool;
|
|
|
|
}
|
|
|
|
return point;
|
2013-08-13 18:48:36 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-13 19:02:41 +02:00
|
|
|
/**
|
|
|
|
* @brief Create help create tool.
|
|
|
|
* @param _id tool id, 0 if tool doesn't exist yet.
|
|
|
|
* @param pointName point name. point name.
|
|
|
|
* @param typeLine line type.
|
|
|
|
* @param formula string with length formula.
|
|
|
|
* @param firstPointId id first point of line.
|
|
|
|
* @param secondPointId id second point of line.
|
|
|
|
* @param mx label bias x axis.
|
|
|
|
* @param my label bias y axis.
|
|
|
|
* @param scene pointer to scene.
|
|
|
|
* @param doc dom document container.
|
|
|
|
* @param data container with variables.
|
|
|
|
* @param parse parser file mode.
|
|
|
|
* @param typeCreation way we create this tool.
|
|
|
|
*/
|
|
|
|
VToolAlongLine* VToolAlongLine::Create(const quint32 _id, const QString &pointName, const QString &typeLine,
|
2015-02-07 12:17:31 +01:00
|
|
|
const QString &lineColor, QString &formula, const quint32 &firstPointId,
|
|
|
|
const quint32 &secondPointId, const qreal &mx, const qreal &my,
|
|
|
|
VMainGraphicsScene *scene, VPattern *doc, VContainer *data,
|
|
|
|
const Document &parse, const Source &typeCreation)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2014-08-21 14:44:40 +02:00
|
|
|
const QSharedPointer<VPointF> firstPoint = data->GeometricObject<VPointF>(firstPointId);
|
|
|
|
const QSharedPointer<VPointF> secondPoint = data->GeometricObject<VPointF>(secondPointId);
|
2013-12-29 17:48:57 +01:00
|
|
|
QLineF line = QLineF(firstPoint->toQPointF(), secondPoint->toQPointF());
|
2014-05-21 10:51:16 +02:00
|
|
|
|
2014-07-29 14:19:11 +02:00
|
|
|
line.setLength(qApp->toPixel(CheckFormula(_id, formula, data)));
|
2014-05-21 10:51:16 +02:00
|
|
|
|
|
|
|
quint32 id = _id;
|
2014-06-12 09:22:29 +02:00
|
|
|
if (typeCreation == Source::FromGui)
|
2014-05-21 10:51:16 +02:00
|
|
|
{
|
2014-07-25 13:53:39 +02:00
|
|
|
id = data->AddGObject( new VPointF(line.p2(), pointName, mx, my));
|
2014-05-21 10:51:16 +02:00
|
|
|
data->AddLine(firstPointId, id);
|
|
|
|
data->AddLine(id, secondPointId);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-07-25 13:53:39 +02:00
|
|
|
data->UpdateGObject(id, new VPointF(line.p2(), pointName, mx, my));
|
2014-05-21 10:51:16 +02:00
|
|
|
data->AddLine(firstPointId, id);
|
|
|
|
data->AddLine(id, secondPointId);
|
|
|
|
if (parse != Document::FullParse)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2014-05-21 10:51:16 +02:00
|
|
|
doc->UpdateToolData(id, data);
|
2013-08-13 18:48:36 +02:00
|
|
|
}
|
|
|
|
}
|
2014-08-26 20:31:28 +02:00
|
|
|
VDrawTool::AddRecord(id, Tool::AlongLine, doc);
|
2014-05-21 10:51:16 +02:00
|
|
|
if (parse == Document::FullParse)
|
|
|
|
{
|
2015-02-07 12:17:31 +01:00
|
|
|
VToolAlongLine *point = new VToolAlongLine(doc, data, id, formula, firstPointId, secondPointId, typeLine,
|
|
|
|
lineColor, typeCreation);
|
2014-05-21 10:51:16 +02:00
|
|
|
scene->addItem(point);
|
|
|
|
connect(point, &VToolAlongLine::ChoosedTool, scene, &VMainGraphicsScene::ChoosedItem);
|
|
|
|
connect(scene, &VMainGraphicsScene::NewFactor, point, &VToolAlongLine::SetFactor);
|
2014-06-24 10:23:39 +02:00
|
|
|
connect(scene, &VMainGraphicsScene::DisableItem, point, &VToolAlongLine::Disable);
|
2015-03-19 12:13:13 +01:00
|
|
|
connect(scene, &VMainGraphicsScene::EnableToolMove, point, &VToolAlongLine::EnableToolMove);
|
2014-05-21 10:51:16 +02:00
|
|
|
doc->AddTool(id, point);
|
|
|
|
doc->IncrementReferens(firstPointId);
|
|
|
|
doc->IncrementReferens(secondPointId);
|
2014-06-08 11:14:16 +02:00
|
|
|
return point;
|
2014-05-21 10:51:16 +02:00
|
|
|
}
|
2014-06-08 11:14:16 +02:00
|
|
|
return nullptr;
|
2013-07-28 00:18:06 +02:00
|
|
|
}
|