Typo and whitespace fixes by Kunda

http://www.salome-platform.org/forum/forum_9/454200149#834683007
This commit is contained in:
eap 2018-10-15 15:10:39 +03:00
parent e1f4a245c6
commit c8522ecee0
3 changed files with 33 additions and 33 deletions

View File

@ -1205,7 +1205,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather( GEOM::GEOM_Object_ptr
//================================================================ //================================================================
void GEOMBase_Helper::addSubshapesToStudy() void GEOMBase_Helper::addSubshapesToStudy()
{ {
//Impemented in Dialogs, called from Accept method //Implemented in Dialogs, called from Accept method
} }
//================================================================ //================================================================
@ -1214,7 +1214,7 @@ void GEOMBase_Helper::addSubshapesToStudy()
//================================================================ //================================================================
QList<GEOM::GeomObjPtr> GEOMBase_Helper::getSourceObjects() QList<GEOM::GeomObjPtr> GEOMBase_Helper::getSourceObjects()
{ {
//Impemented in Dialogs, called from Accept method //Implemented in Dialogs, called from Accept method
QList<GEOM::GeomObjPtr> res; QList<GEOM::GeomObjPtr> res;
return res; return res;
} }

View File

@ -78,69 +78,69 @@ namespace
* GetShape() * GetShape()
*/ */
//============================================================================= //=============================================================================
TopoDS_Shape GetShape(const Handle(Standard_Transient) &theEnti, TopoDS_Shape GetShape(const Handle(Standard_Transient) &theEnti,
const Handle(Transfer_TransientProcess) &theTP) const Handle(Transfer_TransientProcess) &theTP)
{ {
TopoDS_Shape aResult; TopoDS_Shape aResult;
Handle(Transfer_Binder) aBinder = theTP->Find(theEnti); Handle(Transfer_Binder) aBinder = theTP->Find(theEnti);
if (aBinder.IsNull()) { if (aBinder.IsNull()) {
return aResult; return aResult;
} }
aResult = TransferBRep::ShapeResult(aBinder); aResult = TransferBRep::ShapeResult(aBinder);
return aResult; return aResult;
} }
//============================================================================= //=============================================================================
/*! /*!
* GetLabel() * GetLabel()
*/ */
//============================================================================= //=============================================================================
TDF_Label GetLabel(const Handle(Standard_Transient) &theEnti, TDF_Label GetLabel(const Handle(Standard_Transient) &theEnti,
const TDF_Label &theShapeLabel, const TDF_Label &theShapeLabel,
const TopoDS_Shape &aShape) const TopoDS_Shape &aShape)
{ {
TDF_Label aResult; TDF_Label aResult;
if (theEnti->IsKind if (theEnti->IsKind
(STANDARD_TYPE(StepGeom_GeometricRepresentationItem))) { (STANDARD_TYPE(StepGeom_GeometricRepresentationItem))) {
// check all named shapes using iterator // check all named shapes using iterator
TDF_ChildIDIterator anIt TDF_ChildIDIterator anIt
(theShapeLabel, TDataStd_Name::GetID(), Standard_True); (theShapeLabel, TDataStd_Name::GetID(), Standard_True);
for (; anIt.More(); anIt.Next()) { for (; anIt.More(); anIt.Next()) {
Handle(TDataStd_Name) nameAttr = Handle(TDataStd_Name) nameAttr =
Handle(TDataStd_Name)::DownCast(anIt.Value()); Handle(TDataStd_Name)::DownCast(anIt.Value());
if (nameAttr.IsNull()) { if (nameAttr.IsNull()) {
continue; continue;
} }
TDF_Label aLab = nameAttr->Label(); TDF_Label aLab = nameAttr->Label();
Handle(TNaming_NamedShape) shAttr; Handle(TNaming_NamedShape) shAttr;
if (aLab.FindAttribute(TNaming_NamedShape::GetID(), shAttr) && if (aLab.FindAttribute(TNaming_NamedShape::GetID(), shAttr) &&
shAttr->Get().IsEqual(aShape)) { shAttr->Get().IsEqual(aShape)) {
aResult = aLab; aResult = aLab;
} }
} }
} }
// create label and set shape // create label and set shape
if (aResult.IsNull()) { if (aResult.IsNull()) {
TDF_TagSource aTag; TDF_TagSource aTag;
aResult = aTag.NewChild(theShapeLabel); aResult = aTag.NewChild(theShapeLabel);
TNaming_Builder tnBuild (aResult); TNaming_Builder tnBuild (aResult);
tnBuild.Generated(aShape); tnBuild.Generated(aShape);
} }
return aResult; return aResult;
} }
@ -235,7 +235,7 @@ namespace
} }
} }
// Set the result shape orienation. // Set the result shape orientation.
aResult.Orientation(theShape.Orientation()); aResult.Orientation(theShape.Orientation());
theMapModified.Bind(theShape, aResult); theMapModified.Bind(theShape, aResult);
} else { } else {
@ -323,7 +323,7 @@ namespace
* StoreName() * StoreName()
*/ */
//============================================================================= //=============================================================================
void StoreName(const Handle(Standard_Transient) &theEnti, void StoreName(const Handle(Standard_Transient) &theEnti,
const TopTools_IndexedMapOfShape &theIndices, const TopTools_IndexedMapOfShape &theIndices,
const Handle(XSControl_WorkSession) &theWS, const Handle(XSControl_WorkSession) &theWS,
@ -332,18 +332,18 @@ namespace
TopTools_DataMapOfShapeShape &theMapShapeAssembly) TopTools_DataMapOfShapeShape &theMapShapeAssembly)
{ {
Handle(TCollection_HAsciiString) aName; Handle(TCollection_HAsciiString) aName;
if (theEnti->IsKind(STANDARD_TYPE(StepShape_TopologicalRepresentationItem)) || if (theEnti->IsKind(STANDARD_TYPE(StepShape_TopologicalRepresentationItem)) ||
theEnti->IsKind(STANDARD_TYPE(StepGeom_GeometricRepresentationItem))) { theEnti->IsKind(STANDARD_TYPE(StepGeom_GeometricRepresentationItem))) {
aName = Handle(StepRepr_RepresentationItem)::DownCast(theEnti)->Name(); aName = Handle(StepRepr_RepresentationItem)::DownCast(theEnti)->Name();
} else if (theEnti->IsKind(STANDARD_TYPE(StepRepr_NextAssemblyUsageOccurrence))) { } else if (theEnti->IsKind(STANDARD_TYPE(StepRepr_NextAssemblyUsageOccurrence))) {
Handle(StepRepr_NextAssemblyUsageOccurrence) aNAUO = Handle(StepRepr_NextAssemblyUsageOccurrence) aNAUO =
Handle(StepRepr_NextAssemblyUsageOccurrence)::DownCast(theEnti); Handle(StepRepr_NextAssemblyUsageOccurrence)::DownCast(theEnti);
Interface_EntityIterator aSubs = theWS->Graph().Sharings(aNAUO); Interface_EntityIterator aSubs = theWS->Graph().Sharings(aNAUO);
for (aSubs.Start(); aSubs.More(); aSubs.Next()) { for (aSubs.Start(); aSubs.More(); aSubs.Next()) {
Handle(StepRepr_ProductDefinitionShape) aPDS = Handle(StepRepr_ProductDefinitionShape) aPDS =
Handle(StepRepr_ProductDefinitionShape)::DownCast(aSubs.Value()); Handle(StepRepr_ProductDefinitionShape)::DownCast(aSubs.Value());
if(aPDS.IsNull()) { if(aPDS.IsNull()) {
@ -368,13 +368,13 @@ namespace
} else { } else {
Handle(StepBasic_ProductDefinition) PD = Handle(StepBasic_ProductDefinition) PD =
Handle(StepBasic_ProductDefinition)::DownCast(theEnti); Handle(StepBasic_ProductDefinition)::DownCast(theEnti);
if (PD.IsNull() == Standard_False) { if (PD.IsNull() == Standard_False) {
Handle(StepBasic_Product) Prod = PD->Formation()->OfProduct(); Handle(StepBasic_Product) Prod = PD->Formation()->OfProduct();
aName = Prod->Name(); aName = Prod->Name();
} }
} }
bool isValidName = false; bool isValidName = false;
if (aName.IsNull() == Standard_False) { if (aName.IsNull() == Standard_False) {
@ -565,7 +565,7 @@ namespace
result = "M"; result = "M";
else else
error = "The file contains not supported units"; error = "The file contains not supported units";
// TODO (for other units) // TODO (for other units)
// else // else
// result = "??" // result = "??"

View File

@ -48,12 +48,12 @@ class ShHealOper_FillHoles : public ShHealOper_Tool
Standard_EXPORT ShHealOper_FillHoles (); Standard_EXPORT ShHealOper_FillHoles ();
// Empty constructor initializes class by default parameters. // Empty constructor initializes class by default parameters.
Standard_EXPORT ShHealOper_FillHoles (const TopoDS_Shape& theShape); Standard_EXPORT ShHealOper_FillHoles (const TopoDS_Shape& theShape);
Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape); Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape);
//Method for initialization by whole shape. //Method for initialization by whole shape.
Standard_EXPORT void InitParameters(Standard_Integer theDegree = 3,//3(2) Standard_EXPORT void InitParameters(Standard_Integer theDegree = 3,//3(2)
Standard_Integer theNbPtsOnCur =5,//3, Standard_Integer theNbPtsOnCur =5,//3,
Standard_Integer theNbIter = 12,//3 Standard_Integer theNbIter = 12,//3
@ -66,15 +66,15 @@ class ShHealOper_FillHoles : public ShHealOper_Tool
//Initialization of the parameters for creation of the surface by GeomPlate. //Initialization of the parameters for creation of the surface by GeomPlate.
Standard_EXPORT Standard_Boolean Fill(); Standard_EXPORT Standard_Boolean Fill();
//Fill all holes detectected as free boundaries. //Fill all holes detected as free boundaries.
Standard_EXPORT Standard_Boolean Fill(const TopTools_SequenceOfShape& theFillShapes); Standard_EXPORT Standard_Boolean Fill(const TopTools_SequenceOfShape& theFillShapes);
//Fill hole specified by wires or edges. //Fill hole specified by wires or edges.
private: private:
// ---------- PRIVATE METHODS ---------- // ---------- PRIVATE METHODS ----------
Standard_Boolean prepareWires(const TopTools_SequenceOfShape& theFillShapes, Standard_Boolean prepareWires(const TopTools_SequenceOfShape& theFillShapes,
Handle(TopTools_HSequenceOfShape)& theSeqWires); Handle(TopTools_HSequenceOfShape)& theSeqWires);
@ -82,7 +82,7 @@ class ShHealOper_FillHoles : public ShHealOper_Tool
Handle(TColGeom2d_HArray1OfCurve)& theCurves2d, Handle(TColGeom2d_HArray1OfCurve)& theCurves2d,
Handle(TColStd_HArray1OfInteger)& theOrders, Handle(TColStd_HArray1OfInteger)& theOrders,
Handle(TColStd_HArray1OfInteger)& theSenses); Handle(TColStd_HArray1OfInteger)& theSenses);
Standard_Boolean addFace(const Handle(Geom_Surface)& theSurf, Standard_Boolean addFace(const Handle(Geom_Surface)& theSurf,
const TopoDS_Wire& theWire, const TopoDS_Wire& theWire,
const Handle(TColGeom2d_HArray1OfCurve)& theCurves2d, const Handle(TColGeom2d_HArray1OfCurve)& theCurves2d,
@ -96,7 +96,7 @@ class ShHealOper_FillHoles : public ShHealOper_Tool
// ---------- PRIVATE FIELDS ---------- // ---------- PRIVATE FIELDS ----------
TopTools_IndexedDataMapOfShapeListOfShape myEdgeShells; TopTools_IndexedDataMapOfShapeListOfShape myEdgeShells;
TopTools_IndexedDataMapOfShapeListOfShape myEdgeComps; TopTools_IndexedDataMapOfShapeListOfShape myEdgeComps;
TopTools_IndexedDataMapOfShapeListOfShape myEdgeFaces; TopTools_IndexedDataMapOfShapeListOfShape myEdgeFaces;
Standard_Integer myNbPtsOnCur; Standard_Integer myNbPtsOnCur;