// name in PartSet?
aDoc = std::dynamic_pointer_cast<Model_Document>(
ModelAPI_Session::get()->moduleDocument());
- if (theName.find(ModelAPI_Tools::toWString(aDoc->kind())) == 0) { // remove the document identifier from name if exists
+ if (theName.find(ModelAPI_Tools::toWString(aDoc->kind())) == 0) {
+ // remove the document identifier from name if exists
aSubShapeName = theName.substr(aDoc->kind().size() + 1);
aName = aSubShapeName;
std::string::size_type n = aName.find('/');
/// Reference to the parent attribute, if any (to split selection compounds in issue 1799)
Model_AttributeSelectionList* myParent;
- std::shared_ptr<Model_Document> myRestoreDocument; // current document to restore by name
+ /// current document to restore by name
+ std::shared_ptr<Model_Document> myRestoreDocument;
/// If true attribute selects geometry instead of shape.
bool myIsGeometricalSelection;
int numberOfNameInHistory(const ObjectPtr& theNameObject, const TDF_Label& theStartFrom);
//! Returns the result by name of the result (names of results must be unique, used for naming
//! selection by name.
- ResultPtr findByName(std::wstring& theName, std::wstring& theSubShapeName, bool& theUniqueContext);
+ ResultPtr findByName(std::wstring& theName,
+ std::wstring& theSubShapeName,
+ bool& theUniqueContext);
///! Returns all features of the document including the hidden features which are not in
///! history. Not very fast method, for calling once, not in big cycles.
XGUI_Workshop* aWorkshop = aConnector->workshop();
ModuleBase_Operation* anOperation = myModule->workshop()->currentOperation();
- ModuleBase_Operation* anOpAction =
- new ModuleBase_Operation(tr("Detach %1").arg(QString::fromStdWString(aLine->data()->name())), myModule);
+ ModuleBase_Operation* anOpAction = new ModuleBase_Operation(tr("Detach %1").arg(
+ QString::fromStdWString(aLine->data()->name())), myModule);
bool isSketchOp = PartSet_SketcherMgr::isSketchOperation(anOperation);
XGUI_OperationMgr* anOpMgr = aConnector->workshop()->operationMgr();
// the active nested sketch operation should be aborted unconditionally
std::shared_ptr<GeomAPI_Pnt2d> myClickedSketchPoint; /// cashed clicked point
bool myIsAutoConstraints;
- void* myLastAutoConstraint; //< Stores address of last automatic constraint. Connot be used as a pointer!!!
+ void* myLastAutoConstraint; //< Stores address of last automatic constraint.
+ //< Cannot be used as a pointer!!!
};
#endif
aPointFeature->execute();
std::wostringstream aName;
- aName << theBSpline->name() << "_" << ModelAPI_Tools::toWString(thePoles->id()) << "_" << thePoleIndex;
+ aName << theBSpline->name() << "_" << ModelAPI_Tools::toWString(thePoles->id())
+ << "_" << thePoleIndex;
aPointFeature->data()->setName(aName.str());
aPointFeature->lastResult()->data()->setName(aName.str());
(theFeature->attribute(SketchPlugin_Ellipse::CENTER_ID()))->setValue(aCP);
std::dynamic_pointer_cast<GeomDataAPI_Point2D>
(theFeature->attribute(SketchPlugin_Ellipse::FIRST_FOCUS_ID()))->setValue(aFocus);
- theFeature->real(SketchPlugin_Ellipse::MINOR_RADIUS_ID())->setValue(anEllipseEdge->minorRadius());
+ theFeature->real(SketchPlugin_Ellipse::MINOR_RADIUS_ID())->setValue(
+ anEllipseEdge->minorRadius());
}
}
else {
SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Offset, SketcherPrs_SymbolPrs)
- /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
+ /// Returns true if the constraint feature arguments are correcly
+ /// filled to build AIS presentation
/// \param theConstraint a constraint feature
/// \param thePlane a coordinate plane of current sketch
/// \return boolean result value