execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
EdgePtr addEdge(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
FacePtr addFace(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
ShellPtr addShell(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
SubShapesPtr addSubShapes(const std::shared_ptr<ModelAPI_Document>& thePart,
const ModelHighAPI_Selection& theBaseShape,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
VertexPtr addVertex(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
feature()->customAction(BuildPlugin_Wire::ADD_CONTOUR_ACTION_ID());
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
WirePtr addWire(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
//--------------------------------------------------------------------------------------
void exportToGEOM(const std::shared_ptr<ModelAPI_Document> & thePart)
{
- // TODO(spo): check that theConnector is not empty
+ // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature("ExportToGEOM");
aFeature->execute();
}
}
//--------------------------------------------------------------------------------------
-// TODO(spo): make add* as static functions of the class
-
AxisPtr addAxis(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Selection & thePoint1,
const ModelHighAPI_Selection & thePoint2)
}
//--------------------------------------------------------------------------------------
-// TODO(spo): make add* as static functions of the class
-
PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance)
}
//--------------------------------------------------------------------------------------
-// TODO(spo): make add* as static functions of the class
PointPtr addPoint(
const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Double& theX,
}
//--------------------------------------------------------------------------------------
-// TODO(spo): make add* as static functions of the class
ImportPtr addImport(
const std::shared_ptr<ModelAPI_Document> & thePart,
const std::string & theFilePath)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theMainObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
ExtrusionPtr addExtrusion(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
}
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
ExtrusionCutPtr addExtrusionCut(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
}
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
ExtrusionFusePtr addExtrusionFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
GroupPtr addGroup(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theGroupList)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
IntersectionPtr addIntersection(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
PartitionPtr addPartition(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
PipePtr addPipe(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
RemoveSubShapesPtr addRemoveSubShapes(const std::shared_ptr<ModelAPI_Document>& thePart,
const ModelHighAPI_Selection& theBase)
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
RevolutionPtr addRevolution(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
}
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
RevolutionCutPtr addRevolutionCut(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
}
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
RevolutionFusePtr addRevolutionFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
RotationPtr addRotation(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theMainObjects,
execute();
}
-// TODO(spo): make add* as static functions of the class
//==================================================================================================
TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document>& thePart,
const std::list<ModelHighAPI_Selection>& theMainObjects,
}
//--------------------------------------------------------------------------------------
-ParameterPtr addParameter(const std::shared_ptr<ModelAPI_Document> & theParameter,
+ParameterPtr addParameter(const std::shared_ptr<ModelAPI_Document> & thePart,
const std::string & theName,
const std::string & theExpression,
const std::string & theComment)
{
- // TODO(spo): check that theParameter is not empty
- std::shared_ptr<ModelAPI_Feature> aFeature = theParameter->addFeature(ParametersAPI_Parameter::ID());
+ // TODO(spo): check that thePart is not empty
+ std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(ParametersAPI_Parameter::ID());
return ParameterPtr(new ParametersAPI_Parameter(aFeature, theName, theExpression, theComment));
}
SKETCHAPI_EXPORT
void setExternal(const ModelHighAPI_Selection & theExternal);
- // TODO(spo): addIntersection
-
/// Add point
SKETCHAPI_EXPORT
std::shared_ptr<SketchAPI_Point> addPoint(