const double theSemiAngle,
const double theRadius);
- /// Creating of cone by location of reference circle, axis, semi-angle and radii of boundary circles
+ /// Creating of cone by location of reference circle, axis, semi-angle and
+ /// radii of boundary circles
GEOMAPI_EXPORT GeomAPI_Cone(const std::shared_ptr<GeomAPI_Pnt>& theLocation,
const std::shared_ptr<GeomAPI_Dir>& theAxis,
const double theSemiAngle,
if (aFeature.get() && !aFeature->isDisabled() && aFeature->isStable()) {
if (ModelAPI_Session::get()->validators()->isConcealed(
aFeature->getKind(), (*aRefsIter)->id())) {
- std::shared_ptr<ModelAPI_Result> aRes = std::dynamic_pointer_cast<ModelAPI_Result>(myObject);
+ std::shared_ptr<ModelAPI_Result> aRes =
+ std::dynamic_pointer_cast<ModelAPI_Result>(myObject);
if (aRes.get()) {
aRes->setIsConcealed(true); // set concealed
return;
const std::list<ResultPtr>& aResults = aFeature->results();
std::list<std::shared_ptr<ModelAPI_Result> >::const_iterator aRIter = aResults.cbegin();
for(; aRIter != aResults.cend(); aRIter++) {
- std::shared_ptr<Model_Data> aResData = std::dynamic_pointer_cast<Model_Data>((*aRIter)->data());
+ std::shared_ptr<Model_Data> aResData =
+ std::dynamic_pointer_cast<Model_Data>((*aRIter)->data());
if (aResData->label().Father().IsEqual(aSubLab.ChangeValue())) {
aCurrentResult = *aRIter;
break;
virtual QVariant data(int theColumn, int theRole) const { return QVariant(); }
/// Returns properties flag of the item
- virtual Qt::ItemFlags flags(int theColumn) const { return Qt::ItemIsSelectable | Qt::ItemIsEnabled; }
+ virtual Qt::ItemFlags flags(int theColumn) const {
+ return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
+ }
/// Returns parent node of the current node
ModuleBase_ITreeNode* parent() const { return myParent; }
/// Process creation of objects.
/// \param theObjects a list of created objects
/// \return a list of nodes which corresponds to the created objects
- virtual QTreeNodesList objectCreated(const QObjectPtrList& theObjects) { return QTreeNodesList(); }
+ virtual QTreeNodesList objectCreated(const QObjectPtrList& theObjects) {
+ return QTreeNodesList();
+ }
/// Process deletion of objects.
/// \param theDoc a document where objects were deleted
return aResult;
}
-QTreeNodesList PartSet_ObjectNode::objectsDeleted(const DocumentPtr& theDoc, const QString& theGroup)
+QTreeNodesList PartSet_ObjectNode::objectsDeleted(
+ const DocumentPtr& theDoc, const QString& theGroup)
{
QTreeNodesList aResult;
ResultBodyPtr aCompRes = std::dynamic_pointer_cast<ModelAPI_ResultBody>(myObject);
// return aResult;
//}
//
-//QTreeNodesList PartSet_CompsolidNode::objectsDeleted(const DocumentPtr& theDoc, const QString& theGroup)
+//QTreeNodesList PartSet_CompsolidNode::objectsDeleted(
+// const DocumentPtr& theDoc, const QString& theGroup)
//{
// QTreeNodesList aResult;
// ResultCompSolidPtr aCompRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(myObject);