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
{
GEOMAPI_EXPORT
GeomAPI_Shape();
- /// 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
-/// adeed to the index in the packed map to signalize that the vertex of edge is seleted
+/// 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;
}
TDF_LabelMap& Model_AttributeSelection::scope()
{
if (myScope.IsEmpty()) { // create a new scope if not yet done
- // gets all featueres with named shapes that are bofore this feature label (before in history)
+ // gets all features with named shapes that are before this feature label (before in history)
DocumentPtr aMyDoc = owner()->document();
std::list<std::shared_ptr<ModelAPI_Feature> > allFeatures = aMyDoc->allFeatures();
std::list<std::shared_ptr<ModelAPI_Feature> >::iterator aFIter = allFeatures.begin();
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++;
}
aName<<"f";
else if (theOrientation == -1)
aName<<"r";
- } else { // make a compisite name from all sub-elements indexes: "1_2_3_4"
+ } else { // make a composite name from all sub-elements indexes: "1_2_3_4"
TColStd_MapIteratorOfPackedMapOfInteger aRef(theRefs->GetMap());
for(; aRef.More(); aRef.Next()) {
aName<<"-"<<aRef.Key();
}
return true; // nothing to do, referencing just by name
}
- // store the shape (in case part is not loaded it should be usefull
+ // store the shape (in case part is not loaded it should be useful
TopoDS_Shape aShape;
std::string aName = theContext->data()->name();
if (!theSubShape.get() || theSubShape->isNull()) {// the whole part shape is selected
/// \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 NewGeom
/// 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);
/// Removes the last element in the list
MODEL_EXPORT virtual void removeLast();
- /// Returns the number ofselection attributes in the list
+ /// Returns the number of selection attributes in the list
MODEL_EXPORT virtual int size();
/// The type of all elements selection
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) {
const std::list<std::shared_ptr<ModelAPI_Result> >& aResList = anIter->results();
std::list<std::shared_ptr<ModelAPI_Result> >::const_iterator aRes = aResList.begin();
std::shared_ptr<ModelAPI_CompositeFeature> myMain;
/// The currently iterated sub-object of root document
std::shared_ptr<ModelAPI_Feature> mySub;
- /// If this is true, this iteration must be breaked immideately
+ /// If this is true, this iteration must be breaked immediately
bool myBreaked;
/// If this flag is true, the virtual iteration is performed, unbreackable
bool myIsVirtual;
/// \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;
/// Returns a textual string of the selection
/// \param theDefaultValue a value, which is used if the naming name can not be obtained
virtual std::string namingName(const std::string& theDefaultValue = "") = 0;
-
+
/// Returns an id of the selection
virtual int Id() = 0;
/// Selects sub-shape by the textual Name
virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName) = 0;
- /// Returns true if recomute of selection become impossible
+ /// Returns true if recompute of selection become impossible
virtual bool isInvalid() = 0;
/// To virtually destroy the fields of successors
/// \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 append(const ResultPtr& theContext,
const GeomShapePtr& theSubShape,
const bool theTemporarily = false) = 0;
const int theIndex);
/// removes the result from the feature
MODELAPI_EXPORT void removeResult(const std::shared_ptr<ModelAPI_Result>& theResult);
- /// removes all results starting from the gived index (zero-based)
+ /// removes all results starting from the given index (zero-based)
/// \param theSinceIndex - index of the deleted result and all after also will be deleted
/// \param theFlush - if it is false, REDISPLAY message is not flushed
MODELAPI_EXPORT void removeResults(const int theSinceIndex, const bool theFlush = true);