def getKind(self):
return ExportFeature.ID()
- ## This feature is action: has no property pannel and executes immideately.
+ ## This feature is action: has no property pannel and executes immediately.
def isAction(self):
return True
* One per application, initialized on start. Listeners must register in this loop
* to get events, called by senders. Sending of events is very fast (just adding to container).
* Performing of events is processed in separated thread, so, sender takes
- * control back immideately.
+ * control back immediately.
*/
class Events_Loop
{
*
* Locates the selected placement_attractable_object (face, edge, vertex) of the solid into
* the selected placement_base_object. Faces must be planar, edges must be linear.
- * Orientation of the placed solid depends on the underlied planes of both faces.
+ * Orientation of the placed solid depends on the underlying planes of both faces.
*/
class FeaturesPlugin_Placement : public ModelAPI_Feature
{
/// geometry and no sub-shapes.
GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Shape> emptyCopied() const;
- /// Returns true if the underlied shape is null
+ /// Returns true if the underlying shape is null
GEOMAPI_EXPORT
bool isNull() const;
class GEOMALGOAPI_EXPORT GeomAlgoAPI_CompoundBuilder
{
public:
- /// Creates compund of the given shapes
+ /// Creates compound of the given shapes
/// \param theShapes a list of shapes
static std::shared_ptr<GeomAPI_Shape> compound(
std::list<std::shared_ptr<GeomAPI_Shape> > theShapes);
#ifdef DEB_NAMING
#include <BRepTools.hxx>
#endif
-/// added to the index in the packed map to signalize that the vertex of edge is selected
+/// Added to the index in the packed map to signalize that the vertex of edge is selected
/// (multiplied by the index of the edge)
static const int kSTART_VERTEX_DELTA = 1000000;
// identifier that there is simple reference: selection equals to context
if (aPart.get() && aPart->data() == aResult->data()) {
ResultPtr aPartResult = std::dynamic_pointer_cast<ModelAPI_Result>(aPart);
FeaturePtr anOwnerFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(owner());
- // check that this result is not this-feature result (it is forbidden t oselect itself)
+ // check that this result is not this-feature result (it is forbidden to select itself)
if (anOwnerFeature.get() && anOwnerFeature->firstResult() != aPartResult) {
return aPartResult;
}
aCompositeOwnerOwner = ModelAPI_Tools::compositeOwner(aCompositeOwner);
}
}
- // for group Scope is not limitet: this is always up to date objects
+ // for group Scope is not limited: this is always up to date objects
bool isGroup = aFeature.get() && aFeature->getKind() == "Group";
for(; aFIter != allFeatures.end(); aFIter++) {
if (*aFIter == owner()) { // the left features are created later (except subs of composite)
if (allCurves.IsBound(aCurve)) {
aFound++;
int anOrient = allCurves.Find(aCurve);
- if (anOrient != 0) { // extra comparision score is orientation
+ if (anOrient != 0) { // extra comparison score is orientation
if (edgeOrientation(aFace, anEdge) == anOrient)
aSameOrientation++;
}
/// \param theContext object where the sub-shape was selected
/// \param theSubShape selected sub-shape (if null, the whole context is selected)
/// \param theTemporarily if it is true, do not store and name the added in the data framework
- /// (used to remove immideately, without the following updates)
+ /// (used to remove immediately, without the following updates)
MODEL_EXPORT virtual void setValue(
const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
const bool theTemporarily = false);
/// Sets the feature object
MODEL_EXPORT virtual void setObject(const std::shared_ptr<ModelAPI_Object>& theObject);
- /// Updates the underlied selection due to the changes in the referenced objects
+ /// Updates the underlying selection due to the changes in the referenced objects
/// \returns false if update is failed
MODEL_EXPORT virtual bool update();
/// Returns a textual string of the selection
/// \param theDefaultValue a name, which is returned if the naming name can not be obtained
MODEL_EXPORT virtual std::string namingName(const std::string& theDefaultValue = "");
-
+
/// Returns an Id of the selection
/// NOTE: This method has been added for temporary export of groups towards old GEOM
/// It should then be removed when a direct use of objects from SHAPER
/// will be possible from SMESH module of SALOME.
MODEL_EXPORT virtual int Id();
- /// Selects (i.e. creates Naming data structure) of sub-shape specifed by textual name
+ /// Selects (i.e. creates Naming data structure) of sub-shape specified by textual name
MODEL_EXPORT virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName);
/// Returns true if attribute was initialized by some value
MODEL_EXPORT virtual bool isInitialized();
- /// Returns true if recomute of selection become impossible
+ /// Returns true if recompute of selection become impossible
MODEL_EXPORT virtual bool isInvalid();
/// \param theContext the result - owner of the selection
/// \param theSubShape selected shape
/// \param theUpdate flag that shows that it must be just update, theShape is null
- /// \returns true if eveything is selected correctly
+ /// \returns true if everything is selected correctly
virtual bool selectPart(
const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
const bool theUpdate = false);
/// \param theContext object where the sub-shape was selected
/// \param theSubShape selected sub-shape (if null, the whole context is selected)
/// \param theTemporarily if it is true, do not store and name the added in the data framework
- /// (used to remove immideately, without the following updates)
+ /// (used to remove immediately, without the following updates)
MODEL_EXPORT virtual void append(
const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
const bool theTemporarily = false);
/// \param theIndices a list of indices of elements to be removed
MODEL_EXPORT virtual void remove(const std::set<int>& theIndices);
- /// Returns the number ofselection attributes in the list
+ /// Returns the number of selection attributes in the list
MODEL_EXPORT virtual int size();
/// Returns true if the object with the shape are in list
myRefsToMe.erase(theAttr);
- // remove concealment immideately: on deselection it must be posible to reselect in GUI the same
+ // remove concealment immediately: on deselection it must be posible to reselect in GUI the same
FeaturePtr aFeatureOwner = std::dynamic_pointer_cast<ModelAPI_Feature>(theAttr->owner());
if (aFeatureOwner.get() &&
ModelAPI_Session::get()->validators()->isConcealed(aFeatureOwner->getKind(), theAttr->id())) {
ModelAPI_EventCreator::get()->sendUpdated(anIter, aRedispEvent /*, false*/);
aWasChanged = true;
}
- // update for everyone the concealment flag immideately: on edit feature in the midle of history
+ // update for everyone the concealment flag immediately: on edit feature in the midle of history
if (aWasChanged) {
std::list<ResultPtr> aResults;
ModelAPI_Tools::allResults(anIter, aResults);
/// \param theContext object where the sub-shape was selected
/// \param theSubShape selected sub-shape (if null, the whole context is selected)
/// \param theTemporarily if it is true, do not store and name the added in the data framework
- /// (used to remove immideately, without the following updates)
+ /// (used to remove immediately, without the following updates)
virtual void setValue(
const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
const bool theTemporarily = false) = 0;
/// Returns the context of the selection (the whole shape owner)
virtual ResultPtr context() = 0;
- /// Updates the underlied selection due to the changes in the referenced objects
+ /// Updates the underlying selection due to the changes in the referenced objects
/// \returns false if update is failed
virtual bool update() = 0;