From: Pasukhin Dmitry Date: Fri, 15 Aug 2025 16:14:53 +0000 (+0100) Subject: Coding - Method guard iterative update (#674) X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ae4de70f9830b2a464d65c08323adbfcf8b745ff;p=occt.git Coding - Method guard iterative update (#674) - Standardizes comment formatting by replacing detailed comment blocks with a uniform "//=================================================================================================" separator - Removes redundant "function:" and "purpose:" fields that often contained minimal or no useful information - Maintains code functionality while improving visual consistency across the codebase --- diff --git a/src/ApplicationFramework/TKBin/BinMNaming/BinMNaming_NamedShapeDriver.lxx b/src/ApplicationFramework/TKBin/BinMNaming/BinMNaming_NamedShapeDriver.lxx index c145b4fc8e..b3a94a0e72 100644 --- a/src/ApplicationFramework/TKBin/BinMNaming/BinMNaming_NamedShapeDriver.lxx +++ b/src/ApplicationFramework/TKBin/BinMNaming/BinMNaming_NamedShapeDriver.lxx @@ -13,10 +13,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetWithTriangles -// purpose : -//======================================================================= +//================================================================================================= inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean isWithTriangles) { @@ -25,10 +22,7 @@ inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean myShapeSet->SetWithTriangles(isWithTriangles); } -//======================================================================= -// function : SetWithNormals -// purpose : -//======================================================================= +//================================================================================================= inline void BinMNaming_NamedShapeDriver::SetWithNormals(const Standard_Boolean isWithNormals) { diff --git a/src/ApplicationFramework/TKBinL/BinMDF/BinMDF_ADriver.lxx b/src/ApplicationFramework/TKBinL/BinMDF/BinMDF_ADriver.lxx index dbfa2bbd1e..34c2877f95 100644 --- a/src/ApplicationFramework/TKBinL/BinMDF/BinMDF_ADriver.lxx +++ b/src/ApplicationFramework/TKBinL/BinMDF/BinMDF_ADriver.lxx @@ -15,10 +15,7 @@ #include -//======================================================================= -// function : TypeName -// purpose : -//======================================================================= +//================================================================================================= inline const TCollection_AsciiString& BinMDF_ADriver::TypeName() const { diff --git a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx index 766cd8876b..b8c28275e6 100644 --- a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx +++ b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx @@ -203,20 +203,14 @@ inline Standard_Boolean BinObjMgt_Persistent::noMoreData(const Standard_Integer return myIsError; } -//======================================================================= -// function : PutBoolean -// purpose : -//======================================================================= +//================================================================================================= inline BinObjMgt_Persistent& BinObjMgt_Persistent::PutBoolean(const Standard_Boolean theValue) { return PutInteger((Standard_Integer)theValue); } -//======================================================================= -// function : GetBoolean -// purpose : -//======================================================================= +//================================================================================================= inline const BinObjMgt_Persistent& BinObjMgt_Persistent::GetBoolean( Standard_Boolean& theValue) const diff --git a/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_PatternStd.lxx b/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_PatternStd.lxx index 9ceb8659de..30e2184159 100644 --- a/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_PatternStd.lxx +++ b/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_PatternStd.lxx @@ -13,100 +13,70 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Signature -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TDataXtd_PatternStd::Signature() const { return mySignature; } -//======================================================================= -// function : Axis1 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Axis1() const { return myAxis1; } -//======================================================================= -// function : Axis2 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Axis2() const { return myAxis2; } -//======================================================================= -// function : Axis1Reversed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TDataXtd_PatternStd::Axis1Reversed() const { return myAxis1Reversed; } -//======================================================================= -// function : Axis2Reversed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TDataXtd_PatternStd::Axis2Reversed() const { return myAxis2Reversed; } -//======================================================================= -// function : Value1 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TDataStd_Real) TDataXtd_PatternStd::Value1() const { return myValue1; } -//======================================================================= -// function : Value2 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TDataStd_Real) TDataXtd_PatternStd::Value2() const { return myValue2; } -//======================================================================= -// function : NbInstances1 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TDataStd_Integer) TDataXtd_PatternStd::NbInstances1() const { return myNb1; } -//======================================================================= -// function : NbInstances2 -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TDataStd_Integer) TDataXtd_PatternStd::NbInstances2() const { return myNb2; } -//======================================================================= -// function : Mirror -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Mirror() const { diff --git a/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_Presentation.cxx b/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_Presentation.cxx index a564a36855..10e37a5d49 100644 --- a/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_Presentation.cxx +++ b/src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_Presentation.cxx @@ -261,10 +261,8 @@ Standard_Integer TDataXtd_Presentation::getOldColorNameFromNewEnum(Quantity_Name return anOld; } -//======================================================================= -// function : TDataXtd_Presentation -// purpose : Default constructor. -//======================================================================= +//================================================================================================= + TDataXtd_Presentation::TDataXtd_Presentation() : myDriverGUID("00000000-0000-0000-0000-000000000000"), myColor(Quantity_NOC_WHITE), diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_CopyShape.cxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_CopyShape.cxx index 547db59586..eaf07ee9b0 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_CopyShape.cxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_CopyShape.cxx @@ -157,10 +157,7 @@ static Handle(TopLoc_Datum3D) TranslateDatum3D(const Handle(TopLoc_Datum3D)& return TD; } -//======================================================================= -// function : Translates -// purpose : Topological Location -//======================================================================= +//================================================================================================= TopLoc_Location TNaming_CopyShape::Translate(const TopLoc_Location& L, TColStd_IndexedDataMapOfTransientTransient& aMap) diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_IteratorOnShapesSet.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_IteratorOnShapesSet.lxx index 95851524cc..93e346e0ed 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_IteratorOnShapesSet.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_IteratorOnShapesSet.lxx @@ -16,57 +16,39 @@ #include -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_IteratorOnShapesSet::TNaming_IteratorOnShapesSet() {} -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_IteratorOnShapesSet::TNaming_IteratorOnShapesSet(const TNaming_ShapesSet& S) { Init(S); } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_IteratorOnShapesSet::Init(const TNaming_ShapesSet& S) { myIt.Initialize(S.Map()); } -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_IteratorOnShapesSet::More() const { return (myIt.More()); } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_IteratorOnShapesSet::Next() { myIt.Next(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& TNaming_IteratorOnShapesSet::Value() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.lxx index 0eed7d3fe5..9b73445766 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : ID -// purpose : -//======================================================================= +//================================================================================================= inline const Standard_GUID& TNaming_NamedShape::ID() const { return GetID(); } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_Evolution TNaming_NamedShape::Evolution() const { return myEvolution; } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TNaming_NamedShape::Version() const { return myVersion; } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_NamedShape::SetVersion(const Standard_Integer v) { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NewShapeIterator.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NewShapeIterator.lxx index 7439f2baf4..fddd49bbba 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NewShapeIterator.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NewShapeIterator.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_NewShapeIterator::More() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_OldShapeIterator.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_OldShapeIterator.lxx index 7205b938aa..80d839d91e 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_OldShapeIterator.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_OldShapeIterator.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_OldShapeIterator::More() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_RefShape.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_RefShape.lxx index 77b2307801..fb7617cc04 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_RefShape.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_RefShape.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : TNaming_RefShape -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_RefShape::TNaming_RefShape() : myFirstUse(0) { } -//======================================================================= -// function : TNaming_RefShape -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_RefShape::TNaming_RefShape(const TopoDS_Shape& S) : myShape(S), @@ -35,40 +29,28 @@ inline TNaming_RefShape::TNaming_RefShape(const TopoDS_Shape& S) { } -//======================================================================= -// function : FirstUse -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_RefShape::FirstUse(const TNaming_PtrNode& pdn) { myFirstUse = pdn; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_RefShape::Shape(const TopoDS_Shape& S) { myShape = S; } -//======================================================================= -// function : FirstUse -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_PtrNode TNaming_RefShape::FirstUse() const { return myFirstUse; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& TNaming_RefShape::Shape() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_SameShapeIterator.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_SameShapeIterator.lxx index aad07211aa..6fd65997d1 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_SameShapeIterator.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_SameShapeIterator.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_SameShapeIterator::More() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_ShapesSet.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_ShapesSet.lxx index 9b65ce3a24..c46eb6bf44 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_ShapesSet.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_ShapesSet.lxx @@ -16,87 +16,60 @@ #include -//======================================================================= -// function : TNaming_ShapesSet -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_ShapesSet::TNaming_ShapesSet() {} -//======================================================================= -// function : Clear -// purpose : -//======================================================================= +//================================================================================================= inline void TNaming_ShapesSet::Clear() { myMap.Clear(); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_ShapesSet::Add(const TopoDS_Shape& S) { return myMap.Add(S); } -//======================================================================= -// function : Standard_Boolean -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_ShapesSet::Contains(const TopoDS_Shape& S) const { return myMap.Contains(S); } -//======================================================================= -// function : Standard_Boolean -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_ShapesSet::Remove(const TopoDS_Shape& S) { return myMap.Remove(S); } -//======================================================================= -// function : IsEmpty -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TNaming_ShapesSet::IsEmpty() const { return myMap.IsEmpty(); } -//======================================================================= -// function : NbShapes -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TNaming_ShapesSet::NbShapes() const { return myMap.Extent(); } -//======================================================================= -// function : ChangeMap -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_MapOfShape& TNaming_ShapesSet::ChangeMap() { return myMap; } -//======================================================================= -// function : Map -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_MapOfShape& TNaming_ShapesSet::Map() const { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_UsedShapes.lxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_UsedShapes.lxx index 8d887b1bfd..e1a28cbe24 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_UsedShapes.lxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_UsedShapes.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Map -// purpose : -//======================================================================= +//================================================================================================= inline TNaming_DataMapOfShapePtrRefShape& TNaming_UsedShapes::Map() { return myMap; } -//======================================================================= -// function : ID -// purpose : -//======================================================================= +//================================================================================================= inline const Standard_GUID& TNaming_UsedShapes::ID() const { diff --git a/src/ApplicationFramework/TKCDF/PCDM/PCDM_Reader.lxx b/src/ApplicationFramework/TKCDF/PCDM/PCDM_Reader.lxx index 5575cc0b45..9794da53e5 100644 --- a/src/ApplicationFramework/TKCDF/PCDM/PCDM_Reader.lxx +++ b/src/ApplicationFramework/TKCDF/PCDM/PCDM_Reader.lxx @@ -13,10 +13,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetStatus -// purpose : -//======================================================================= +//================================================================================================= inline PCDM_ReaderStatus PCDM_Reader::GetStatus() const { diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx index 59f0bbc649..28c2ff0c2c 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx @@ -44,10 +44,7 @@ IMPLEMENT_STANDARD_RTTIEXT(TDF_Attribute, Standard_Transient) #define TDF_DATA_COMMIT_OPTIMIZED -//======================================================================= -// function : TDF_Attribute -// purpose : Initializes fields. -//======================================================================= +//================================================================================================= TDF_Attribute::TDF_Attribute() : myLabelNode(NULL), diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_CopyLabel.lxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_CopyLabel.lxx index 84823bd7c9..2c23925eda 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_CopyLabel.lxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_CopyLabel.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TDF_CopyLabel::IsDone() const { diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx index f9df398d85..2d0d2d9572 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx @@ -51,10 +51,7 @@ void TDF_IDFilter::Keep(const Standard_GUID& anID) myIDMap.Remove(anID); } -//======================================================================= -// function : Keep -// purpose : Keeps a list of ID. -//======================================================================= +//================================================================================================= void TDF_IDFilter::Keep(const TDF_IDList& anIDList) { diff --git a/src/ApplicationFramework/TKLCAF/TDataStd/TDataStd_TreeNode.cxx b/src/ApplicationFramework/TKLCAF/TDataStd/TDataStd_TreeNode.cxx index 26339aaf75..bd6014865f 100644 --- a/src/ApplicationFramework/TKLCAF/TDataStd/TDataStd_TreeNode.cxx +++ b/src/ApplicationFramework/TKLCAF/TDataStd/TDataStd_TreeNode.cxx @@ -91,10 +91,7 @@ const Standard_GUID& TDataStd_TreeNode::ID() const return myTreeID; } -//======================================================================= -// TreeNode : TDataStd_TreeNode -// purpose : Constructor -//======================================================================= +//================================================================================================= TDataStd_TreeNode::TDataStd_TreeNode() : myFather(NULL), @@ -408,10 +405,7 @@ Handle(TDataStd_TreeNode) TDataStd_TreeNode::Previous() const return O; } -//======================================================================= -// TreeNode : First -// purpose : Returns first child -//======================================================================= +//================================================================================================= Handle(TDataStd_TreeNode) TDataStd_TreeNode::First() const { @@ -598,10 +592,7 @@ Standard_Boolean TDataStd_TreeNode::AfterUndo(const Handle(TDF_AttributeDelta)& return Standard_True; } -//======================================================================= -// TreeNode : Restore -// purpose : -//======================================================================= +//================================================================================================= void TDataStd_TreeNode::Restore(const Handle(TDF_Attribute)& other) { @@ -675,10 +666,7 @@ void TDataStd_TreeNode::References(const Handle(TDF_DataSet)& aDataSet) const } } -//======================================================================= -// TreeNode : Dump -// purpose : Dump of the TreeNode -//======================================================================= +//================================================================================================= Standard_OStream& TDataStd_TreeNode::Dump(Standard_OStream& anOS) const { diff --git a/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_ApplicationDelta.lxx b/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_ApplicationDelta.lxx index e2c587cb0a..48d30be906 100644 --- a/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_ApplicationDelta.lxx +++ b/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_ApplicationDelta.lxx @@ -13,30 +13,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetDocuments -// purpose : -//======================================================================= +//================================================================================================= inline TDocStd_SequenceOfDocument& TDocStd_ApplicationDelta::GetDocuments() { return myDocuments; } -//======================================================================= -// function : GetName -// purpose : -//======================================================================= +//================================================================================================= inline const TCollection_ExtendedString& TDocStd_ApplicationDelta::GetName() const { return myName; } -//======================================================================= -// function : SetName -// purpose : -//======================================================================= +//================================================================================================= inline void TDocStd_ApplicationDelta::SetName(const TCollection_ExtendedString& theName) { diff --git a/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_MultiTransactionManager.lxx b/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_MultiTransactionManager.lxx index e05bacbbe3..eca230a449 100644 --- a/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_MultiTransactionManager.lxx +++ b/src/ApplicationFramework/TKLCAF/TDocStd/TDocStd_MultiTransactionManager.lxx @@ -13,20 +13,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetUndoLimit -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TDocStd_MultiTransactionManager::GetUndoLimit() const { return myUndoLimit; } -//======================================================================= -// function : GetAvailableUndos -// purpose : -//======================================================================= +//================================================================================================= inline const TDocStd_SequenceOfApplicationDelta& TDocStd_MultiTransactionManager:: GetAvailableUndos() const @@ -34,10 +28,7 @@ inline const TDocStd_SequenceOfApplicationDelta& TDocStd_MultiTransactionManager return myUndos; } -//======================================================================= -// function : GetAvailableRedos -// purpose : -//======================================================================= +//================================================================================================= inline const TDocStd_SequenceOfApplicationDelta& TDocStd_MultiTransactionManager:: GetAvailableRedos() const @@ -45,30 +36,21 @@ inline const TDocStd_SequenceOfApplicationDelta& TDocStd_MultiTransactionManager return myRedos; } -//======================================================================= -// function : Documents -// purpose : -//======================================================================= +//================================================================================================= inline const TDocStd_SequenceOfDocument& TDocStd_MultiTransactionManager::Documents() const { return myDocuments; } -//======================================================================= -// function : IsNestedTransactionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TDocStd_MultiTransactionManager::IsNestedTransactionMode() const { return myIsNestedTransactionMode; } -//======================================================================= -// function : HasOpenCommand -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TDocStd_MultiTransactionManager::HasOpenCommand() const { diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_DriverTable.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_DriverTable.cxx index b1de4a972b..99ed83c06e 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_DriverTable.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_DriverTable.cxx @@ -152,10 +152,7 @@ Standard_Boolean TFunction_DriverTable::RemoveDriver(const Standard_GUID& guid return Standard_False; } -//======================================================================= -// function : Clear -// purpose : Removes all drivers -//======================================================================= +//================================================================================================= void TFunction_DriverTable::Clear() { diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Function.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Function.cxx index 17c0de9782..04ed40d681 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Function.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Function.cxx @@ -165,10 +165,7 @@ Handle(TDF_Attribute) TFunction_Function::NewEmpty() const void TFunction_Function::References(const Handle(TDF_DataSet)& /*aDataSet*/) const {} -//======================================================================= -// function : Dump -// purpose : Dump of the function -//======================================================================= +//================================================================================================= Standard_OStream& TFunction_Function::Dump(Standard_OStream& anOS) const { diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_IFunction.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_IFunction.cxx index e1606b5de1..f54e122092 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_IFunction.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_IFunction.cxx @@ -380,10 +380,7 @@ const TFunction_DoubleMapOfIntegerLabel& TFunction_IFunction::GetAllFunctions() return TFunction_Scope::Set(myLabel)->GetFunctions(); } -//======================================================================= -// function : GetLogbook -// purpose : Returns the Logbook. -//======================================================================= +//================================================================================================= Handle(TFunction_Logbook) TFunction_IFunction::GetLogbook() const { diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Scope.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Scope.cxx index 0d099c9583..b7c69746c4 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Scope.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Scope.cxx @@ -145,30 +145,21 @@ Standard_Boolean TFunction_Scope::HasFunction(const TDF_Label& L) const return myFunctions.IsBound2(L); } -//======================================================================= -// function : GetFunction -// purpose : Returns a function. -//======================================================================= +//================================================================================================= Standard_Integer TFunction_Scope::GetFunction(const TDF_Label& L) const { return myFunctions.Find2(L); } -//======================================================================= -// function : GetFunction -// purpose : Returns a function. -//======================================================================= +//================================================================================================= const TDF_Label& TFunction_Scope::GetFunction(const Standard_Integer ID) const { return myFunctions.Find1(ID); } -//======================================================================= -// function : GetLogbook -// purpose : Returns the Logbook. -//======================================================================= +//================================================================================================= Handle(TFunction_Logbook) TFunction_Scope::GetLogbook() const { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx index 27b509d7d2..be1e92ad44 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx @@ -488,10 +488,7 @@ Standard_Boolean TObj_Object::Detach(const TObj_DeletingMode theMode) return Standard_True; } -//======================================================================= -// function : Detach -// purpose : public static method -//======================================================================= +//================================================================================================= Standard_Boolean TObj_Object::Detach(const TDF_Label& theLabel, const TObj_DeletingMode theMode) { @@ -573,10 +570,7 @@ void TObj_Object::AfterRetrieval() aModel->RegisterName(GetName(), GetLabel(), GetDictionary()); } -//======================================================================= -// function : BeforeStoring -// purpose : base implementation -//======================================================================= +//================================================================================================= void TObj_Object::BeforeStoring() {} diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx index 38ffbc445b..845b3da833 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx @@ -40,10 +40,7 @@ TObj_Persistence::TObj_Persistence(const Standard_CString theType) getMapOfTypes().Bind(theType, this); } -//======================================================================= -// function : Destructor -// purpose : Unregister the type -//======================================================================= +//================================================================================================= TObj_Persistence::~TObj_Persistence() { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_TReference.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_TReference.cxx index 9a34f80577..1d77192467 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_TReference.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_TReference.cxx @@ -82,10 +82,7 @@ void TObj_TReference::Set(const Handle(TObj_Object)& theElem, const TDF_Label& t myMasterLabel = theMasterLabel; } -//======================================================================= -// function : Set -// purpose : for persistent only. -//======================================================================= +//================================================================================================= void TObj_TReference::Set(const TDF_Label& theLabel, const TDF_Label& theMasterLabel) { diff --git a/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_AISPresentation.cxx b/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_AISPresentation.cxx index 16b4cd2e14..6b450bfa38 100644 --- a/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_AISPresentation.cxx +++ b/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_AISPresentation.cxx @@ -631,10 +631,8 @@ void TPrsStd_AISPresentation::BeforeForget() } } -//======================================================================= -// function : AfterResume -// purpose : display if displayed -//======================================================================= +//================================================================================================= + void TPrsStd_AISPresentation::AfterResume() { if (IsDisplayed()) diff --git a/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_DriverTable.cxx b/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_DriverTable.cxx index e386311256..2757d856a4 100644 --- a/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_DriverTable.cxx +++ b/src/ApplicationFramework/TKVCAF/TPrsStd/TPrsStd_DriverTable.cxx @@ -120,10 +120,7 @@ Standard_Boolean TPrsStd_DriverTable::RemoveDriver(const Standard_GUID& guid) return myDrivers.UnBind(guid); } -//======================================================================= -// function : Clear -// purpose : Removes all drivers -//======================================================================= +//================================================================================================= void TPrsStd_DriverTable::Clear() { diff --git a/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx b/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx index 8a0e5a8e0b..537886426b 100644 --- a/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx +++ b/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx @@ -276,10 +276,7 @@ static TNaming_Evolution EvolutionEnum(const XmlObjMgt_DOMString& theString) return aResult; } -//======================================================================= -// function : doTranslate -// purpose : shape storage to XML -//======================================================================= +//================================================================================================= static void doTranslate(const TopoDS_Shape& theShape, XmlMNaming_Shape1& theResult, diff --git a/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.lxx b/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.lxx index 0719010cfa..1e3e899933 100644 --- a/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.lxx +++ b/src/ApplicationFramework/TKXml/XmlMNaming/XmlMNaming_NamedShapeDriver.lxx @@ -13,10 +13,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetShapesLocations -// purpose : -//======================================================================= +//================================================================================================= + inline TopTools_LocationSet& XmlMNaming_NamedShapeDriver::GetShapesLocations() { return myShapeSet.ChangeLocations(); diff --git a/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Array1.lxx b/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Array1.lxx index e717e75d84..a30fa259d4 100644 --- a/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Array1.lxx +++ b/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Array1.lxx @@ -13,40 +13,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Element -// purpose : -//======================================================================= +//================================================================================================= inline const XmlObjMgt_Element& XmlObjMgt_Array1::Element() const { return myElement; } -//======================================================================= -// function : Length -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer XmlObjMgt_Array1::Length() const { return myLast - myFirst + 1; } -//======================================================================= -// function : Lower -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer XmlObjMgt_Array1::Lower() const { return myFirst; } -//======================================================================= -// function : Upper -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer XmlObjMgt_Array1::Upper() const { diff --git a/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Persistent.lxx b/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Persistent.lxx index d277422d20..94ea0c37f9 100644 --- a/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Persistent.lxx +++ b/src/ApplicationFramework/TKXmlL/XmlObjMgt/XmlObjMgt_Persistent.lxx @@ -13,48 +13,36 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Element -// purpose : -//======================================================================= +//================================================================================================= + inline const XmlObjMgt_Element& XmlObjMgt_Persistent::Element() const { return myElement; } -//======================================================================= -// function : Element -// purpose : -//======================================================================= +//================================================================================================= + inline XmlObjMgt_Element& XmlObjMgt_Persistent::Element() { return myElement; } -//======================================================================= -// function : operator XmlObjMgt_Element -// purpose : -//======================================================================= +//================================================================================================= inline XmlObjMgt_Persistent::operator const XmlObjMgt_Element&() const { return myElement; } -//======================================================================= -// function : operator XmlObjMgt_Element -// purpose : -//======================================================================= +//================================================================================================= inline XmlObjMgt_Persistent::operator XmlObjMgt_Element&() { return myElement; } -//======================================================================= -// function : Id -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer XmlObjMgt_Persistent::Id() const { return myID; diff --git a/src/DataExchange/TKDEIGES/IGESCAFControl/IGESCAFControl_Reader.cxx b/src/DataExchange/TKDEIGES/IGESCAFControl/IGESCAFControl_Reader.cxx index ec161ad488..2abd47ec8e 100644 --- a/src/DataExchange/TKDEIGES/IGESCAFControl/IGESCAFControl_Reader.cxx +++ b/src/DataExchange/TKDEIGES/IGESCAFControl/IGESCAFControl_Reader.cxx @@ -143,10 +143,8 @@ static void AddCompositeShape(const Handle(XCAFDoc_ShapeTool)& theSTool, return; } -//======================================================================= -// function : Transfer -// purpose : basic working method -//======================================================================= +//================================================================================================= + Standard_Boolean IGESCAFControl_Reader::Transfer(const Handle(TDocStd_Document)& doc, const Message_ProgressRange& theProgress) { diff --git a/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.lxx b/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.lxx index 26206116c9..b2fee1f80e 100644 --- a/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.lxx +++ b/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.lxx @@ -11,20 +11,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetReadVisible -// purpose : -//======================================================================= +//================================================================================================= inline void IGESControl_Reader::SetReadVisible(const Standard_Boolean ReadRoot) { theReadOnlyVisible = ReadRoot; } -//======================================================================= -// function : GetReadVisible -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean IGESControl_Reader::GetReadVisible() const { diff --git a/src/DataExchange/TKDEIGES/IGESData/IGESData_DefSwitch.cxx b/src/DataExchange/TKDEIGES/IGESData/IGESData_DefSwitch.cxx index ab410d330a..380e51cae2 100644 --- a/src/DataExchange/TKDEIGES/IGESData/IGESData_DefSwitch.cxx +++ b/src/DataExchange/TKDEIGES/IGESData/IGESData_DefSwitch.cxx @@ -16,10 +16,9 @@ // DefSwitch : represente une definition, soit vide (-> valeur = 0), // soit comme rang dans une table (-> valeur > 0 ce rang), // soit comme reference (-> valeur < 0), la reference elle-meme est ailleurs -//======================================================================= -// function : IGESData_DefSwitch -// purpose : Default constructor. -//======================================================================= + +//================================================================================================= + IGESData_DefSwitch::IGESData_DefSwitch() : theval(0) { diff --git a/src/DataExchange/TKDEIGES/IGESData/IGESData_IGESEntity.cxx b/src/DataExchange/TKDEIGES/IGESData/IGESData_IGESEntity.cxx index 9d6cb400c8..06cccf2e2e 100644 --- a/src/DataExchange/TKDEIGES/IGESData/IGESData_IGESEntity.cxx +++ b/src/DataExchange/TKDEIGES/IGESData/IGESData_IGESEntity.cxx @@ -48,10 +48,8 @@ static const Standard_Integer IGESShiftUse = 8; static const Standard_Integer IGESShiftHier = 12; } // namespace -//======================================================================= -// function : IGESData_IGESEntity -// purpose : Default constructor. -//======================================================================= +//================================================================================================= + IGESData_IGESEntity::IGESData_IGESEntity() : theType(0), theForm(0), diff --git a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_AlgoContainer.lxx b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_AlgoContainer.lxx index 670840790f..8c63bc2e13 100644 --- a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_AlgoContainer.lxx +++ b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_AlgoContainer.lxx @@ -15,20 +15,14 @@ #include -//======================================================================= -// function : SetToolContainer -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_AlgoContainer::SetToolContainer(const Handle(IGESToBRep_ToolContainer)& TC) { myTC = TC; } -//======================================================================= -// function : ToolContainer -// purpose : -//======================================================================= +//================================================================================================= inline Handle(IGESToBRep_ToolContainer) IGESToBRep_AlgoContainer::ToolContainer() const { diff --git a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_CurveAndSurface.lxx b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_CurveAndSurface.lxx index 3552ca2f87..9c6b415531 100644 --- a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_CurveAndSurface.lxx +++ b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_CurveAndSurface.lxx @@ -16,220 +16,154 @@ #include #include -//======================================================================= -// function : SetEpsilon -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetEpsilon(const Standard_Real eps) { myEps = eps; } -//======================================================================= -// function : GetEpsilon -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsilon() const { return myEps; } -//======================================================================= -// function : SetEpsCoeff -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetEpsCoeff(const Standard_Real eps) { myEpsCoeff = eps; } -//======================================================================= -// function : GetEpsCoeff -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsCoeff() const { return myEpsCoeff; } -//======================================================================= -// function : GetEpsGeom -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsGeom() const { return myEpsGeom; } -//======================================================================= -// function : SetMinTol -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetMinTol(const Standard_Real mintol) { myMinTol = mintol; } -//======================================================================= -// function : SetMaxTol -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetMaxTol(const Standard_Real maxtol) { myMaxTol = maxtol; } -//======================================================================= -// function : GetMinTol -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetMinTol() const { return myMinTol; } -//======================================================================= -// function : GetMaxTol -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetMaxTol() const { return myMaxTol; } -//======================================================================= -// function : SetModeApprox -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetModeApprox(const Standard_Boolean mode) { myModeApprox = mode; } -//======================================================================= -// function : GetModeApprox -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean IGESToBRep_CurveAndSurface::GetModeApprox() const { return myModeApprox; } -//======================================================================= -// function : SetModeTransfer -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetModeTransfer(const Standard_Boolean mode) { myModeIsTopo = mode; } -//======================================================================= -// function : GetModeTransfer -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean IGESToBRep_CurveAndSurface::GetModeTransfer() const { return myModeIsTopo; } -//======================================================================= -// function : SetOptimized -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetOptimized(const Standard_Boolean optimized) { myContIsOpti = optimized; } -//======================================================================= -// function : GetOptimized -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean IGESToBRep_CurveAndSurface::GetOptimized() const { return myContIsOpti; } -//======================================================================= -// function : GetUnitFactor -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IGESToBRep_CurveAndSurface::GetUnitFactor() const { return myUnitFactor; } -//======================================================================= -// function : SetSurfaceCurve -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetSurfaceCurve(const Standard_Integer ival) { mySurfaceCurve = ival; } -//======================================================================= -// function : GetSurfaceCurve -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer IGESToBRep_CurveAndSurface::GetSurfaceCurve() const { return mySurfaceCurve; } -//======================================================================= -// function : GetModel -// purpose : -//======================================================================= +//================================================================================================= inline Handle(IGESData_IGESModel) IGESToBRep_CurveAndSurface::GetModel() const { return myModel; } -//======================================================================= -// function : SetContinuity -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetContinuity(const Standard_Integer continuity) { myContinuity = continuity; } -//======================================================================= -// function : GetContinuity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer IGESToBRep_CurveAndSurface::GetContinuity() const { return myContinuity; } -//======================================================================= -// function : SetTransferProcess -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SetTransferProcess( const Handle(Transfer_TransientProcess)& TP) @@ -237,20 +171,14 @@ inline void IGESToBRep_CurveAndSurface::SetTransferProcess( myTP = TP; } -//======================================================================= -// function : GetTransferProcess -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Transfer_TransientProcess) IGESToBRep_CurveAndSurface::GetTransferProcess() const { return myTP; } -//======================================================================= -// function : SendFail -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SendFail(const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg) @@ -258,10 +186,7 @@ inline void IGESToBRep_CurveAndSurface::SendFail(const Handle(IGESData_IGESEntit GetTransferProcess()->SendFail(start, amsg); } -//======================================================================= -// function : SendWarning -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SendWarning(const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg) @@ -269,10 +194,7 @@ inline void IGESToBRep_CurveAndSurface::SendWarning(const Handle(IGESData_IGESEn GetTransferProcess()->SendWarning(start, amsg); } -//======================================================================= -// function : SendMsg -// purpose : -//======================================================================= +//================================================================================================= inline void IGESToBRep_CurveAndSurface::SendMsg(const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg) diff --git a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_ExternFile.lxx b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_ExternFile.lxx index b74fed6f23..bf3f82a8c1 100644 --- a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_ExternFile.lxx +++ b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_ExternFile.lxx @@ -13,100 +13,70 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetWS -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetWS(const Handle(XSControl_WorkSession)& WS) { myWS = WS; } -//======================================================================= -// function : GetWS -// purpose : -//======================================================================= +//================================================================================================= inline Handle(XSControl_WorkSession) STEPCAFControl_ExternFile::GetWS() const { return myWS; } -//======================================================================= -// function : SetLoadStatus -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetLoadStatus(const IFSelect_ReturnStatus stat) { myLoadStatus = stat; } -//======================================================================= -// function : GetLoadStatus -// purpose : -//======================================================================= +//================================================================================================= inline IFSelect_ReturnStatus STEPCAFControl_ExternFile::GetLoadStatus() const { return myLoadStatus; } -//======================================================================= -// function : SetTransferStatus -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetTransferStatus(const Standard_Boolean isok) { myTransferStatus = isok; } -//======================================================================= -// function : GetTransferStatus -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean STEPCAFControl_ExternFile::GetTransferStatus() const { return myTransferStatus; } -//======================================================================= -// function : SetWriteStatus -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetWriteStatus(const IFSelect_ReturnStatus stat) { myWriteStatus = stat; } -//======================================================================= -// function : GetWriteStatus -// purpose : -//======================================================================= +//================================================================================================= inline IFSelect_ReturnStatus STEPCAFControl_ExternFile::GetWriteStatus() const { return myWriteStatus; } -//======================================================================= -// function : SetName -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetName(const Handle(TCollection_HAsciiString)& name) { myName = name; } -//======================================================================= -// function : GetName -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TCollection_HAsciiString) STEPCAFControl_ExternFile::GetName() const { @@ -114,20 +84,16 @@ inline Handle(TCollection_HAsciiString) STEPCAFControl_ExternFile::GetName() con } /* -//======================================================================= -//function : SetShape -//purpose : -//======================================================================= +//================================================================================================= + inline void STEPCAFControl_ExternFile::SetShape (const TopoDS_Shape &Shape) { myShape = Shape; } -//======================================================================= -//function : GetShape -//purpose : -//======================================================================= +//================================================================================================= + inline TopoDS_Shape STEPCAFControl_ExternFile::GetShape () const { @@ -135,20 +101,14 @@ inline TopoDS_Shape STEPCAFControl_ExternFile::GetShape () const } */ -//======================================================================= -// function : SetLabel -// purpose : -//======================================================================= +//================================================================================================= inline void STEPCAFControl_ExternFile::SetLabel(const TDF_Label& Label) { myLabel = Label; } -//======================================================================= -// function : GetLabel -// purpose : -//======================================================================= +//================================================================================================= inline TDF_Label STEPCAFControl_ExternFile::GetLabel() const { diff --git a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx index cdcc6f3d16..3caba822f6 100644 --- a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -523,10 +523,7 @@ void STEPCAFControl_Reader::prepareUnits(const Handle(StepData_StepModel)& theMo theModel->SetLocalLengthUnit(aScaleFactorMM); } -//======================================================================= -// function : Transfer -// purpose : basic working method -//======================================================================= +//================================================================================================= Standard_Boolean STEPCAFControl_Reader::Transfer(STEPControl_Reader& reader, const Standard_Integer nroot, diff --git a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_ExternRefs.cxx b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_ExternRefs.cxx index 80329d6639..79f813303e 100644 --- a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_ExternRefs.cxx +++ b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_ExternRefs.cxx @@ -840,10 +840,7 @@ Standard_Integer STEPConstruct_ExternRefs::WriteExternRefs(const Standard_Intege return myAEIAs.Length(); } -//======================================================================= -// function : addAP214ExterRef -// purpose : PTV 30.01.2003 TRJ11 -//======================================================================= +//================================================================================================= Standard_Boolean STEPConstruct_ExternRefs::addAP214ExterRef( const Handle(StepAP214_AppliedDocumentReference)& ADR, diff --git a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Tool.lxx b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Tool.lxx index 4b7cb8a3d3..f156bf7647 100644 --- a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Tool.lxx +++ b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Tool.lxx @@ -20,30 +20,21 @@ #include #include -//======================================================================= -// function : WS -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(XSControl_WorkSession)& STEPConstruct_Tool::WS() const { return myWS; } -//======================================================================= -// function : Model -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Interface_InterfaceModel) STEPConstruct_Tool::Model() const { return myWS->Model(); } -//======================================================================= -// function : Graph -// purpose : -//======================================================================= +//================================================================================================= inline const Interface_Graph& STEPConstruct_Tool::Graph(const Standard_Boolean recompute) const { @@ -51,20 +42,14 @@ inline const Interface_Graph& STEPConstruct_Tool::Graph(const Standard_Boolean r return recompute ? myWS->Graph() : myHGraph->Graph(); } -//======================================================================= -// function : TransientProcess -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Transfer_TransientProcess)& STEPConstruct_Tool::TransientProcess() const { return myTransientProcess; } -//======================================================================= -// function : FinderProcess -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Transfer_FinderProcess)& STEPConstruct_Tool::FinderProcess() const { diff --git a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyComponent.lxx b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyComponent.lxx index 2f51f2a206..69d17b9ee9 100644 --- a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyComponent.lxx +++ b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyComponent.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetSDR -// purpose : -//======================================================================= +//================================================================================================= inline Handle(StepShape_ShapeDefinitionRepresentation) STEPSelections_AssemblyComponent::GetSDR() const @@ -25,10 +22,7 @@ inline Handle(StepShape_ShapeDefinitionRepresentation) STEPSelections_AssemblyCo return mySDR; } -//======================================================================= -// function : GetList -// purpose : -//======================================================================= +//================================================================================================= inline Handle(STEPSelections_HSequenceOfAssemblyLink) STEPSelections_AssemblyComponent::GetList() const @@ -36,10 +30,7 @@ inline Handle(STEPSelections_HSequenceOfAssemblyLink) STEPSelections_AssemblyCom return myList; } -//======================================================================= -// function : SetSDR -// purpose : -//======================================================================= +//================================================================================================= inline void STEPSelections_AssemblyComponent::SetSDR( const Handle(StepShape_ShapeDefinitionRepresentation)& sdr) diff --git a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyExplorer.lxx b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyExplorer.lxx index b4c003df88..70de128941 100644 --- a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyExplorer.lxx +++ b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyExplorer.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : NbAssemblies -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer STEPSelections_AssemblyExplorer::NbAssemblies() const { return myRoots.Length(); } -//======================================================================= -// function : Root -// purpose : -//======================================================================= +//================================================================================================= inline Handle(STEPSelections_AssemblyComponent) STEPSelections_AssemblyExplorer::Root( const Standard_Integer rank) const diff --git a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyLink.lxx b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyLink.lxx index 3844c5d036..c082329112 100644 --- a/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyLink.lxx +++ b/src/DataExchange/TKDESTEP/STEPSelections/STEPSelections_AssemblyLink.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetNAUO -// purpose : -//======================================================================= +//================================================================================================= inline Handle(StepRepr_NextAssemblyUsageOccurrence) STEPSelections_AssemblyLink::GetNAUO() const { return myNAUO; } -//======================================================================= -// function : GetSDSR -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Standard_Transient) STEPSelections_AssemblyLink::GetItem() const { return myItem; } -//======================================================================= -// function : GetComponent -// purpose : -//======================================================================= +//================================================================================================= inline Handle(STEPSelections_AssemblyComponent) STEPSelections_AssemblyLink::GetComponent() const { return myComponent; } -//======================================================================= -// function : SetNAUO -// purpose : -//======================================================================= +//================================================================================================= inline void STEPSelections_AssemblyLink::SetNAUO( const Handle(StepRepr_NextAssemblyUsageOccurrence)& nauo) @@ -55,20 +43,14 @@ inline void STEPSelections_AssemblyLink::SetNAUO( myNAUO = nauo; } -//======================================================================= -// function : SetCDSR -// purpose : -//======================================================================= +//================================================================================================= inline void STEPSelections_AssemblyLink::SetItem(const Handle(Standard_Transient)& item) { myItem = item; } -//======================================================================= -// function : SetComponent -// purpose : -//======================================================================= +//================================================================================================= inline void STEPSelections_AssemblyLink::SetComponent( const Handle(STEPSelections_AssemblyComponent)& part) diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_NMTool.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_NMTool.cxx index efefe2a573..654e230a70 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_NMTool.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_NMTool.cxx @@ -18,10 +18,7 @@ #include #include -// ============================================================================ -// Method : StepToTopoDS_NMTool -// Purpose : Default constructor -// ============================================================================ +//================================================================================================= StepToTopoDS_NMTool::StepToTopoDS_NMTool() { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Root.lxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Root.lxx index 96ff422e3a..9684f7c6b8 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Root.lxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Root.lxx @@ -16,50 +16,35 @@ #include -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean StepToTopoDS_Root::IsDone() const { return done; } -//======================================================================= -// function : Precision -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real StepToTopoDS_Root::Precision() const { return myPrecision; } -//======================================================================= -// function : SetPrecision -// purpose : -//======================================================================= +//================================================================================================= inline void StepToTopoDS_Root::SetPrecision(const Standard_Real preci) { myPrecision = preci; } -//======================================================================= -// function : MaxTol -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real StepToTopoDS_Root::MaxTol() const { return myMaxTol; } -//======================================================================= -// function : SetMaxTol -// purpose : -//======================================================================= +//================================================================================================= inline void StepToTopoDS_Root::SetMaxTol(const Standard_Real maxpreci) { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.lxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.lxx index b2a27ed682..f0d534103a 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.lxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.lxx @@ -15,10 +15,7 @@ #include -//======================================================================= -// function : IsInfiniteSegment -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean StepToTopoDS_TranslateCompositeCurve::IsInfiniteSegment() const { diff --git a/src/DataExchange/TKXCAF/XCAFPrs/XCAFPrs_DocumentIdIterator.hxx b/src/DataExchange/TKXCAF/XCAFPrs/XCAFPrs_DocumentIdIterator.hxx index d884df5003..cca6aeafda 100644 --- a/src/DataExchange/TKXCAF/XCAFPrs/XCAFPrs_DocumentIdIterator.hxx +++ b/src/DataExchange/TKXCAF/XCAFPrs/XCAFPrs_DocumentIdIterator.hxx @@ -48,10 +48,8 @@ private: Standard_Integer myPosition; //!< last processed new-line symbol }; -// ======================================================================= -// function : Next -// purpose : -// ======================================================================= +//================================================================================================= + inline void XCAFPrs_DocumentIdIterator::Next() { for (Standard_Integer aCharIndex = myPosition + 1; aCharIndex <= myPath.Length(); ++aCharIndex) diff --git a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.lxx b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.lxx index dcbdfe9ab5..90beed4725 100644 --- a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.lxx +++ b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.lxx @@ -11,10 +11,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : MoniTool_Timer -// purpose : -//======================================================================= +//================================================================================================= inline MoniTool_Timer::MoniTool_Timer() : myCount(0), @@ -23,30 +20,21 @@ inline MoniTool_Timer::MoniTool_Timer() { } -//======================================================================= -// function : Timer -// purpose : -//======================================================================= +//================================================================================================= inline OSD_Timer& MoniTool_Timer::Timer() { return myTimer; } -//======================================================================= -// function : Timer -// purpose : -//======================================================================= +//================================================================================================= inline const OSD_Timer& MoniTool_Timer::Timer() const { return myTimer; } -//======================================================================= -// function : Start -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_Timer::Start() { @@ -57,10 +45,7 @@ inline void MoniTool_Timer::Start() myNesting++; } -//======================================================================= -// function : Stop -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_Timer::Stop() { @@ -70,10 +55,7 @@ inline void MoniTool_Timer::Stop() // AmendStop(); } -//======================================================================= -// function : Reset -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_Timer::Reset() { @@ -82,40 +64,28 @@ inline void MoniTool_Timer::Reset() myAmend = 0; } -//======================================================================= -// function : Count -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer MoniTool_Timer::Count() const { return myCount; } -//======================================================================= -// function : IsRunning -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer MoniTool_Timer::IsRunning() const { return myNesting; } -//======================================================================= -// function : Amend -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real MoniTool_Timer::Amend() const { return myAmend; } -//======================================================================= -// function : CPU -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real MoniTool_Timer::CPU() { @@ -125,20 +95,14 @@ inline Standard_Real MoniTool_Timer::CPU() return cpu - myAmend; } -//======================================================================= -// function : Start -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_Timer::Start(const Standard_CString name) { Timer(name)->Start(); } -//======================================================================= -// function : Stop -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_Timer::Stop(const Standard_CString name) { diff --git a/src/DataExchange/TKXSBase/MoniTool/MoniTool_TimerSentry.lxx b/src/DataExchange/TKXSBase/MoniTool/MoniTool_TimerSentry.lxx index 3d83409e33..de6395a04e 100644 --- a/src/DataExchange/TKXSBase/MoniTool/MoniTool_TimerSentry.lxx +++ b/src/DataExchange/TKXSBase/MoniTool/MoniTool_TimerSentry.lxx @@ -13,10 +13,7 @@ #include -//======================================================================= -// function : MoniTool_TimerSentry -// purpose : -//======================================================================= +//================================================================================================= inline MoniTool_TimerSentry::MoniTool_TimerSentry(const Standard_CString cname) : myTimer(MoniTool_Timer::Timer(cname)) @@ -24,10 +21,7 @@ inline MoniTool_TimerSentry::MoniTool_TimerSentry(const Standard_CString cname) myTimer->Start(); } -//======================================================================= -// function : MoniTool_TimerSentry -// purpose : -//======================================================================= +//================================================================================================= inline MoniTool_TimerSentry::MoniTool_TimerSentry(const Handle(MoniTool_Timer)& timer) { @@ -46,20 +40,14 @@ inline MoniTool_TimerSentry::~MoniTool_TimerSentry() myTimer->Stop(); } -//======================================================================= -// function : Timer -// purpose : -//======================================================================= +//================================================================================================= inline Handle(MoniTool_Timer) MoniTool_TimerSentry::Timer() const { return myTimer; } -//======================================================================= -// function : Stop -// purpose : -//======================================================================= +//================================================================================================= inline void MoniTool_TimerSentry::Stop() { diff --git a/src/DataExchange/TKXSBase/TransferBRep/TransferBRep_TransferResultInfo.lxx b/src/DataExchange/TKXSBase/TransferBRep/TransferBRep_TransferResultInfo.lxx index ccbfc7ecf6..d1f19b854d 100644 --- a/src/DataExchange/TKXSBase/TransferBRep/TransferBRep_TransferResultInfo.lxx +++ b/src/DataExchange/TKXSBase/TransferBRep/TransferBRep_TransferResultInfo.lxx @@ -14,80 +14,56 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Result -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::Result() { return myR; } -//======================================================================= -// function : ResultWarning -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::ResultWarning() { return myRW; } -//======================================================================= -// function : ResultFail -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::ResultFail() { return myRF; } -//======================================================================= -// function : ResultWarningFail -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::ResultWarningFail() { return myRWF; } -//======================================================================= -// function : NoResult -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::NoResult() { return myNR; } -//======================================================================= -// function : NoResultWarning -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::NoResultWarning() { return myNRW; } -//======================================================================= -// function : NoResultFail -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::NoResultFail() { return myNRF; } -//======================================================================= -// function : NoResultWarningFail -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& TransferBRep_TransferResultInfo::NoResultWarningFail() { diff --git a/src/DataExchange/TKXmlXCAF/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.lxx b/src/DataExchange/TKXmlXCAF/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.lxx index 6c6030d0c6..f792033845 100644 --- a/src/DataExchange/TKXmlXCAF/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.lxx +++ b/src/DataExchange/TKXmlXCAF/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.lxx @@ -13,10 +13,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetSharedLocations -// purpose : -//======================================================================= +//================================================================================================= + inline void XmlMXCAFDoc_LocationDriver::SetSharedLocations( const TopTools_LocationSetPtr& theLocations) { diff --git a/src/Draw/TKDCAF/DDF/DDF.cxx b/src/Draw/TKDCAF/DDF/DDF.cxx index a940d3f9e3..cc90604a57 100644 --- a/src/Draw/TKDCAF/DDF/DDF.cxx +++ b/src/Draw/TKDCAF/DDF/DDF.cxx @@ -70,10 +70,7 @@ Standard_Boolean DDF::GetDF(Standard_CString& Name, return Standard_False; } -//======================================================================= -// function : Find -// purpose : Finds an attribute. -//======================================================================= +//================================================================================================= Standard_Boolean DDF::Find(const Handle(TDF_Data)& DF, const Standard_CString Entry, diff --git a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx index f140854e4c..f582cc106c 100644 --- a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx +++ b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx @@ -35,10 +35,7 @@ static Handle(TDF_Delta) DDF_LastDelta; // Transaction commands // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -//======================================================================= -// function : OpenTran -// purpose : Opens a transaction -//======================================================================= +//================================================================================================= static Standard_Integer OpenTran(Draw_Interpretor& di, Standard_Integer n, const char** a) { @@ -55,10 +52,7 @@ static Standard_Integer OpenTran(Draw_Interpretor& di, Standard_Integer n, const return 0; } -//======================================================================= -// function : AbortTran -// purpose : Aborts a transaction -//======================================================================= +//================================================================================================= static Standard_Integer AbortTran(Draw_Interpretor& di, Standard_Integer n, const char** a) { diff --git a/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx b/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx index fef9b17852..7917676b57 100644 --- a/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx +++ b/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx @@ -208,10 +208,7 @@ void DDataStd_DrawPresentation::BeforeForget() DrawErase(Label(), this); } -//======================================================================= -// function : AfterResume -// purpose : display if displayed -//======================================================================= +//================================================================================================= void DDataStd_DrawPresentation::AfterResume() { diff --git a/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx b/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx index 59f1331ad9..253f37dd9a 100644 --- a/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx +++ b/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx @@ -502,10 +502,7 @@ static Standard_Integer DDataStd_InitChildNodeIterator(Draw_Interpretor& di, return 1; } -//======================================================================= -// TreeNode : ChildNodeMore -// purpose : ChildNodeMore -//======================================================================= +//================================================================================================= static Standard_Integer DDataStd_ChildNodeMore(Draw_Interpretor& di, Standard_Integer /*n*/, @@ -522,10 +519,7 @@ static Standard_Integer DDataStd_ChildNodeMore(Draw_Interpretor& di, return 0; } -//======================================================================= -// TreeNode : ChildNodeNext -// purpose : ChildNodeNext -//======================================================================= +//================================================================================================= static Standard_Integer DDataStd_ChildNodeNext(Draw_Interpretor& /*di*/, Standard_Integer /*n*/, @@ -548,10 +542,7 @@ static Standard_Integer DDataStd_ChildNodeNextBrother(Draw_Interpretor& /*di*/, return 0; } -//======================================================================= -// TreeNode : ChildNodeValue -// purpose : ChildNodeValue -//======================================================================= +//================================================================================================= static Standard_Integer DDataStd_ChildNodeValue(Draw_Interpretor& di, Standard_Integer /*n*/, @@ -563,10 +554,7 @@ static Standard_Integer DDataStd_ChildNodeValue(Draw_Interpretor& di, return 0; } -//======================================================================= -// TreeNode : TreeCommands -// purpose : -//======================================================================= +//================================================================================================= void DDataStd::TreeCommands(Draw_Interpretor& theCommands) { diff --git a/src/Draw/TKDCAF/DNaming/DNaming_Line3DDriver.cxx b/src/Draw/TKDCAF/DNaming/DNaming_Line3DDriver.cxx index 48be00a438..9557844ca0 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming_Line3DDriver.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming_Line3DDriver.cxx @@ -62,10 +62,8 @@ Standard_Boolean DNaming_Line3DDriver::MustExecute(const Handle(TFunction_Logboo return Standard_True; } -//======================================================================= -// function : Execute -// purpose : Execute the function -//======================================================================= +//================================================================================================= + Standard_Integer DNaming_Line3DDriver::Execute(Handle(TFunction_Logbook)& theLog) const { Handle(TFunction_Function) aFunction; diff --git a/src/Draw/TKDraw/DBRep/DBRep_Edge.lxx b/src/Draw/TKDraw/DBRep/DBRep_Edge.lxx index 5066fa2ccc..b8f89d2c6f 100644 --- a/src/Draw/TKDraw/DBRep/DBRep_Edge.lxx +++ b/src/Draw/TKDraw/DBRep/DBRep_Edge.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& DBRep_Edge::Edge() const { return myEdge; } -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Edge::Edge(const TopoDS_Edge& E) { myEdge = E; } -//======================================================================= -// function : Color -// purpose : -//======================================================================= +//================================================================================================= inline const Draw_Color& DBRep_Edge::Color() const { return myColor; } -//======================================================================= -// function : Color -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Edge::Color(const Draw_Color& C) { diff --git a/src/Draw/TKDraw/DBRep/DBRep_Face.lxx b/src/Draw/TKDraw/DBRep/DBRep_Face.lxx index 1b25666be9..5670ae4d04 100644 --- a/src/Draw/TKDraw/DBRep/DBRep_Face.lxx +++ b/src/Draw/TKDraw/DBRep/DBRep_Face.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Face& DBRep_Face::Face() const { return myFace; } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Face::Face(const TopoDS_Face& F) { myFace = F; } -//======================================================================= -// function : NbIsos -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer DBRep_Face::NbIsos() const { return myTypes.Upper(); } -//======================================================================= -// function : Iso -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Face::Iso(const Standard_Integer I, const GeomAbs_IsoType T, @@ -61,10 +49,7 @@ inline void DBRep_Face::Iso(const Standard_Integer I, myParams(3 * I) = T2; } -//======================================================================= -// function : GetIso -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Face::GetIso(const Standard_Integer I, GeomAbs_IsoType& T, @@ -81,20 +66,14 @@ inline void DBRep_Face::GetIso(const Standard_Integer I, T2 = myParams(3 * I); } -//======================================================================= -// function : Color -// purpose : -//======================================================================= +//================================================================================================= inline const Draw_Color& DBRep_Face::Color() const { return myColor; } -//======================================================================= -// function : Color -// purpose : -//======================================================================= +//================================================================================================= inline void DBRep_Face::Color(const Draw_Color& C) { diff --git a/src/Draw/TKDraw/Draw/Draw_GraphicCommands.cxx b/src/Draw/TKDraw/Draw/Draw_GraphicCommands.cxx index b156c3ecf0..328971cb56 100644 --- a/src/Draw/TKDraw/Draw/Draw_GraphicCommands.cxx +++ b/src/Draw/TKDraw/Draw/Draw_GraphicCommands.cxx @@ -873,10 +873,7 @@ static Standard_Integer hcolor(Draw_Interpretor& di, Standard_Integer n, const c return 0; } -//======================================================================= -// function : xwd -// purpose : xwd file from a view -//======================================================================= +//================================================================================================= extern void Draw_RepaintNowIfNecessary(); diff --git a/src/Draw/TKDraw/Draw/Draw_Window_1.mm b/src/Draw/TKDraw/Draw/Draw_Window_1.mm index b2a194ac2f..0afa9e2af5 100644 --- a/src/Draw/TKDraw/Draw/Draw_Window_1.mm +++ b/src/Draw/TKDraw/Draw/Draw_Window_1.mm @@ -117,10 +117,8 @@ Standard_Real Draw_RGBColorsArray[MAXCOLOR][3] = {{1.0, 1.0, 1.0}, {0.94, 0.9, 0.55}, {1.0, 0.5, 0.31}}; -//======================================================================= -//function : Draw_Window -//purpose : -//======================================================================= +//================================================================================================= + Draw_Window::Draw_Window (const char* theTitle, const NCollection_Vec2& theXY, const NCollection_Vec2& theSize, @@ -166,10 +164,8 @@ Draw_Window::~Draw_Window() } } -//======================================================================= -//function : init -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::init (const NCollection_Vec2& theXY, const NCollection_Vec2& theSize) { @@ -213,19 +209,15 @@ void Draw_Window::init (const NCollection_Vec2& theXY, [myWindow setReleasedWhenClosed: NO]; } -//======================================================================= -//function : InitBuffer -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::InitBuffer() { // } -//======================================================================= -//function : SetPosition -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::SetPosition (Standard_Integer theNewXpos, Standard_Integer theNewYpos) { @@ -233,10 +225,8 @@ void Draw_Window::SetPosition (Standard_Integer theNewXpos, [myWindow setFrameTopLeftPoint: aNewPosition]; } -//======================================================================= -//function : SetDimension -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::SetDimension (Standard_Integer theNewWidth, Standard_Integer theNewHeight) { @@ -247,10 +237,8 @@ void Draw_Window::SetDimension (Standard_Integer theNewWidth, [myWindow setFrame: aNewContentRect display: YES]; } -//======================================================================= -//function : GetPosition -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::GetPosition (Standard_Integer &thePosX, Standard_Integer &thePosY) { @@ -259,30 +247,24 @@ void Draw_Window::GetPosition (Standard_Integer &thePosX, thePosY = getScreenBottom() - aWindowRect.origin.y - aWindowRect.size.height; } -//======================================================================= -//function : HeightWin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer Draw_Window::HeightWin() const { NSRect aViewBounds = [myView bounds]; return aViewBounds.size.height; } -//======================================================================= -//function : WidthWin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer Draw_Window::WidthWin() const { NSRect aViewBounds = [myView bounds]; return aViewBounds.size.width; } -//======================================================================= -//function : SetTitle -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::SetTitle (const TCollection_AsciiString& theTitle) { NSString* aTitleNs = [[NSString alloc] initWithUTF8String: theTitle.ToCString()]; @@ -290,29 +272,23 @@ void Draw_Window::SetTitle (const TCollection_AsciiString& theTitle) [aTitleNs release]; } -//======================================================================= -//function : GetTitle -//purpose : -//======================================================================= +//================================================================================================= + TCollection_AsciiString Draw_Window::GetTitle() const { Standard_CString aTitle = [[myWindow title] UTF8String]; return TCollection_AsciiString (aTitle); } -//======================================================================= -//function :DefineColor -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Draw_Window::DefineColor (const Standard_Integer , Standard_CString ) { return Standard_True; // unused } -//======================================================================= -//function : IsMapped -//purpose : -//======================================================================= +//================================================================================================= + bool Draw_Window::IsMapped() const { if (Draw_VirtualWindows @@ -324,10 +300,8 @@ bool Draw_Window::IsMapped() const return [myWindow isVisible]; } -//======================================================================= -//function : DisplayWindow -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::DisplayWindow() { if (Draw_VirtualWindows) @@ -341,10 +315,8 @@ void Draw_Window::DisplayWindow() } } -//======================================================================= -//function : Hide -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::Hide() { if (myWindow != NULL) @@ -353,10 +325,8 @@ void Draw_Window::Hide() } } -//======================================================================= -//function : Destroy -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::Destroy() { if (myWindow != NULL) @@ -378,10 +348,8 @@ void Draw_Window::Destroy() } } -//======================================================================= -//function : Clear -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::Clear() { [myImageBuffer lockFocus]; @@ -396,19 +364,15 @@ void Draw_Window::Clear() } } -//======================================================================= -//function : Flush -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::Flush() { // } -//======================================================================= -//function : DrawString -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::DrawString (Standard_Integer theXLeft, Standard_Integer theYTop, const char* theText) { @@ -431,10 +395,8 @@ void Draw_Window::DrawString (Standard_Integer theXLeft, Standard_Integer theYTo } } -//======================================================================= -//function : DrawSegments -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::DrawSegments (const Draw_XSegment* theSegments, Standard_Integer theNumberOfElements) { @@ -484,10 +446,8 @@ void Draw_Window::DrawSegments (const Draw_XSegment* theSegments, Draw_IsInZoomingMode = Standard_False; } -//======================================================================= -//function : Redraw -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::Redraw() { if (myUseBuffer) @@ -496,29 +456,23 @@ void Draw_Window::Redraw() } } -//======================================================================= -//function : SetColor -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::SetColor (Standard_Integer theColor) { myCurrentColor = theColor; } -//======================================================================= -//function : SetMode -//purpose : -//======================================================================= +//================================================================================================= + void Draw_Window::SetMode (Standard_Integer theMode) { // unsupported (void )theMode; } -//======================================================================= -//function : Save -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Draw_Window::Save (Standard_CString theFileName) const { Cocoa_LocalPool aLocalPool; diff --git a/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx b/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx index 532c937934..bedc8748e7 100644 --- a/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx +++ b/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx @@ -1271,10 +1271,8 @@ static Standard_Integer VtkSelect(Draw_Interpretor&, return 0; } -//=================================================================== -// Fubction : VtkViewProj -// Purpose : -//=================================================================== +//================================================================================================= + static Standard_Integer VtkViewProj(Draw_Interpretor&, Standard_Integer theNbArgs, const char** theArgVec) @@ -1507,10 +1505,8 @@ static int VtkCamera(Draw_Interpretor& theDI, Standard_Integer theArgsNb, const return 0; } -//=================================================================== -// Fubction : VtkDump -// Purpose : -//=================================================================== +//================================================================================================= + static Standard_Integer VtkDump(Draw_Interpretor&, Standard_Integer theArgNum, const char** theArgs) { if (!GetInteractor() || !GetInteractor()->IsEnabled()) @@ -1654,10 +1650,8 @@ static Standard_Integer VtkDump(Draw_Interpretor&, Standard_Integer theArgNum, c return 0; } -//=================================================================== -// Fubction : VtkBackgroundColor -// Purpose : -//=================================================================== +//================================================================================================= + static Standard_Integer VtkBackgroundColor(Draw_Interpretor&, Standard_Integer theArgNum, const char** theArgs) diff --git a/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx b/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx index 3abfd49a8b..6253ca9432 100644 --- a/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx +++ b/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx @@ -272,10 +272,7 @@ static void CollectAttachment(const TDF_Label& root, } } -//======================================================================= -// function : Attachment -// purpose : Attachment DF entry -//======================================================================= +//================================================================================================= static Standard_Integer QADNaming_Attachment(Draw_Interpretor& di, Standard_Integer n, diff --git a/src/Draw/TKTopTest/BOPTest/BOPTest_CheckCommands.cxx b/src/Draw/TKTopTest/BOPTest/BOPTest_CheckCommands.cxx index 74a2123617..37c98c844c 100644 --- a/src/Draw/TKTopTest/BOPTest/BOPTest_CheckCommands.cxx +++ b/src/Draw/TKTopTest/BOPTest/BOPTest_CheckCommands.cxx @@ -93,10 +93,8 @@ void BOPTest::CheckCommands(Draw_Interpretor& theCommands) g); } -//======================================================================= -// class : BOPTest_Interf -// purpose : Auxiliary class -//======================================================================= +//================================================================================================= + class BOPTest_Interf { public: diff --git a/src/Draw/TKTopTest/HLRTest/HLRTest_DrawablePolyEdgeTool.lxx b/src/Draw/TKTopTest/HLRTest/HLRTest_DrawablePolyEdgeTool.lxx index fe28f5a653..8782b74366 100644 --- a/src/Draw/TKTopTest/HLRTest/HLRTest_DrawablePolyEdgeTool.lxx +++ b/src/Draw/TKTopTest/HLRTest/HLRTest_DrawablePolyEdgeTool.lxx @@ -14,100 +14,70 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Show -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::Show() { myHideMode = Standard_False; } -//======================================================================= -// function : Hide -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::Hide() { myHideMode = Standard_True; } -//======================================================================= -// function : DisplayRg1Line -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::DisplayRg1Line(const Standard_Boolean B) { myDispRg1 = B; } -//======================================================================= -// function : DisplayRg1Line -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTest_DrawablePolyEdgeTool::DisplayRg1Line() const { return myDispRg1; } -//======================================================================= -// function : DisplayRgNLine -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::DisplayRgNLine(const Standard_Boolean B) { myDispRgN = B; } -//======================================================================= -// function : DisplayRgNLine -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTest_DrawablePolyEdgeTool::DisplayRgNLine() const { return myDispRgN; } -//======================================================================= -// function : DisplayHidden -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::DisplayHidden(const Standard_Boolean B) { myDispHid = B; } -//======================================================================= -// function : DisplayHidden -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTest_DrawablePolyEdgeTool::DisplayHidden() const { return myDispHid; } -//======================================================================= -// function : Debug -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_DrawablePolyEdgeTool::Debug(const Standard_Boolean B) { myDebug = B; } -//======================================================================= -// function : Debug -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTest_DrawablePolyEdgeTool::Debug() const { diff --git a/src/Draw/TKTopTest/HLRTest/HLRTest_OutLiner.lxx b/src/Draw/TKTopTest/HLRTest/HLRTest_OutLiner.lxx index 2c4a90cc78..5166e797f5 100644 --- a/src/Draw/TKTopTest/HLRTest/HLRTest_OutLiner.lxx +++ b/src/Draw/TKTopTest/HLRTest/HLRTest_OutLiner.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : OutLiner -// purpose : -//======================================================================= +//================================================================================================= inline Handle(HLRTopoBRep_OutLiner) HLRTest_OutLiner::OutLiner() const { diff --git a/src/Draw/TKTopTest/HLRTest/HLRTest_ShapeData.lxx b/src/Draw/TKTopTest/HLRTest/HLRTest_ShapeData.lxx index 54e9033585..8801ad47f2 100644 --- a/src/Draw/TKTopTest/HLRTest/HLRTest_ShapeData.lxx +++ b/src/Draw/TKTopTest/HLRTest/HLRTest_ShapeData.lxx @@ -14,120 +14,84 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : VisibleColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::VisibleColor(const Draw_Color& CVis) { myVColor = CVis; } -//======================================================================= -// function : VisibleOutLineColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::VisibleOutLineColor(const Draw_Color& COVis) { myVOColor = COVis; } -//======================================================================= -// function : VisibleIsoColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::VisibleIsoColor(const Draw_Color& CIVis) { myVIColor = CIVis; } -//======================================================================= -// function : HiddenColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::HiddenColor(const Draw_Color& CHid) { myHColor = CHid; } -//======================================================================= -// function : HiddenOutLineColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::HiddenOutLineColor(const Draw_Color& COHid) { myHOColor = COHid; } -//======================================================================= -// function : HiddenIsoColor -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTest_ShapeData::HiddenIsoColor(const Draw_Color& CIHid) { myHIColor = CIHid; } -//======================================================================= -// function : VisibleColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::VisibleColor() const { return myVColor; } -//======================================================================= -// function : VisibleOutLineColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::VisibleOutLineColor() const { return myVOColor; } -//======================================================================= -// function : VisibleIsoColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::VisibleIsoColor() const { return myVIColor; } -//======================================================================= -// function : HiddenColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::HiddenColor() const { return myHColor; } -//======================================================================= -// function : HiddenOutLineColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::HiddenOutLineColor() const { return myHOColor; } -//======================================================================= -// function : HiddenIsoColor -// purpose : -//======================================================================= +//================================================================================================= inline Draw_Color HLRTest_ShapeData::HiddenIsoColor() const { diff --git a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands_1.mm b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands_1.mm index 00337769a4..6ba2c63ef2 100644 --- a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands_1.mm +++ b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands_1.mm @@ -46,10 +46,8 @@ extern void ActivateView (const TCollection_AsciiString& theViewName, extern NCollection_DoubleMap ViewerTest_myViews; -// ======================================================================= -// function : GetCocoaScreenResolution -// purpose : -// ======================================================================= +//================================================================================================= + void GetCocoaScreenResolution (Standard_Integer& theWidth, Standard_Integer& theHeight) { NSRect aRect = [[NSScreen mainScreen] visibleFrame]; @@ -57,10 +55,8 @@ void GetCocoaScreenResolution (Standard_Integer& theWidth, Standard_Integer& the theHeight = (Standard_Integer )aRect.size.height; } -// ======================================================================= -// function : FindViewId -// purpose : -// ======================================================================= +//================================================================================================= + TCollection_AsciiString FindViewId (const NSWindow* theWindow) { TCollection_AsciiString aViewId = ""; @@ -100,20 +96,16 @@ TCollection_AsciiString FindViewId (const NSWindow* theWindow) @end -// ======================================================================= -// function : ViewerMainLoop -// purpose : -// ======================================================================= +//================================================================================================= + int ViewerMainLoop (Standard_Integer, const char** ) { // unused return 0; } -// ======================================================================= -// function : ViewerTest_SetCocoaEventManagerView -// purpose : -// ======================================================================= +//================================================================================================= + void ViewerTest_SetCocoaEventManagerView (const Handle(Cocoa_Window)& theWindow) { if (theWindow.IsNull()) @@ -180,20 +172,16 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) @implementation ViewerTest_CocoaEventManagerView -// ======================================================================= -// function : setFrameSize -// purpose : -// ======================================================================= +//================================================================================================= + - (void )setFrameSize: (NSSize )theNewSize { [super setFrameSize: theNewSize]; ViewerTest::CurrentEventManager()->ProcessConfigure(); } -// ======================================================================= -// function : drawRect -// purpose : -// ======================================================================= +//================================================================================================= + - (void )drawRect: (NSRect )theDirtyRect { (void )theDirtyRect; @@ -203,10 +191,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) } } -// ======================================================================= -// function : mouseMoved -// purpose : -// ======================================================================= +//================================================================================================= + - (void )mouseMoved: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -216,19 +202,15 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : acceptsFirstResponder -// purpose : -// ======================================================================= +//================================================================================================= + - (BOOL )acceptsFirstResponder { return YES; } -// ======================================================================= -// function : mouseDown -// purpose : -// ======================================================================= +//================================================================================================= + - (void )mouseDown: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -237,10 +219,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : mouseUp -// purpose : -// ======================================================================= +//================================================================================================= + - (void )mouseUp: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -249,10 +229,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : mouseDragged -// purpose : -// ======================================================================= +//================================================================================================= + - (void )mouseDragged: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -262,10 +240,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : rightMouseDown -// purpose : -// ======================================================================= +//================================================================================================= + - (void )rightMouseDown: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -274,10 +250,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : rightMouseUp -// purpose : -// ======================================================================= +//================================================================================================= + - (void )rightMouseUp: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -286,10 +260,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : rightMouseDragged -// purpose : -// ======================================================================= +//================================================================================================= + - (void )rightMouseDragged: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -299,10 +271,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : scrollWheel -// purpose : -// ======================================================================= +//================================================================================================= + - (void )scrollWheel: (NSEvent* )theEvent { const Graphic3d_Vec2i aPos = getMouseCoords (self, theEvent); @@ -319,10 +289,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) ViewerTest::CurrentEventManager()->FlushViewEvents (ViewerTest::GetAISContext(), ViewerTest::CurrentView(), true); } -// ======================================================================= -// function : keyDown -// purpose : -// ======================================================================= +//================================================================================================= + - (void )keyDown: (NSEvent* )theEvent { unsigned int aKeyCode = [theEvent keyCode]; @@ -341,10 +309,8 @@ static Aspect_VKeyFlags getMouseKeyFlags (NSEvent* theEvent) //} } -// ======================================================================= -// function : keyUp -// purpose : -// ======================================================================= +//================================================================================================= + - (void )keyUp: (NSEvent* )theEvent { unsigned int aKeyCode = [theEvent keyCode]; diff --git a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx index 6a5fe17ed9..935a4cdeaa 100644 --- a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx +++ b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx @@ -1093,10 +1093,8 @@ static Standard_Integer noteGetNotes(Draw_Interpretor& di, Standard_Integer argc return 0; } -//======================================================================= -// function : noteUsername -// purpose : gets a note username -//======================================================================= +//================================================================================================= + static const cmd XNoteUsername = {"XNoteUsername", 3, "XNoteUsername Doc note"}; static Standard_Integer noteUsername(Draw_Interpretor& di, Standard_Integer argc, const char** argv) @@ -1189,10 +1187,8 @@ static Standard_Integer noteTimestamp(Draw_Interpretor& di, return 0; } -//======================================================================= -// function : noteDump -// purpose : dump a note contents -//======================================================================= +//================================================================================================= + static const cmd XNoteDump = {"XNoteDump", 3, "XNoteDump Doc note"}; static Standard_Integer noteDump(Draw_Interpretor& di, Standard_Integer argc, const char** argv) diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.lxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.lxx index 9769cc5243..c75f7a817d 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.lxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.lxx @@ -18,40 +18,28 @@ #include #include -//======================================================================= -// function : MaxDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer BSplCLib::MaxDegree() { return 25; } -//======================================================================= -// function : NoWeights -// purpose : -//======================================================================= +//================================================================================================= inline TColStd_Array1OfReal* BSplCLib::NoWeights() { return NULL; } -//======================================================================= -// function : NoMults -// purpose : -//======================================================================= +//================================================================================================= inline TColStd_Array1OfInteger* BSplCLib::NoMults() { return NULL; } -//======================================================================= -// function : CoefsD0 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD0(const Standard_Real U, const TColgp_Array1OfPnt& Poles, @@ -61,10 +49,7 @@ inline void BSplCLib::CoefsD0(const Standard_Real U, BSplCLib::CacheD0(U, Poles.Length() - 1, 0., 1., Poles, Weights, P); } -//======================================================================= -// function : CoefsD0 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD0(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, @@ -74,10 +59,7 @@ inline void BSplCLib::CoefsD0(const Standard_Real U, BSplCLib::CacheD0(U, Poles.Length() - 1, 0., 1., Poles, Weights, P); } -//======================================================================= -// function : CoefsD1 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD1(const Standard_Real U, const TColgp_Array1OfPnt& Poles, @@ -88,10 +70,7 @@ inline void BSplCLib::CoefsD1(const Standard_Real U, BSplCLib::CacheD1(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec); } -//======================================================================= -// function : CoefsD1 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD1(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, @@ -102,10 +81,7 @@ inline void BSplCLib::CoefsD1(const Standard_Real U, BSplCLib::CacheD1(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec); } -//======================================================================= -// function : CoefsD2 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD2(const Standard_Real U, const TColgp_Array1OfPnt& Poles, @@ -117,10 +93,7 @@ inline void BSplCLib::CoefsD2(const Standard_Real U, BSplCLib::CacheD2(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec1, Vec2); } -//======================================================================= -// function : CoefsD2 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD2(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, @@ -132,10 +105,7 @@ inline void BSplCLib::CoefsD2(const Standard_Real U, BSplCLib::CacheD2(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec1, Vec2); } -//======================================================================= -// function : CoefsD3 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD3(const Standard_Real U, const TColgp_Array1OfPnt& Poles, @@ -148,10 +118,7 @@ inline void BSplCLib::CoefsD3(const Standard_Real U, BSplCLib::CacheD3(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec1, Vec2, Vec3); } -//======================================================================= -// function : CoefsD3 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::CoefsD3(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, @@ -164,10 +131,7 @@ inline void BSplCLib::CoefsD3(const Standard_Real U, BSplCLib::CacheD3(U, Poles.Length() - 1, 0., 1., Poles, Weights, P, Vec1, Vec2, Vec3); } -//======================================================================= -// function : PolesCoefficients -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::PolesCoefficients(const TColgp_Array1OfPnt& Poles, TColgp_Array1OfPnt& CachePoles) @@ -175,10 +139,7 @@ inline void BSplCLib::PolesCoefficients(const TColgp_Array1OfPnt& Poles, BSplCLib::PolesCoefficients(Poles, PLib::NoWeights(), CachePoles, PLib::NoWeights()); } -//======================================================================= -// function : PolesCoefficients -// purpose : -//======================================================================= +//================================================================================================= inline void BSplCLib::PolesCoefficients(const TColgp_Array1OfPnt2d& Poles, TColgp_Array1OfPnt2d& CachePoles) diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx index c0341287ec..152210972c 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx @@ -46,10 +46,8 @@ struct BSplCLib_DataContainer Standard_Real ders[Dimension_gen*4]; }; -//======================================================================= -//function : Reverse -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Reverse(Array1OfPoints& Poles, const Standard_Integer L) @@ -73,10 +71,8 @@ void BSplCLib::Reverse(Array1OfPoints& Poles, // CURVES MODIFICATIONS // -//======================================================================= -//function : RemoveKnot -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean BSplCLib::RemoveKnot (const Standard_Integer Index, @@ -152,10 +148,8 @@ void BSplCLib::InsertKnots else PLib::GetPoles(newpoles,NewPoles); } -//======================================================================= -//function : InsertKnot -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::InsertKnot(const Standard_Integer , const Standard_Real U, @@ -179,10 +173,8 @@ void BSplCLib::InsertKnot(const Standard_Integer , k,&m,NewPoles,NewWeights,nk,nm,Epsilon(U)); } -//======================================================================= -//function : RaiseMultiplicity -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::RaiseMultiplicity(const Standard_Integer KnotIndex, const Standard_Integer Mult, @@ -205,10 +197,8 @@ void BSplCLib::RaiseMultiplicity(const Standard_Integer KnotIndex, k,&m,NewPoles,NewWeights,nk,nm,Epsilon(k(1))); } -//======================================================================= -//function : IncreaseDegree -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::IncreaseDegree (const Standard_Integer Degree, @@ -241,10 +231,8 @@ void BSplCLib::IncreaseDegree else PLib::GetPoles(newpoles,NewPoles); } -//======================================================================= -//function : Unperiodize -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Unperiodize (const Standard_Integer Degree, @@ -275,10 +263,8 @@ void BSplCLib::Unperiodize else PLib::GetPoles(newpoles,NewPoles); } -//======================================================================= -//function : Trimming -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Trimming(const Standard_Integer Degree, const Standard_Boolean Periodic, @@ -408,10 +394,8 @@ static void PrepareEval } } -//======================================================================= -//function : D0 -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::D0 (const Standard_Real U, @@ -440,10 +424,8 @@ void BSplCLib::D0 CoordsToPoint (P, dc.poles, ); } -//======================================================================= -//function : D1 -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::D1 (const Standard_Real U, @@ -473,10 +455,8 @@ void BSplCLib::D1 CoordsToPoint (V, result + Dimension_gen, ); } -//======================================================================= -//function : D2 -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::D2 (const Standard_Real U, @@ -511,10 +491,8 @@ void BSplCLib::D2 CoordsToPoint (V2, result + 2 * Dimension_gen, ); } -//======================================================================= -//function : D3 -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::D3 (const Standard_Real U, @@ -554,10 +532,8 @@ void BSplCLib::D3 CoordsToPoint (V3, result + 3 * Dimension_gen, ); } -//======================================================================= -//function : DN -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::DN (const Standard_Real U, @@ -593,10 +569,8 @@ void BSplCLib::DN } } -//======================================================================= -//function : Solves a LU factored Matrix -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, @@ -1154,10 +1128,8 @@ void BSplCLib::BuildCache(const Standard_Real theParameter, theCacheArray.SetValue(theCacheArray.LowerRow(), theCacheArray.LowerCol() + aCacheShift - 1, 1.0); } -//======================================================================= -//function : Interpolate -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Interpolate(const Standard_Integer Degree, const TColStd_Array1OfReal& FlatKnots, @@ -1180,10 +1152,8 @@ void BSplCLib::Interpolate(const Standard_Integer Degree, InversionProblem) ; } -//======================================================================= -//function : Interpolate -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Interpolate(const Standard_Integer Degree, const TColStd_Array1OfReal& FlatKnots, @@ -1334,10 +1304,8 @@ void BSplCLib::MovePoint (const Standard_Real U, // given u as parameter) to reach a new position //======================================================================= -//======================================================================= -//function : MovePointAndTangent -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::MovePointAndTangent (const Standard_Real U, const Vector& Delta, @@ -1383,10 +1351,8 @@ void BSplCLib::MovePointAndTangent (const Standard_Real U, ErrorStatus) ; } -//======================================================================= -//function : Resolution -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::Resolution(const Array1OfPoints& Poles, const TColStd_Array1OfReal* Weights, @@ -1408,10 +1374,8 @@ void BSplCLib::Resolution(const Array1OfPoints& Poles, UTolerance) ; } -//======================================================================= -//function : FunctionMultiply -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::FunctionMultiply (const BSplCLib_EvaluatorFunction & FunctionPtr, @@ -1447,10 +1411,8 @@ void BSplCLib::FunctionMultiply theStatus); } -//======================================================================= -//function : FunctionReparameterise -//purpose : -//======================================================================= +//================================================================================================= + void BSplCLib::FunctionReparameterise (const BSplCLib_EvaluatorFunction & FunctionPtr, diff --git a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.lxx b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.lxx index ae788f5412..57e3390b3d 100644 --- a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.lxx +++ b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.lxx @@ -18,10 +18,7 @@ #include #include -//======================================================================= -// function : CoefsD0 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplSLib::CoefsD0(const Standard_Real U, const Standard_Real V, @@ -42,10 +39,7 @@ inline void BSplSLib::CoefsD0(const Standard_Real U, Point); } -//======================================================================= -// function : CoefsD1 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplSLib::CoefsD1(const Standard_Real U, const Standard_Real V, @@ -70,10 +64,7 @@ inline void BSplSLib::CoefsD1(const Standard_Real U, VecV); } -//======================================================================= -// function : CoefsD2 -// purpose : -//======================================================================= +//================================================================================================= inline void BSplSLib::CoefsD2(const Standard_Real U, const Standard_Real V, @@ -104,10 +95,7 @@ inline void BSplSLib::CoefsD2(const Standard_Real U, VecVV); } -//======================================================================= -// function : PolesCoefficients -// purpose : -//======================================================================= +//================================================================================================= inline void BSplSLib::PolesCoefficients(const TColgp_Array2OfPnt& Poles, TColgp_Array2OfPnt& CachePoles) @@ -115,10 +103,7 @@ inline void BSplSLib::PolesCoefficients(const TColgp_Array2OfPnt& Poles, BSplSLib::PolesCoefficients(Poles, BSplSLib::NoWeights(), CachePoles, BSplSLib::NoWeights()); } -//======================================================================= -// function : NoWeights -// purpose : -//======================================================================= +//================================================================================================= inline TColStd_Array2OfReal* BSplSLib::NoWeights() { diff --git a/src/FoundationClasses/TKMath/BVH/BVH_BinaryTree.hxx b/src/FoundationClasses/TKMath/BVH/BVH_BinaryTree.hxx index 0e90770a62..b35bca87df 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_BinaryTree.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_BinaryTree.hxx @@ -196,10 +196,8 @@ void EstimateSAH(const BVH_Tree* theTree, } } // namespace BVH -// ======================================================================= -// function : EstimateSAH -// purpose : -// ======================================================================= +//================================================================================================= + template T BVH_Tree::EstimateSAH() const { @@ -208,10 +206,8 @@ T BVH_Tree::EstimateSAH() const return aSAH; } -// ======================================================================= -// function : CollapseToQuadTree -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_Tree* BVH_Tree::CollapseToQuadTree() const { diff --git a/src/FoundationClasses/TKMath/BVH/BVH_BinnedBuilder.hxx b/src/FoundationClasses/TKMath/BVH/BVH_BinnedBuilder.hxx index 29721d883f..e7b88d493b 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_BinnedBuilder.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_BinnedBuilder.hxx @@ -98,10 +98,8 @@ private: // clang-format on }; -// ======================================================================= -// function : getSubVolumes -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_BinnedBuilder::getSubVolumes(BVH_Set* theSet, BVH_Tree* theBVH, @@ -210,10 +208,8 @@ struct BVH_AxisSelector }; } // namespace BVH -// ======================================================================= -// function : buildNode -// purpose : -// ======================================================================= +//================================================================================================= + template typename BVH_QueueBuilder::BVH_ChildNodes BVH_BinnedBuilder::buildNode( BVH_Set* theSet, diff --git a/src/FoundationClasses/TKMath/BVH/BVH_Box.hxx b/src/FoundationClasses/TKMath/BVH/BVH_Box.hxx index 2bae241ffe..08620d5ef5 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_Box.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_Box.hxx @@ -517,10 +517,8 @@ struct BoxMinMax }; } // namespace BVH -// ======================================================================= -// function : Combine -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_Box::Combine(const BVH_Box& theBox) { @@ -540,10 +538,8 @@ void BVH_Box::Combine(const BVH_Box& theBox) } } -// ======================================================================= -// function : Area -// purpose : -// ======================================================================= +//================================================================================================= + template T BVH_Box::Area() const { @@ -551,10 +547,8 @@ T BVH_Box::Area() const : BVH::SurfaceCalculator::Area(myMaxPoint - myMinPoint); } -// ======================================================================= -// function : Center -// purpose : -// ======================================================================= +//================================================================================================= + template T BVH_Box::Center(const Standard_Integer theAxis) const { diff --git a/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx b/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx index bc6febeefa..a61c5ae236 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx @@ -17,10 +17,8 @@ #include #include -// ======================================================================= -// function : BVH_DistanceField -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_DistanceField::BVH_DistanceField(const Standard_Integer theMaximumSize, const Standard_Boolean theComputeSign) diff --git a/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx b/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx index fa73be1197..3a7eed183e 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx @@ -67,10 +67,8 @@ protected: Standard_Integer theDigit) const; }; -// ======================================================================= -// function : BVH_LinearBuilder -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_LinearBuilder::BVH_LinearBuilder(const Standard_Integer theLeafNodeSize, const Standard_Integer theMaxTreeDepth) @@ -306,10 +304,8 @@ private: }; } // namespace BVH -// ======================================================================= -// function : Build -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_LinearBuilder::Build(BVH_Set* theSet, BVH_Tree* theBVH, diff --git a/src/FoundationClasses/TKMath/BVH/BVH_Properties.hxx b/src/FoundationClasses/TKMath/BVH/BVH_Properties.hxx index b715e6e905..cba39c5540 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_Properties.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_Properties.hxx @@ -161,10 +161,8 @@ struct UnitVector }; } // namespace BVH -// ======================================================================= -// function : SetTransform -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_Transform::SetTransform(const BVH_MatNt& theTransform) { @@ -172,10 +170,8 @@ void BVH_Transform::SetTransform(const BVH_MatNt& theTransform) BVH::MatrixOp::Inverse(myTransform, myTransformInversed); } -// ======================================================================= -// function : Apply -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_Box BVH_Transform::Apply(const BVH_Box& theBox) const { diff --git a/src/FoundationClasses/TKMath/BVH/BVH_QueueBuilder.hxx b/src/FoundationClasses/TKMath/BVH/BVH_QueueBuilder.hxx index 8a7e439c44..917cccd379 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_QueueBuilder.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_QueueBuilder.hxx @@ -160,10 +160,8 @@ protected: Standard_Integer myNumOfThreads; //!< Number of threads used to build BVH }; -// ======================================================================= -// function : addChildren -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_QueueBuilder::addChildren( BVH_Tree* theBVH, diff --git a/src/FoundationClasses/TKMath/BVH/BVH_RadixSorter.hxx b/src/FoundationClasses/TKMath/BVH/BVH_RadixSorter.hxx index d6a4d773e0..cfd8388fba 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_RadixSorter.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_RadixSorter.hxx @@ -178,10 +178,8 @@ protected: }; } // namespace BVH -// ======================================================================= -// function : Perform -// purpose : -// ======================================================================= +//================================================================================================= + template void BVH_RadixSorter::Perform(BVH_Set* theSet, const Standard_Integer theStart, diff --git a/src/FoundationClasses/TKMath/BVH/BVH_Traverse.lxx b/src/FoundationClasses/TKMath/BVH/BVH_Traverse.lxx index 47218ede93..ba79046b6b 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_Traverse.lxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_Traverse.lxx @@ -32,10 +32,8 @@ struct BVH_NodeInStack }; } // namespace -// ======================================================================= -// function : BVH_Traverse::Select -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Integer BVH_Traverse::Select( const opencascade::handle>& theBVH) @@ -167,10 +165,8 @@ struct BVH_PairNodesInStack }; } // namespace -// ======================================================================= -// function : BVH_PairTraverse::Select -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Integer BVH_PairTraverse::Select( const opencascade::handle>& theBVH1, diff --git a/src/FoundationClasses/TKMath/Bnd/Bnd_B2x.gxx b/src/FoundationClasses/TKMath/Bnd/Bnd_B2x.gxx index 45a2fcda64..d18707ab76 100644 --- a/src/FoundationClasses/TKMath/Bnd/Bnd_B2x.gxx +++ b/src/FoundationClasses/TKMath/Bnd/Bnd_B2x.gxx @@ -106,10 +106,8 @@ Standard_Boolean Bnd_B2x::Limit (const Bnd_B2x& theBox) return aResult; } -//======================================================================= -//function : Transformed -//purpose : -//======================================================================= +//================================================================================================= + Bnd_B2x Bnd_B2x::Transformed (const gp_Trsf2d& theTrsf) const { diff --git a/src/FoundationClasses/TKMath/Bnd/Bnd_B3x.gxx b/src/FoundationClasses/TKMath/Bnd/Bnd_B3x.gxx index 673f643e72..4763414141 100644 --- a/src/FoundationClasses/TKMath/Bnd/Bnd_B3x.gxx +++ b/src/FoundationClasses/TKMath/Bnd/Bnd_B3x.gxx @@ -134,10 +134,8 @@ Standard_Boolean Bnd_B3x::Limit (const Bnd_B3x& theBox) return aResult; } -//======================================================================= -//function : Transformed -//purpose : -//======================================================================= +//================================================================================================= + Bnd_B3x Bnd_B3x::Transformed (const gp_Trsf& theTrsf) const { @@ -319,10 +317,8 @@ Standard_Boolean Bnd_B3x::IsOut (const Bnd_B3x& theBox, return aResult; } -//======================================================================= -//function : IsOut -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Bnd_B3x::IsOut (const gp_Ax3& thePlane) const { @@ -343,10 +339,8 @@ Standard_Boolean Bnd_B3x::IsOut (const gp_Ax3& thePlane) const return ((aDist0 + aDist1) * (aDist0 - aDist1) > 0.); } -//======================================================================= -//function : IsOut -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Bnd_B3x::IsOut (const gp_Ax1& theLine, const Standard_Boolean isRay, diff --git a/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfNodes.hxx b/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfNodes.hxx index ad8c8adcb9..cd21a96386 100644 --- a/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfNodes.hxx +++ b/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfNodes.hxx @@ -112,10 +112,8 @@ public: gp_Pnt operator[](Standard_Integer theIndex) const { return Value(theIndex); } }; -// ======================================================================= -// function : Value -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt Poly_ArrayOfNodes::Value(Standard_Integer theIndex) const { if (myStride == (Standard_Integer)sizeof(gp_Pnt)) @@ -129,10 +127,8 @@ inline gp_Pnt Poly_ArrayOfNodes::Value(Standard_Integer theIndex) const } } -// ======================================================================= -// function : SetValue -// purpose : -// ======================================================================= +//================================================================================================= + inline void Poly_ArrayOfNodes::SetValue(Standard_Integer theIndex, const gp_Pnt& theValue) { if (myStride == (Standard_Integer)sizeof(gp_Pnt)) diff --git a/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfUVNodes.hxx b/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfUVNodes.hxx index 3f05b380ec..c9016abaf5 100644 --- a/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfUVNodes.hxx +++ b/src/FoundationClasses/TKMath/Poly/Poly_ArrayOfUVNodes.hxx @@ -112,10 +112,8 @@ public: gp_Pnt2d operator[](Standard_Integer theIndex) const { return Value(theIndex); } }; -// ======================================================================= -// function : Value -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt2d Poly_ArrayOfUVNodes::Value(Standard_Integer theIndex) const { if (myStride == (Standard_Integer)sizeof(gp_Pnt2d)) @@ -129,10 +127,8 @@ inline gp_Pnt2d Poly_ArrayOfUVNodes::Value(Standard_Integer theIndex) const } } -// ======================================================================= -// function : SetValue -// purpose : -// ======================================================================= +//================================================================================================= + inline void Poly_ArrayOfUVNodes::SetValue(Standard_Integer theIndex, const gp_Pnt2d& theValue) { if (myStride == (Standard_Integer)sizeof(gp_Pnt2d)) diff --git a/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.cxx b/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.cxx index 8cbaebe2dd..f78330be47 100644 --- a/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.cxx +++ b/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.cxx @@ -22,10 +22,7 @@ #include #include -//======================================================================= -// function : TopLoc_Location -// purpose : constructor Identity -//======================================================================= +//================================================================================================= TopLoc_Location::TopLoc_Location() {} diff --git a/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.lxx b/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.lxx index dd79dcfbd4..bfdc712186 100644 --- a/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.lxx +++ b/src/FoundationClasses/TKMath/TopLoc/TopLoc_Location.lxx @@ -19,60 +19,43 @@ #include #include -//======================================================================= -// function : IsIdentity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopLoc_Location::IsIdentity() const { return myItems.IsEmpty(); } -//======================================================================= -// function : Identity -// purpose : -//======================================================================= +//================================================================================================= inline void TopLoc_Location::Identity() { myItems.Clear(); } -//======================================================================= -// function : FirstDatum -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(TopLoc_Datum3D)& TopLoc_Location::FirstDatum() const { return myItems.Value().myDatum; } -//======================================================================= -// function : FirstPower -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopLoc_Location::FirstPower() const { return myItems.Value().myPower; } -//======================================================================= -// function : NextLocation -// purpose : -//======================================================================= +//================================================================================================= inline const TopLoc_Location& TopLoc_Location::NextLocation() const { return (*(TopLoc_Location*)&(myItems.Tail())); } -//======================================================================= -// function : HashCode -// purpose : -//======================================================================= +//================================================================================================= + inline size_t TopLoc_Location::HashCode() const { // Hashing base on IsEqual function @@ -94,10 +77,8 @@ inline size_t TopLoc_Location::HashCode() const return aHash; } -//======================================================================= -// function : ShallowDump -// purpose : -//======================================================================= +//================================================================================================= + inline void ShallowDump(const TopLoc_Location& me, Standard_OStream& S) { me.ShallowDump(S); diff --git a/src/FoundationClasses/TKMath/gp/gp_Ax2.hxx b/src/FoundationClasses/TKMath/gp/gp_Ax2.hxx index a9738294c6..3771f0e1bf 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Ax2.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Ax2.hxx @@ -370,10 +370,8 @@ private: gp_Dir vxdir; }; -// ======================================================================= -// function : SetAxis -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax2::SetAxis(const gp_Ax1& theA1) { Standard_Real a = theA1.Direction() * vxdir; @@ -399,10 +397,8 @@ inline void gp_Ax2::SetAxis(const gp_Ax1& theA1) } } -// ======================================================================= -// function : SetDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax2::SetDirection(const gp_Dir& theV) { Standard_Real a = theV * vxdir; @@ -428,10 +424,8 @@ inline void gp_Ax2::SetDirection(const gp_Dir& theV) } } -// ======================================================================= -// function : IsCoplanar -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Ax2::IsCoplanar(const gp_Ax2& theOther, const Standard_Real theLinearTolerance, const Standard_Real theAngularTolerance) const @@ -448,10 +442,8 @@ inline Standard_Boolean gp_Ax2::IsCoplanar(const gp_Ax2& theOther, return D1 <= theLinearTolerance && axis.IsParallel(theOther.axis, theAngularTolerance); } -// ======================================================================= -// function : IsCoplanar -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Ax2::IsCoplanar(const gp_Ax1& theA, const Standard_Real theLinearTolerance, const Standard_Real theAngularTolerance) const diff --git a/src/FoundationClasses/TKMath/gp/gp_Ax22d.hxx b/src/FoundationClasses/TKMath/gp/gp_Ax22d.hxx index dd3ddcfb9d..009f30fa86 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Ax22d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Ax22d.hxx @@ -262,10 +262,8 @@ private: gp_Dir2d vxdir; }; -// ======================================================================= -// function : SetDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::SetXAxis(const gp_Ax2d& theA1) { Standard_Boolean isSign = (vxdir.Crossed(vydir)) >= 0.0; @@ -281,10 +279,8 @@ inline void gp_Ax22d::SetXAxis(const gp_Ax2d& theA1) } } -// ======================================================================= -// function : SetDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::SetYAxis(const gp_Ax2d& theA1) { Standard_Boolean isSign = (vxdir.Crossed(vydir)) >= 0.0; @@ -300,10 +296,8 @@ inline void gp_Ax22d::SetYAxis(const gp_Ax2d& theA1) } } -// ======================================================================= -// function : SetXDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::SetXDirection(const gp_Dir2d& theVx) { Standard_Boolean isSign = (vxdir.Crossed(vydir)) >= 0.0; @@ -318,10 +312,8 @@ inline void gp_Ax22d::SetXDirection(const gp_Dir2d& theVx) } } -// ======================================================================= -// function : SetYDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::SetYDirection(const gp_Dir2d& theVy) { Standard_Boolean isSign = (vxdir.Crossed(vydir)) >= 0.0; @@ -336,10 +328,8 @@ inline void gp_Ax22d::SetYDirection(const gp_Dir2d& theVy) } } -// ======================================================================= -// function : Rotate -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::Rotate(const gp_Pnt2d& theP, const Standard_Real theAng) { gp_Pnt2d aTemp = point; @@ -349,10 +339,8 @@ inline void gp_Ax22d::Rotate(const gp_Pnt2d& theP, const Standard_Real theAng) vydir.Rotate(theAng); } -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { gp_Pnt2d aTemp = point; @@ -365,10 +353,8 @@ inline void gp_Ax22d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) } } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax22d::Transform(const gp_Trsf2d& theT) { gp_Pnt2d aTemp = point; diff --git a/src/FoundationClasses/TKMath/gp/gp_Ax3.hxx b/src/FoundationClasses/TKMath/gp/gp_Ax3.hxx index 6436cb3a50..cb8e7105b1 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Ax3.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Ax3.hxx @@ -327,10 +327,8 @@ private: gp_Dir vxdir; }; -// ======================================================================= -// function : gp_Ax3 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax3::gp_Ax3(const gp_Ax2& theA) : axis(theA.Axis()), vydir(theA.YDirection()), @@ -338,10 +336,8 @@ inline gp_Ax3::gp_Ax3(const gp_Ax2& theA) { } -// ======================================================================= -// function : Ax2 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax2 gp_Ax3::Ax2() const { gp_Dir aZz = axis.Direction(); @@ -352,20 +348,16 @@ inline gp_Ax2 gp_Ax3::Ax2() const return gp_Ax2(axis.Location(), aZz, vxdir); } -// ======================================================================= -// function : SetAxis -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax3::SetAxis(const gp_Ax1& theA1) { axis.SetLocation(theA1.Location()); SetDirection(theA1.Direction()); } -// ======================================================================= -// function : SetDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax3::SetDirection(const gp_Dir& theV) { Standard_Real aDot = theV.Dot(vxdir); @@ -398,10 +390,8 @@ inline void gp_Ax3::SetDirection(const gp_Dir& theV) } } -// ======================================================================= -// function : SetXDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax3::SetXDirection(const gp_Dir& theVx) { Standard_Real aDot = theVx.Dot(axis.Direction()); @@ -433,10 +423,8 @@ inline void gp_Ax3::SetXDirection(const gp_Dir& theVx) } } -// ======================================================================= -// function : SetYDirection -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Ax3::SetYDirection(const gp_Dir& theVy) { Standard_Real aDot = theVy.Dot(axis.Direction()); @@ -465,10 +453,8 @@ inline void gp_Ax3::SetYDirection(const gp_Dir& theVy) } } -// ======================================================================= -// function : IsCoplanar -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Ax3::IsCoplanar(const gp_Ax3& theOther, const Standard_Real theLinearTolerance, const Standard_Real theAngularTolerance) const @@ -488,10 +474,8 @@ inline Standard_Boolean gp_Ax3::IsCoplanar(const gp_Ax3& theOther, && axis.IsParallel(theOther.axis, theAngularTolerance)); } -// ======================================================================= -// function : IsCoplanar -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Ax3::IsCoplanar(const gp_Ax1& theA1, const Standard_Real theLinearTolerance, const Standard_Real theAngularTolerance) const diff --git a/src/FoundationClasses/TKMath/gp/gp_Circ.hxx b/src/FoundationClasses/TKMath/gp/gp_Circ.hxx index 3fff5499dc..1ee32a0bc5 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Circ.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Circ.hxx @@ -222,10 +222,8 @@ private: Standard_Real radius; }; -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Circ::Scale(const gp_Pnt& theP, const Standard_Real theS) { radius *= theS; @@ -236,10 +234,8 @@ inline void gp_Circ::Scale(const gp_Pnt& theP, const Standard_Real theS) pos.Scale(theP, theS); } -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Circ gp_Circ::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Circ aC = *this; @@ -252,10 +248,8 @@ inline gp_Circ gp_Circ::Scaled(const gp_Pnt& theP, const Standard_Real theS) con return aC; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Circ::Transform(const gp_Trsf& theT) { radius *= theT.ScaleFactor(); @@ -266,10 +260,8 @@ inline void gp_Circ::Transform(const gp_Trsf& theT) pos.Transform(theT); } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Circ gp_Circ::Transformed(const gp_Trsf& theT) const { gp_Circ aC = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Circ2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Circ2d.hxx index 98e50c293b..63d14ca649 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Circ2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Circ2d.hxx @@ -245,10 +245,8 @@ private: Standard_Real radius; }; -// ======================================================================= -// function : Coefficients -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Circ2d::Coefficients(Standard_Real& theA, Standard_Real& theB, Standard_Real& theC, @@ -266,10 +264,8 @@ inline void gp_Circ2d::Coefficients(Standard_Real& theA, theF = aXc * aXc + anYc * anYc - radius * radius; } -// ======================================================================= -// function : Distance -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Circ2d::Distance(const gp_Pnt2d& theP) const { gp_XY aCoord = theP.XY(); @@ -282,10 +278,8 @@ inline Standard_Real gp_Circ2d::Distance(const gp_Pnt2d& theP) const return aD; } -// ======================================================================= -// function : Reversed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Circ2d gp_Circ2d::Reversed() const { gp_Circ2d aCirc = *this; @@ -295,10 +289,8 @@ inline gp_Circ2d gp_Circ2d::Reversed() const return aCirc; } -// ======================================================================= -// function : SquareDistance -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Circ2d::SquareDistance(const gp_Pnt2d& theP) const { gp_XY aCoord = theP.XY(); @@ -307,10 +299,8 @@ inline Standard_Real gp_Circ2d::SquareDistance(const gp_Pnt2d& theP) const return aD * aD; } -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Circ2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { radius *= theS; @@ -321,10 +311,8 @@ inline void gp_Circ2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) pos.Scale(theP, theS); } -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Circ2d gp_Circ2d::Scaled(const gp_Pnt2d& theP, const Standard_Real theS) const { gp_Circ2d aCirc = *this; @@ -337,10 +325,8 @@ inline gp_Circ2d gp_Circ2d::Scaled(const gp_Pnt2d& theP, const Standard_Real the return aCirc; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Circ2d::Transform(const gp_Trsf2d& theT) { radius *= theT.ScaleFactor(); @@ -351,10 +337,8 @@ inline void gp_Circ2d::Transform(const gp_Trsf2d& theT) pos.Transform(theT); } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Circ2d gp_Circ2d::Transformed(const gp_Trsf2d& theT) const { gp_Circ2d aCirc = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Cone.hxx b/src/FoundationClasses/TKMath/gp/gp_Cone.hxx index bff1f5f5de..b2dced720d 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Cone.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Cone.hxx @@ -231,10 +231,8 @@ private: Standard_Real semiAngle; }; -// ======================================================================= -// function : gp_Cone -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Cone::gp_Cone(const gp_Ax3& theA3, const Standard_Real theAng, const Standard_Real theRadius) @@ -252,10 +250,8 @@ inline gp_Cone::gp_Cone(const gp_Ax3& theA3, "gp_Cone() - invalid construction parameters"); } -// ======================================================================= -// function : SetSemiAngle -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Cone::SetSemiAngle(const Standard_Real theAng) { Standard_Real aVal = theAng; @@ -269,10 +265,8 @@ inline void gp_Cone::SetSemiAngle(const Standard_Real theAng) semiAngle = theAng; } -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Cone::Scale(const gp_Pnt& theP, const Standard_Real theS) { pos.Scale(theP, theS); @@ -283,10 +277,8 @@ inline void gp_Cone::Scale(const gp_Pnt& theP, const Standard_Real theS) } } -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Cone gp_Cone::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Cone aC = *this; @@ -299,10 +291,8 @@ inline gp_Cone gp_Cone::Scaled(const gp_Pnt& theP, const Standard_Real theS) con return aC; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Cone::Transform(const gp_Trsf& theT) { pos.Transform(theT); @@ -313,10 +303,8 @@ inline void gp_Cone::Transform(const gp_Trsf& theT) } } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Cone gp_Cone::Transformed(const gp_Trsf& theT) const { gp_Cone aC = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Cylinder.hxx b/src/FoundationClasses/TKMath/gp/gp_Cylinder.hxx index d318e44849..e0fbfb6cec 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Cylinder.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Cylinder.hxx @@ -191,10 +191,8 @@ private: Standard_Real radius; }; -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Cylinder::Scale(const gp_Pnt& theP, const Standard_Real theS) { pos.Scale(theP, theS); @@ -205,10 +203,8 @@ inline void gp_Cylinder::Scale(const gp_Pnt& theP, const Standard_Real theS) } } -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Cylinder gp_Cylinder::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Cylinder aCyl = *this; @@ -221,10 +217,8 @@ inline gp_Cylinder gp_Cylinder::Scaled(const gp_Pnt& theP, const Standard_Real t return aCyl; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Cylinder::Transform(const gp_Trsf& theT) { pos.Transform(theT); @@ -235,10 +229,8 @@ inline void gp_Cylinder::Transform(const gp_Trsf& theT) } } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Cylinder gp_Cylinder::Transformed(const gp_Trsf& theT) const { gp_Cylinder aCyl = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Dir.hxx b/src/FoundationClasses/TKMath/gp/gp_Dir.hxx index 17a847f652..be0c8ad551 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Dir.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Dir.hxx @@ -288,10 +288,8 @@ private: #include -// ======================================================================= -// function : gp_Dir -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir::gp_Dir(const gp_Vec& theV) { const gp_XYZ& aXYZ = theV.XYZ(); @@ -306,10 +304,8 @@ inline gp_Dir::gp_Dir(const gp_Vec& theV) coord.SetZ(aZ / aD); } -// ======================================================================= -// function : gp_Dir -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir::gp_Dir(const gp_XYZ& theXYZ) { Standard_Real aX = theXYZ.X(); @@ -323,10 +319,8 @@ inline gp_Dir::gp_Dir(const gp_XYZ& theXYZ) coord.SetZ(aZ / aD); } -// ======================================================================= -// function : gp_Dir -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir::gp_Dir(const Standard_Real theXv, const Standard_Real theYv, const Standard_Real theZv) @@ -339,10 +333,8 @@ inline gp_Dir::gp_Dir(const Standard_Real theXv, coord.SetZ(theZv / aD); } -// ======================================================================= -// function : SetCoord -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetCoord(const Standard_Integer theIndex, const Standard_Real theXi) { Standard_Real aX = coord.X(); @@ -370,10 +362,8 @@ inline void gp_Dir::SetCoord(const Standard_Integer theIndex, const Standard_Rea coord.SetZ(aZ / aD); } -// ======================================================================= -// function : SetCoord -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetCoord(const Standard_Real theXv, const Standard_Real theYv, const Standard_Real theZv) @@ -386,10 +376,8 @@ inline void gp_Dir::SetCoord(const Standard_Real theXv, coord.SetZ(theZv / aD); } -// ======================================================================= -// function : SetX -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetX(const Standard_Real theX) { Standard_Real anY = coord.Y(); @@ -402,10 +390,8 @@ inline void gp_Dir::SetX(const Standard_Real theX) coord.SetZ(aZ / aD); } -// ======================================================================= -// function : SetY -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetY(const Standard_Real theY) { Standard_Real aZ = coord.Z(); @@ -418,10 +404,8 @@ inline void gp_Dir::SetY(const Standard_Real theY) coord.SetZ(aZ / aD); } -// ======================================================================= -// function : SetZ -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetZ(const Standard_Real theZ) { Standard_Real aX = coord.X(); @@ -434,10 +418,8 @@ inline void gp_Dir::SetZ(const Standard_Real theZ) coord.SetZ(theZ / aD); } -// ======================================================================= -// function : SetXYZ -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::SetXYZ(const gp_XYZ& theXYZ) { Standard_Real aX = theXYZ.X(); @@ -451,10 +433,8 @@ inline void gp_Dir::SetXYZ(const gp_XYZ& theXYZ) coord.SetZ(aZ / aD); } -// ======================================================================= -// function : Cross -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::Cross(const gp_Dir& theRight) { coord.Cross(theRight.coord); @@ -464,10 +444,8 @@ inline void gp_Dir::Cross(const gp_Dir& theRight) coord.Divide(aD); } -// ======================================================================= -// function : Crossed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir gp_Dir::Crossed(const gp_Dir& theRight) const { gp_Dir aV = *this; @@ -479,10 +457,8 @@ inline gp_Dir gp_Dir::Crossed(const gp_Dir& theRight) const return aV; } -// ======================================================================= -// function : CrossCross -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::CrossCross(const gp_Dir& theV1, const gp_Dir& theV2) { coord.CrossCross(theV1.coord, theV2.coord); @@ -492,10 +468,8 @@ inline void gp_Dir::CrossCross(const gp_Dir& theV1, const gp_Dir& theV2) coord.Divide(aD); } -// ======================================================================= -// function : CrossCrossed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir gp_Dir::CrossCrossed(const gp_Dir& theV1, const gp_Dir& theV2) const { gp_Dir aV = *this; @@ -507,10 +481,8 @@ inline gp_Dir gp_Dir::CrossCrossed(const gp_Dir& theV1, const gp_Dir& theV2) con return aV; } -// ======================================================================= -// function : Rotate -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir::Rotate(const gp_Ax1& theA1, const Standard_Real theAng) { gp_Trsf aT; diff --git a/src/FoundationClasses/TKMath/gp/gp_Dir2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Dir2d.hxx index b7a9dc6dd6..6ce6cbf530 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Dir2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Dir2d.hxx @@ -257,10 +257,8 @@ private: #include #include -// ======================================================================= -// function : gp_Dir2d -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir2d::gp_Dir2d(const gp_Vec2d& theV) { const gp_XY& aXY = theV.XY(); @@ -273,10 +271,8 @@ inline gp_Dir2d::gp_Dir2d(const gp_Vec2d& theV) coord.SetY(anY / aD); } -// ======================================================================= -// function : gp_Dir2d -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir2d::gp_Dir2d(const gp_XY& theXY) { Standard_Real aX = theXY.X(); @@ -288,10 +284,8 @@ inline gp_Dir2d::gp_Dir2d(const gp_XY& theXY) coord.SetY(anY / aD); } -// ======================================================================= -// function : gp_Dir2d -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Dir2d::gp_Dir2d(const Standard_Real theXv, const Standard_Real theYv) { Standard_Real aD = sqrt(theXv * theXv + theYv * theYv); @@ -301,10 +295,8 @@ inline gp_Dir2d::gp_Dir2d(const Standard_Real theXv, const Standard_Real theYv) coord.SetY(theYv / aD); } -// ======================================================================= -// function : SetCoord -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::SetCoord(const Standard_Integer theIndex, const Standard_Real theXi) { Standard_Real aX = coord.X(); @@ -326,10 +318,8 @@ inline void gp_Dir2d::SetCoord(const Standard_Integer theIndex, const Standard_R coord.SetY(anY / aD); } -// ======================================================================= -// function : SetCoord -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::SetCoord(const Standard_Real theXv, const Standard_Real theYv) { Standard_Real aD = sqrt(theXv * theXv + theYv * theYv); @@ -339,10 +329,8 @@ inline void gp_Dir2d::SetCoord(const Standard_Real theXv, const Standard_Real th coord.SetY(theYv / aD); } -// ======================================================================= -// function : SetX -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::SetX(const Standard_Real theX) { Standard_Real anY = coord.Y(); @@ -353,10 +341,8 @@ inline void gp_Dir2d::SetX(const Standard_Real theX) coord.SetY(anY / aD); } -// ======================================================================= -// function : SetY -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::SetY(const Standard_Real theY) { Standard_Real aX = coord.X(); @@ -367,10 +353,8 @@ inline void gp_Dir2d::SetY(const Standard_Real theY) coord.SetY(theY / aD); } -// ======================================================================= -// function : SetXY -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::SetXY(const gp_XY& theXY) { Standard_Real aX = theXY.X(); @@ -382,10 +366,8 @@ inline void gp_Dir2d::SetXY(const gp_XY& theXY) coord.SetY(anY / aD); } -// ======================================================================= -// function : IsEqual -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Dir2d::IsEqual(const gp_Dir2d& theOther, const Standard_Real theAngularTolerance) const { @@ -397,10 +379,8 @@ inline Standard_Boolean gp_Dir2d::IsEqual(const gp_Dir2d& theOther, return anAng <= theAngularTolerance; } -// ======================================================================= -// function : IsNormal -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Dir2d::IsNormal(const gp_Dir2d& theOther, const Standard_Real theAngularTolerance) const { @@ -417,10 +397,8 @@ inline Standard_Boolean gp_Dir2d::IsNormal(const gp_Dir2d& theOther, return anAng <= theAngularTolerance; } -// ======================================================================= -// function : IsOpposite -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Dir2d::IsOpposite(const gp_Dir2d& theOther, const Standard_Real theAngularTolerance) const { @@ -432,10 +410,8 @@ inline Standard_Boolean gp_Dir2d::IsOpposite(const gp_Dir2d& theOther, return M_PI - anAng <= theAngularTolerance; } -// ======================================================================= -// function : IsParallel -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Dir2d::IsParallel(const gp_Dir2d& theOther, const Standard_Real theAngularTolerance) const { @@ -447,10 +423,8 @@ inline Standard_Boolean gp_Dir2d::IsParallel(const gp_Dir2d& theOther, return anAng <= theAngularTolerance || M_PI - anAng <= theAngularTolerance; } -// ======================================================================= -// function : Rotate -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Dir2d::Rotate(const Standard_Real theAng) { gp_Trsf2d aT; diff --git a/src/FoundationClasses/TKMath/gp/gp_Elips.hxx b/src/FoundationClasses/TKMath/gp/gp_Elips.hxx index 2ff4408357..4f768de967 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Elips.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Elips.hxx @@ -263,10 +263,8 @@ private: Standard_Real minorRadius; }; -// ======================================================================= -// function : Directrix1 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Elips::Directrix1() const { Standard_Real anE = Eccentricity(); @@ -278,10 +276,8 @@ inline gp_Ax1 gp_Elips::Directrix1() const return gp_Ax1(gp_Pnt(anOrig), pos.YDirection()); } -// ======================================================================= -// function : Directrix2 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Elips::Directrix2() const { Standard_Real anE = Eccentricity(); @@ -293,10 +289,8 @@ inline gp_Ax1 gp_Elips::Directrix2() const return gp_Ax1(gp_Pnt(anOrig), pos.YDirection()); } -// ======================================================================= -// function : Eccentricity -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Elips::Eccentricity() const { if (majorRadius == 0.0) @@ -309,10 +303,8 @@ inline Standard_Real gp_Elips::Eccentricity() const } } -// ======================================================================= -// function : Focus1 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt gp_Elips::Focus1() const { Standard_Real aC = sqrt(majorRadius * majorRadius - minorRadius * minorRadius); @@ -321,10 +313,8 @@ inline gp_Pnt gp_Elips::Focus1() const return gp_Pnt(aPP.X() + aC * aDD.X(), aPP.Y() + aC * aDD.Y(), aPP.Z() + aC * aDD.Z()); } -// ======================================================================= -// function : Focus2 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt gp_Elips::Focus2() const { Standard_Real aC = sqrt(majorRadius * majorRadius - minorRadius * minorRadius); @@ -333,10 +323,8 @@ inline gp_Pnt gp_Elips::Focus2() const return gp_Pnt(aPP.X() - aC * aDD.X(), aPP.Y() - aC * aDD.Y(), aPP.Z() - aC * aDD.Z()); } -// ======================================================================= -// function : Parameter -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Elips::Parameter() const { if (majorRadius == 0.0) @@ -349,10 +337,8 @@ inline Standard_Real gp_Elips::Parameter() const } } -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Elips::Scale(const gp_Pnt& theP, const Standard_Real theS) // Modified by skv - Fri Apr 8 10:28:10 2005 OCC8559 Begin // { pos.Scale(P, S); } @@ -372,10 +358,8 @@ inline void gp_Elips::Scale(const gp_Pnt& theP, const Standard_Real theS) // Modified by skv - Fri Apr 8 10:28:10 2005 OCC8559 End -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Elips gp_Elips::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Elips anE = *this; @@ -393,10 +377,8 @@ inline gp_Elips gp_Elips::Scaled(const gp_Pnt& theP, const Standard_Real theS) c return anE; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Elips::Transform(const gp_Trsf& theT) { majorRadius *= theT.ScaleFactor(); @@ -412,10 +394,8 @@ inline void gp_Elips::Transform(const gp_Trsf& theT) pos.Transform(theT); } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Elips gp_Elips::Transformed(const gp_Trsf& theT) const { gp_Elips anE = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Elips2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Elips2d.hxx index c8ce8cc3c3..d2596d1756 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Elips2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Elips2d.hxx @@ -288,10 +288,8 @@ private: Standard_Real minorRadius; }; -// ======================================================================= -// function : Directrix1 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Elips2d::Directrix1() const { Standard_Real anE = Eccentricity(); @@ -303,10 +301,8 @@ inline gp_Ax2d gp_Elips2d::Directrix1() const return gp_Ax2d(gp_Pnt2d(anOrig), gp_Dir2d(pos.YDirection())); } -// ======================================================================= -// function : Directrix2 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Elips2d::Directrix2() const { Standard_Real anE = Eccentricity(); @@ -318,10 +314,8 @@ inline gp_Ax2d gp_Elips2d::Directrix2() const return gp_Ax2d(gp_Pnt2d(anOrig), gp_Dir2d(pos.YDirection())); } -// ======================================================================= -// function : Eccentricity -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Elips2d::Eccentricity() const { if (majorRadius == 0.0) @@ -334,10 +328,8 @@ inline Standard_Real gp_Elips2d::Eccentricity() const } } -// ======================================================================= -// function : Focus1 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt2d gp_Elips2d::Focus1() const { Standard_Real aC = sqrt(majorRadius * majorRadius - minorRadius * minorRadius); @@ -346,10 +338,8 @@ inline gp_Pnt2d gp_Elips2d::Focus1() const return gp_Pnt2d(aPP.X() + aC * aDD.X(), aPP.Y() + aC * aDD.Y()); } -// ======================================================================= -// function : Focus2 -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Pnt2d gp_Elips2d::Focus2() const { Standard_Real aC = sqrt(majorRadius * majorRadius - minorRadius * minorRadius); @@ -358,10 +348,8 @@ inline gp_Pnt2d gp_Elips2d::Focus2() const return gp_Pnt2d(aPP.X() - aC * aDD.X(), aPP.Y() - aC * aDD.Y()); } -// ======================================================================= -// function : Scale -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Elips2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { majorRadius *= theS; @@ -377,10 +365,8 @@ inline void gp_Elips2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) pos.Scale(theP, theS); } -// ======================================================================= -// function : Scaled -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Elips2d gp_Elips2d::Scaled(const gp_Pnt2d& theP, const Standard_Real theS) const { gp_Elips2d anE = *this; @@ -398,10 +384,8 @@ inline gp_Elips2d gp_Elips2d::Scaled(const gp_Pnt2d& theP, const Standard_Real t return anE; } -// ======================================================================= -// function : Parameter -// purpose : -// ======================================================================= +//================================================================================================= + inline Standard_Real gp_Elips2d::Parameter() const { if (majorRadius == 0.0) @@ -414,10 +398,8 @@ inline Standard_Real gp_Elips2d::Parameter() const } } -// ======================================================================= -// function : Reversed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Elips2d gp_Elips2d::Reversed() const { gp_Elips2d anE = *this; @@ -427,10 +409,8 @@ inline gp_Elips2d gp_Elips2d::Reversed() const return anE; } -// ======================================================================= -// function : Transform -// purpose : -// ======================================================================= +//================================================================================================= + inline void gp_Elips2d::Transform(const gp_Trsf2d& theT) { Standard_Real aTSca = theT.ScaleFactor(); @@ -443,10 +423,8 @@ inline void gp_Elips2d::Transform(const gp_Trsf2d& theT) pos.Transform(theT); } -// ======================================================================= -// function : Transformed -// purpose : -// ======================================================================= +//================================================================================================= + inline gp_Elips2d gp_Elips2d::Transformed(const gp_Trsf2d& theT) const { gp_Elips2d anE = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_GTrsf.hxx b/src/FoundationClasses/TKMath/gp/gp_GTrsf.hxx index 4b204e1c70..efeafa71ad 100644 --- a/src/FoundationClasses/TKMath/gp/gp_GTrsf.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_GTrsf.hxx @@ -316,10 +316,8 @@ private: Standard_Real scale; }; -//======================================================================= -// function : SetAffinity -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf::SetAffinity(const gp_Ax1& theA1, const Standard_Real theRatio) { shape = gp_Other; @@ -335,10 +333,8 @@ inline void gp_GTrsf::SetAffinity(const gp_Ax1& theA1, const Standard_Real theRa loc.Add(theA1.Location().XYZ()); } -//======================================================================= -// function : SetAffinity -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf::SetAffinity(const gp_Ax2& theA2, const Standard_Real theRatio) { shape = gp_Other; @@ -351,10 +347,8 @@ inline void gp_GTrsf::SetAffinity(const gp_Ax2& theA2, const Standard_Real theRa matrix.SetDiagonal(matrix.Value(1, 1) + 1., matrix.Value(2, 2) + 1., matrix.Value(3, 3) + 1.); } -//======================================================================= -// function : SetValue -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf::SetValue(const Standard_Integer theRow, const Standard_Integer theCol, const Standard_Real theValue) @@ -382,10 +376,8 @@ inline void gp_GTrsf::SetValue(const Standard_Integer theRow, } } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_GTrsf::Value(const Standard_Integer theRow, const Standard_Integer theCol) const { @@ -401,10 +393,8 @@ inline Standard_Real gp_GTrsf::Value(const Standard_Integer theRow, return scale * matrix.Value(theRow, theCol); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf::Transforms(gp_XYZ& theCoord) const { theCoord.Multiply(matrix); @@ -415,10 +405,8 @@ inline void gp_GTrsf::Transforms(gp_XYZ& theCoord) const theCoord.Add(loc); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf::Transforms(Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const @@ -433,10 +421,8 @@ inline void gp_GTrsf::Transforms(Standard_Real& theX, aTriplet.Coord(theX, theY, theZ); } -//======================================================================= -// function : Trsf -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Trsf gp_GTrsf::Trsf() const { if (Form() == gp_Other) diff --git a/src/FoundationClasses/TKMath/gp/gp_GTrsf2d.hxx b/src/FoundationClasses/TKMath/gp/gp_GTrsf2d.hxx index 6de71f872e..9d8fbd90ff 100644 --- a/src/FoundationClasses/TKMath/gp/gp_GTrsf2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_GTrsf2d.hxx @@ -235,10 +235,8 @@ private: #include -//======================================================================= -// function : SetTrsf2d -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf2d::SetTrsf2d(const gp_Trsf2d& theT) { shape = theT.shape; @@ -247,10 +245,8 @@ inline void gp_GTrsf2d::SetTrsf2d(const gp_Trsf2d& theT) scale = theT.scale; } -//======================================================================= -// function : gp_GTrsf2d -// purpose : -//======================================================================= +//================================================================================================= + inline gp_GTrsf2d::gp_GTrsf2d(const gp_Trsf2d& theT) { shape = theT.shape; @@ -259,10 +255,8 @@ inline gp_GTrsf2d::gp_GTrsf2d(const gp_Trsf2d& theT) scale = theT.scale; } -//======================================================================= -// function : SetValue -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf2d::SetValue(const Standard_Integer theRow, const Standard_Integer theCol, const Standard_Real theValue) @@ -279,10 +273,8 @@ inline void gp_GTrsf2d::SetValue(const Standard_Integer theRow, shape = gp_Other; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_GTrsf2d::Value(const Standard_Integer theRow, const Standard_Integer theCol) const { @@ -298,10 +290,8 @@ inline Standard_Real gp_GTrsf2d::Value(const Standard_Integer theRow, return scale * matrix.Value(theRow, theCol); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf2d::Transforms(gp_XY& theCoord) const { theCoord.Multiply(matrix); @@ -312,10 +302,8 @@ inline void gp_GTrsf2d::Transforms(gp_XY& theCoord) const theCoord.Add(loc); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_GTrsf2d::Transforms(Standard_Real& theX, Standard_Real& theY) const { gp_XY aDoublet(theX, theY); diff --git a/src/FoundationClasses/TKMath/gp/gp_Hypr.hxx b/src/FoundationClasses/TKMath/gp/gp_Hypr.hxx index b1aac4f1d7..ad4ba6cfb0 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Hypr.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Hypr.hxx @@ -342,10 +342,8 @@ private: Standard_Real minorRadius; }; -//======================================================================= -// function : Asymptote1 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Hypr::Asymptote1() const { Standard_ConstructionError_Raise_if(majorRadius <= gp::Resolution(), @@ -357,10 +355,8 @@ inline gp_Ax1 gp_Hypr::Asymptote1() const return gp_Ax1(pos.Location(), gp_Dir(aV)); } -//======================================================================= -// function : Asymptote2 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Hypr::Asymptote2() const { Standard_ConstructionError_Raise_if(majorRadius <= gp::Resolution(), @@ -372,10 +368,8 @@ inline gp_Ax1 gp_Hypr::Asymptote2() const return gp_Ax1(pos.Location(), gp_Dir(aV)); } -//======================================================================= -// function : Focus1 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt gp_Hypr::Focus1() const { Standard_Real aC = sqrt(majorRadius * majorRadius + minorRadius * minorRadius); @@ -384,10 +378,8 @@ inline gp_Pnt gp_Hypr::Focus1() const return gp_Pnt(aPP.X() + aC * aDD.X(), aPP.Y() + aC * aDD.Y(), aPP.Z() + aC * aDD.Z()); } -//======================================================================= -// function : Focus2 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt gp_Hypr::Focus2() const { Standard_Real aC = sqrt(majorRadius * majorRadius + minorRadius * minorRadius); @@ -396,10 +388,8 @@ inline gp_Pnt gp_Hypr::Focus2() const return gp_Pnt(aPP.X() - aC * aDD.X(), aPP.Y() - aC * aDD.Y(), aPP.Z() - aC * aDD.Z()); } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Hypr::Scale(const gp_Pnt& theP, const Standard_Real theS) { majorRadius *= theS; @@ -415,10 +405,8 @@ inline void gp_Hypr::Scale(const gp_Pnt& theP, const Standard_Real theS) pos.Scale(theP, theS); } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Hypr gp_Hypr::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Hypr aH = *this; @@ -436,10 +424,8 @@ inline gp_Hypr gp_Hypr::Scaled(const gp_Pnt& theP, const Standard_Real theS) con return aH; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Hypr::Transform(const gp_Trsf& theT) { majorRadius *= theT.ScaleFactor(); @@ -455,10 +441,8 @@ inline void gp_Hypr::Transform(const gp_Trsf& theT) pos.Transform(theT); } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Hypr gp_Hypr::Transformed(const gp_Trsf& theT) const { gp_Hypr aH = *this; @@ -476,10 +460,8 @@ inline gp_Hypr gp_Hypr::Transformed(const gp_Trsf& theT) const return aH; } -//======================================================================= -// function : Directrix1 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Hypr::Directrix1() const { Standard_Real anE = Eccentricity(); @@ -489,10 +471,8 @@ inline gp_Ax1 gp_Hypr::Directrix1() const return gp_Ax1(gp_Pnt(anOrig), pos.YDirection()); } -//======================================================================= -// function : Directrix2 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Hypr::Directrix2() const { Standard_Real anE = Eccentricity(); diff --git a/src/FoundationClasses/TKMath/gp/gp_Hypr2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Hypr2d.hxx index 45f57c5fb6..3eee4d9cfc 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Hypr2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Hypr2d.hxx @@ -391,10 +391,8 @@ private: Standard_Real minorRadius; }; -//======================================================================= -// function : Asymptote1 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Hypr2d::Asymptote1() const { Standard_ConstructionError_Raise_if(majorRadius <= gp::Resolution(), @@ -407,10 +405,8 @@ inline gp_Ax2d gp_Hypr2d::Asymptote1() const return gp_Ax2d(pos.Location(), aVdir); } -//======================================================================= -// function : Asymptote2 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Hypr2d::Asymptote2() const { Standard_ConstructionError_Raise_if(majorRadius <= gp::Resolution(), @@ -423,10 +419,8 @@ inline gp_Ax2d gp_Hypr2d::Asymptote2() const return gp_Ax2d(pos.Location(), aVdir); } -//======================================================================= -// function : Directrix1 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Hypr2d::Directrix1() const { Standard_Real anE = Eccentricity(); @@ -436,10 +430,8 @@ inline gp_Ax2d gp_Hypr2d::Directrix1() const return gp_Ax2d(gp_Pnt2d(anOrig), gp_Dir2d(pos.YDirection())); } -//======================================================================= -// function : Directrix2 -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Hypr2d::Directrix2() const { Standard_Real anE = Eccentricity(); @@ -449,10 +441,8 @@ inline gp_Ax2d gp_Hypr2d::Directrix2() const return gp_Ax2d(gp_Pnt2d(anOrig), gp_Dir2d(pos.YDirection())); } -//======================================================================= -// function : Reversed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Hypr2d gp_Hypr2d::Reversed() const { gp_Hypr2d aH = *this; @@ -462,10 +452,8 @@ inline gp_Hypr2d gp_Hypr2d::Reversed() const return aH; } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Hypr2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { majorRadius *= theS; @@ -481,10 +469,8 @@ inline void gp_Hypr2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) pos.Scale(theP, theS); } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Hypr2d gp_Hypr2d::Scaled(const gp_Pnt2d& theP, const Standard_Real theS) const { gp_Hypr2d aH = *this; @@ -502,10 +488,8 @@ inline gp_Hypr2d gp_Hypr2d::Scaled(const gp_Pnt2d& theP, const Standard_Real the return aH; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Hypr2d::Transform(const gp_Trsf2d& theT) { majorRadius *= theT.ScaleFactor(); @@ -521,10 +505,8 @@ inline void gp_Hypr2d::Transform(const gp_Trsf2d& theT) pos.Transform(theT); } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Hypr2d gp_Hypr2d::Transformed(const gp_Trsf2d& theT) const { gp_Hypr2d aH = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Lin.hxx b/src/FoundationClasses/TKMath/gp/gp_Lin.hxx index d8a86a502d..c22e24fafc 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Lin.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Lin.hxx @@ -210,10 +210,8 @@ private: gp_Ax1 pos; }; -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin::Distance(const gp_Pnt& theP) const { gp_XYZ aCoord = theP.XYZ(); @@ -222,10 +220,8 @@ inline Standard_Real gp_Lin::Distance(const gp_Pnt& theP) const return aCoord.Modulus(); } -//======================================================================= -// function : SquareDistance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin::SquareDistance(const gp_Pnt& theP) const { const gp_Pnt& aLoc = pos.Location(); @@ -234,10 +230,8 @@ inline Standard_Real gp_Lin::SquareDistance(const gp_Pnt& theP) const return aV.SquareMagnitude(); } -//======================================================================= -// function : Normal -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Lin gp_Lin::Normal(const gp_Pnt& theP) const { const gp_Pnt& aLoc = pos.Location(); diff --git a/src/FoundationClasses/TKMath/gp/gp_Lin2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Lin2d.hxx index 6a9ab20fad..d254ec0ecd 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Lin2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Lin2d.hxx @@ -212,10 +212,8 @@ private: gp_Ax2d pos; }; -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin2d::Distance(const gp_Pnt2d& theP) const { gp_XY aCoord = theP.XY(); @@ -228,10 +226,8 @@ inline Standard_Real gp_Lin2d::Distance(const gp_Pnt2d& theP) const return aVal; } -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin2d::Distance(const gp_Lin2d& theOther) const { Standard_Real aD = 0.0; @@ -242,10 +238,8 @@ inline Standard_Real gp_Lin2d::Distance(const gp_Lin2d& theOther) const return aD; } -//======================================================================= -// function : SquareDistance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin2d::SquareDistance(const gp_Pnt2d& theP) const { gp_XY aCoord = theP.XY(); @@ -254,10 +248,8 @@ inline Standard_Real gp_Lin2d::SquareDistance(const gp_Pnt2d& theP) const return aD * aD; } -//======================================================================= -// function : SquareDistance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Lin2d::SquareDistance(const gp_Lin2d& theOther) const { Standard_Real aD = 0.0; diff --git a/src/FoundationClasses/TKMath/gp/gp_Mat.hxx b/src/FoundationClasses/TKMath/gp/gp_Mat.hxx index 0008aec9fb..12a56c2f7d 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Mat.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Mat.hxx @@ -310,10 +310,8 @@ private: Standard_Real myMat[3][3]; }; -//======================================================================= -// function : gp_Mat -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat::gp_Mat(const Standard_Real theA11, const Standard_Real theA12, const Standard_Real theA13, @@ -335,10 +333,8 @@ inline gp_Mat::gp_Mat(const Standard_Real theA11, myMat[2][2] = theA33; } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::Add(const gp_Mat& theOther) { myMat[0][0] += theOther.myMat[0][0]; @@ -352,10 +348,8 @@ inline void gp_Mat::Add(const gp_Mat& theOther) myMat[2][2] += theOther.myMat[2][2]; } -//======================================================================= -// function : Added -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat gp_Mat::Added(const gp_Mat& theOther) const { gp_Mat aNewMat(*this); @@ -363,10 +357,8 @@ inline gp_Mat gp_Mat::Added(const gp_Mat& theOther) const return aNewMat; } -//======================================================================= -// function : Divide -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::Divide(const Standard_Real theScalar) { Standard_Real aVal = theScalar; @@ -387,10 +379,8 @@ inline void gp_Mat::Divide(const Standard_Real theScalar) myMat[2][2] *= anUnSurScalar; } -//======================================================================= -// function : Divided -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat gp_Mat::Divided(const Standard_Real theScalar) const { gp_Mat aNewMat(*this); @@ -398,10 +388,8 @@ inline gp_Mat gp_Mat::Divided(const Standard_Real theScalar) const return aNewMat; } -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::Multiply(const gp_Mat& theOther) { const Standard_Real aT00 = myMat[0][0] * theOther.myMat[0][0] + myMat[0][1] * theOther.myMat[1][0] @@ -433,10 +421,8 @@ inline void gp_Mat::Multiply(const gp_Mat& theOther) myMat[2][2] = aT22; } -//======================================================================= -// function : PreMultiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::PreMultiply(const gp_Mat& theOther) { const Standard_Real aT00 = theOther.myMat[0][0] * myMat[0][0] + theOther.myMat[0][1] * myMat[1][0] @@ -468,10 +454,8 @@ inline void gp_Mat::PreMultiply(const gp_Mat& theOther) myMat[2][2] = aT22; } -//======================================================================= -// function : Multiplied -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat gp_Mat::Multiplied(const Standard_Real theScalar) const { gp_Mat aNewMat(*this); @@ -479,10 +463,8 @@ inline gp_Mat gp_Mat::Multiplied(const Standard_Real theScalar) const return aNewMat; } -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::Multiply(const Standard_Real theScalar) { myMat[0][0] *= theScalar; @@ -496,10 +478,8 @@ inline void gp_Mat::Multiply(const Standard_Real theScalar) myMat[2][2] *= theScalar; } -//======================================================================= -// function : Subtract -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat::Subtract(const gp_Mat& theOther) { myMat[0][0] -= theOther.myMat[0][0]; @@ -513,10 +493,8 @@ inline void gp_Mat::Subtract(const gp_Mat& theOther) myMat[2][2] -= theOther.myMat[2][2]; } -//======================================================================= -// function : Subtracted -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat gp_Mat::Subtracted(const gp_Mat& theOther) const { gp_Mat aNewMat(*this); @@ -524,10 +502,8 @@ inline gp_Mat gp_Mat::Subtracted(const gp_Mat& theOther) const return aNewMat; } -//======================================================================= -// function : Transpose -// purpose : -//======================================================================= +//================================================================================================= + // On macOS 10.13.6 with XCode 9.4.1 the compiler has a bug leading to // generation of invalid code when method gp_Mat::Transpose() is called // for a matrix which is when applied to vector; it looks like vector diff --git a/src/FoundationClasses/TKMath/gp/gp_Mat2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Mat2d.hxx index c777a044da..1723d3c7e4 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Mat2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Mat2d.hxx @@ -266,10 +266,8 @@ private: Standard_Real myMat[2][2]; }; -//======================================================================= -// function : SetRotation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::SetRotation(const Standard_Real theAng) { Standard_Real aSinA = sin(theAng); @@ -279,10 +277,8 @@ inline void gp_Mat2d::SetRotation(const Standard_Real theAng) myMat[1][0] = aSinA; } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Add(const gp_Mat2d& theOther) { myMat[0][0] += theOther.myMat[0][0]; @@ -291,10 +287,8 @@ inline void gp_Mat2d::Add(const gp_Mat2d& theOther) myMat[1][1] += theOther.myMat[1][1]; } -//======================================================================= -// function : Added -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat2d gp_Mat2d::Added(const gp_Mat2d& theOther) const { gp_Mat2d aNewMat2d; @@ -305,10 +299,8 @@ inline gp_Mat2d gp_Mat2d::Added(const gp_Mat2d& theOther) const return aNewMat2d; } -//======================================================================= -// function : Divide -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Divide(const Standard_Real theScalar) { myMat[0][0] /= theScalar; @@ -317,10 +309,8 @@ inline void gp_Mat2d::Divide(const Standard_Real theScalar) myMat[1][1] /= theScalar; } -//======================================================================= -// function : Divided -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat2d gp_Mat2d::Divided(const Standard_Real theScalar) const { gp_Mat2d aNewMat2d; @@ -331,10 +321,8 @@ inline gp_Mat2d gp_Mat2d::Divided(const Standard_Real theScalar) const return aNewMat2d; } -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Multiply(const gp_Mat2d& theOther) { const Standard_Real aT00 = @@ -347,10 +335,8 @@ inline void gp_Mat2d::Multiply(const gp_Mat2d& theOther) myMat[1][0] = aT10; } -//======================================================================= -// function : PreMultiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::PreMultiply(const gp_Mat2d& theOther) { const Standard_Real aT00 = @@ -363,10 +349,8 @@ inline void gp_Mat2d::PreMultiply(const gp_Mat2d& theOther) myMat[0][1] = aT01; } -//======================================================================= -// function : Multiplied -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat2d gp_Mat2d::Multiplied(const Standard_Real theScalar) const { gp_Mat2d aNewMat2d; @@ -377,10 +361,8 @@ inline gp_Mat2d gp_Mat2d::Multiplied(const Standard_Real theScalar) const return aNewMat2d; } -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Multiply(const Standard_Real theScalar) { myMat[0][0] *= theScalar; @@ -389,10 +371,8 @@ inline void gp_Mat2d::Multiply(const Standard_Real theScalar) myMat[1][1] *= theScalar; } -//======================================================================= -// function : Subtract -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Subtract(const gp_Mat2d& theOther) { myMat[0][0] -= theOther.myMat[0][0]; @@ -401,10 +381,8 @@ inline void gp_Mat2d::Subtract(const gp_Mat2d& theOther) myMat[1][1] -= theOther.myMat[1][1]; } -//======================================================================= -// function : Subtracted -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat2d gp_Mat2d::Subtracted(const gp_Mat2d& theOther) const { gp_Mat2d aNewMat2d; @@ -415,10 +393,8 @@ inline gp_Mat2d gp_Mat2d::Subtracted(const gp_Mat2d& theOther) const return aNewMat2d; } -//======================================================================= -// function : Transpose -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Mat2d::Transpose() { const Standard_Real aTemp = myMat[0][1]; @@ -426,10 +402,8 @@ inline void gp_Mat2d::Transpose() myMat[1][0] = aTemp; } -//======================================================================= -// function : Transposed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Mat2d gp_Mat2d::Transposed() const { gp_Mat2d aNewMat2d; diff --git a/src/FoundationClasses/TKMath/gp/gp_Parab.hxx b/src/FoundationClasses/TKMath/gp/gp_Parab.hxx index dd5d7817cf..12cae6ee49 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Parab.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Parab.hxx @@ -220,10 +220,8 @@ private: Standard_Real focalLength; }; -//======================================================================= -// function : gp_Parab -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab::gp_Parab(const gp_Ax1& theD, const gp_Pnt& theF) { gp_Lin aDroite(theD); @@ -238,10 +236,8 @@ inline gp_Parab::gp_Parab(const gp_Ax1& theD, const gp_Pnt& theF) anAx.Direction()); } -//======================================================================= -// function : Directrix -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax1 gp_Parab::Directrix() const { const gp_Pnt& aPP = pos.Location(); @@ -252,10 +248,8 @@ inline gp_Ax1 gp_Parab::Directrix() const return gp_Ax1(aP, pos.YDirection()); } -//======================================================================= -// function : Focus -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt gp_Parab::Focus() const { const gp_Pnt& aPP = pos.Location(); @@ -265,10 +259,8 @@ inline gp_Pnt gp_Parab::Focus() const aPP.Z() + focalLength * aDD.Z()); } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Parab::Scale(const gp_Pnt& theP, const Standard_Real theS) { focalLength *= theS; @@ -279,10 +271,8 @@ inline void gp_Parab::Scale(const gp_Pnt& theP, const Standard_Real theS) pos.Scale(theP, theS); } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab gp_Parab::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Parab aPrb = *this; @@ -295,10 +285,8 @@ inline gp_Parab gp_Parab::Scaled(const gp_Pnt& theP, const Standard_Real theS) c return aPrb; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Parab::Transform(const gp_Trsf& theT) { focalLength *= theT.ScaleFactor(); @@ -309,10 +297,8 @@ inline void gp_Parab::Transform(const gp_Trsf& theT) pos.Transform(theT); } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab gp_Parab::Transformed(const gp_Trsf& theT) const { gp_Parab aPrb = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Parab2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Parab2d.hxx index acebcdc75c..803f38b34e 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Parab2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Parab2d.hxx @@ -254,10 +254,8 @@ private: Standard_Real focalLength; }; -//======================================================================= -// function : Directrix -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Ax2d gp_Parab2d::Directrix() const { gp_Pnt2d aP(pos.Location().X() - focalLength * pos.XDirection().X(), @@ -266,10 +264,8 @@ inline gp_Ax2d gp_Parab2d::Directrix() const return gp_Ax2d(aP, aV); } -//======================================================================= -// function : Reversed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab2d gp_Parab2d::Reversed() const { gp_Parab2d aP = *this; @@ -279,10 +275,8 @@ inline gp_Parab2d gp_Parab2d::Reversed() const return aP; } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Parab2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { focalLength *= theS; @@ -293,10 +287,8 @@ inline void gp_Parab2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) pos.Scale(theP, theS); } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab2d gp_Parab2d::Scaled(const gp_Pnt2d& theP, const Standard_Real theS) const { gp_Parab2d aPrb = *this; @@ -309,10 +301,8 @@ inline gp_Parab2d gp_Parab2d::Scaled(const gp_Pnt2d& theP, const Standard_Real t return aPrb; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Parab2d::Transform(const gp_Trsf2d& theT) { focalLength *= theT.ScaleFactor(); @@ -323,10 +313,8 @@ inline void gp_Parab2d::Transform(const gp_Trsf2d& theT) pos.Transform(theT); } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Parab2d gp_Parab2d::Transformed(const gp_Trsf2d& theT) const { gp_Parab2d aPrb = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Pln.hxx b/src/FoundationClasses/TKMath/gp/gp_Pln.hxx index bdd1678654..fa82594743 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Pln.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Pln.hxx @@ -281,10 +281,8 @@ private: #include -//======================================================================= -// function : Coefficients -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pln::Coefficients(Standard_Real& theA, Standard_Real& theB, Standard_Real& theC, @@ -307,10 +305,8 @@ inline void gp_Pln::Coefficients(Standard_Real& theA, theD = -(theA * aP.X() + theB * aP.Y() + theC * aP.Z()); } -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pln::Distance(const gp_Pnt& theP) const { const gp_Pnt& aLoc = pos.Location(); @@ -324,10 +320,8 @@ inline Standard_Real gp_Pln::Distance(const gp_Pnt& theP) const return aD; } -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pln::Distance(const gp_Lin& theL) const { Standard_Real aD = 0.0; @@ -346,10 +340,8 @@ inline Standard_Real gp_Pln::Distance(const gp_Lin& theL) const return aD; } -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pln::Distance(const gp_Pln& theOther) const { Standard_Real aD = 0.0; diff --git a/src/FoundationClasses/TKMath/gp/gp_Pnt.hxx b/src/FoundationClasses/TKMath/gp/gp_Pnt.hxx index 706fb34a70..175daf799c 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Pnt.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Pnt.hxx @@ -253,19 +253,15 @@ struct equal_to #include #include -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pnt::Distance(const gp_Pnt& theOther) const { return sqrt(SquareDistance(theOther)); } -//======================================================================= -// function : SquareDistance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pnt::SquareDistance(const gp_Pnt& theOther) const { const gp_XYZ& aXYZ = theOther.coord; @@ -275,10 +271,8 @@ inline Standard_Real gp_Pnt::SquareDistance(const gp_Pnt& theOther) const return aDx * aDx + aDy * aDy + aDz * aDz; } -//======================================================================= -// function : Rotate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt::Rotate(const gp_Ax1& theA1, const Standard_Real theAng) { gp_Trsf aT; @@ -286,10 +280,8 @@ inline void gp_Pnt::Rotate(const gp_Ax1& theA1, const Standard_Real theAng) aT.Transforms(coord); } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt::Scale(const gp_Pnt& theP, const Standard_Real theS) { gp_XYZ aXYZ = theP.coord; @@ -298,19 +290,15 @@ inline void gp_Pnt::Scale(const gp_Pnt& theP, const Standard_Real theS) coord.Add(aXYZ); } -//======================================================================= -// function : Translate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt::Translate(const gp_Vec& theV) { coord.Add(theV.XYZ()); } -//======================================================================= -// function : Translated -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt gp_Pnt::Translated(const gp_Vec& theV) const { gp_Pnt aP = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Pnt2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Pnt2d.hxx index 889d61fab2..8779350b07 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Pnt2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Pnt2d.hxx @@ -185,10 +185,8 @@ private: #include #include -//======================================================================= -// function : Distance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pnt2d::Distance(const gp_Pnt2d& theOther) const { const gp_XY& aXY = theOther.coord; @@ -197,10 +195,8 @@ inline Standard_Real gp_Pnt2d::Distance(const gp_Pnt2d& theOther) const return sqrt(aX * aX + aY * aY); } -//======================================================================= -// function : SquareDistance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Pnt2d::SquareDistance(const gp_Pnt2d& theOther) const { const gp_XY& aXY = theOther.coord; @@ -209,10 +205,8 @@ inline Standard_Real gp_Pnt2d::SquareDistance(const gp_Pnt2d& theOther) const return (aX * aX + aY * aY); } -//======================================================================= -// function : Rotate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt2d::Rotate(const gp_Pnt2d& theP, const Standard_Real theAng) { gp_Trsf2d aT; @@ -220,10 +214,8 @@ inline void gp_Pnt2d::Rotate(const gp_Pnt2d& theP, const Standard_Real theAng) aT.Transforms(coord); } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) { gp_XY aXY = theP.coord; @@ -232,19 +224,15 @@ inline void gp_Pnt2d::Scale(const gp_Pnt2d& theP, const Standard_Real theS) coord.Add(aXY); } -//======================================================================= -// function : Translate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Pnt2d::Translate(const gp_Vec2d& theV) { coord.Add(theV.XY()); } -//======================================================================= -// function : Translated -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt2d gp_Pnt2d::Translated(const gp_Vec2d& theV) const { gp_Pnt2d aP = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Quaternion.hxx b/src/FoundationClasses/TKMath/gp/gp_Quaternion.hxx index 858c40abee..8577282d78 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Quaternion.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Quaternion.hxx @@ -301,10 +301,8 @@ private: Standard_Real w; }; -//======================================================================= -// function : Set -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Quaternion::Set(Standard_Real theX, Standard_Real theY, Standard_Real theZ, @@ -316,10 +314,8 @@ inline void gp_Quaternion::Set(Standard_Real theX, this->w = theW; } -//======================================================================= -// function : Set -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Quaternion::Set(const gp_Quaternion& theQuaternion) { x = theQuaternion.x; @@ -328,10 +324,8 @@ inline void gp_Quaternion::Set(const gp_Quaternion& theQuaternion) w = theQuaternion.w; } -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Quaternion::Scale(const Standard_Real theScale) { x *= theScale; @@ -340,10 +334,8 @@ inline void gp_Quaternion::Scale(const Standard_Real theScale) w *= theScale; } -//======================================================================= -// function : Multiplied -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Quaternion gp_Quaternion::Multiplied(const gp_Quaternion& theQ) const { return gp_Quaternion(w * theQ.x + x * theQ.w + y * theQ.z - z * theQ.y, @@ -353,10 +345,8 @@ inline gp_Quaternion gp_Quaternion::Multiplied(const gp_Quaternion& theQ) const // 16 multiplications 12 addidtions 0 variables } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Quaternion::Add(const gp_Quaternion& theQ) { x += theQ.x; @@ -365,10 +355,8 @@ inline void gp_Quaternion::Add(const gp_Quaternion& theQ) w += theQ.w; } -//======================================================================= -// function : Subtract -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Quaternion::Subtract(const gp_Quaternion& theQ) { x -= theQ.x; diff --git a/src/FoundationClasses/TKMath/gp/gp_Sphere.hxx b/src/FoundationClasses/TKMath/gp/gp_Sphere.hxx index 4b10a3ed6a..bcc636310b 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Sphere.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Sphere.hxx @@ -199,10 +199,8 @@ private: Standard_Real radius; }; -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Sphere::Scale(const gp_Pnt& theP, const Standard_Real theS) { pos.Scale(theP, theS); @@ -213,10 +211,8 @@ inline void gp_Sphere::Scale(const gp_Pnt& theP, const Standard_Real theS) } } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Sphere gp_Sphere::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Sphere aC = *this; @@ -229,10 +225,8 @@ inline gp_Sphere gp_Sphere::Scaled(const gp_Pnt& theP, const Standard_Real theS) return aC; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Sphere::Transform(const gp_Trsf& theT) { pos.Transform(theT); @@ -243,10 +237,8 @@ inline void gp_Sphere::Transform(const gp_Trsf& theT) } } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Sphere gp_Sphere::Transformed(const gp_Trsf& theT) const { gp_Sphere aC = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Torus.hxx b/src/FoundationClasses/TKMath/gp/gp_Torus.hxx index 0e732bf4c1..b3a67a269c 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Torus.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Torus.hxx @@ -249,10 +249,8 @@ private: Standard_Real minorRadius; }; -//======================================================================= -// function : Scale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Torus::Scale(const gp_Pnt& theP, const Standard_Real theS) { pos.Scale(theP, theS); @@ -265,10 +263,8 @@ inline void gp_Torus::Scale(const gp_Pnt& theP, const Standard_Real theS) minorRadius *= s; } -//======================================================================= -// function : Scaled -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Torus gp_Torus::Scaled(const gp_Pnt& theP, const Standard_Real theS) const { gp_Torus aC = *this; @@ -286,10 +282,8 @@ inline gp_Torus gp_Torus::Scaled(const gp_Pnt& theP, const Standard_Real theS) c return aC; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Torus::Transform(const gp_Trsf& theT) { pos.Transform(theT); @@ -302,10 +296,8 @@ inline void gp_Torus::Transform(const gp_Trsf& theT) majorRadius *= aT; } -//======================================================================= -// function : Transformed -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Torus gp_Torus::Transformed(const gp_Trsf& theT) const { gp_Torus aC = *this; diff --git a/src/FoundationClasses/TKMath/gp/gp_Trsf.cxx b/src/FoundationClasses/TKMath/gp/gp_Trsf.cxx index b1290adaa4..56c5fc19ca 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Trsf.cxx +++ b/src/FoundationClasses/TKMath/gp/gp_Trsf.cxx @@ -34,10 +34,8 @@ #include #include -//======================================================================= -// function : gp_Trsf -// purpose : Constructor from 2d -//======================================================================= +//================================================================================================= + gp_Trsf::gp_Trsf(const gp_Trsf2d& T) : scale(T.ScaleFactor()), shape(T.Form()), diff --git a/src/FoundationClasses/TKMath/gp/gp_Trsf.hxx b/src/FoundationClasses/TKMath/gp/gp_Trsf.hxx index 8b804dbf21..70cd405789 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Trsf.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Trsf.hxx @@ -375,10 +375,8 @@ private: #include #include -//======================================================================= -// function : gp_Trsf -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Trsf::gp_Trsf() : scale(1.0), shape(gp_Identity), @@ -387,10 +385,8 @@ inline gp_Trsf::gp_Trsf() { } -//======================================================================= -// function : SetMirror -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf::SetMirror(const gp_Pnt& theP) { shape = gp_PntMirror; @@ -400,10 +396,8 @@ inline void gp_Trsf::SetMirror(const gp_Pnt& theP) loc.Multiply(2.0); } -//======================================================================= -// function : SetTranslation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf::SetTranslation(const gp_Vec& theV) { shape = gp_Translation; @@ -412,10 +406,8 @@ inline void gp_Trsf::SetTranslation(const gp_Vec& theV) loc = theV.XYZ(); } -//======================================================================= -// function : SetTranslation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf::SetTranslation(const gp_Pnt& theP1, const gp_Pnt& theP2) { shape = gp_Translation; @@ -424,10 +416,8 @@ inline void gp_Trsf::SetTranslation(const gp_Pnt& theP1, const gp_Pnt& theP2) loc = (theP2.XYZ()).Subtracted(theP1.XYZ()); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Trsf::Value(const Standard_Integer theRow, const Standard_Integer theCol) const { @@ -442,10 +432,8 @@ inline Standard_Real gp_Trsf::Value(const Standard_Integer theRow, } } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf::Transforms(Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const { gp_XYZ aTriplet(theX, theY, theZ); @@ -460,10 +448,8 @@ inline void gp_Trsf::Transforms(Standard_Real& theX, Standard_Real& theY, Standa theZ = aTriplet.Z(); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf::Transforms(gp_XYZ& theCoord) const { theCoord.Multiply(matrix); diff --git a/src/FoundationClasses/TKMath/gp/gp_Trsf2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Trsf2d.hxx index 2215ce0600..e69aac3b2d 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Trsf2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Trsf2d.hxx @@ -216,10 +216,8 @@ private: #include #include -//======================================================================= -// function : gp_Trsf2d -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Trsf2d::gp_Trsf2d() { shape = gp_Identity; @@ -228,10 +226,8 @@ inline gp_Trsf2d::gp_Trsf2d() loc.SetCoord(0.0, 0.0); } -//======================================================================= -// function : gp_Trsf2d -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Trsf2d::gp_Trsf2d(const gp_Trsf& theT) : scale(theT.ScaleFactor()), shape(theT.Form()), @@ -244,10 +240,8 @@ inline gp_Trsf2d::gp_Trsf2d(const gp_Trsf& theT) matrix(2, 2) = M(2, 2); } -//======================================================================= -// function : SetRotation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::SetRotation(const gp_Pnt2d& theP, const Standard_Real theAng) { shape = gp_Rotation; @@ -259,10 +253,8 @@ inline void gp_Trsf2d::SetRotation(const gp_Pnt2d& theP, const Standard_Real the loc.Add(theP.XY()); } -//======================================================================= -// function : SetMirror -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::SetMirror(const gp_Pnt2d& theP) { shape = gp_PntMirror; @@ -272,10 +264,8 @@ inline void gp_Trsf2d::SetMirror(const gp_Pnt2d& theP) loc.Multiply(2.0); } -//======================================================================= -// function : SetScale -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::SetScale(const gp_Pnt2d& theP, const Standard_Real theS) { shape = gp_Scale; @@ -285,10 +275,8 @@ inline void gp_Trsf2d::SetScale(const gp_Pnt2d& theP, const Standard_Real theS) loc.Multiply(1.0 - theS); } -//======================================================================= -// function : SetTranslation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::SetTranslation(const gp_Vec2d& theV) { shape = gp_Translation; @@ -297,10 +285,8 @@ inline void gp_Trsf2d::SetTranslation(const gp_Vec2d& theV) loc = theV.XY(); } -//======================================================================= -// function : SetTranslation -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::SetTranslation(const gp_Pnt2d& theP1, const gp_Pnt2d& theP2) { shape = gp_Translation; @@ -309,10 +295,8 @@ inline void gp_Trsf2d::SetTranslation(const gp_Pnt2d& theP1, const gp_Pnt2d& the loc = (theP2.XY()).Subtracted(theP1.XY()); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Trsf2d::Value(const Standard_Integer theRow, const Standard_Integer theCol) const { @@ -327,10 +311,8 @@ inline Standard_Real gp_Trsf2d::Value(const Standard_Integer theRow, } } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::Transforms(Standard_Real& theX, Standard_Real& theY) const { gp_XY aDoublet(theX, theY); @@ -343,10 +325,8 @@ inline void gp_Trsf2d::Transforms(Standard_Real& theX, Standard_Real& theY) cons aDoublet.Coord(theX, theY); } -//======================================================================= -// function : Transforms -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Trsf2d::Transforms(gp_XY& theCoord) const { theCoord.Multiply(matrix); diff --git a/src/FoundationClasses/TKMath/gp/gp_Vec.hxx b/src/FoundationClasses/TKMath/gp/gp_Vec.hxx index 5df6876913..26f75c26c7 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Vec.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Vec.hxx @@ -449,28 +449,22 @@ private: #include #include -//======================================================================= -// function : gp_Vec -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec::gp_Vec(const gp_Dir& theV) { coord = theV.XYZ(); } -//======================================================================= -// function : gp_Vec -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec::gp_Vec(const gp_Pnt& theP1, const gp_Pnt& theP2) { coord = theP2.XYZ().Subtracted(theP1.XYZ()); } -//======================================================================= -// function : IsNormal -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Vec::IsNormal(const gp_Vec& theOther, const Standard_Real theAngularTolerance) const { @@ -478,10 +472,8 @@ inline Standard_Boolean gp_Vec::IsNormal(const gp_Vec& theOther, return anAng <= theAngularTolerance; } -//======================================================================= -// function : Angle -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Vec::Angle(const gp_Vec& theOther) const { gp_VectorWithNullMagnitude_Raise_if(coord.Modulus() <= gp::Resolution() @@ -490,10 +482,8 @@ inline Standard_Real gp_Vec::Angle(const gp_Vec& theOther) const return (gp_Dir(coord)).Angle(theOther); } -//======================================================================= -// function : AngleWithRef -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_Vec::AngleWithRef(const gp_Vec& theOther, const gp_Vec& theVRef) const { gp_VectorWithNullMagnitude_Raise_if(coord.Modulus() <= gp::Resolution() @@ -503,10 +493,8 @@ inline Standard_Real gp_Vec::AngleWithRef(const gp_Vec& theOther, const gp_Vec& return (gp_Dir(coord)).AngleWithRef(theOther, theVRef); } -//======================================================================= -// function : Normalized -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec gp_Vec::Normalized() const { const Standard_Real aD = coord.Modulus(); @@ -517,10 +505,8 @@ inline gp_Vec gp_Vec::Normalized() const return aV; } -//======================================================================= -// function : Rotate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Vec::Rotate(const gp_Ax1& theA1, const Standard_Real theAng) { gp_Trsf aT; diff --git a/src/FoundationClasses/TKMath/gp/gp_Vec2d.hxx b/src/FoundationClasses/TKMath/gp/gp_Vec2d.hxx index f8a4eea485..b9540beded 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Vec2d.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_Vec2d.hxx @@ -357,28 +357,22 @@ private: #include #include -//======================================================================= -// function : gp_Vec2d -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec2d::gp_Vec2d(const gp_Dir2d& theV) { coord = theV.XY(); } -//======================================================================= -// function : gp_Vec2d -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec2d::gp_Vec2d(const gp_Pnt2d& theP1, const gp_Pnt2d& theP2) { coord = theP2.XY().Subtracted(theP1.XY()); } -//======================================================================= -// function : IsOpposite -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Vec2d::IsOpposite(const gp_Vec2d& theOther, const Standard_Real theAngularTolerance) const { @@ -386,10 +380,8 @@ inline Standard_Boolean gp_Vec2d::IsOpposite(const gp_Vec2d& theOther, return M_PI - anAng <= theAngularTolerance; } -//======================================================================= -// function : IsParallel -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean gp_Vec2d::IsParallel(const gp_Vec2d& theOther, const Standard_Real theAngularTolerance) const { @@ -397,10 +389,8 @@ inline Standard_Boolean gp_Vec2d::IsParallel(const gp_Vec2d& theOther, return anAng <= theAngularTolerance || M_PI - anAng <= theAngularTolerance; } -//======================================================================= -// function : Normalized -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec2d gp_Vec2d::Normalized() const { Standard_Real aD = coord.Modulus(); @@ -411,10 +401,8 @@ inline gp_Vec2d gp_Vec2d::Normalized() const return aV; } -//======================================================================= -// function : Rotate -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_Vec2d::Rotate(const Standard_Real theAng) { gp_Trsf2d aT; diff --git a/src/FoundationClasses/TKMath/gp/gp_XY.hxx b/src/FoundationClasses/TKMath/gp/gp_XY.hxx index 3c514c8630..40a42eaa45 100644 --- a/src/FoundationClasses/TKMath/gp/gp_XY.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_XY.hxx @@ -377,10 +377,8 @@ private: Standard_Real y; }; -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XY::Multiply(const gp_Mat2d& theMatrix) { const Standard_Real aXresult = theMatrix.myMat[0][0] * x + theMatrix.myMat[0][1] * y; @@ -388,10 +386,8 @@ inline void gp_XY::Multiply(const gp_Mat2d& theMatrix) x = aXresult; } -//======================================================================= -// function : Normalize -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XY::Normalize() { Standard_Real aD = Modulus(); diff --git a/src/FoundationClasses/TKMath/gp/gp_XYZ.hxx b/src/FoundationClasses/TKMath/gp/gp_XYZ.hxx index f4c05f2b45..29140e98fa 100644 --- a/src/FoundationClasses/TKMath/gp/gp_XYZ.hxx +++ b/src/FoundationClasses/TKMath/gp/gp_XYZ.hxx @@ -477,10 +477,8 @@ private: Standard_Real z; }; -//======================================================================= -// function : Cross -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XYZ::Cross(const gp_XYZ& theRight) { const Standard_Real aXresult = y * theRight.z - z * theRight.y; @@ -490,19 +488,15 @@ inline void gp_XYZ::Cross(const gp_XYZ& theRight) y = aYresult; } -//======================================================================= -// function : CrossMagnitude -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_XYZ::CrossMagnitude(const gp_XYZ& theRight) const { return sqrt(CrossSquareMagnitude(theRight)); } -//======================================================================= -// function : CrossSquareMagnitude -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_XYZ::CrossSquareMagnitude(const gp_XYZ& theRight) const { const Standard_Real aXresult = y * theRight.z - z * theRight.y; @@ -511,10 +505,8 @@ inline Standard_Real gp_XYZ::CrossSquareMagnitude(const gp_XYZ& theRight) const return aXresult * aXresult + aYresult * aYresult + aZresult * aZresult; } -//======================================================================= -// function : CrossCross -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XYZ::CrossCross(const gp_XYZ& theCoord1, const gp_XYZ& theCoord2) { // First compute theCoord1 * theCoord2 @@ -531,10 +523,8 @@ inline void gp_XYZ::CrossCross(const gp_XYZ& theCoord1, const gp_XYZ& theCoord2) y = aYresult; } -//======================================================================= -// function : DotCross -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real gp_XYZ::DotCross(const gp_XYZ& theCoord1, const gp_XYZ& theCoord2) const { const Standard_Real aXresult = theCoord1.y * theCoord2.z - theCoord1.z * theCoord2.y; @@ -543,10 +533,8 @@ inline Standard_Real gp_XYZ::DotCross(const gp_XYZ& theCoord1, const gp_XYZ& the return (x * aXresult + y * anYresult + z * aZresult); } -//======================================================================= -// function : Multiply -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XYZ::Multiply(const gp_Mat& theMatrix) { // Cache original coordinates to avoid aliasing issues @@ -563,10 +551,8 @@ inline void gp_XYZ::Multiply(const gp_Mat& theMatrix) + theMatrix.myMat[2][2] * aOrigZ; } -//======================================================================= -// function : Normalize -// purpose : -//======================================================================= +//================================================================================================= + inline void gp_XYZ::Normalize() { Standard_Real aD = Modulus(); diff --git a/src/FoundationClasses/TKMath/math/math_KronrodSingleIntegration.lxx b/src/FoundationClasses/TKMath/math/math_KronrodSingleIntegration.lxx index ee7875fc52..4256f9c1eb 100644 --- a/src/FoundationClasses/TKMath/math/math_KronrodSingleIntegration.lxx +++ b/src/FoundationClasses/TKMath/math/math_KronrodSingleIntegration.lxx @@ -47,10 +47,7 @@ inline Standard_Real math_KronrodSingleIntegration::ErrorReached() const return myErrorReached; } -//======================================================================= -// function : AbsolutError -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real math_KronrodSingleIntegration::AbsolutError() const { diff --git a/src/FoundationClasses/TKernel/Message/Message_Algorithm.lxx b/src/FoundationClasses/TKernel/Message/Message_Algorithm.lxx index 2246541b70..6044162ae9 100644 --- a/src/FoundationClasses/TKernel/Message/Message_Algorithm.lxx +++ b/src/FoundationClasses/TKernel/Message/Message_Algorithm.lxx @@ -16,10 +16,7 @@ #include #include -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= inline void Message_Algorithm::SetStatus(const Message_Status& theStat, const Standard_CString theStr, @@ -28,10 +25,7 @@ inline void Message_Algorithm::SetStatus(const Message_Status& theStat, SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions); } -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= inline void Message_Algorithm::SetStatus(const Message_Status& theStat, const TCollection_AsciiString& theStr, @@ -40,10 +34,7 @@ inline void Message_Algorithm::SetStatus(const Message_Status& theStat, SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions); } -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= inline void Message_Algorithm::SetStatus(const Message_Status& theStat, const Handle(TCollection_HAsciiString)& theStr, @@ -52,10 +43,7 @@ inline void Message_Algorithm::SetStatus(const Message_Status& SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions); } -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= inline void Message_Algorithm::SetStatus(const Message_Status& theStat, const TCollection_ExtendedString& theStr, @@ -64,30 +52,21 @@ inline void Message_Algorithm::SetStatus(const Message_Status& theSt SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions); } -//======================================================================= -// function : GetStatus -// purpose : -//======================================================================= +//================================================================================================= inline const Message_ExecStatus& Message_Algorithm::GetStatus() const { return myStatus; } -//======================================================================= -// function : ChangeStatus -// purpose : -//======================================================================= +//================================================================================================= inline Message_ExecStatus& Message_Algorithm::ChangeStatus() { return myStatus; } -//======================================================================= -// function : GetMessenger -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const { diff --git a/src/FoundationClasses/TKernel/Message/Message_Msg.lxx b/src/FoundationClasses/TKernel/Message/Message_Msg.lxx index e794877d8a..e2bbb8f8ae 100644 --- a/src/FoundationClasses/TKernel/Message/Message_Msg.lxx +++ b/src/FoundationClasses/TKernel/Message/Message_Msg.lxx @@ -52,30 +52,21 @@ inline Message_Msg& Message_Msg::Arg(const Handle(TCollection_HExtendedString)& return Arg(theString->String()); } -//======================================================================= -// function : Original -// purpose : -//======================================================================= +//================================================================================================= inline const TCollection_ExtendedString& Message_Msg::Original() const { return myOriginal; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline const TCollection_ExtendedString& Message_Msg::Value() const { return myMessageBody; } -//======================================================================= -// function : IsEdited -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Message_Msg::IsEdited() const { diff --git a/src/FoundationClasses/TKernel/Message/Message_ProgressIndicator.hxx b/src/FoundationClasses/TKernel/Message/Message_ProgressIndicator.hxx index 773239f8b1..4e7b55ebe8 100644 --- a/src/FoundationClasses/TKernel/Message/Message_ProgressIndicator.hxx +++ b/src/FoundationClasses/TKernel/Message/Message_ProgressIndicator.hxx @@ -145,10 +145,8 @@ private: #include -//======================================================================= -// function : Increment -// purpose : -//======================================================================= +//================================================================================================= + inline void Message_ProgressIndicator::Increment(const Standard_Real theStep, const Message_ProgressScope& theScope) { diff --git a/src/FoundationClasses/TKernel/Message/Message_ProgressRange.hxx b/src/FoundationClasses/TKernel/Message/Message_ProgressRange.hxx index 7dd9eb38e3..568c7be428 100644 --- a/src/FoundationClasses/TKernel/Message/Message_ProgressRange.hxx +++ b/src/FoundationClasses/TKernel/Message/Message_ProgressRange.hxx @@ -110,28 +110,22 @@ private: #include -//======================================================================= -// function : IsActive -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean Message_ProgressRange::IsActive() const { return !myWasUsed && myParentScope && myParentScope->myProgress; } -//======================================================================= -// function : UserBreak -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean Message_ProgressRange::UserBreak() const { return myParentScope && myParentScope->myProgress && myParentScope->myProgress->UserBreak(); } -//======================================================================= -// function : Close -// purpose : -//======================================================================= +//================================================================================================= + inline void Message_ProgressRange::Close() { if (!IsActive()) diff --git a/src/FoundationClasses/TKernel/Message/Message_ProgressScope.hxx b/src/FoundationClasses/TKernel/Message/Message_ProgressScope.hxx index 471abb51a8..ddfaf0ea08 100644 --- a/src/FoundationClasses/TKernel/Message/Message_ProgressScope.hxx +++ b/src/FoundationClasses/TKernel/Message/Message_ProgressScope.hxx @@ -404,10 +404,8 @@ private: #include -//======================================================================= -// function : Message_ProgressScope -// purpose : -//======================================================================= +//================================================================================================= + inline Message_ProgressScope::Message_ProgressScope(Message_ProgressIndicator* theProgress) : myProgress(theProgress), myParent(0), @@ -422,10 +420,8 @@ inline Message_ProgressScope::Message_ProgressScope(Message_ProgressIndicator* t { } -//======================================================================= -// function : Message_ProgressScope -// purpose : -//======================================================================= +//================================================================================================= + inline Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRange, const TCollection_AsciiString& theName, Standard_Real theMax, @@ -447,10 +443,8 @@ inline Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRange.myWasUsed = true; // Disarm the range } -//======================================================================= -// function : Message_ProgressScope -// purpose : -//======================================================================= +//================================================================================================= + template Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRange, const char (&theName)[N], @@ -472,10 +466,8 @@ Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRan theRange.myWasUsed = true; // Disarm the range } -//======================================================================= -// function : Message_ProgressScope -// purpose : -//======================================================================= +//================================================================================================= + inline Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRange, const NullString*, Standard_Real theMax, @@ -496,10 +488,8 @@ inline Message_ProgressScope::Message_ProgressScope(const Message_ProgressRange& theRange.myWasUsed = true; // Disarm the range } -//======================================================================= -// function : Close -// purpose : -//======================================================================= +//================================================================================================= + inline void Message_ProgressScope::Close() { if (!myIsActive) @@ -521,19 +511,15 @@ inline void Message_ProgressScope::Close() myIsActive = false; } -//======================================================================= -// function : UserBreak -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean Message_ProgressScope::UserBreak() const { return myProgress && myProgress->UserBreak(); } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= + inline Message_ProgressRange Message_ProgressScope::Next(Standard_Real theStep) { if (myIsActive && theStep > 0.) @@ -549,10 +535,7 @@ inline Message_ProgressRange Message_ProgressScope::Next(Standard_Real theStep) return Message_ProgressRange(); } -//======================================================================= -// function : Show -// purpose : -//======================================================================= +//================================================================================================= inline void Message_ProgressScope::Show() { @@ -562,10 +545,8 @@ inline void Message_ProgressScope::Show() } } -//======================================================================= -// function : localToGlobal -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real Message_ProgressScope::localToGlobal(const Standard_Real theVal) const { if (theVal <= 0.) @@ -583,10 +564,7 @@ inline Standard_Real Message_ProgressScope::localToGlobal(const Standard_Real th return myPortion * x / (1. + x); // hyperbola } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Message_ProgressScope::Value() const { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx index b6a368f0bb..550bcd30a1 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx @@ -15,10 +15,8 @@ IMPLEMENT_STANDARD_RTTIEXT(NCollection_BaseAllocator, Standard_Transient) -//======================================================================= -// function : Allocate -// purpose : Standard allocation -//======================================================================= +//================================================================================================= + void* NCollection_BaseAllocator::Allocate(const size_t theSize) { return Standard::Allocate(theSize); diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_UBTreeFiller.hxx b/src/FoundationClasses/TKernel/NCollection/NCollection_UBTreeFiller.hxx index 99797277d6..98f4afcd28 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_UBTreeFiller.hxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_UBTreeFiller.hxx @@ -144,10 +144,7 @@ private: Standard_Boolean myIsFullRandom; }; -//======================================================================= -// function : Fill -// purpose : -//======================================================================= +//================================================================================================= template Standard_Integer NCollection_UBTreeFiller::Fill() @@ -180,10 +177,7 @@ Standard_Integer NCollection_UBTreeFiller::Fill() return nbAdd; } -//======================================================================= -// function : CheckTree -// purpose : -//======================================================================= +//================================================================================================= template Standard_Integer NCollection_UBTreeFiller::CheckTree( @@ -200,10 +194,7 @@ Standard_Integer NCollection_UBTreeFiller::CheckTree( return aNumber; } -//======================================================================= -// function : checkNode -// purpose : -//======================================================================= +//================================================================================================= template Standard_Real NCollection_UBTreeFiller::checkNode( diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfIterator.lxx b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfIterator.lxx index c945bc06bf..6c134be1ab 100755 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfIterator.lxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfIterator.lxx @@ -125,10 +125,8 @@ const Standard_Utf32Char NCollection_UtfIterator::UTF32_MAX_BMP = 0x0000FF template const Standard_Utf32Char NCollection_UtfIterator::UTF32_MAX_LEGAL = 0x0010FFFFUL; -// ======================================================================= -// function : readUTF16 -// purpose : -// ======================================================================= +//================================================================================================= + template inline void NCollection_UtfIterator::readUTF16() { @@ -148,10 +146,8 @@ inline void NCollection_UtfIterator::readUTF16() myCharUtf32 = aChar; } -// ======================================================================= -// function : AdvanceBytesUtf8 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Integer NCollection_UtfIterator::AdvanceBytesUtf8() const { @@ -183,10 +179,8 @@ inline Standard_Integer NCollection_UtfIterator::AdvanceBytesUtf8() const } } -// ======================================================================= -// function : GetUtf8 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Utf8Char* NCollection_UtfIterator::GetUtf8(Standard_Utf8Char* theBuffer) const { @@ -194,10 +188,8 @@ inline Standard_Utf8Char* NCollection_UtfIterator::GetUtf8(Standard_Utf8Ch return (Standard_Utf8Char*)GetUtf8((Standard_Utf8UChar*)theBuffer); } -// ======================================================================= -// function : GetUtf8 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Utf8UChar* NCollection_UtfIterator::GetUtf8( Standard_Utf8UChar* theBuffer) const @@ -249,20 +241,16 @@ inline Standard_Utf8UChar* NCollection_UtfIterator::GetUtf8( } } -// ======================================================================= -// function : AdvanceBytesUtf16 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Integer NCollection_UtfIterator::AdvanceBytesUtf16() const { return AdvanceCodeUnitsUtf16() * sizeof(Standard_Utf16Char); } -// ======================================================================= -// function : AdvanceCodeUnitsUtf16 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Integer NCollection_UtfIterator::AdvanceCodeUnitsUtf16() const { @@ -291,10 +279,8 @@ inline Standard_Integer NCollection_UtfIterator::AdvanceCodeUnitsUtf16() c } } -// ======================================================================= -// function : GetUtf16 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Utf16Char* NCollection_UtfIterator::GetUtf16( Standard_Utf16Char* theBuffer) const @@ -329,10 +315,8 @@ inline Standard_Utf16Char* NCollection_UtfIterator::GetUtf16( } } -// ======================================================================= -// function : GetUtf32 -// purpose : -// ======================================================================= +//================================================================================================= + template inline Standard_Utf32Char* NCollection_UtfIterator::GetUtf32( Standard_Utf32Char* theBuffer) const diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx index 35611fee9d..4c0b0f4a49 100755 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx @@ -13,10 +13,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// ======================================================================= -// function : GetChar -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Utf32Char NCollection_UtfString::GetChar(const Standard_Integer theCharIndex) const { @@ -32,10 +30,8 @@ Standard_Utf32Char NCollection_UtfString::GetChar(const Standard_Integer t return 0; } -// ======================================================================= -// function : GetCharBuffer -// purpose : -// ======================================================================= +//================================================================================================= + template const Type* NCollection_UtfString::GetCharBuffer(const Standard_Integer theCharIndex) const { @@ -51,10 +47,8 @@ const Type* NCollection_UtfString::GetCharBuffer(const Standard_Integer th return NULL; } -// ======================================================================= -// function : Clear -// purpose : -// ======================================================================= +//================================================================================================= + template inline void NCollection_UtfString::Clear() { @@ -64,10 +58,8 @@ inline void NCollection_UtfString::Clear() myString = strAlloc(mySize); } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString() : myString(strAlloc(0)), @@ -77,10 +69,8 @@ inline NCollection_UtfString::NCollection_UtfString() // } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(const NCollection_UtfString& theCopy) : myString(strAlloc(theCopy.mySize)), @@ -90,10 +80,8 @@ inline NCollection_UtfString::NCollection_UtfString(const NCollection_UtfS strCopy((Standard_Byte*)myString, (const Standard_Byte*)theCopy.myString, mySize); } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(NCollection_UtfString&& theOther) noexcept : myString(theOther.myString), @@ -105,10 +93,8 @@ inline NCollection_UtfString::NCollection_UtfString(NCollection_UtfString& theOther.myLength = 0; } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(const char* theCopyUtf8, const Standard_Integer theLength) @@ -119,10 +105,8 @@ inline NCollection_UtfString::NCollection_UtfString(const char* FromUnicode(theCopyUtf8, theLength); } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(const Standard_Utf16Char* theCopyUtf16, const Standard_Integer theLength) @@ -133,10 +117,8 @@ inline NCollection_UtfString::NCollection_UtfString(const Standard_Utf16Ch FromUnicode(theCopyUtf16, theLength); } -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(const Standard_Utf32Char* theCopyUtf32, const Standard_Integer theLength) @@ -149,10 +131,8 @@ inline NCollection_UtfString::NCollection_UtfString(const Standard_Utf32Ch #if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) \ || (defined(_MSC_VER) && _MSC_VER >= 1900) -// ======================================================================= -// function : NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::NCollection_UtfString(const Standard_WideChar* theCopyUtfWide, const Standard_Integer theLength) @@ -174,10 +154,8 @@ inline NCollection_UtfString::~NCollection_UtfString() strFree(myString); } -// ======================================================================= -// function : Assign -// purpose : -// ======================================================================= +//================================================================================================= + template inline const NCollection_UtfString& NCollection_UtfString::Assign( const NCollection_UtfString& theOther) @@ -195,10 +173,8 @@ inline const NCollection_UtfString& NCollection_UtfString::Assign( return (*this); } -// ======================================================================= -// function : Swap -// purpose : -// ======================================================================= +//================================================================================================= + template inline void NCollection_UtfString::Swap(NCollection_UtfString& theOther) { @@ -243,10 +219,8 @@ private: }; #endif -// ======================================================================= -// function : FromLocale -// purpose : -// ======================================================================= +//================================================================================================= + template inline void NCollection_UtfString::FromLocale(const char* theString, const Standard_Integer theLength) @@ -266,10 +240,8 @@ inline void NCollection_UtfString::FromLocale(const char* theSt #endif } -// ======================================================================= -// function : ToLocale -// purpose : -// ======================================================================= +//================================================================================================= + template inline bool NCollection_UtfString::ToLocale(char* theBuffer, const Standard_Integer theSizeBytes) const @@ -314,10 +286,8 @@ inline const NCollection_UtfString& NCollection_UtfString::operator= return (*this); } -// ======================================================================= -// function : IsEqual -// purpose : -// ======================================================================= +//================================================================================================= + template inline bool NCollection_UtfString::IsEqual(const NCollection_UtfString& theCompare) const { @@ -363,10 +333,8 @@ inline NCollection_UtfString& NCollection_UtfString::operator+=( return (*this); } -// ======================================================================= -// function : SubString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString NCollection_UtfString::SubString( const Standard_Integer theStart, @@ -386,10 +354,8 @@ inline NCollection_UtfString NCollection_UtfString::SubString( return NCollection_UtfString(); } -// ======================================================================= -// function : ToUtf8 -// purpose : -// ======================================================================= +//================================================================================================= + template inline const NCollection_UtfString NCollection_UtfString::ToUtf8() const { @@ -398,10 +364,8 @@ inline const NCollection_UtfString NCollection_UtfString inline const NCollection_UtfString NCollection_UtfString::ToUtf16() const { @@ -410,10 +374,8 @@ inline const NCollection_UtfString NCollection_UtfString inline const NCollection_UtfString NCollection_UtfString::ToUtf32() const { @@ -422,10 +384,8 @@ inline const NCollection_UtfString NCollection_UtfString inline const NCollection_UtfString NCollection_UtfString::ToUtfWide() const { diff --git a/src/FoundationClasses/TKernel/Standard/Standard_HashUtils.lxx b/src/FoundationClasses/TKernel/Standard/Standard_HashUtils.lxx index 240d20dfa7..34d38b00e3 100644 --- a/src/FoundationClasses/TKernel/Standard/Standard_HashUtils.lxx +++ b/src/FoundationClasses/TKernel/Standard/Standard_HashUtils.lxx @@ -70,10 +70,8 @@ inline T unaligned_load(const char* thePnt) noexcept } } // namespace MurmurHashUtils -//======================================================================= -// function : MurmurHash64A -// purpose : -//======================================================================= +//================================================================================================= + inline uint64_t MurmurHash64A(const void* theKey, int theLen, uint64_t theSeed) noexcept { static constexpr uint64_t aMul = (((uint64_t)0xc6a4a793UL) << 32UL) + (uint64_t)0x5bd1e995UL; @@ -102,10 +100,8 @@ inline uint64_t MurmurHash64A(const void* theKey, int theLen, uint64_t theSeed) return aHash; } -//======================================================================= -// function : MurmurHash2A -// purpose : -//======================================================================= +//================================================================================================= + inline uint32_t MurmurHash2A(const void* theKey, int theLen, uint32_t theSeed) noexcept { constexpr uint32_t aMul = 0x5bd1e995; @@ -153,10 +149,8 @@ inline uint32_t MurmurHash2A(const void* theKey, int theLen, uint32_t theSeed) n namespace FNVHash { -//======================================================================= -// function : FNVHash1A -// purpose : -//======================================================================= +//================================================================================================= + inline uint32_t FNVHash1A(const void* theKey, int theLen, uint32_t theSeed) noexcept { const char* cptr = static_cast(theKey); @@ -168,10 +162,8 @@ inline uint32_t FNVHash1A(const void* theKey, int theLen, uint32_t theSeed) noex return theSeed; } -//======================================================================= -// function : FNVHash64A -// purpose : -//======================================================================= +//================================================================================================= + inline uint64_t FNVHash64A(const void* theKey, int theLen, uint64_t theSeed) noexcept { const char* cptr = static_cast(theKey); diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx index f4edec9638..d31e6b73ba 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx @@ -79,10 +79,8 @@ inline TCollection_AsciiString TCollection_AsciiString::Cat(const Standard_Real return TCollection_AsciiString(*this, TCollection_AsciiString(other)); } -//============================================================================ -// function : HashCode -// purpose : -//============================================================================ +//================================================================================================= + inline size_t TCollection_AsciiString::HashCode() const { if (mylength < 4) diff --git a/src/FoundationClasses/TKernel/Units/Units_Dimensions.lxx b/src/FoundationClasses/TKernel/Units/Units_Dimensions.lxx index f6d9df68a6..670b317d0f 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Dimensions.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Dimensions.lxx @@ -14,90 +14,63 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Mass -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::Mass() const { return themass; } -//======================================================================= -// function : Length -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::Length() const { return thelength; } -//======================================================================= -// function : Time -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::Time() const { return thetime; } -//======================================================================= -// function : ElectricCurrent -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::ElectricCurrent() const { return theelectriccurrent; } -//======================================================================= -// function : ThermodynamicTemperature -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::ThermodynamicTemperature() const { return thethermodynamictemperature; } -//======================================================================= -// function : AmountOfSubstance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::AmountOfSubstance() const { return theamountofsubstance; } -//======================================================================= -// function : LuminousIntensity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::LuminousIntensity() const { return theluminousintensity; } -//======================================================================= -// function : PlaneAngle -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::PlaneAngle() const { return theplaneangle; } -//======================================================================= -// function : SolidAngle -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Dimensions::SolidAngle() const { diff --git a/src/FoundationClasses/TKernel/Units/Units_Lexicon.lxx b/src/FoundationClasses/TKernel/Units/Units_Lexicon.lxx index 92f42031e3..02bf045246 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Lexicon.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Lexicon.lxx @@ -17,20 +17,14 @@ #include #include -//======================================================================= -// function : Sequence -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_TokensSequence) Units_Lexicon::Sequence() const { return thesequenceoftokens; } -//======================================================================= -// function : Dump -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Lexicon::Dump() const { diff --git a/src/FoundationClasses/TKernel/Units/Units_Quantity.lxx b/src/FoundationClasses/TKernel/Units/Units_Quantity.lxx index 89abf8a154..dec610043d 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Quantity.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Quantity.lxx @@ -18,10 +18,7 @@ #include #include -//======================================================================= -// function : Units_Quantity -// purpose : -//======================================================================= +//================================================================================================= inline Units_Quantity::Units_Quantity(const Standard_CString aname, const Handle(Units_Dimensions)& adimensions, @@ -32,30 +29,21 @@ inline Units_Quantity::Units_Quantity(const Standard_CString aname, theunitssequence = aunitssequence; } -//======================================================================= -// function : Name -// purpose : -//======================================================================= +//================================================================================================= inline TCollection_AsciiString Units_Quantity::Name() const { return thename->String(); } -//======================================================================= -// function : Dimensions -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_Dimensions) Units_Quantity::Dimensions() const { return thedimensions; } -//======================================================================= -// function : Sequence -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_UnitsSequence) Units_Quantity::Sequence() const { diff --git a/src/FoundationClasses/TKernel/Units/Units_Sentence.lxx b/src/FoundationClasses/TKernel/Units/Units_Sentence.lxx index 9528a73217..d0110bac85 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Sentence.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Sentence.lxx @@ -17,41 +17,28 @@ #include #include -//======================================================================= -// function : Sequence -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_TokensSequence) Units_Sentence::Sequence() const { return thesequenceoftokens; } -//======================================================================= -// function : Sequence - -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Sentence::Sequence(const Handle(Units_TokensSequence)& asequenceoftokens) { thesequenceoftokens = asequenceoftokens; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Sentence::IsDone() const { return thesequenceoftokens->Length() > 0; } -//======================================================================= -// function : Dump -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Sentence::Dump() const { diff --git a/src/FoundationClasses/TKernel/Units/Units_Token.lxx b/src/FoundationClasses/TKernel/Units/Units_Token.lxx index 8b29d9972c..c1c4f9a1b7 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Token.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Token.lxx @@ -20,80 +20,56 @@ #include #include -//======================================================================= -// function : Word -// purpose : -//======================================================================= +//================================================================================================= inline TCollection_AsciiString Units_Token::Word() const { return theword; } -//======================================================================= -// function : Mean -// purpose : -//======================================================================= +//================================================================================================= inline TCollection_AsciiString Units_Token::Mean() const { return themean; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Token::Value() const { return thevalue; } -//======================================================================= -// function : Dimensions -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_Dimensions) Units_Token::Dimensions() const { return thedimensions; } -//======================================================================= -// function : Word -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Token::Word(const Standard_CString aword) { theword = aword; } -//======================================================================= -// function : Mean -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Token::Mean(const Standard_CString amean) { themean = amean; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Token::Value(const Standard_Real avalue) { thevalue = avalue; } -//======================================================================= -// function : IsNotEqual -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsNotEqual(const Standard_CString astring) const { @@ -106,10 +82,7 @@ inline Standard_Boolean Units_Token::IsNotEqual(const Standard_CString astring) return Standard_True; } -//======================================================================= -// function : IsNotEqual -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsNotEqual(const Handle(Units_Token)& atoken) const { @@ -122,10 +95,7 @@ inline Standard_Boolean Units_Token::IsNotEqual(const Handle(Units_Token)& atoke return Standard_True; } -//======================================================================= -// function : IsLessOrEqual -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsLessOrEqual(const Standard_CString astring) const { @@ -138,10 +108,7 @@ inline Standard_Boolean Units_Token::IsLessOrEqual(const Standard_CString astrin return Standard_False; } -//======================================================================= -// function : IsGreater -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsGreater(const Standard_CString astring) const { @@ -151,10 +118,7 @@ inline Standard_Boolean Units_Token::IsGreater(const Standard_CString astring) c : Standard_False; } -//======================================================================= -// function : IsGreater -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsGreater(const Handle(Units_Token)& atoken) const { @@ -165,10 +129,7 @@ inline Standard_Boolean Units_Token::IsGreater(const Handle(Units_Token)& atoken : Standard_False; } -//======================================================================= -// function : IsGreaterOrEqual -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Units_Token::IsGreaterOrEqual(const Handle(Units_Token)& atoken) const { diff --git a/src/FoundationClasses/TKernel/Units/Units_Unit.lxx b/src/FoundationClasses/TKernel/Units/Units_Unit.lxx index 7714f14d60..368d4f5ccb 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Unit.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_Unit.lxx @@ -20,60 +20,42 @@ #include #include -//======================================================================= -// function : Name -// purpose : -//======================================================================= +//================================================================================================= inline TCollection_AsciiString Units_Unit::Name() const { return thename->String(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Units_Unit::Value() const { return thevalue; } -//======================================================================= -// function : Quantity -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_Quantity) Units_Unit::Quantity() const { return thequantity; } -//======================================================================= -// function : SymbolsSequence -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TColStd_HSequenceOfHAsciiString) Units_Unit::SymbolsSequence() const { return thesymbolssequence; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Unit::Value(const Standard_Real avalue) { thevalue = avalue; } -//======================================================================= -// function : Quantity -// purpose : -//======================================================================= +//================================================================================================= inline void Units_Unit::Quantity(const Handle(Units_Quantity)& aquantity) { diff --git a/src/FoundationClasses/TKernel/Units/Units_UnitsDictionary.lxx b/src/FoundationClasses/TKernel/Units/Units_UnitsDictionary.lxx index 99cbaf1667..8589b1f810 100644 --- a/src/FoundationClasses/TKernel/Units/Units_UnitsDictionary.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_UnitsDictionary.lxx @@ -18,20 +18,14 @@ #include #include -//======================================================================= -// function : Sequence -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Units_QuantitiesSequence) Units_UnitsDictionary::Sequence() const { return thequantitiessequence; } -//======================================================================= -// function : Dump -// purpose : -//======================================================================= +//================================================================================================= inline void Units_UnitsDictionary::Dump(const Standard_Integer alevel) const { @@ -59,10 +53,7 @@ inline void Units_UnitsDictionary::Dump(const Standard_Integer alevel) const } } -//======================================================================= -// function : Dump -// purpose : -//======================================================================= +//================================================================================================= inline void Units_UnitsDictionary::Dump(const Handle(Units_Dimensions)& adimensions) const { diff --git a/src/FoundationClasses/TKernel/Units/Units_UnitsLexicon.lxx b/src/FoundationClasses/TKernel/Units/Units_UnitsLexicon.lxx index 7b3719d92b..17ad44ebb0 100644 --- a/src/FoundationClasses/TKernel/Units/Units_UnitsLexicon.lxx +++ b/src/FoundationClasses/TKernel/Units/Units_UnitsLexicon.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : Dump -// purpose : -//======================================================================= +//================================================================================================= inline void Units_UnitsLexicon::Dump() const { diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx index 5bc5e806bc..61dc694320 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx @@ -12,10 +12,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BOPAlgo_MakerVolume -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume() : BOPAlgo_Builder(), myIntersect(Standard_True), @@ -23,10 +21,8 @@ inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume() { } -//======================================================================= -// function : BOPAlgo_MakerVolume -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume( const Handle(NCollection_BaseAllocator)& theAllocator) : BOPAlgo_Builder(theAllocator), @@ -44,10 +40,8 @@ inline BOPAlgo_MakerVolume::~BOPAlgo_MakerVolume() Clear(); } -//======================================================================= -// function : Clear -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_MakerVolume::Clear() { BOPAlgo_Builder::Clear(); @@ -58,37 +52,29 @@ inline void BOPAlgo_MakerVolume::Clear() myAvoidInternalShapes = Standard_False; } -//======================================================================= -// function : SetIntersect -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_MakerVolume::SetIntersect(const Standard_Boolean bIntersect) { myIntersect = bIntersect; } -//======================================================================= -// function : IsIntersect -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPAlgo_MakerVolume::IsIntersect() const { return myIntersect; } -//======================================================================= -// function : Box -// purpose : -//======================================================================= +//================================================================================================= + inline const TopoDS_Solid& BOPAlgo_MakerVolume::Box() const { return mySBox; } -//======================================================================= -// function : Faces -// purpose : -//======================================================================= +//================================================================================================= + inline const TopTools_ListOfShape& BOPAlgo_MakerVolume::Faces() const { return myFaces; diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx index a93507e9b2..5f25a773e9 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx @@ -15,16 +15,12 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet() {} -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet( const Handle(NCollection_BaseAllocator)& theAllocator) : myStartShapes(theAllocator), @@ -38,65 +34,51 @@ inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet( //======================================================================= inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet() {} -//======================================================================= -// function : Clear -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_WireEdgeSet::Clear() { myStartShapes.Clear(); myShapes.Clear(); } -//======================================================================= -// function : SetFace -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF) { myFace = aF; } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= + inline const TopoDS_Face& BOPAlgo_WireEdgeSet::Face() const { return myFace; } -//======================================================================= -// function : AddStartElement -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE) { myStartShapes.Append(aE); } -//======================================================================= -// function : StartElements -// purpose : -//======================================================================= +//================================================================================================= + inline const TopTools_ListOfShape& BOPAlgo_WireEdgeSet::StartElements() const { return myStartShapes; } -//======================================================================= -// function : AddShape -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW) { myShapes.Append(aW); } -//======================================================================= -// function : Shapes -// purpose : -//======================================================================= +//================================================================================================= + inline const TopTools_ListOfShape& BOPAlgo_WireEdgeSet::Shapes() const { return myShapes; diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireSplitter.lxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireSplitter.lxx index 90b201370c..df6892a4e6 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireSplitter.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireSplitter.lxx @@ -17,10 +17,8 @@ #include -//======================================================================= -// function : BOPAlgo_EdgeInfo -// purpose : -//======================================================================= +//================================================================================================= + class BOPAlgo_EdgeInfo { public: @@ -80,10 +78,8 @@ typedef BOPAlgo_ListOfEdgeInfo::Iterator BOPAlgo_ListIteratorOfListOfEdgeInfo; typedef NCollection_IndexedDataMap BOPAlgo_IndexedDataMapOfShapeListOfEdgeInfo; -//======================================================================= -// function : MakeWire -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPAlgo_WireSplitter::MakeWire(TopTools_ListOfShape& aLE, TopoDS_Wire& aWire) { BRep_Builder aBB; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_CoupleOfPaveBlocks.hxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_CoupleOfPaveBlocks.hxx index 21cb89e0a6..54faa63c44 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_CoupleOfPaveBlocks.hxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_CoupleOfPaveBlocks.hxx @@ -23,10 +23,9 @@ * and some satellite information * */ -//======================================================================= -// class : BOPDS_CoupleOfPaveBlocks -// purpose : -//======================================================================= + +//================================================================================================= + class BOPDS_CoupleOfPaveBlocks { public: diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Curve.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Curve.lxx index 7accf9139d..62d3893003 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Curve.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Curve.lxx @@ -14,10 +14,8 @@ #include -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_Curve::BOPDS_Curve() : myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()), myPaveBlocks(myAllocator), @@ -26,10 +24,8 @@ inline BOPDS_Curve::BOPDS_Curve() { } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_Curve::BOPDS_Curve(const Handle(NCollection_BaseAllocator)& theAllocator) : myAllocator(theAllocator), myPaveBlocks(myAllocator), @@ -38,34 +34,26 @@ inline BOPDS_Curve::BOPDS_Curve(const Handle(NCollection_BaseAllocator)& theAllo { } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_Curve::~BOPDS_Curve() {} -//======================================================================= -// function : SetCurve -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Curve::SetCurve(const IntTools_Curve& theCurve) { myCurve = theCurve; } -//======================================================================= -// function : Curve -// purpose : -//======================================================================= +//================================================================================================= + inline const IntTools_Curve& BOPDS_Curve::Curve() const { return myCurve; } -//======================================================================= -// function : SetPaveBlocks -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Curve::SetPaveBlocks(const BOPDS_ListOfPaveBlock& theLPB) { BOPDS_ListIteratorOfListOfPaveBlock aIt; @@ -78,28 +66,22 @@ inline void BOPDS_Curve::SetPaveBlocks(const BOPDS_ListOfPaveBlock& theLPB) } } -//======================================================================= -// function : PaveBlocks -// purpose : -//======================================================================= +//================================================================================================= + inline const BOPDS_ListOfPaveBlock& BOPDS_Curve::PaveBlocks() const { return myPaveBlocks; } -//======================================================================= -// function : ChangePaveBlocks -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_ListOfPaveBlock& BOPDS_Curve::ChangePaveBlocks() { return myPaveBlocks; } -//======================================================================= -// function : InitPaveBlock1 -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Curve::InitPaveBlock1() { if (!myPaveBlocks.Extent()) @@ -109,65 +91,51 @@ inline void BOPDS_Curve::InitPaveBlock1() } } -//======================================================================= -// function : ChangePaveBlock1 -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(BOPDS_PaveBlock)& BOPDS_Curve::ChangePaveBlock1() { Handle(BOPDS_PaveBlock)* pPB = (Handle(BOPDS_PaveBlock)*)&myPaveBlocks.First(); return *pPB; } -//======================================================================= -// function : TechnoVertices -// purpose : -//======================================================================= +//================================================================================================= + inline const TColStd_ListOfInteger& BOPDS_Curve::TechnoVertices() const { return myTechnoVertices; } -//======================================================================= -// function : ChangeTechnoVertices -// purpose : -//======================================================================= +//================================================================================================= + inline TColStd_ListOfInteger& BOPDS_Curve::ChangeTechnoVertices() { return myTechnoVertices; } -//======================================================================= -// function : SetBox -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Curve::SetBox(const Bnd_Box& theBox) { myBox = theBox; } -//======================================================================= -// function : Box -// purpose : -//======================================================================= +//================================================================================================= + inline const Bnd_Box& BOPDS_Curve::Box() const { return myBox; } -//======================================================================= -// function : ChangeBox -// purpose : -//======================================================================= +//================================================================================================= + inline Bnd_Box& BOPDS_Curve::ChangeBox() { return myBox; } -//======================================================================= -// function : HasEdge -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_Curve::HasEdge() const { Standard_Boolean bFlag; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_DS.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_DS.lxx index 3df8949b9a..a171b1a626 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_DS.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_DS.lxx @@ -14,108 +14,83 @@ #include -//======================================================================= -// function : InterfVV -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfVV& BOPDS_DS::InterfVV() { return myInterfVV; } -//======================================================================= -// function : InterfVE -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfVE& BOPDS_DS::InterfVE() { return myInterfVE; } -//======================================================================= -// function : InterfVF -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfVF& BOPDS_DS::InterfVF() { return myInterfVF; -} //======================================================================= +} //================================================================================================= -// function : InterfEE -// purpose : -//======================================================================= inline BOPDS_VectorOfInterfEE& BOPDS_DS::InterfEE() { return myInterfEE; } -//======================================================================= -// function : InterfEF -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfEF& BOPDS_DS::InterfEF() { return myInterfEF; } -//======================================================================= -// function : InterfFF -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfFF& BOPDS_DS::InterfFF() { return myInterfFF; } -//======================================================================= -// function : InterfVZ -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ() { return myInterfVZ; } -//======================================================================= -// function : InterfEZ -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ() { return myInterfEZ; } -//======================================================================= -// function : InterfFZ -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ() { return myInterfFZ; } -//======================================================================= -// function : InterfZZ -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ() { return myInterfZZ; } -//======================================================================= -// function : NbInterfTypes -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_DS::NbInterfTypes() { return 10; } -//======================================================================= -// function : AddInterf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_DS::AddInterf(const Standard_Integer theI1, const Standard_Integer theI2) { @@ -128,19 +103,15 @@ inline Standard_Boolean BOPDS_DS::AddInterf(const Standard_Integer theI1, return Standard_False; } -//======================================================================= -// function : HasInterf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI) const { return myInterfered.Contains(theI); } -//======================================================================= -// function : HasInterf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI1, const Standard_Integer theI2) const { @@ -148,10 +119,8 @@ inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI1, return myInterfTB.Contains(aPK); } -//======================================================================= -// function : Interferences -// purpose : -//======================================================================= +//================================================================================================= + inline const BOPDS_MapOfPair& BOPDS_DS::Interferences() const { return myInterfTB; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx index bf4272a603..a54949b71c 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx @@ -15,10 +15,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_FaceInfo::BOPDS_FaceInfo() : myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()), myIndex(-1), @@ -31,10 +29,8 @@ inline BOPDS_FaceInfo::BOPDS_FaceInfo() { } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_FaceInfo::BOPDS_FaceInfo(const Handle(NCollection_BaseAllocator)& theAllocator) : myAllocator(theAllocator), myIndex(-1), @@ -56,10 +52,8 @@ inline BOPDS_FaceInfo::~BOPDS_FaceInfo() Clear(); } -//======================================================================= -// function : Clear -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_FaceInfo::Clear() { myPaveBlocksIn.Clear(); @@ -68,129 +62,101 @@ inline void BOPDS_FaceInfo::Clear() myVerticesOn.Clear(); } -//======================================================================= -// function : SetIndex -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_FaceInfo::SetIndex(const Standard_Integer theI) { myIndex = theI; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_FaceInfo::Index() const { return myIndex; } -//======================================================================= -// function : PaveBlockIn -// purpose : -//======================================================================= +//================================================================================================= + inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksIn() const { return myPaveBlocksIn; } -//======================================================================= -// function : ChangePaveBlocksIn -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksIn() { return myPaveBlocksIn; } -//======================================================================= -// function : VerticesIn -// purpose : -//======================================================================= +//================================================================================================= + inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesIn() const { return myVerticesIn; } -//======================================================================= -// function : ChangeVerticesIn -// purpose : -//======================================================================= +//================================================================================================= + inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesIn() { return myVerticesIn; } // On -//======================================================================= -// function : PaveBlocksOn -// purpose : -//======================================================================= +//================================================================================================= + inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksOn() const { return myPaveBlocksOn; } -//======================================================================= -// function : ChangePaveBlocksOn -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksOn() { return myPaveBlocksOn; } -//======================================================================= -// function : VerticesOn -// purpose : -//======================================================================= +//================================================================================================= + inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesOn() const { return myVerticesOn; } -//======================================================================= -// function : ChangeVerticesOn -// purpose : -//======================================================================= +//================================================================================================= + inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesOn() { return myVerticesOn; } // Sc -//======================================================================= -// function : PaveBlocksSc -// purpose : -//======================================================================= +//================================================================================================= + inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksSc() const { return myPaveBlocksSc; } -//======================================================================= -// function : ChangePaveBlocksSc -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksSc() { return myPaveBlocksSc; } -//======================================================================= -// function : VerticesSc -// purpose : -//======================================================================= +//================================================================================================= + inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesSc() const { return myVerticesSc; } -//======================================================================= -// function : ChangeVerticesSc -// purpose : -//======================================================================= +//================================================================================================= + inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesSc() { return myVerticesSc; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_IndexRange.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_IndexRange.lxx index b348c9c45d..da9f9da73b 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_IndexRange.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_IndexRange.lxx @@ -12,76 +12,60 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_IndexRange::BOPDS_IndexRange() : myFirst(0), myLast(0) { } -//======================================================================= -// function : SetFirst -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_IndexRange::SetFirst(const Standard_Integer aFirst) { myFirst = aFirst; } -//======================================================================= -// function : First -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_IndexRange::First() const { return myFirst; } -//======================================================================= -// function : SetLast -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_IndexRange::SetLast(const Standard_Integer aLast) { myLast = aLast; } -//======================================================================= -// function :Last -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_IndexRange::Last() const { return myLast; } -//======================================================================= -// function : SetIndices -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_IndexRange::SetIndices(const Standard_Integer theI1, const Standard_Integer theI2) { myFirst = theI1; myLast = theI2; } -//======================================================================= -// function : Indices -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_IndexRange::Indices(Standard_Integer& theI1, Standard_Integer& theI2) const { theI1 = myFirst; theI2 = myLast; } -//======================================================================= -// function : Contains -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_IndexRange::Contains(const Standard_Integer aIndex) const { return aIndex >= myFirst && aIndex <= myLast; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Interf.hxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Interf.hxx index 307981638c..b72ab9e676 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Interf.hxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Interf.hxx @@ -26,10 +26,8 @@ * The class BOPDS_Interf is root class * */ -//======================================================================= -// function : BOPDS_Interf -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_Interf { public: @@ -203,10 +201,8 @@ protected: * The class BOPDS_InterfVV stores the information about * the interference of the type vertex/vertex. */ -//======================================================================= -// function : BOPDS_InterfVV -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfVV : public BOPDS_Interf { public: @@ -243,10 +239,8 @@ public: * The class BOPDS_InterfVE stores the information about * the interference of the type vertex/edge. */ -//======================================================================= -// function : BOPDS_InterfVE -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfVE : public BOPDS_Interf { public: @@ -308,10 +302,8 @@ protected: * The class BOPDS_InterfVF stores the information about * the interference of the type vertex/face */ -//======================================================================= -// function : BOPDS_InterfVF -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfVF : public BOPDS_Interf { public: @@ -388,10 +380,8 @@ protected: * The class BOPDS_InterfEE stores the information about * the interference of the type edge/edge. */ -//======================================================================= -// function : BOPDS_InterfEE -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfEE : public BOPDS_Interf { public: @@ -447,10 +437,8 @@ protected: * The class BOPDS_InterfEF stores the information about * the interference of the type edge/face. */ -//======================================================================= -// function : BOPDS_InterfEF -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfEF : public BOPDS_Interf { public: @@ -513,10 +501,8 @@ protected: */ ; -//======================================================================= -// function : BOPDS_InterfFF -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfFF : public BOPDS_Interf { public: @@ -622,10 +608,8 @@ protected: * The class BOPDS_InterfVZ stores the information about * the interference of the type vertex/solid. */ -//======================================================================= -// function : BOPDS_InterfVZ -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfVZ : public BOPDS_Interf { public: @@ -655,10 +639,8 @@ public: * The class BOPDS_InterfEZ stores the information about * the interference of the type edge/solid. */ -//======================================================================= -// function : BOPDS_InterfEZ -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfEZ : public BOPDS_Interf { public: @@ -688,10 +670,8 @@ public: * The class BOPDS_InterfFZ stores the information about * the interference of the type face/solid. */ -//======================================================================= -// function : BOPDS_InterfFZ -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfFZ : public BOPDS_Interf { public: @@ -721,10 +701,8 @@ public: * The class BOPDS_InterfZZ stores the information about * the interference of the type solid/solid. */ -//======================================================================= -// function : BOPDS_InterfZZ -// purpose : -//======================================================================= +//================================================================================================= + class BOPDS_InterfZZ : public BOPDS_Interf { public: diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Pave.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Pave.lxx index 5361d85b36..e8c2af2170 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Pave.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Pave.lxx @@ -12,75 +12,59 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_Pave::BOPDS_Pave() { myIndex = -1; myParameter = 99.; } -//======================================================================= -// function : SetIndex -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Pave::SetIndex(const Standard_Integer theIndex) { myIndex = theIndex; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_Pave::Index() const { return myIndex; } -//======================================================================= -// function : SetParameter -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Pave::SetParameter(const Standard_Real theParameter) { myParameter = theParameter; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real BOPDS_Pave::Parameter() const { return myParameter; } -//======================================================================= -// function : Contents -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Pave::Contents(Standard_Integer& theIndex, Standard_Real& theParameter) const { theIndex = myIndex; theParameter = myParameter; } -//======================================================================= -// function : IsLess -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_Pave::IsLess(const BOPDS_Pave& theOther) const { return myParameter < theOther.myParameter; } -//======================================================================= -// function : IsEqual -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_Pave::IsEqual(const BOPDS_Pave& theOther) const { Standard_Boolean bFlag; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Point.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Point.lxx index a9d67e8e4b..bf1115f187 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Point.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Point.lxx @@ -12,10 +12,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_Point::BOPDS_Point() { myPnt.SetCoord(99., 99., 99.); @@ -30,73 +28,57 @@ inline BOPDS_Point::BOPDS_Point() //======================================================================= inline BOPDS_Point::~BOPDS_Point() {} -//======================================================================= -// function : SetIndex -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Point::SetIndex(const Standard_Integer theIndex) { myIndex = theIndex; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_Point::Index() const { return myIndex; } -//======================================================================= -// function : SetPnt -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Point::SetPnt(const gp_Pnt& thePnt) { myPnt = thePnt; } -//======================================================================= -// function : Pnt -// purpose : -//======================================================================= +//================================================================================================= + inline const gp_Pnt& BOPDS_Point::Pnt() const { return myPnt; } -//======================================================================= -// function : SetPnt2D1 -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Point::SetPnt2D1(const gp_Pnt2d& thePnt) { myPnt2D1 = thePnt; } -//======================================================================= -// function : Pnt2D1 -// purpose : -//======================================================================= +//================================================================================================= + inline const gp_Pnt2d& BOPDS_Point::Pnt2D1() const { return myPnt2D1; } -//======================================================================= -// function : SetPnt2D2 -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_Point::SetPnt2D2(const gp_Pnt2d& thePnt) { myPnt2D2 = thePnt; } -//======================================================================= -// function : Pnt2D2 -// purpose : -//======================================================================= +//================================================================================================= + inline const gp_Pnt2d& BOPDS_Point::Pnt2D2() const { return myPnt2D2; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_ShapeInfo.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_ShapeInfo.lxx index 45fbba584e..0a89be6fb3 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_ShapeInfo.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_ShapeInfo.lxx @@ -14,10 +14,8 @@ #include -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_ShapeInfo::BOPDS_ShapeInfo() : @@ -27,10 +25,8 @@ inline BOPDS_ShapeInfo::BOPDS_ShapeInfo() { } -//======================================================================= -// function : -// purpose : -//======================================================================= +//================================================================================================= + inline BOPDS_ShapeInfo::BOPDS_ShapeInfo(const Handle(NCollection_BaseAllocator)& theAllocator) : myType(TopAbs_SHAPE), mySubShapes(theAllocator), @@ -45,173 +41,135 @@ inline BOPDS_ShapeInfo::BOPDS_ShapeInfo(const Handle(NCollection_BaseAllocator)& //======================================================================= inline BOPDS_ShapeInfo::~BOPDS_ShapeInfo() {} -//======================================================================= -// function : SetShape -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_ShapeInfo::SetShape(const TopoDS_Shape& theS) { myShape = theS; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= + inline const TopoDS_Shape& BOPDS_ShapeInfo::Shape() const { return myShape; } -//======================================================================= -// function : SetShapeType -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_ShapeInfo::SetShapeType(const TopAbs_ShapeEnum theType) { myType = theType; } -//======================================================================= -// function : ShapeType -// purpose : -//======================================================================= +//================================================================================================= + inline TopAbs_ShapeEnum BOPDS_ShapeInfo::ShapeType() const { return myType; } -//======================================================================= -// function : SetBox -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_ShapeInfo::SetBox(const Bnd_Box& theBox) { myBox = theBox; } -//======================================================================= -// function : Box -// purpose : -//======================================================================= +//================================================================================================= + inline const Bnd_Box& BOPDS_ShapeInfo::Box() const { return myBox; } -//======================================================================= -// function : ChangeBox -// purpose : -//======================================================================= +//================================================================================================= + inline Bnd_Box& BOPDS_ShapeInfo::ChangeBox() { return myBox; } -//======================================================================= -// function : SubShapes -// purpose : -//======================================================================= +//================================================================================================= + inline const TColStd_ListOfInteger& BOPDS_ShapeInfo::SubShapes() const { return mySubShapes; } -//======================================================================= -// function : ChangeSubShapes -// purpose : -//======================================================================= +//================================================================================================= + inline TColStd_ListOfInteger& BOPDS_ShapeInfo::ChangeSubShapes() { return mySubShapes; } -//======================================================================= -// function : HasSubShape -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::HasSubShape(const Standard_Integer theI) const { return mySubShapes.Contains(theI); } -//======================================================================= -// function : HasReference -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::HasReference() const { return (myReference >= 0); } -//======================================================================= -// function : SetReference -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_ShapeInfo::SetReference(const Standard_Integer theI) { myReference = theI; } -//======================================================================= -// function : Reference -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_ShapeInfo::Reference() const { return myReference; } -//======================================================================= -// function : HasBRep -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::HasBRep() const { return (BOPDS_Tools::HasBRep(myType)); } -//======================================================================= -// function : IsInterfering -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::IsInterfering() const { return (HasBRep() || myType == TopAbs_SOLID); } -//======================================================================= -// function : HasFlag -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::HasFlag() const { return (myFlag >= 0); } -//======================================================================= -// function : HasFlag -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_ShapeInfo::HasFlag(Standard_Integer& theFlag) const { theFlag = myFlag; return (myFlag >= 0); } -//======================================================================= -// function : SetFlag -// purpose : -//======================================================================= +//================================================================================================= + inline void BOPDS_ShapeInfo::SetFlag(const Standard_Integer theFlag) { myFlag = theFlag; } -//======================================================================= -// function : Flag -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_ShapeInfo::Flag() const { return myFlag; diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Tools.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Tools.lxx index 9af72a7f50..1e24d46ee0 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Tools.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_Tools.lxx @@ -12,28 +12,22 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function: HasBRep -// purpose: -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_Tools::HasBRep(const TopAbs_ShapeEnum aTi) { return (aTi == TopAbs_VERTEX || aTi == TopAbs_EDGE || aTi == TopAbs_FACE); } -//======================================================================= -// function: IsInterfering -// purpose: -//======================================================================= +//================================================================================================= + inline Standard_Boolean BOPDS_Tools::IsInterfering(const TopAbs_ShapeEnum aTi) { return (BOPDS_Tools::HasBRep(aTi) || aTi == TopAbs_SOLID); } -//======================================================================= -// function : TypeToInteger -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1, const TopAbs_ShapeEnum aType2) { @@ -88,10 +82,8 @@ inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1 return iRet; } -//======================================================================= -// function : TypeToInteger -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1) { Standard_Integer iRet = 9; diff --git a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_ConnexityBlock.hxx b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_ConnexityBlock.hxx index b0e3009d40..9f4eda7d87 100644 --- a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_ConnexityBlock.hxx +++ b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_ConnexityBlock.hxx @@ -18,10 +18,8 @@ #include #include -//======================================================================= -// class : ConnexityBlock -// purpose : -//======================================================================= +//================================================================================================= + class BOPTools_ConnexityBlock { public: diff --git a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_CoupleOfShape.hxx b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_CoupleOfShape.hxx index 8ac9d89e88..b854197d4f 100644 --- a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_CoupleOfShape.hxx +++ b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_CoupleOfShape.hxx @@ -17,10 +17,8 @@ #include -//======================================================================= -// class : -// purpose : -//======================================================================= +//================================================================================================= + class BOPTools_CoupleOfShape { public: diff --git a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_EdgeEdge.lxx b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_EdgeEdge.lxx index d75f99b6d2..54a7c366c7 100644 --- a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_EdgeEdge.lxx +++ b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_EdgeEdge.lxx @@ -15,10 +15,8 @@ #include #include -//======================================================================= -// function : IntTools_EdgeEdge -// purpose : -//======================================================================= +//================================================================================================= + inline IntTools_EdgeEdge::IntTools_EdgeEdge() : myTol1(0.), myTol2(0.), @@ -38,10 +36,8 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge() { } -//======================================================================= -// function : IntTools_EdgeEdge -// purpose : -//======================================================================= +//================================================================================================= + inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) : myEdge1(theEdge1), @@ -64,10 +60,8 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, { } -//======================================================================= -// function : IntTools_EdgeEdge -// purpose : -//======================================================================= +//================================================================================================= + inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const Standard_Real aT11, const Standard_Real aT12, @@ -94,44 +88,34 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, { } -//======================================================================= -// function : IntTools_EdgeEdge -// purpose : -//======================================================================= +//================================================================================================= + inline IntTools_EdgeEdge::~IntTools_EdgeEdge() {} -//======================================================================= -// function : SetEdge1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge) { myEdge1 = theEdge; } -//======================================================================= -// function : SetRange1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetRange1(const IntTools_Range& theRange) { myRange1 = theRange; } -//======================================================================= -// function : SetRange1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetRange1(const Standard_Real aT1, const Standard_Real aT2) { myRange1.SetFirst(aT1); myRange1.SetLast(aT2); } -//======================================================================= -// function : SetEdge1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge, const Standard_Real aT1, const Standard_Real aT2) @@ -140,38 +124,30 @@ inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge, SetRange1(aT1, aT2); } -//======================================================================= -// function : SetEdge2 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge) { myEdge2 = theEdge; } -//======================================================================= -// function : SetRange1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetRange2(const IntTools_Range& theRange) { myRange2 = theRange; } -//======================================================================= -// function : SetRange1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetRange2(const Standard_Real aT1, const Standard_Real aT2) { myRange2.SetFirst(aT1); myRange2.SetLast(aT2); } -//======================================================================= -// function : SetEdge1 -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge, const Standard_Real aT1, const Standard_Real aT2) @@ -180,46 +156,36 @@ inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge, SetRange2(aT1, aT2); } -//======================================================================= -// function : SetFuzzyValue -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::SetFuzzyValue(const Standard_Real theFuzz) { myFuzzyValue = Max(theFuzz, Precision::Confusion()); } -//======================================================================= -// function : FuzzyValue -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real IntTools_EdgeEdge::FuzzyValue() const { return myFuzzyValue; } -//======================================================================= -// function : CommonParts -// purpose : -//======================================================================= +//================================================================================================= + inline const IntTools_SequenceOfCommonPrts& IntTools_EdgeEdge::CommonParts() const { return myCommonParts; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean IntTools_EdgeEdge::IsDone() const { return (myErrorStatus == 0); } -//======================================================================= -// function : CheckData -// purpose : -//======================================================================= +//================================================================================================= + inline void IntTools_EdgeEdge::CheckData() { if (myEdge1.IsNull() || myEdge2.IsNull()) diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Generator.lxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Generator.lxx index 5b6e748717..05198855ef 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Generator.lxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Generator.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Shell -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shell& BRepFill_Generator::Shell() const { diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx index bc01045d71..7c85d8a90b 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx @@ -620,10 +620,8 @@ void BRepFill_PipeShell::SetTransition(const BRepFill_TransitionStyle Mode, angmax = Angmax; } -//======================================================================= -// function : Simulate -// purpose : Calculate N Sections -//======================================================================= +//================================================================================================= + void BRepFill_PipeShell::Simulate(const Standard_Integer N, TopTools_ListOfShape& List) { // Preparation diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_ShapeLaw.lxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_ShapeLaw.lxx index df30771c27..407dbc3874 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_ShapeLaw.lxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_ShapeLaw.lxx @@ -17,10 +17,8 @@ #include #include -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= + inline const TopoDS_Edge& BRepFill_ShapeLaw::Edge(const Standard_Integer Index) const { return TopoDS::Edge(myEdges->Value(Index)); diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_LineInter.lxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_LineInter.lxx index 374fb30614..4a38029313 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_LineInter.lxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_LineInter.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : TopOpeBRep_LineInter -// purpose : -//======================================================================= +//================================================================================================= inline TopOpeBRep_LineInter::TopOpeBRep_LineInter() : myOK(Standard_True), @@ -39,10 +36,7 @@ inline TopOpeBRep_LineInter::TopOpeBRep_LineInter() { } -//======================================================================= -// function : SetFaces -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_Face& F2) { @@ -50,150 +44,105 @@ inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_F myF2 = F2; } -//======================================================================= -// function : TypeLineCurve -// purpose : -//======================================================================= +//================================================================================================= inline TopOpeBRep_TypeLineCurve TopOpeBRep_LineInter::TypeLineCurve() const { return myTypeLineCurve; } -//======================================================================= -// function : NbVPoint -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRep_LineInter::NbVPoint() const { return myNbVPoint; } -//======================================================================= -// function : INL -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_LineInter::INL() const { return myINL; } -//======================================================================= -// function : IsVClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_LineInter::IsVClosed() const { return myIsVClosed; } -//======================================================================= -// function : HasVPonR -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_LineInter::HasVPonR() const { return myHasVPonR; } -//======================================================================= -// function : TransitionOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS1() const { return myIL->TransitionOnS1(); } -//======================================================================= -// function : TransitionOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS2() const { return myIL->TransitionOnS2(); } -//======================================================================= -// function : SituationS1 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Situation TopOpeBRep_LineInter::SituationS1() const { return myIL->SituationS1(); } -//======================================================================= -// function : SituationS2 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Situation TopOpeBRep_LineInter::SituationS2() const { return myIL->SituationS2(); } -//======================================================================= -// function : LineW -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(IntPatch_WLine)& TopOpeBRep_LineInter::LineW() const { return myILW; } -//======================================================================= -// function : LineG -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(IntPatch_GLine)& TopOpeBRep_LineInter::LineG() const { return myILG; } -//======================================================================= -// function : LineR -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(IntPatch_RLine)& TopOpeBRep_LineInter::LineR() const { return myILR; } -//======================================================================= -// function : Index -// purpose : trace -//======================================================================= +//================================================================================================= inline void TopOpeBRep_LineInter::Index(const Standard_Integer I) { myIndex = I; } -//======================================================================= -// function : Index -// purpose : trace -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRep_LineInter::Index() const { return myIndex; } -//======================================================================= -// function : OK -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_LineInter::OK() const { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_Point2d.lxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_Point2d.lxx index a3ac5af451..44cc73f1ef 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_Point2d.lxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_Point2d.lxx @@ -16,29 +16,23 @@ #include -//======================================================================= -// function : SetPint -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetPint(const IntRes2d_IntersectionPoint& P) { mypint = P; myhaspint = Standard_True; } -//======================================================================= -// function : HasPint -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean TopOpeBRep_Point2d::HasPint() const { return myhaspint; } -//======================================================================= -// function : Pint -// purpose : -//======================================================================= +//================================================================================================= + inline const IntRes2d_IntersectionPoint& TopOpeBRep_Point2d::Pint() const { if (!HasPint()) @@ -46,10 +40,8 @@ inline const IntRes2d_IntersectionPoint& TopOpeBRep_Point2d::Pint() const return mypint; } -//======================================================================= -// function : SetIsVertex -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetIsVertex(const Standard_Integer Index, const Standard_Boolean B) { if (Index == 1) @@ -60,10 +52,8 @@ inline void TopOpeBRep_Point2d::SetIsVertex(const Standard_Integer Index, const throw Standard_Failure("TopOpeBRep_Point2d::SetIsVertex"); } -//======================================================================= -// function : IsVertex -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean TopOpeBRep_Point2d::IsVertex(const Standard_Integer Index) const { if (Index == 1) @@ -74,10 +64,8 @@ inline Standard_Boolean TopOpeBRep_Point2d::IsVertex(const Standard_Integer Inde throw Standard_Failure("TopOpeBRep_Point2d::IsVertex"); } -//======================================================================= -// function : SetVertex -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetVertex(const Standard_Integer Index, const TopoDS_Vertex& V) { if (Index == 1) @@ -94,10 +82,8 @@ inline void TopOpeBRep_Point2d::SetVertex(const Standard_Integer Index, const To throw Standard_Failure("TopOpeBRep_Point2d::SetVertex"); } -//======================================================================= -// function : SetTransition -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetTransition(const Standard_Integer Index, const TopOpeBRepDS_Transition& T) { @@ -109,10 +95,8 @@ inline void TopOpeBRep_Point2d::SetTransition(const Standard_Integer Ind throw Standard_Failure("TopOpeBRep_Point2d::SetTransition"); } -//======================================================================= -// function : SetParameter -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetParameter(const Standard_Integer Index, const Standard_Real P) { if (Index == 1) @@ -123,10 +107,8 @@ inline void TopOpeBRep_Point2d::SetParameter(const Standard_Integer Index, const throw Standard_Failure("TopOpeBRep_Point2d::SetParameter"); } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real TopOpeBRep_Point2d::Parameter(const Standard_Integer Index) const { if (Index == 1) @@ -137,28 +119,22 @@ inline Standard_Real TopOpeBRep_Point2d::Parameter(const Standard_Integer Index) throw Standard_Failure("TopOpeBRep_Point2d::Parameter"); } -//======================================================================= -// function : SetIsPointOfSegment -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetIsPointOfSegment(const Standard_Boolean B) { myispointofsegment = B; } -//======================================================================= -// function : IsPointOfSegment -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean TopOpeBRep_Point2d::IsPointOfSegment() const { return myispointofsegment; } -//======================================================================= -// function : SetSegmentAncestors -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetSegmentAncestors(const Standard_Integer IP1, const Standard_Integer IP2) { @@ -169,10 +145,8 @@ inline void TopOpeBRep_Point2d::SetSegmentAncestors(const Standard_Integer IP1, mystatus = TopOpeBRep_P2DNEW; } -//======================================================================= -// function : SegmentAncestors -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean TopOpeBRep_Point2d::SegmentAncestors(Standard_Integer& IP1, Standard_Integer& IP2) const { @@ -181,163 +155,127 @@ inline Standard_Boolean TopOpeBRep_Point2d::SegmentAncestors(Standard_Integer& I return myhasancestors; } -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetStatus(const TopOpeBRep_P2Dstatus I) { mystatus = I; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= + inline TopOpeBRep_P2Dstatus TopOpeBRep_Point2d::Status() const { return mystatus; } -//======================================================================= -// function : SetIndex -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetIndex(const Standard_Integer I) { myindex = I; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer TopOpeBRep_Point2d::Index() const { return myindex; } -//======================================================================= -// function : SetValue -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetValue(const gp_Pnt& P) { mypnt = P; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= + inline const gp_Pnt& TopOpeBRep_Point2d::Value() const { return mypnt; } -//======================================================================= -// function : SetValue2d -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetValue2d(const gp_Pnt2d& P) { mypnt2d = P; } -//======================================================================= -// function : Value2d -// purpose : -//======================================================================= +//================================================================================================= + inline const gp_Pnt2d& TopOpeBRep_Point2d::Value2d() const { return mypnt2d; } -//======================================================================= -// function : SetKeep -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetKeep(const Standard_Boolean B) { mykeep = B; } -//======================================================================= -// function : Keep -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean TopOpeBRep_Point2d::Keep() const { return mykeep; } -//======================================================================= -// function : SetEdgesConfig -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetEdgesConfig(const TopOpeBRepDS_Config B) { myedgesconfig = B; } -//======================================================================= -// function : EdgesConfig -// purpose : -//======================================================================= +//================================================================================================= + inline TopOpeBRepDS_Config TopOpeBRep_Point2d::EdgesConfig() const { return myedgesconfig; } -//======================================================================= -// function : SetTolerance -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetTolerance(const Standard_Real t) { mytolerance = t; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real TopOpeBRep_Point2d::Tolerance() const { return mytolerance; } -//======================================================================= -// function : SetHctxff2d -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetHctxff2d(const Handle(TopOpeBRep_Hctxff2d)& h) { myctxff2d = h; } -//======================================================================= -// function : Hctxff2d -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(TopOpeBRep_Hctxff2d) TopOpeBRep_Point2d::Hctxff2d() const { return myctxff2d; } -//======================================================================= -// function : SetHctxee2d -// purpose : -//======================================================================= +//================================================================================================= + inline void TopOpeBRep_Point2d::SetHctxee2d(const Handle(TopOpeBRep_Hctxee2d)& h) { myctxee2d = h; } -//======================================================================= -// function : Hctxee2d -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(TopOpeBRep_Hctxee2d) TopOpeBRep_Point2d::Hctxee2d() const { return myctxee2d; diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInter.lxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInter.lxx index 59ef72c1ed..c38b6fabe3 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInter.lxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInter.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : TopOpeBRep_VPointInter -// purpose : -//======================================================================= +//================================================================================================= inline TopOpeBRep_VPointInter::TopOpeBRep_VPointInter() : myPPOI(NULL), @@ -35,10 +32,7 @@ inline TopOpeBRep_VPointInter::TopOpeBRep_VPointInter() { } -//======================================================================= -// function : SetShapes -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::SetShapes(const Standard_Integer I1, const Standard_Integer I2) { @@ -46,10 +40,7 @@ inline void TopOpeBRep_VPointInter::SetShapes(const Standard_Integer I1, const S myS2 = I2; } -//======================================================================= -// function : GetShapes -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::GetShapes(Standard_Integer& I1, Standard_Integer& I2) const { @@ -57,230 +48,161 @@ inline void TopOpeBRep_VPointInter::GetShapes(Standard_Integer& I1, Standard_Int I2 = myS2; } -//======================================================================= -// function : TransitionOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionOnS1() const { return myPPOI->TransitionOnS1(); } -//======================================================================= -// function : TransitionOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionOnS2() const { return myPPOI->TransitionOnS2(); } -//======================================================================= -// function : TransitionLineArc1 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionLineArc1() const { return myPPOI->TransitionLineArc1(); } -//======================================================================= -// function : TransitionLineArc2 -// purpose : -//======================================================================= +//================================================================================================= inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionLineArc2() const { return myPPOI->TransitionLineArc2(); } -//======================================================================= -// function : IsOnDomS1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsOnDomS1() const { return myPPOI->IsOnDomS1(); } -//======================================================================= -// function : IsOnDomS2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsOnDomS2() const { return myPPOI->IsOnDomS2(); } -//======================================================================= -// function : ParametersOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::ParametersOnS1(Standard_Real& u, Standard_Real& v) const { myPPOI->ParametersOnS1(u, v); } -//======================================================================= -// function : ParametersOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::ParametersOnS2(Standard_Real& u, Standard_Real& v) const { myPPOI->ParametersOnS2(u, v); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline const gp_Pnt& TopOpeBRep_VPointInter::Value() const { return myPPOI->Value(); } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real TopOpeBRep_VPointInter::Tolerance() const { return myPPOI->Tolerance(); } -//======================================================================= -// function : ParameterOnLine -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real TopOpeBRep_VPointInter::ParameterOnLine() const { return myPPOI->ParameterOnLine(); } -//======================================================================= -// function : ParameterOnArc1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real TopOpeBRep_VPointInter::ParameterOnArc1() const { return myPPOI->ParameterOnArc1(); } -//======================================================================= -// function : ParameterOnArc2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real TopOpeBRep_VPointInter::ParameterOnArc2() const { return myPPOI->ParameterOnArc2(); } -//======================================================================= -// function : IsVertexOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsVertexOnS1() const { return myPPOI->IsVertexOnS1(); } -//======================================================================= -// function : IsVertexOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsVertexOnS2() const { return myPPOI->IsVertexOnS2(); } -//======================================================================= -// function : IsMultiple -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsMultiple() const { return myPPOI->IsMultiple(); } -//======================================================================= -// function : IsInternal -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::IsInternal() const { return Standard_False; } -//======================================================================= -// function : ShapeIndex -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRep_VPointInter::ShapeIndex() const { return myShapeIndex; } -//======================================================================= -// function : ShapeIndex -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::ShapeIndex(const Standard_Integer I) { myShapeIndex = I; } -//======================================================================= -// function : Keep -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRep_VPointInter::Keep() const { return myKeep; } -//======================================================================= -// function : ChangeKeep -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::ChangeKeep(const Standard_Boolean keep) { myKeep = keep; } -//======================================================================= -// function : Index -// purpose : trace -//======================================================================= +//================================================================================================= inline void TopOpeBRep_VPointInter::Index(const Standard_Integer I) { myIndex = I; } -//======================================================================= -// function : Index -// purpose : trace -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRep_VPointInter::Index() const { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_BlockIterator.lxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_BlockIterator.lxx index 71abd134ec..c495f83e3c 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_BlockIterator.lxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_BlockIterator.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Initialize -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRepBuild_BlockIterator::Initialize() { myValue = myLower; } -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRepBuild_BlockIterator::More() const { @@ -35,30 +29,21 @@ inline Standard_Boolean TopOpeBRepBuild_BlockIterator::More() const return b; } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void TopOpeBRepBuild_BlockIterator::Next() { myValue++; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRepBuild_BlockIterator::Value() const { return myValue; } -//======================================================================= -// function : Extent -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopOpeBRepBuild_BlockIterator::Extent() const { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx index 178f6ec385..e5bb969adf 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : TopOpeBRepBuild_FuseFace -// purpose : -//======================================================================= +//================================================================================================= inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace() : myInternal(Standard_False), @@ -28,10 +25,7 @@ inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace() { } -//======================================================================= -// function : TopOpeBRepBuild_FuseFace -// purpose : -//======================================================================= +//================================================================================================= inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace(const TopTools_ListOfShape& LIF, const TopTools_ListOfShape& LRF, @@ -40,90 +34,63 @@ inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace(const TopTools_ListOfS Init(LIF, LRF, CXM); } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRepBuild_FuseFace::IsDone() const { return myDone; } -//======================================================================= -// function : IsModified -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopOpeBRepBuild_FuseFace::IsModified() const { return myModified; } -//======================================================================= -// function : ListOfFusionnedFaces -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LFuseFace() const { return myLFF; } -//======================================================================= -// function : ListOfInternalEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LInternEdge() const { return myLIE; } -//======================================================================= -// function : ListOfExternalEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LExternEdge() const { return myLEE; } -//======================================================================= -// function : ListOfModifiedEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LModifEdge() const { return myLME; } -//======================================================================= -// function : ListOfInternalVertex -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LInternVertex() const { return myLIV; } -//======================================================================= -// function : ListOfExternalVertex -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LExternVertex() const { return myLEV; } -//======================================================================= -// function : ListOfModifiedVertex -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LModifVertex() const { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx index 018d5108e6..203d63db75 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx @@ -314,10 +314,8 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU, return Standard_True; } -//======================================================================= -// variable : Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d -// purpose : -//======================================================================= +//================================================================================================= + Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d = NULL; //================================================================================================= @@ -838,10 +836,10 @@ void TopOpeBRepBuild_Builder::GSplitEdgeWES(const TopoDS_Shape& EOR, if (isfafa) newO = Standard_False; // xpu110598 - // if (fus) : faces are SDSO : we keep original edge's orientation - // if (com) : faces are SDSO : we keep original edge's orientation - // if (cut && TBToFill==OUT) : myFaceToFill is the reference face, - // we keep original edge's orientation + // if (fus) : faces are SDSO : we keep original edge's orientation + // if (com) : faces are SDSO : we keep original edge's orientation + // if (cut && TBToFill==OUT) : myFaceToFill is the reference face, + // we keep original edge's orientation #ifdef OCCT_DEBUG Standard_Integer iEOR; diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Form.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Form.lxx index c045d13405..2ad71144e4 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Form.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Form.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeatForm -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_Form::BRepFeat_Form() : myFuse(Standard_False), @@ -37,70 +34,49 @@ inline BRepFeat_Form::BRepFeat_Form() { } -//======================================================================= -// function : BasisShapeValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::BasisShapeValid() { mySbOK = Standard_True; } -//======================================================================= -// function : PerfSelectionValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::PerfSelectionValid() { myPSOK = Standard_True; } -//======================================================================= -// function : GeneratedShapeValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::GeneratedShapeValid() { myGSOK = Standard_True; } -//======================================================================= -// function : ShapeFromValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::ShapeFromValid() { mySFOK = Standard_True; } -//======================================================================= -// function : ShapeUntilValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::ShapeUntilValid() { mySUOK = Standard_True; } -//======================================================================= -// function : GluedFacesValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::GluedFacesValid() { myGFOK = Standard_True; } -//======================================================================= -// function : SketchFaceValid -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Form::SketchFaceValid() { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Gluer.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Gluer.lxx index f9ec248525..4d46a49717 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Gluer.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Gluer.lxx @@ -14,77 +14,53 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_Gluer -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_Gluer::BRepFeat_Gluer() {} -//======================================================================= -// function : BRepFeat_Gluer -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_Gluer::BRepFeat_Gluer(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase) : myGluer(Sbase, Snew) // Attention a l`inversion { } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Gluer::Init(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase) { myGluer.Init(Sbase, Snew); } -//======================================================================= -// function : Bind -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Gluer::Bind(const TopoDS_Face& Fnew, const TopoDS_Face& Fbase) { myGluer.Bind(Fnew, Fbase); } -//======================================================================= -// function : Bind -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_Gluer::Bind(const TopoDS_Edge& Enew, const TopoDS_Edge& Ebase) { myGluer.Bind(Enew, Ebase); } -//======================================================================= -// function : OpeType -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Operation BRepFeat_Gluer::OpeType() const { return myGluer.OpeType(); } -//======================================================================= -// function : BasisShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& BRepFeat_Gluer::BasisShape() const { return myGluer.BasisShape(); } -//======================================================================= -// function : GluedShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& BRepFeat_Gluer::GluedShape() const { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeCylindricalHole.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeCylindricalHole.lxx index a0d2c55226..e4fb788936 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeCylindricalHole.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeCylindricalHole.lxx @@ -16,10 +16,7 @@ // Modified by jag, Tue May 30 09:47:02 1995 -//======================================================================= -// function : BRepFeat_MakeCylindricalHole -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeCylindricalHole::BRepFeat_MakeCylindricalHole() : myAxDef(Standard_False), @@ -29,10 +26,7 @@ inline BRepFeat_MakeCylindricalHole::BRepFeat_MakeCylindricalHole() { } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_MakeCylindricalHole::Init(const gp_Ax1& Axis) { @@ -40,10 +34,7 @@ inline void BRepFeat_MakeCylindricalHole::Init(const gp_Ax1& Axis) myAxDef = Standard_True; } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_MakeCylindricalHole::Init(const TopoDS_Shape& S, const gp_Ax1& Axis) { @@ -52,10 +43,7 @@ inline void BRepFeat_MakeCylindricalHole::Init(const TopoDS_Shape& S, const gp_A myAxDef = Standard_True; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_Status BRepFeat_MakeCylindricalHole::Status() const { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.lxx index 6b4400af73..13c31831c9 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_MakeLinearForm -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm() : myBnd(0.0), @@ -25,10 +22,7 @@ inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm() { } -//======================================================================= -// function : BRepFeat_MakePrism -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm(const TopoDS_Shape& Sbase, const TopoDS_Wire& W, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx index 4895f17bf4..0b6098c27f 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx @@ -113,10 +113,7 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase, #endif } -//======================================================================= -// function : Add -// purpose : add faces of gluing -//======================================================================= +//================================================================================================= void BRepFeat_MakePipe::Add(const TopoDS_Edge& E, const TopoDS_Face& F) { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.lxx index e3c93f5809..a7118a83f9 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.lxx @@ -14,17 +14,11 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_MakePipe -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakePipe::BRepFeat_MakePipe() {} -//======================================================================= -// function : BRepFeat_MakePipe -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakePipe::BRepFeat_MakePipe(const TopoDS_Shape& Sbase, const TopoDS_Shape& Pbase, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.lxx index baf4d8fdec..5747ebc818 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_MakePrism -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakePrism::BRepFeat_MakePrism() : myStatusError(BRepFeat_OK) { } -//======================================================================= -// function : BRepFeat_MakePrism -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakePrism::BRepFeat_MakePrism(const TopoDS_Shape& Sbase, const TopoDS_Shape& Pbase, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.lxx index 0d766b7973..d038b5e7e2 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_MakeRevol -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeRevol::BRepFeat_MakeRevol() : myStatusError(BRepFeat_OK) { } -//======================================================================= -// function : BRepFeat_MakeRevol -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeRevol::BRepFeat_MakeRevol(const TopoDS_Shape& Sbase, const TopoDS_Shape& Pbase, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.lxx index 89764946ff..530dcea3a2 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeat_MakeLinearForm -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm() : myHeight1(0.0), @@ -30,10 +27,7 @@ inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm() { } -//======================================================================= -// function : BRepFeat_MakePrism -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm(const TopoDS_Shape& Sbase, const TopoDS_Wire& W, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_RibSlot.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_RibSlot.lxx index e01799d93b..dd0911f96f 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_RibSlot.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_RibSlot.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : BRepFeatForm -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_RibSlot::BRepFeat_RibSlot() : myFuse(Standard_False), diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_SplitShape.lxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_SplitShape.lxx index 5411bc5464..5f64f3c740 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_SplitShape.lxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_SplitShape.lxx @@ -16,17 +16,11 @@ #include -//======================================================================= -// function : BRepFeat_SplitShape -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_SplitShape::BRepFeat_SplitShape() {} -//======================================================================= -// function : BRepFeat_SplitShape -// purpose : -//======================================================================= +//================================================================================================= inline BRepFeat_SplitShape::BRepFeat_SplitShape(const TopoDS_Shape& S) : mySShape(S) @@ -34,19 +28,14 @@ inline BRepFeat_SplitShape::BRepFeat_SplitShape(const TopoDS_Shape& S) myWOnShape = new LocOpe_WiresOnShape(S); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges) { return myWOnShape->Add(theEdges); } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S) { @@ -61,50 +50,35 @@ inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S) } } -//======================================================================= -// function : SetCheckInterior -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior) { myWOnShape->SetCheckInterior(ToCheckInterior); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W, const TopoDS_Face& F) { myWOnShape->Bind(W, F); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Face& F) { myWOnShape->Bind(E, F); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp, const TopoDS_Face& F) { myWOnShape->Bind(Comp, F); } -//======================================================================= -// function : Add -// purpose : -//======================================================================= +//================================================================================================= inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Edge& EOn) { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_BuildShape.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_BuildShape.lxx index 78aee5b790..4db22d03ea 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_BuildShape.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_BuildShape.lxx @@ -14,27 +14,18 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : LocOpe_BuildShape -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_BuildShape::LocOpe_BuildShape() {} -//======================================================================= -// function : LocOpe_BuildShape -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_BuildShape::LocOpe_BuildShape(const TopTools_ListOfShape& L) { Perform(L); } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_BuildShape::Shape() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CSIntersector.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CSIntersector.lxx index d5f2f72513..ad726b958c 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CSIntersector.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CSIntersector.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : LocOpe_CSIntersector -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_CSIntersector::LocOpe_CSIntersector() : myDone(Standard_False), @@ -28,10 +25,7 @@ inline LocOpe_CSIntersector::LocOpe_CSIntersector() { } -//======================================================================= -// function : LocOpe_CSIntersector -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_CSIntersector::LocOpe_CSIntersector(const TopoDS_Shape& S) : myDone(Standard_False), @@ -41,10 +35,7 @@ inline LocOpe_CSIntersector::LocOpe_CSIntersector(const TopoDS_Shape& S) { } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_CSIntersector::IsDone() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CurveShapeIntersector.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CurveShapeIntersector.lxx index 7137491d90..4b310d7a67 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CurveShapeIntersector.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_CurveShapeIntersector.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : LocOpe_CurveShapeIntersector -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector() : myDone(Standard_False) { } -//======================================================================= -// function : LocOpe_CurveShapeIntersector -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Ax1& Axis, const TopoDS_Shape& S) @@ -37,10 +31,7 @@ inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Ax1& Init(Axis, S); } -//======================================================================= -// function : LocOpe_CurveShapeIntersector -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Circ& C, const TopoDS_Shape& S) @@ -48,20 +39,14 @@ inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Circ& Init(C, S); } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_CurveShapeIntersector::IsDone() const { return myDone; } -//======================================================================= -// function : NbPoints -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer LocOpe_CurveShapeIntersector::NbPoints() const { @@ -72,10 +57,7 @@ inline Standard_Integer LocOpe_CurveShapeIntersector::NbPoints() const return myPoints.Length(); } -//======================================================================= -// function : Point -// purpose : -//======================================================================= +//================================================================================================= inline const LocOpe_PntFace& LocOpe_CurveShapeIntersector::Point(const Standard_Integer I) const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdges.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdges.lxx index 285aad6828..de0f75422d 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdges.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdges.lxx @@ -16,27 +16,18 @@ #include -//======================================================================= -// function : LocOpe_FindEdges -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_FindEdges::LocOpe_FindEdges() {} -//======================================================================= -// function : LocOpe_FindEdges -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_FindEdges::LocOpe_FindEdges(const TopoDS_Shape& FFrom, const TopoDS_Shape& FTo) { Set(FFrom, FTo); } -//======================================================================= -// function : InitIterator -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_FindEdges::InitIterator() { @@ -44,40 +35,28 @@ inline void LocOpe_FindEdges::InitIterator() myItTo.Initialize(myLTo); } -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_FindEdges::More() const { return myItFrom.More(); } -//======================================================================= -// function : EdgeFrom -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& LocOpe_FindEdges::EdgeFrom() const { return TopoDS::Edge(myItFrom.Value()); } -//======================================================================= -// function : EdgeTo -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& LocOpe_FindEdges::EdgeTo() const { return TopoDS::Edge(myItTo.Value()); } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_FindEdges::Next() { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdgesInFace.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdgesInFace.lxx index 2900d17f09..a7754b20ed 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdgesInFace.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_FindEdgesInFace.lxx @@ -16,57 +16,39 @@ #include -//======================================================================= -// function : LocOpe_FindEdgesInFace -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_FindEdgesInFace::LocOpe_FindEdgesInFace() {} -//======================================================================= -// function : LocOpe_FindEdgesInFace -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_FindEdgesInFace::LocOpe_FindEdgesInFace(const TopoDS_Shape& S, const TopoDS_Face& F) { Set(S, F); } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_FindEdgesInFace::Init() { myIt.Initialize(myList); } -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_FindEdgesInFace::More() const { return myIt.More(); } -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& LocOpe_FindEdgesInFace::Edge() const { return TopoDS::Edge(myIt.Value()); } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_FindEdgesInFace::Next() { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Generator.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Generator.lxx index 8b4be6637c..e8e45e1a23 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Generator.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Generator.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : LocOpe_Generator -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Generator::LocOpe_Generator() : myDone(Standard_False) { } -//======================================================================= -// function : LocOpe_Generator -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Generator::LocOpe_Generator(const TopoDS_Shape& S) : myShape(S), @@ -37,10 +31,7 @@ inline LocOpe_Generator::LocOpe_Generator(const TopoDS_Shape& S) { } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_Generator::Init(const TopoDS_Shape& S) { @@ -48,30 +39,21 @@ inline void LocOpe_Generator::Init(const TopoDS_Shape& S) myDone = Standard_False; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_Generator::IsDone() const { return myDone; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Generator::Shape() const { return myShape; } -//======================================================================= -// function : ResultingShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Generator::ResultingShape() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Gluer.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Gluer.lxx index ad8a82dddb..8eff265d5b 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Gluer.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Gluer.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : LocOpe_Gluer -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Gluer::LocOpe_Gluer() : myDone(Standard_False), @@ -28,10 +25,7 @@ inline LocOpe_Gluer::LocOpe_Gluer() { } -//======================================================================= -// function : LocOpe_Gluer -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew) : myDone(Standard_False), @@ -42,20 +36,14 @@ inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& { } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_Gluer::IsDone() const { return myDone; } -//======================================================================= -// function : ResultingShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const { @@ -66,50 +54,35 @@ inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const return myRes; } -//======================================================================= -// function : BasisShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Gluer::BasisShape() const { return mySb; } -//======================================================================= -// function : GluedShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Gluer::GluedShape() const { return mySn; } -//======================================================================= -// function : OpeType -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Operation LocOpe_Gluer::OpeType() const { return myOpe; } -//======================================================================= -// function : Edges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& LocOpe_Gluer::Edges() const { return myEdges; } -//======================================================================= -// function : TgtEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& LocOpe_Gluer::TgtEdges() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_LinearForm.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_LinearForm.lxx index b9bc8daf02..b4cad472a4 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_LinearForm.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_LinearForm.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : LocOpe_LinearForm -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_LinearForm::LocOpe_LinearForm() : myDone(Standard_False), @@ -25,10 +22,7 @@ inline LocOpe_LinearForm::LocOpe_LinearForm() { } -//======================================================================= -// function : LocOpe_LinearForm -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base, const gp_Vec& V, @@ -39,10 +33,7 @@ inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base, Perform(Base, V, Pnt1, Pnt2); } -//======================================================================= -// function : LocOpe_LinearForm -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base, const gp_Vec& V, diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Pipe.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Pipe.lxx index 3858323ddc..c953560256 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Pipe.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Pipe.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Spine -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Pipe::Spine() const { return myPipe.Spine(); } -//======================================================================= -// function : Profile -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Pipe::Profile() const { return myPipe.Profile(); } -//======================================================================= -// function : FirstShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Pipe::FirstShape() const { return myPipe.FirstShape(); } -//======================================================================= -// function : LastShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Pipe::LastShape() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_SplitShape.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_SplitShape.lxx index aaa907cd44..be4be1d304 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_SplitShape.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_SplitShape.lxx @@ -16,30 +16,21 @@ #include -//======================================================================= -// function : LocOpe_SplitShape -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_SplitShape::LocOpe_SplitShape() : myDone(Standard_False) { } -//======================================================================= -// function : LocOpe_SplitShape -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_SplitShape::LocOpe_SplitShape(const TopoDS_Shape& S) { Init(S); } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_SplitShape::Shape() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Spliter.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Spliter.lxx index 58133c79d7..6c8aa41768 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Spliter.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_Spliter.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : LocOpe_Spliter -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Spliter::LocOpe_Spliter() : myDone(Standard_False) { } -//======================================================================= -// function : LocOpe_Spliter -// purpose : -//======================================================================= +//================================================================================================= inline LocOpe_Spliter::LocOpe_Spliter(const TopoDS_Shape& S) : myShape(S), @@ -37,10 +31,7 @@ inline LocOpe_Spliter::LocOpe_Spliter(const TopoDS_Shape& S) { } -//======================================================================= -// function : Init -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_Spliter::Init(const TopoDS_Shape& S) { @@ -48,30 +39,21 @@ inline void LocOpe_Spliter::Init(const TopoDS_Shape& S) myDone = Standard_False; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_Spliter::IsDone() const { return myDone; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Spliter::Shape() const { return myShape; } -//======================================================================= -// function : ResultingShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& LocOpe_Spliter::ResultingShape() const { diff --git a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_WiresOnShape.lxx b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_WiresOnShape.lxx index 3f258b1629..17415316d0 100644 --- a/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_WiresOnShape.lxx +++ b/src/ModelingAlgorithms/TKFeat/LocOpe/LocOpe_WiresOnShape.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetCheckInterior -// purpose : -//======================================================================= +//================================================================================================= inline void LocOpe_WiresOnShape::SetCheckInterior(const Standard_Boolean ToCheckInterior) { myCheckInterior = ToCheckInterior; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_WiresOnShape::IsDone() const { return myDone; } -//======================================================================= -// function : IsFaceWithSection -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean LocOpe_WiresOnShape::IsFaceWithSection(const TopoDS_Shape& aFace) const { diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx index d93ba24daf..b5de50a9fe 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx @@ -1229,10 +1229,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_RstRstFunction& return Standard_False; } -//======================================================================= -// function : Recadre2 -// purpose : Contact lost on Rst2 -//======================================================================= +//================================================================================================= Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction& Func, Blend_SurfCurvFuncInv& Finv, diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.lxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.lxx index eb9112aea9..c2166b8bad 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.lxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_RstRstLineBuilder::IsDone() const { return done; } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const { @@ -40,10 +34,7 @@ inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const return line; } -//======================================================================= -// function : Decroch1Start -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1Start() const { @@ -53,10 +44,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1Start() const return Standard_False; } -//======================================================================= -// function : Decroch1End -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1End() const { @@ -66,10 +54,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1End() const return Standard_False; } -//======================================================================= -// function : Decroch2Start -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2Start() const { @@ -79,10 +64,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2Start() const return Standard_False; } -//======================================================================= -// function : Decroch2End -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2End() const { diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_SurfRstLineBuilder.lxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_SurfRstLineBuilder.lxx index 64fc8109b1..4cb43c373c 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_SurfRstLineBuilder.lxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_SurfRstLineBuilder.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_SurfRstLineBuilder::IsDone() const { return done; } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(BRepBlend_Line)& BRepBlend_SurfRstLineBuilder::Line() const { @@ -40,20 +34,14 @@ inline const Handle(BRepBlend_Line)& BRepBlend_SurfRstLineBuilder::Line() const return line; } -//======================================================================= -// function : DecrochStart -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_SurfRstLineBuilder::DecrochStart() const { return decrochdeb; } -//======================================================================= -// function : DecrochEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBlend_SurfRstLineBuilder::DecrochEnd() const { diff --git a/src/ModelingAlgorithms/TKFillet/BRepFilletAPI/BRepFilletAPI_MakeFillet2d.lxx b/src/ModelingAlgorithms/TKFillet/BRepFilletAPI/BRepFilletAPI_MakeFillet2d.lxx index 9edee307b2..1b3c023019 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepFilletAPI/BRepFilletAPI_MakeFillet2d.lxx +++ b/src/ModelingAlgorithms/TKFillet/BRepFilletAPI/BRepFilletAPI_MakeFillet2d.lxx @@ -14,80 +14,56 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IsModified -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepFilletAPI_MakeFillet2d::IsModified(const TopoDS_Edge& E) const { return myMakeChFi2d.IsModified(E); } -//======================================================================= -// function : FilletEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::FilletEdges() const { return myMakeChFi2d.FilletEdges(); } -//======================================================================= -// function : NbFillet -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer BRepFilletAPI_MakeFillet2d::NbFillet() const { return myMakeChFi2d.NbFillet(); } -//======================================================================= -// function : ChamferEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::ChamferEdges() const { return myMakeChFi2d.ChamferEdges(); } -//======================================================================= -// function : NbChamfer -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer BRepFilletAPI_MakeFillet2d::NbChamfer() const { return myMakeChFi2d.NbChamfer(); } -//======================================================================= -// function : HasDescendant -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepFilletAPI_MakeFillet2d::HasDescendant(const TopoDS_Edge& E) const { return myMakeChFi2d.HasDescendant(E); } -//======================================================================= -// function : DescendantEdge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& BRepFilletAPI_MakeFillet2d::DescendantEdge(const TopoDS_Edge& E) const { return myMakeChFi2d.DescendantEdge(E); } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline ChFi2d_ConstructionError BRepFilletAPI_MakeFillet2d::Status() const { diff --git a/src/ModelingAlgorithms/TKFillet/ChFi2d/ChFi2d_Builder.lxx b/src/ModelingAlgorithms/TKFillet/ChFi2d/ChFi2d_Builder.lxx index 303dcb0665..100040d363 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFi2d/ChFi2d_Builder.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFi2d/ChFi2d_Builder.lxx @@ -21,10 +21,7 @@ #include #include -//======================================================================= -// function : Result -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Face ChFi2d_Builder::Result() const { @@ -33,80 +30,56 @@ inline TopoDS_Face ChFi2d_Builder::Result() const return aFace; } -//======================================================================= -// function : IsModified -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFi2d_Builder::IsModified(const TopoDS_Edge& E) const { return history.IsBound(E); } -//======================================================================= -// function : FilletEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& ChFi2d_Builder::FilletEdges() const { return fillets; } -//======================================================================= -// function : ChamferEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& ChFi2d_Builder::ChamferEdges() const { return chamfers; } -//======================================================================= -// function : NbFillet -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFi2d_Builder::NbFillet() const { return fillets.Length(); } -//======================================================================= -// function : NbChamfer -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFi2d_Builder::NbChamfer() const { return chamfers.Length(); } -//======================================================================= -// function : HasDescendant -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFi2d_Builder::HasDescendant(const TopoDS_Edge& E) const { return history.IsBound(E); } -//======================================================================= -// function : DescendantEdge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& ChFi2d_Builder::DescendantEdge(const TopoDS_Edge& E) const { return TopoDS::Edge(history.Find(E)); } // DescendantEdge -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline ChFi2d_ConstructionError ChFi2d_Builder::Status() const { diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_FaceInterference.lxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_FaceInterference.lxx index 33fb77ec6f..315bd9c404 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_FaceInterference.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_FaceInterference.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetInterference -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_FaceInterference::SetInterference(const Standard_Integer LineIndex, const TopAbs_Orientation Trans, @@ -30,110 +27,77 @@ inline void ChFiDS_FaceInterference::SetInterference(const Standard_Integer pCurveOnSurf = PCurv2; } -//======================================================================= -// function : SetLineIndex -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_FaceInterference::SetLineIndex(const Standard_Integer I) { lineindex = I; } -//======================================================================= -// function : SetFirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_FaceInterference::SetFirstParameter(const Standard_Real U1) { firstParam = U1; } -//======================================================================= -// function : SetLastParameter -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_FaceInterference::SetLastParameter(const Standard_Real U1) { lastParam = U1; } -//======================================================================= -// function : LineIndex -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_FaceInterference::LineIndex() const { return lineindex; } -//======================================================================= -// function : Transition -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_FaceInterference::Transition() const { return LineTransition; } -//======================================================================= -// function : PCurveOnFace -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom2d_Curve)& ChFiDS_FaceInterference::PCurveOnFace() const { return pCurveOnFace; } -//======================================================================= -// function : PCurveOnSurf -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom2d_Curve)& ChFiDS_FaceInterference::PCurveOnSurf() const { return pCurveOnSurf; } -//======================================================================= -// function : ChangePCurveOnFace -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_Curve)& ChFiDS_FaceInterference::ChangePCurveOnFace() { return pCurveOnFace; } -//======================================================================= -// function : ChangePCurveOnSurf -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_Curve)& ChFiDS_FaceInterference::ChangePCurveOnSurf() { return pCurveOnSurf; } -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ChFiDS_FaceInterference::FirstParameter() const { return firstParam; } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ChFiDS_FaceInterference::LastParameter() const { diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.lxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.lxx index 8f4bd9d571..fc8e22cbef 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.lxx @@ -16,70 +16,49 @@ #include -//======================================================================= -// function : SetTypeOfConcavity -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetTypeOfConcavity(const ChFiDS_TypeOfConcavity theType) { myTypeOfConcavity = theType; } -//======================================================================= -// function : SetFirstStatus -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetFirstStatus(const ChFiDS_State S) { firstState = S; } -//======================================================================= -// function : SetLastStatus -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetLastStatus(const ChFiDS_State S) { lastState = S; } -//======================================================================= -// function : GetTypeOfConcavity -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_TypeOfConcavity ChFiDS_Spine::GetTypeOfConcavity() const { return myTypeOfConcavity; } -//======================================================================= -// function : FirstStatus -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_State ChFiDS_Spine::FirstStatus() const { return firstState; } -//======================================================================= -// function : LastStatus -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_State ChFiDS_Spine::LastStatus() const { return lastState; } -//======================================================================= -// function : SetStatus -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S, const Standard_Boolean IsFirst) { @@ -89,10 +68,7 @@ inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S, const Standard_Boolean lastState = S; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst) const { @@ -102,10 +78,7 @@ inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst) const return lastState; } -//======================================================================= -// function : SetTangencyExtremity -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency, const Standard_Boolean IsFirst) @@ -116,10 +89,7 @@ inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency lastistgt = IsTangency; } -//======================================================================= -// function : IsTangencyExtremity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean IsFirst) const { @@ -129,89 +99,63 @@ inline Standard_Boolean ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean return lastistgt; } -//======================================================================= -// function : NbEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Spine::NbEdges() const { return spine.Length(); } -//======================================================================= -// function : Edges -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& ChFiDS_Spine::Edges(const Standard_Integer I) const { return TopoDS::Edge(spine.Value(I)); } -//======================================================================= -// function : OffsetEdges -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& ChFiDS_Spine::OffsetEdges(const Standard_Integer I) const { return TopoDS::Edge(offsetspine.Value(I)); } -//======================================================================= -// function : SetEdges -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetEdges(const TopoDS_Edge& E) { spine.Append(E); } -//======================================================================= -// function : SetOffsetEdges -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::SetOffsetEdges(const TopoDS_Edge& E) { offsetspine.Append(E); } -//======================================================================= -// function : PutInFirst -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::PutInFirst(const TopoDS_Edge& E) { spine.InsertBefore(1, E); } -//======================================================================= -// function : PutInFirstOffset -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Spine::PutInFirstOffset(const TopoDS_Edge& E) { offsetspine.InsertBefore(1, E); } -//======================================================================= -// function : CurrentIndexOfElementarySpine -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer ChFiDS_Spine::CurrentIndexOfElementarySpine() const { return indexofcurve; } -//======================================================================= -// function : Mode -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const { @@ -219,10 +163,8 @@ inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const return myMode; } -//======================================================================= -// function : GetTolesp -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real ChFiDS_Spine::GetTolesp() const { return tolesp; diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Stripe.lxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Stripe.lxx index ea2a122917..ff57722ec8 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Stripe.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Stripe.lxx @@ -14,110 +14,77 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetOfSurfData -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(ChFiDS_HData)& ChFiDS_Stripe::SetOfSurfData() const { return myHdata; } -//======================================================================= -// function : Spine -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(ChFiDS_Spine)& ChFiDS_Stripe::Spine() const { return mySpine; } -//======================================================================= -// function : OrientationOnFace1 -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace1() const { return myOr1; } -//======================================================================= -// function : OrientationOnFace2 -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace2() const { return myOr2; } -//======================================================================= -// function : Choix -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::Choix() const { return myChoix; } -//======================================================================= -// function : ChangeSetOfSurfData -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ChFiDS_HData)& ChFiDS_Stripe::ChangeSetOfSurfData() { return myHdata; } -//======================================================================= -// function : ChangeSpine -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ChFiDS_Spine)& ChFiDS_Stripe::ChangeSpine() { return mySpine; } -//======================================================================= -// function : OrientationOnFace1 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::OrientationOnFace1(const TopAbs_Orientation Or1) { myOr1 = Or1; } -//======================================================================= -// function : OrientationOnFace2 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::OrientationOnFace2(const TopAbs_Orientation Or2) { myOr2 = Or2; } -//======================================================================= -// function : Choix -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::Choix(const Standard_Integer C) { myChoix = C; } -//======================================================================= -// function : FirstParameters -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, Standard_Real& Pfin) const { @@ -125,10 +92,7 @@ inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, Standard_Real& P Pfin = parfin1; } -//======================================================================= -// function : lastParameters -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, Standard_Real& Pfin) const { @@ -136,10 +100,7 @@ inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, Standard_Real& Pf Pfin = parfin2; } -//======================================================================= -// function : ChangeFirstParameters -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, const Standard_Real Pfin) { @@ -147,10 +108,7 @@ inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, const parfin1 = Pfin; } -//======================================================================= -// function : ChangeLastParameters -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, const Standard_Real Pfin) { @@ -158,200 +116,140 @@ inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, const parfin2 = Pfin; } -//======================================================================= -// function : FirstCurve -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::FirstCurve() const { return indexOfcurve1; } -//======================================================================= -// function : LastCurve -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::LastCurve() const { return indexOfcurve2; } -//======================================================================= -// function : ChangeFirstCurve -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeFirstCurve(const Standard_Integer Index) { indexOfcurve1 = Index; } -//======================================================================= -// function : ChangeLastCurve -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeLastCurve(const Standard_Integer Index) { indexOfcurve2 = Index; } -//======================================================================= -// function : FirstPCurve -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::FirstPCurve() const { return pcrv1; } -//======================================================================= -// function : LastPCurve -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::LastPCurve() const { return pcrv2; } -//======================================================================= -// function : ChangeFirstPCurve -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeFirstPCurve() { return pcrv1; } -//======================================================================= -// function : ChangeLastPCurve -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeLastPCurve() { return pcrv2; } -//======================================================================= -// function : IndexFirstPointOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS1() const { return indexfirstPOnS1; } -//======================================================================= -// function : IndexLastPointOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS1() const { return indexlastPOnS1; } -//======================================================================= -// function : IndexFirstPointOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS2() const { return indexfirstPOnS2; } -//======================================================================= -// function : IndexLastPointOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS2() const { return indexlastPOnS2; } -//======================================================================= -// function : ChangeIndexFirstPointOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS1(const Standard_Integer Index) { indexfirstPOnS1 = Index; } -//======================================================================= -// function : ChangeIndexLastPointOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeIndexLastPointOnS1(const Standard_Integer Index) { indexlastPOnS1 = Index; } -//======================================================================= -// function : ChangeIndexFirstPointOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS2(const Standard_Integer Index) { indexfirstPOnS2 = Index; } -//======================================================================= -// function : ChangeIndexLastPointOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::ChangeIndexLastPointOnS2(const Standard_Integer Index) { indexlastPOnS2 = Index; } -//======================================================================= -// function : FirstPCurveOrientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_Stripe::FirstPCurveOrientation() const { return orcurv1; } -//======================================================================= -// function : LastPCurveOrientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_Stripe::LastPCurveOrientation() const { return orcurv2; } -//======================================================================= -// function : FirstPCurveOrientation -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::FirstPCurveOrientation(const TopAbs_Orientation O) { orcurv1 = O; } -//======================================================================= -// function : LastPCurveOrientation -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_Stripe::LastPCurveOrientation(const TopAbs_Orientation O) { diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_StripeMap.lxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_StripeMap.lxx index 5db0998993..eb4c7919d3 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_StripeMap.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_StripeMap.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extent -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_StripeMap::Extent() const { return mymap.Extent(); } -//======================================================================= -// function : FindKey -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Vertex& ChFiDS_StripeMap::FindKey(const Standard_Integer I) const { diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_SurfData.lxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_SurfData.lxx index 4a2d9e2ee3..7dac827cd2 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_SurfData.lxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_SurfData.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IndexOfS1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::IndexOfS1() const { return indexOfS1; } -//======================================================================= -// function : IsOnCurve1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFiDS_SurfData::IsOnCurve1() const { return isoncurv1; } -//======================================================================= -// function : IndexOfC1 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const { @@ -46,10 +37,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const return indexOfC1; } -//======================================================================= -// function : SetIndexOfC1 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer theIndex) { @@ -57,30 +45,21 @@ inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer theIndex) isoncurv1 = (theIndex != 0); } -//======================================================================= -// function : IndexOfS2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::IndexOfS2() const { return indexOfS2; } -//======================================================================= -// function : IsOnCurve2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const { return isoncurv2; } -//======================================================================= -// function : IndexOfC2 -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const { @@ -89,10 +68,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const return indexOfC2; } -//======================================================================= -// function : SetIndexOfC2 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer theIndex) { @@ -100,190 +76,133 @@ inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer theIndex) isoncurv2 = (theIndex != 0); } -//======================================================================= -// function : Surf -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::Surf() const { return indexOfConge; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation ChFiDS_SurfData::Orientation() const { return orientation; } -//======================================================================= -// function : InterferenceOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1() const { return intf1; } -//======================================================================= -// function : InterferenceOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS2() const { return intf2; } -//======================================================================= -// function : VertexFirstOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS1() const { return pfirstOnS1; } -//======================================================================= -// function : VertexLastOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS1() const { return plastOnS1; } -//======================================================================= -// function : VertexFirstOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS2() const { return pfirstOnS2; } -//======================================================================= -// function : VertexLastOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS2() const { return plastOnS2; } -//======================================================================= -// function : ChangeIndexOfS1 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index) { indexOfS1 = Index; } -//======================================================================= -// function : ChangeIndexOfS2 -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index) { indexOfS2 = Index; } -//======================================================================= -// function : ChangeSurf -// purpose : -//======================================================================= +//================================================================================================= inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index) { indexOfConge = Index; } -//======================================================================= -// function : ChangeOrientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation& ChFiDS_SurfData::ChangeOrientation() { return orientation; } -//======================================================================= -// function : ChangeInterferenceOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1() { return intf1; } -//======================================================================= -// function : ChangeInterferenceOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS2() { return intf2; } -//======================================================================= -// function : ChangeVertexFirstOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS1() { return pfirstOnS1; } -//======================================================================= -// function : ChangeVertexLastOnS1 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS1() { return plastOnS1; } -//======================================================================= -// function : ChangeVertexFirstOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS2() { return pfirstOnS2; } -//======================================================================= -// function : ChangeVertexLastOnS2 -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS2() { return plastOnS2; } -//======================================================================= -// function : IsOnCurve -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const { @@ -292,10 +211,7 @@ inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) c return isoncurv2; } -//======================================================================= -// function : IndexOfC -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const { @@ -310,10 +226,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) co return indexOfC2; } -//======================================================================= -// function : Twist -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/AppBlend/AppBlend_AppSurf.gxx b/src/ModelingAlgorithms/TKGeomAlgo/AppBlend/AppBlend_AppSurf.gxx index 44f56420f5..1ec93f1981 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/AppBlend/AppBlend_AppSurf.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/AppBlend/AppBlend_AppSurf.gxx @@ -44,10 +44,8 @@ Standard_EXPORT Standard_Boolean AppBlend_GetContextApproxWithNoTgt(); // --- keep pipe parametrized like path -//======================================================================= -//function : AppBlend_AppSurf -//purpose : -//======================================================================= +//================================================================================================= + AppBlend_AppSurf::AppBlend_AppSurf () : done(Standard_False), @@ -70,10 +68,8 @@ AppBlend_AppSurf::AppBlend_AppSurf () } -//======================================================================= -//function : AppBlend_AppSurf -//purpose : -//======================================================================= +//================================================================================================= + AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin, const Standard_Integer Degmax, @@ -100,10 +96,8 @@ AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin, critweights[2]=0.4; } -//======================================================================= -//function : Init -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::Init (const Standard_Integer Degmin, const Standard_Integer Degmax, @@ -138,10 +132,8 @@ void AppBlend_AppSurf::CriteriumWeight(Standard_Real& W1, Standard_Real& W2, Sta W2 = critweights[1]; W3 = critweights[2] ; } -//======================================================================= -//function : SetCriteriumWeight -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::SetCriteriumWeight(const Standard_Real W1, const Standard_Real W2, const Standard_Real W3) { @@ -150,40 +142,32 @@ void AppBlend_AppSurf::SetCriteriumWeight(const Standard_Real W1, const Standard critweights[1] = W2; critweights[2] = W3; } -//======================================================================= -//function : SetContinuity -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::SetContinuity (const GeomAbs_Shape TheCont) { continuity = TheCont; } -//======================================================================= -//function : Continuity -//purpose : -//======================================================================= +//================================================================================================= + GeomAbs_Shape AppBlend_AppSurf::Continuity () const { return continuity; } -//======================================================================= -//function : SetParType -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::SetParType (const Approx_ParametrizationType ParType) { paramtype = ParType; } -//======================================================================= -//function : ParType -//purpose : -//======================================================================= +//================================================================================================= + Approx_ParametrizationType AppBlend_AppSurf::ParType () const { @@ -191,10 +175,8 @@ Approx_ParametrizationType AppBlend_AppSurf::ParType () const } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin, TheSectionGenerator& F, @@ -204,10 +186,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin, InternalPerform(Lin, F, SpApprox, Standard_False); } -//======================================================================= -//function : PerformSmoothing -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::PerformSmoothing(const Handle(TheLine)& Lin, TheSectionGenerator& F) @@ -216,10 +196,8 @@ void AppBlend_AppSurf::PerformSmoothing(const Handle(TheLine)& Lin, InternalPerform(Lin, F, Standard_True, Standard_True); } -//======================================================================= -//function : InternalPerform -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin, TheSectionGenerator& F, @@ -583,10 +561,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin, } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin, TheSectionGenerator& F, @@ -929,10 +905,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin, } -//======================================================================= -//function : SurfShape -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::SurfShape (Standard_Integer& UDegree, Standard_Integer& VDegree, @@ -968,10 +942,8 @@ void AppBlend_AppSurf::Surface(TColgp_Array2OfPnt& TPoles, TVMults = tabVMults->Array1(); } -//======================================================================= -//function : Curves2dShape -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree, Standard_Integer& NbPoles, @@ -984,10 +956,8 @@ void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree, NbKnots = tabVKnots->Length(); } -//======================================================================= -//function : Curve2d -//purpose : -//======================================================================= +//================================================================================================= + void AppBlend_AppSurf::Curve2d(const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, @@ -1001,10 +971,8 @@ void AppBlend_AppSurf::Curve2d(const Standard_Integer Index, TMults = tabVMults->Array1(); } -//======================================================================= -//function : TolCurveOnSurf -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real AppBlend_AppSurf::TolCurveOnSurf(const Standard_Integer) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/ApproxInt/ApproxInt_MultiLine.gxx b/src/ModelingAlgorithms/TKGeomAlgo/ApproxInt/ApproxInt_MultiLine.gxx index d5e4845972..39ff4ae06a 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/ApproxInt/ApproxInt_MultiLine.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/ApproxInt/ApproxInt_MultiLine.gxx @@ -27,10 +27,8 @@ #include #endif -//======================================================================= -//function : Constructor -//purpose : -//======================================================================= +//================================================================================================= + ApproxInt_MultiLine::ApproxInt_MultiLine() { PtrOnmySvSurfaces = NULL; @@ -51,10 +49,8 @@ ApproxInt_MultiLine::ApproxInt_MultiLine() V2o = 0.; } -//======================================================================= -//function : Constructor -//purpose : -//======================================================================= +//================================================================================================= + ApproxInt_MultiLine:: ApproxInt_MultiLine(const Handle_TheLine& line, const Standard_Address svsurf, @@ -92,10 +88,8 @@ ApproxInt_MultiLine:: #endif } -//======================================================================= -//function : Constructor -//purpose : -//======================================================================= +//================================================================================================= + ApproxInt_MultiLine:: ApproxInt_MultiLine(const Handle_TheLine& line, const Standard_Integer NbP3d, @@ -162,10 +156,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index, TabPnt(1).SetCoord(aP.X()+Xo, aP.Y()+Yo, aP.Z()+Zo); } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + void ApproxInt_MultiLine::Value(const Standard_Integer Index, TColgp_Array1OfPnt2d& TabPnt2d) const { @@ -193,10 +185,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index, } } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + void ApproxInt_MultiLine::Value(const Standard_Integer Index, TColgp_Array1OfPnt& TabPnt, TColgp_Array1OfPnt2d& TabPnt2d) const @@ -205,10 +195,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index, Value(Index, TabPnt2d); } -//======================================================================= -//function : Tangency -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, TColgp_Array1OfVec& TabVec) const { @@ -229,10 +217,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, return ret; } -//======================================================================= -//function : Tangency -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, TColgp_Array1OfVec2d& TabVec2d) const { @@ -282,10 +268,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, return ret; } -//======================================================================= -//function : Tangency -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, TColgp_Array1OfVec& TabVec, TColgp_Array1OfVec2d& TabVec2d) const @@ -293,10 +277,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index, return (Tangency(Index, TabVec) && Tangency(Index, TabVec2d)); } -//======================================================================= -//function : MakeMLBetween -//purpose : -//======================================================================= +//================================================================================================= + ApproxInt_MultiLine ApproxInt_MultiLine::MakeMLBetween( const Standard_Integer Low, const Standard_Integer High, @@ -601,10 +583,8 @@ ApproxInt_MultiLine } } -//======================================================================= -//function : MakeMLOneMorePoint -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean ApproxInt_MultiLine::MakeMLOneMorePoint(const Standard_Integer theLow, const Standard_Integer theHigh, @@ -731,10 +711,8 @@ Standard_Boolean return Standard_True; } -//======================================================================= -//function : Dump -//purpose : -//======================================================================= +//================================================================================================= + void ApproxInt_MultiLine::Dump() const { TColgp_Array1OfPnt anArr1(1, 1); diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ExtremaCurveCurve.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ExtremaCurveCurve.lxx index 1f30c5e0ec..92691f9571 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ExtremaCurveCurve.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ExtremaCurveCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtCC2d& Geom2dAPI_ExtremaCurveCurve::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_InterCurveCurve.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_InterCurveCurve.lxx index f799704c4f..88475058bc 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_InterCurveCurve.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_InterCurveCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Intersector -// purpose : -//======================================================================= +//================================================================================================= inline const Geom2dInt_GInter& Geom2dAPI_InterCurveCurve::Intersector() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ProjectPointOnCurve.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ProjectPointOnCurve.lxx index 877c9bfc28..83c7ad862b 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ProjectPointOnCurve.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dAPI/Geom2dAPI_ProjectPointOnCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtPC2d& Geom2dAPI_ProjectPointOnCurve::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.cxx index 99f77fdc22..fbd99ac0a4 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.cxx @@ -111,10 +111,7 @@ void Geom2dHatch_Hatcher::Confusion3d(const Standard_Real Confusion) } } -//======================================================================= -// Function : KeepPoints -// Purpose : Sets the above flag. -//======================================================================= +//================================================================================================= void Geom2dHatch_Hatcher::KeepPoints(const Standard_Boolean Keep) { @@ -129,10 +126,7 @@ void Geom2dHatch_Hatcher::KeepPoints(const Standard_Boolean Keep) } } -//======================================================================= -// Function : KeepSegments -// Purpose : Sets the above flag. -//======================================================================= +//================================================================================================= void Geom2dHatch_Hatcher::KeepSegments(const Standard_Boolean Keep) { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Intersector.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Intersector.lxx index b99a2e6d06..e245bb4749 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Intersector.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Intersector.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// Function : Geom2dHatch_Intersector -// Purpose : Constructor. -//======================================================================= +//================================================================================================= inline Geom2dHatch_Intersector::Geom2dHatch_Intersector(const Standard_Real Confusion, const Standard_Real Tangency) diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveCurve.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveCurve.lxx index 12c4edd5ad..829aabacfd 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveCurve.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtCC& GeomAPI_ExtremaCurveCurve::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveSurface.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveSurface.lxx index 5b7f8a3dab..4c49c6fa87 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveSurface.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaCurveSurface.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtCS& GeomAPI_ExtremaCurveSurface::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaSurfaceSurface.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaSurfaceSurface.lxx index 4aed800840..71a022e03c 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaSurfaceSurface.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ExtremaSurfaceSurface.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtSS& GeomAPI_ExtremaSurfaceSurface::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_IntSS.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_IntSS.lxx index 0d8e818f3e..0ee194ebef 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_IntSS.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_IntSS.lxx @@ -14,17 +14,11 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GeomAPI_IntSS -// purpose : -//======================================================================= +//================================================================================================= inline GeomAPI_IntSS::GeomAPI_IntSS() {} -//======================================================================= -// function : GeomAPI_IntSS -// purpose : -//======================================================================= +//================================================================================================= inline GeomAPI_IntSS::GeomAPI_IntSS(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, @@ -33,10 +27,7 @@ inline GeomAPI_IntSS::GeomAPI_IntSS(const Handle(Geom_Surface)& S1, { } -//======================================================================= -// function : Perform -// purpose : -//======================================================================= +//================================================================================================= inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, @@ -45,30 +36,21 @@ inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1, myIntersec.Perform(S1, S2, Tol, Standard_True); } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomAPI_IntSS::IsDone() const { return myIntersec.IsDone(); } -//======================================================================= -// function : NbLines -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer GeomAPI_IntSS::NbLines() const { return myIntersec.NbLines(); } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_Curve)& GeomAPI_IntSS::Line(const Standard_Integer I) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnCurve.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnCurve.lxx index dee87200cb..c222558be3 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnCurve.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtPC& GeomAPI_ProjectPointOnCurve::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnSurf.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnSurf.lxx index ec4f4b8a63..86d788c2a2 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnSurf.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomAPI/GeomAPI_ProjectPointOnSurf.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Extrema -// purpose : -//======================================================================= +//================================================================================================= inline const Extrema_ExtPS& GeomAPI_ProjectPointOnSurf::Extrema() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BSplineCurves.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BSplineCurves.lxx index eb4e5882c7..6c0c86b94b 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BSplineCurves.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BSplineCurves.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Surface -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_BSplineSurface)& GeomFill_BSplineCurves::Surface() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BezierCurves.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BezierCurves.lxx index 1409a97597..a2e8925c61 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BezierCurves.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_BezierCurves.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Surface -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_BezierSurface)& GeomFill_BezierCurves::Surface() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx index 025ad8268d..2ac3ac2d51 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx @@ -54,10 +54,8 @@ static void TracePlan(const Handle(Geom_Surface)& /*Plan*/) } #endif -//================================================================== -// Function: InGoodPeriod -// Purpose : Recadre un paramtere -//================================================================== +//================================================================================================= + static void InGoodPeriod(const Standard_Real Prec, const Standard_Real Period, Standard_Real& Current) diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Line.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Line.lxx index 7cd33fd668..c809acc1a3 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Line.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Line.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : NbPoints -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer GeomFill_Line::NbPoints() const { return myNbPoints; } -//======================================================================= -// function : Point -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer GeomFill_Line::Point(const Standard_Integer Index) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx index e7aad77374..37c2305379 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx @@ -135,10 +135,8 @@ static void TraceRevol(const Standard_Real t, } #endif -//================================================================== -// Function: InGoodPeriod -// Purpose : Recadre un paramtere -//================================================================== +//================================================================================================= + static void InGoodPeriod(const Standard_Real Prec, const Standard_Real Period, Standard_Real& Current) @@ -509,10 +507,8 @@ void GeomFill_LocationGuide::Set(const Handle(GeomFill_SectionLaw)& Section, rotation = Standard_False; } -//================================================================== -// Function: EraseRotation -// Purpose : Supprime la Rotation -//================================================================== +//================================================================================================= + void GeomFill_LocationGuide::EraseRotation() { rotation = Standard_False; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.lxx index 9a84059e66..062a5ed3fa 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.lxx @@ -14,59 +14,43 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : const -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_Surface)& GeomFill_Pipe::Surface() const { return mySurface; } -//======================================================================= -// function : ExchangeUV -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomFill_Pipe::ExchangeUV() const { return myExchUV; } -//======================================================================= -// function : GenerateParticularCase -// purpose : -//======================================================================= +//================================================================================================= inline void GeomFill_Pipe::GenerateParticularCase(const Standard_Boolean B) { myKPart = B; } -//======================================================================= -// function : GenerateParticularCase -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomFill_Pipe::GenerateParticularCase() const { return myKPart; } -//======================================================================= -// function : ErrorOnSurf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real GeomFill_Pipe::ErrorOnSurf() const { return myError; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean GeomFill_Pipe::IsDone() const { return myStatus == GeomFill_PipeOk; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Profiler.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Profiler.lxx index 9c96c1987c..f46227dee0 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Profiler.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Profiler.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomFill_Profiler::IsPeriodic() const { return myIsPeriodic; } -//======================================================================= -// function : Curve -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_Curve)& GeomFill_Profiler::Curve(const Standard_Integer Index) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SweepSectionGenerator.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SweepSectionGenerator.lxx index 2f1190a6e0..48c8d877a5 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SweepSectionGenerator.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SweepSectionGenerator.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : NbSections -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer GeomFill_SweepSectionGenerator::NbSections() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.cxx index 8fcfdd10a2..3d65177a14 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.cxx @@ -20,10 +20,8 @@ #include #include -//======================================================================= -// function : Perform -// purpose : General intersection -//======================================================================= +//================================================================================================= + void GeomInt_IntSS::Perform(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real Tol, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.lxx index 1ef52a9867..99ef8ed8d1 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS.lxx @@ -17,10 +17,8 @@ #include #include -//======================================================================= -// function : GeomInt_IntSS -// purpose : -//======================================================================= +//================================================================================================= + inline GeomInt_IntSS::GeomInt_IntSS() : myNbrestr(0), myTolReached2d(0.0), @@ -30,10 +28,8 @@ inline GeomInt_IntSS::GeomInt_IntSS() { } -//======================================================================= -// function : GeomInt_IntSS -// purpose : -//======================================================================= +//================================================================================================= + inline GeomInt_IntSS::GeomInt_IntSS(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real Tol, @@ -85,65 +81,51 @@ inline void GeomInt_IntSS::Perform(const Handle(GeomAdaptor_Surface)& HS1, InternalPerform(Tol, Approx, ApproxS1, ApproxS2, Standard_True, U1, V1, U2, V2); } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean GeomInt_IntSS::IsDone() const { return myIntersector.IsDone(); } -//======================================================================= -// function : TolReached2d -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real GeomInt_IntSS::TolReached2d() const { return myTolReached2d; } -//======================================================================= -// function : TolReached3d -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Real GeomInt_IntSS::TolReached3d() const { return myTolReached3d; } -//======================================================================= -// function : NbLines -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer GeomInt_IntSS::NbLines() const { return sline.Length() - myNbrestr; } -//======================================================================= -// function : NbBoundaries -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer GeomInt_IntSS::NbBoundaries() const { StdFail_NotDone_Raise_if(!myIntersector.IsDone(), "GeomInt_IntSS::NbBoundaries() - no result"); return myNbrestr; } -//======================================================================= -// function : NbPoints -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer GeomInt_IntSS::NbPoints() const { return myIntersector.NbPnts(); } -//======================================================================= -// function : Point -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Pnt GeomInt_IntSS::Point(const Standard_Integer Index) const { return myIntersector.Point(Index).Value(); diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_LineConstructor.lxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_LineConstructor.lxx index 6ed933c5b4..44b2474bb7 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_LineConstructor.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_LineConstructor.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : GeomInt_LineConstructor -// purpose : -//======================================================================= +//================================================================================================= inline GeomInt_LineConstructor::GeomInt_LineConstructor() : done(Standard_False) { } -//======================================================================= -// function : Load -// purpose : -//======================================================================= +//================================================================================================= inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_TopolTool)& D2, @@ -42,20 +36,14 @@ inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1, myHS2 = S2; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomInt_LineConstructor::IsDone() const { return done; } -//======================================================================= -// function : NbParts -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer GeomInt_LineConstructor::NbParts() const { @@ -66,10 +54,8 @@ inline Standard_Integer GeomInt_LineConstructor::NbParts() const return (seqp.Length() / 2); } -//======================================================================= -// function : Part -// purpose : -//======================================================================= +//================================================================================================= + inline void GeomInt_LineConstructor::Part(const Standard_Integer I, Standard_Real& WFirst, Standard_Real& WLast) const diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Hatch/Hatch_Hatcher.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Hatch/Hatch_Hatcher.lxx index 697aa0e0e6..e7e62b4196 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Hatch/Hatch_Hatcher.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Hatch/Hatch_Hatcher.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline void Hatch_Hatcher::Tolerance(const Standard_Real Tol) { myToler = Tol; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Hatch_Hatcher::Tolerance() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_Domain.cxx b/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_Domain.cxx index 9b9848ea85..1736af86f9 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_Domain.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_Domain.cxx @@ -55,10 +55,7 @@ HatchGen_Domain::HatchGen_Domain(const HatchGen_PointOnHatching& P, const Standa } } -//======================================================================= -// Function : Dump -// Purpose : Dump of the domain. -//======================================================================= +//================================================================================================= void HatchGen_Domain::Dump(const Standard_Integer Index) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntCurveCurveGen.gxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntCurveCurveGen.gxx index 0411266c90..1e0256b745 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntCurveCurveGen.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntCurveCurveGen.gxx @@ -1121,19 +1121,15 @@ IntCurve_IntCurveCurveGen::InternalCompositePerform(const TheCurve& C1, } } -//======================================================================= -//function : SetMinNbSamples -//purpose : -//======================================================================= +//================================================================================================= + void IntCurve_IntCurveCurveGen::SetMinNbSamples(const Standard_Integer theMinNbSamples) { intcurvcurv.SetMinNbSamples(theMinNbSamples); } -//======================================================================= -//function : GetMinNbSamples -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer IntCurve_IntCurveCurveGen::GetMinNbSamples() const { return intcurvcurv.GetMinNbSamples(); diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntPolyPolyGen.gxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntPolyPolyGen.gxx index 96dbc6243c..3f78a211d0 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntPolyPolyGen.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntPolyPolyGen.gxx @@ -1338,19 +1338,15 @@ void GetIntersection(const TheCurve& theC1, const Standard_Real theT1f, const St } -//======================================================================= -//function : GetMinNbPoints -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer IntCurve_IntPolyPolyGen::GetMinNbSamples() const { return myMinPntNb; } -//======================================================================= -//function : SetMinNbPoints -//purpose : -//======================================================================= +//================================================================================================= + void IntCurve_IntPolyPolyGen::SetMinNbSamples(const Standard_Integer theMinNbSamples) { myMinPntNb = theMinNbSamples; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx index c2e2de2c3e..c06d6b5a15 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx @@ -153,17 +153,13 @@ static Standard_Real& theVmax, Standard_Boolean& theNoIntersection); -//======================================================================= -//function : IntCurveSurface_Inter -//purpose : -//======================================================================= +//================================================================================================= + IntCurveSurface_Inter::IntCurveSurface_Inter() { } -//======================================================================= -//function : DoSurface -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::DoSurface(const TheSurface& surface, const Standard_Real u0, const Standard_Real u1, @@ -208,10 +204,8 @@ void IntCurveSurface_Inter::DoSurface(const TheSurface& surface, gap = Max(Ures,Vres); } -//======================================================================= -//function : DoNewBounds -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::DoNewBounds( const TheSurface& surface, const Standard_Real u0, @@ -368,10 +362,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve, Perform(curve,surface,U0,V0,U1,V1); } } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::Perform(const TheCurve& curve, const TheSurface& surface, const Standard_Real U1,const Standard_Real V1, @@ -466,10 +458,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve, } } } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::Perform(const TheCurve& curve, const IntCurveSurface_ThePolygon& polygon, const TheSurface& surface) { @@ -488,10 +478,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve, IntCurveSurface_ThePolyhedron polyhedron(surface,nbsu,nbsv,u1,v1,u2,v2); Perform(curve,polygon,surface,polyhedron); } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::Perform(const TheCurve& curve, const TheSurface& surface, const IntCurveSurface_ThePolyhedron& polyhedron) { @@ -502,10 +490,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve, IntCurveSurface_ThePolygon polygon(curve,TheCurveTool::NbSamples(curve,u1,u2)); Perform(curve,polygon,surface,polyhedron); } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::Perform(const TheCurve& curve, const IntCurveSurface_ThePolygon& polygon, const TheSurface& surface, @@ -520,10 +506,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve, InternalPerform(curve,polygon,surface,polyhedron,u1,v1,u2,v2); } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::Perform(const TheCurve& curve, const IntCurveSurface_ThePolygon& polygon, const TheSurface& surface, @@ -684,10 +668,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve, } } -//======================================================================= -//function : InternalPerform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve, const IntCurveSurface_ThePolygon& polygon, const TheSurface& surface, @@ -827,10 +809,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve, delete [] TabU; } } -//======================================================================= -//function : InternalPerformCurveQuadric -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::InternalPerformCurveQuadric(const TheCurve& curve, const TheSurface& surface) { IntCurveSurface_TheQuadCurvExactInter QuadCurv(surface,curve); @@ -846,10 +826,8 @@ void IntCurveSurface_Inter::InternalPerformCurveQuadric(const TheCurve& } } -//======================================================================= -//function : InternalPerform -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve, const IntCurveSurface_ThePolygon& polygon, const TheSurface& surface, @@ -902,10 +880,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve, } } //-- Fin : la Surface est une quadrique } -//======================================================================= -//function : PerformConicSurf -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line, const TheCurve& curve, const TheSurface& surface, @@ -1034,10 +1010,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line, } } } -//======================================================================= -//function : PerformConicSurf -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::PerformConicSurf(const gp_Circ& Circle, const TheCurve& curve, const TheSurface& surface, @@ -1079,10 +1053,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Circ& Circle, } } } -//======================================================================= -//function : PerformConicSurf -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::PerformConicSurf(const gp_Elips& Ellipse, const TheCurve& curve, const TheSurface& surface, @@ -1124,10 +1096,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Elips& Ellipse, } } } -//======================================================================= -//function : PerformConicSurf -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::PerformConicSurf(const gp_Parab& Parab, const TheCurve& curve, const TheSurface& surface, @@ -1183,10 +1153,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Parab& Parab, } } } -//======================================================================= -//function : PerformConicSurf -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::PerformConicSurf(const gp_Hypr& Hypr, const TheCurve& curve, const TheSurface& surface, @@ -1242,10 +1210,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Hypr& Hypr, } } } -//======================================================================= -//function : AppendIntAna -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve, const TheSurface& surface, const IntAna_IntConicQuad& intana_ConicQuad) { @@ -1273,10 +1239,8 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve, //-- std::cout<<" IntAna Conic Quad Not Done "<SetValue(iTri,Boite); } } -//======================================================================= -//function : ComponentsBounding -//purpose : -//======================================================================= +//================================================================================================= + const Handle(Bnd_HArray1OfBox)& IntCurveSurface_Polyhedron::ComponentsBounding() const { return TheComponentsBnd; } -//======================================================================= -//function : NbTriangles -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer IntCurveSurface_Polyhedron::NbTriangles () const { return nbdeltaU*nbdeltaV*2; } -//======================================================================= -//function : NbPoints -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer IntCurveSurface_Polyhedron::NbPoints () const { return (nbdeltaU+1)*(nbdeltaV+1); } -//======================================================================= -//function : TriConnex -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer IntCurveSurface_Polyhedron::TriConnex (const Standard_Integer Triang, const Standard_Integer Pivot, @@ -602,10 +574,8 @@ Standard_Integer IntCurveSurface_Polyhedron::TriConnex } -//======================================================================= -//function : PlaneEquation -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Polyhedron::PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const @@ -640,10 +610,8 @@ void IntCurveSurface_Polyhedron::PlaneEquation (const Standard_Integer Triang, PolarDistance = NormalVector * Point(i1).XYZ(); } } -//======================================================================= -//function : Contain -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean IntCurveSurface_Polyhedron::Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const { @@ -661,28 +629,22 @@ Standard_Boolean IntCurveSurface_Polyhedron::Contain (const Standard_Integer Tri else return Standard_False; } -//======================================================================= -//function : Dump -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Polyhedron::Dump() const { } -//======================================================================= -//function : Size -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Polyhedron::Size (Standard_Integer& nbdu, Standard_Integer& nbdv) const { nbdu=nbdeltaU; nbdv=nbdeltaV; } -//======================================================================= -//function : Triangle -//purpose : -//======================================================================= +//================================================================================================= + void IntCurveSurface_Polyhedron::Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Polygo.lxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Polygo.lxx index 6ef6d32c6e..c14f155d75 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Polygo.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Polygo.lxx @@ -13,40 +13,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Error -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IntPatch_Polygo::Error() const { return myError; } -//======================================================================= -// function : DeflectionOverEstimation -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real IntPatch_Polygo::DeflectionOverEstimation() const { return myError; } -//======================================================================= -// function : NbSegments -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer IntPatch_Polygo::NbSegments() const { return NbPoints() - 1; } -//======================================================================= -// function : BeginOfSeg -// purpose : -//======================================================================= +//================================================================================================= inline void IntPatch_Polygo::Segment(const Standard_Integer theIndex, gp_Pnt2d& theBegin, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx b/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx index 59bac00346..e1d10b5aae 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx @@ -135,10 +135,8 @@ private: }; -//======================================================================= -//function : FindVertex -//purpose : -//======================================================================= +//================================================================================================= + void FindVertex (const TheArc& A, const Handle(TheTopolTool)& Domain, TheFunction& Func, @@ -790,10 +788,8 @@ void BoundedArc (const TheArc& A, } } -//======================================================================= -//function : ComputeBoundsfromInfinite -//purpose : -//======================================================================= +//================================================================================================= + // - PROVISIONAL - TEMPORARY - NOT GOOD - NYI - TO DO // - Temporary - temporary - not good - nyi - to do void ComputeBoundsfromInfinite(TheFunction& Func, @@ -861,10 +857,8 @@ void ComputeBoundsfromInfinite(TheFunction& Func, } } -//======================================================================= -//function : PointProcess -//purpose : -//======================================================================= +//================================================================================================= + void PointProcess (const gp_Pnt& Pt, const Standard_Real Para, const TheArc& A, @@ -974,10 +968,8 @@ void PointProcess (const gp_Pnt& Pt, } } -//======================================================================= -//function : IsRegularity -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean IsRegularity(const TheArc& /*A*/, const Handle(TheTopolTool)& aDomain) { @@ -991,10 +983,8 @@ Standard_Boolean IsRegularity(const TheArc& /*A*/, return (BRep_Tool::HasContinuity(*anE)); } -//======================================================================= -//function : TreatLC -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer TreatLC (const TheArc& A, const Handle(TheTopolTool)& aDomain, const IntSurf_Quadric& aQuadric, @@ -1095,20 +1085,16 @@ Standard_Integer TreatLC (const TheArc& A, } -//======================================================================= -//function : IntStart_SearchOnBoundaries::IntStart_SearchOnBoundaries -//purpose : -//======================================================================= +//================================================================================================= + IntStart_SearchOnBoundaries::IntStart_SearchOnBoundaries () : done(Standard_False), all(Standard_False) { } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void IntStart_SearchOnBoundaries::Perform (TheFunction& Func, const Handle(TheTopolTool)& Domain, const Standard_Real TolBoundary, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Interference.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Interference.lxx index c83aba0398..be1b9553bb 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Interference.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Interference.lxx @@ -69,10 +69,7 @@ inline const Intf_TangentZone& Intf_Interference::ZoneValue(const Standard_Integ return myTZones(Index); } -//======================================================================= -// function : GetTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Intf_Interference::GetTolerance() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_InterferencePolygonPolyhedron.gxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_InterferencePolygonPolyhedron.gxx index 1e909d6989..430aab537f 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_InterferencePolygonPolyhedron.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_InterferencePolygonPolyhedron.gxx @@ -51,10 +51,8 @@ static Standard_Boolean IsInSegment(const gp_Vec& P1P2, } -//======================================================================= -//function : Intf_InterferencePolygonPolyhedron -//purpose : Empty constructor -//======================================================================= +//================================================================================================= + Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron() : Intf_Interference (Standard_False), @@ -188,10 +186,8 @@ Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Intf_InterferencePolygonPolyhedron::Perform (const Polygon3d& thePolyg, const Polyhedron& thePolyh) @@ -209,10 +205,8 @@ void Intf_InterferencePolygonPolyhedron::Perform } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Intf_InterferencePolygonPolyhedron::Perform (const gp_Lin& theLin, const Polyhedron& thePolyh) @@ -451,10 +445,8 @@ Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Intf_InterferencePolygonPolyhedron::Perform (const Polygon3d& thePolyg, const Polyhedron& thePolyh, @@ -473,10 +465,8 @@ void Intf_InterferencePolygonPolyhedron::Perform } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Intf_InterferencePolygonPolyhedron::Perform (const gp_Lin& theLin, const Polyhedron& thePolyh, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Polygon2d.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Polygon2d.lxx index 43d78f1e3c..dafc1af11c 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Polygon2d.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_Polygon2d.lxx @@ -13,10 +13,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Bounding -// purpose : -//======================================================================= +//================================================================================================= inline const Bnd_Box2d& Intf_Polygon2d::Bounding() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_SectionLine.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_SectionLine.lxx index d42cc6bfcf..84559a488f 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_SectionLine.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_SectionLine.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : NumberOfPoint -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Intf_SectionLine::NumberOfPoints() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.lxx index d45a885c67..5a65db4c40 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.lxx @@ -26,10 +26,7 @@ inline Standard_Integer Intf_TangentZone::NumberOfPoints() const return Result.Length(); } -//======================================================================= -// function : ParamOnFirst -// purpose : -//======================================================================= +//================================================================================================= inline void Intf_TangentZone::ParamOnFirst(Standard_Real& paraMin, Standard_Real& paraMax) const { @@ -37,10 +34,7 @@ inline void Intf_TangentZone::ParamOnFirst(Standard_Real& paraMin, Standard_Real paraMax = ParamOnFirstMax; } -//======================================================================= -// function : ParamOnSecond -// purpose : -//======================================================================= +//================================================================================================= inline void Intf_TangentZone::ParamOnSecond(Standard_Real& paraMin, Standard_Real& paraMax) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.gxx b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.gxx index abf99e551f..c1274aeb3f 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.gxx @@ -24,10 +24,8 @@ #include #include -//======================================================================= -//function : TopClass_Classifier2d -//purpose : -//======================================================================= +//================================================================================================= + TopClass_Classifier2d::TopClass_Classifier2d() : myIsSet(Standard_False), @@ -41,10 +39,8 @@ TopClass_Classifier2d::TopClass_Classifier2d() : { } -//======================================================================= -//function : Reset -//purpose : -//======================================================================= +//================================================================================================= + void TopClass_Classifier2d::Reset(const gp_Lin2d& L, const Standard_Real P, @@ -63,10 +59,8 @@ void TopClass_Classifier2d::Reset(const gp_Lin2d& L, // Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627 End } -//======================================================================= -//function : Compare -//purpose : -//======================================================================= +//================================================================================================= + void TopClass_Classifier2d::Compare(const TheEdge& E, const TopAbs_Orientation Or) diff --git a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.lxx b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.lxx index a3b1f23718..e653e78d83 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_Classifier2d.lxx @@ -16,40 +16,28 @@ // Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627 -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real TopClass_Classifier2d::Parameter() const { return myParam; } -//======================================================================= -// function : Intersector -// purpose : -//======================================================================= +//================================================================================================= inline TheIntersector& TopClass_Classifier2d::Intersector() { return myIntersector; } -//======================================================================= -// function : ClosestIntersection -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer TopClass_Classifier2d::ClosestIntersection() const { return myClosest; } -//======================================================================= -// function : State -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_State TopClass_Classifier2d::State() const { @@ -58,10 +46,7 @@ inline TopAbs_State TopClass_Classifier2d::State() const // Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627 Begin -//======================================================================= -// function : IsHeadOrEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopClass_Classifier2d::IsHeadOrEnd() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.gxx b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.gxx index 7f86749285..5599201258 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.gxx @@ -20,10 +20,8 @@ #include #include -//======================================================================= -//function : TopClass_FaceClassifier -//purpose : -//======================================================================= +//================================================================================================= + TopClass_FaceClassifier::TopClass_FaceClassifier() : myEdgeParameter(0.0), @@ -32,10 +30,8 @@ nowires(Standard_True) { } -//======================================================================= -//function : TopClass_FaceClassifier -//purpose : -//======================================================================= +//================================================================================================= + TopClass_FaceClassifier::TopClass_FaceClassifier(TheFaceExplorer& FExp, const gp_Pnt2d& P, @@ -47,10 +43,8 @@ nowires(Standard_True) Perform(FExp,P,Tol); } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void TopClass_FaceClassifier::Perform(TheFaceExplorer& Fexp, const gp_Pnt2d& P, @@ -152,10 +146,8 @@ void TopClass_FaceClassifier::Perform(TheFaceExplorer& Fexp, } } -//======================================================================= -//function : State -//purpose : -//======================================================================= +//================================================================================================= + TopAbs_State TopClass_FaceClassifier::State() const { @@ -164,10 +156,8 @@ TopAbs_State TopClass_FaceClassifier::State() const else return myClassifier.State(); } -//======================================================================= -//function : Edge -//purpose : -//======================================================================= +//================================================================================================= + const TheEdge& TopClass_FaceClassifier::Edge() const { @@ -177,10 +167,8 @@ const TheEdge& TopClass_FaceClassifier::Edge() const } -//======================================================================= -//function : EdgeParameter -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real TopClass_FaceClassifier::EdgeParameter() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.lxx b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.lxx index 70ffbb3548..15f3e654e7 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/TopClass/TopClass_FaceClassifier.lxx @@ -16,30 +16,21 @@ #include TheFaceExplorer_hxx -//======================================================================= -// function : Rejected -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopClass_FaceClassifier::Rejected() const { return rejected; } -//======================================================================= -// function : Nowires -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean TopClass_FaceClassifier::NoWires() const { return nowires; } -//======================================================================= -// function : Position -// purpose : -//======================================================================= +//================================================================================================= inline IntRes2d_Position TopClass_FaceClassifier::Position() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_EdgeIterator.lxx b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_EdgeIterator.lxx index dfd290f839..d10561dbf8 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_EdgeIterator.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_EdgeIterator.lxx @@ -16,20 +16,14 @@ #include -//======================================================================= -// function : MoreHidden -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_EdgeIterator::MoreHidden() const { return iHid <= myNbHid + 1; } -//======================================================================= -// function : Hidden -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_EdgeIterator::Hidden(Standard_Real& Start, Standard_ShortReal& TolStart, @@ -42,10 +36,7 @@ inline void HLRAlgo_EdgeIterator::Hidden(Standard_Real& Start, TolEnd = myHidTolEnd; } -//======================================================================= -// function : InitVisible -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_EdgeIterator::InitVisible(HLRAlgo_EdgeStatus& status) { @@ -54,30 +45,21 @@ inline void HLRAlgo_EdgeIterator::InitVisible(HLRAlgo_EdgeStatus& status) myNbVis = ((HLRAlgo_EdgeStatus*)EVis)->NbVisiblePart(); } -//======================================================================= -// function : MoreVisible -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_EdgeIterator::MoreVisible() const { return iVis <= myNbVis; } -//======================================================================= -// function : NextVisible -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_EdgeIterator::NextVisible() { iVis++; } -//======================================================================= -// function : Visible -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_EdgeIterator::Visible(Standard_Real& Start, Standard_ShortReal& TolStart, diff --git a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Intersection.lxx b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Intersection.lxx index 9455ef5ab2..8540604738 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Intersection.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Intersection.lxx @@ -14,140 +14,98 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::Orientation(const TopAbs_Orientation Ori) { myOrien = Ori; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation HLRAlgo_Intersection::Orientation() const { return myOrien; } -//======================================================================= -// function : Level -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::Level(const Standard_Integer Lev) { myLevel = Lev; } -//======================================================================= -// function : Level -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_Intersection::Level() const { return myLevel; } -//======================================================================= -// function : SegIndex -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::SegIndex(const Standard_Integer SegInd) { mySegIndex = SegInd; } -//======================================================================= -// function : SegIndex -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_Intersection::SegIndex() const { return mySegIndex; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::Index(const Standard_Integer Ind) { myIndex = Ind; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_Intersection::Index() const { return myIndex; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::Parameter(const Standard_Real P) { myParam = P; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRAlgo_Intersection::Parameter() const { return myParam; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::Tolerance(const Standard_ShortReal T) { myToler = T; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal HLRAlgo_Intersection::Tolerance() const { return myToler; } -//======================================================================= -// function : State -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Intersection::State(const TopAbs_State St) { myState = St; } -//======================================================================= -// function : State -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_State HLRAlgo_Intersection::State() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyData.lxx b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyData.lxx index 6962183e3f..5f25266d07 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyData.lxx @@ -18,60 +18,42 @@ #include #include -//======================================================================= -// function : FaceIndex -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyData::FaceIndex(const Standard_Integer I) { myFaceIndices.Index = I; } -//======================================================================= -// function : FaceIndex -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_PolyData::FaceIndex() const { return myFaceIndices.Index; } -//======================================================================= -// function : Nodes -// purpose : -//======================================================================= +//================================================================================================= inline TColgp_Array1OfXYZ& HLRAlgo_PolyData::Nodes() const { return myHNodes->ChangeArray1(); } -//======================================================================= -// function : TData -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Array1OfTData& HLRAlgo_PolyData::TData() const { return myHTData->ChangeArray1(); } -//======================================================================= -// function : PHDat -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Array1OfPHDat& HLRAlgo_PolyData::PHDat() const { return myHPHDat->ChangeArray1(); } -//======================================================================= -// function : Hiding -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_PolyData::Hiding() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyInternalData.lxx b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyInternalData.lxx index 3b597b0fba..bad7dfde08 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyInternalData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_PolyInternalData.lxx @@ -24,130 +24,91 @@ #include #include -//======================================================================= -// function : DecTData -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyInternalData::DecTData() { myNbTData--; } -//======================================================================= -// function : DecPISeg -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyInternalData::DecPISeg() { myNbPISeg--; } -//======================================================================= -// function : DecPINod -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyInternalData::DecPINod() { myNbPINod--; } -//======================================================================= -// function : NbTData -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_PolyInternalData::NbTData() const { return myNbTData; } -//======================================================================= -// function : NbPISeg -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_PolyInternalData::NbPISeg() const { return myNbPISeg; } -//======================================================================= -// function : NbPINod -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRAlgo_PolyInternalData::NbPINod() const { return myNbPINod; } -//======================================================================= -// function : Planar -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_PolyInternalData::Planar() const { return myPlanar; } -//======================================================================= -// function : Planar -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyInternalData::Planar(const Standard_Boolean B) { myPlanar = B; } -//======================================================================= -// function : IntOutL -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_PolyInternalData::IntOutL() const { return myIntOutL; } -//======================================================================= -// function : IntOutL -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_PolyInternalData::IntOutL(const Standard_Boolean B) { myIntOutL = B; } -//======================================================================= -// function : TData -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Array1OfTData& HLRAlgo_PolyInternalData::TData() const { return myTData->ChangeArray1(); } -//======================================================================= -// function : PINod -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Array1OfPINod& HLRAlgo_PolyInternalData::PINod() const { return myPINod->ChangeArray1(); } -//======================================================================= -// function : PISeg -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Array1OfPISeg& HLRAlgo_PolyInternalData::PISeg() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Projector.lxx b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Projector.lxx index 0ef034a7b7..bbd806f39e 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Projector.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRAlgo/HLRAlgo_Projector.lxx @@ -18,10 +18,7 @@ #include #include -//======================================================================= -// function : Directions -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Projector::Directions(gp_Vec2d& D1, gp_Vec2d& D2, gp_Vec2d& D3) const { @@ -30,10 +27,7 @@ inline void HLRAlgo_Projector::Directions(gp_Vec2d& D1, gp_Vec2d& D2, gp_Vec2d& D3 = myD3; } -//======================================================================= -// function : Perspective -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRAlgo_Projector::Perspective() const { @@ -41,38 +35,27 @@ inline Standard_Boolean HLRAlgo_Projector::Perspective() const } /* -//======================================================================= -//function : Transformation -//purpose : -//======================================================================= +//================================================================================================= + inline const gp_Trsf & HLRAlgo_Projector::Transformation() const { return myTrsf; } */ -//======================================================================= -// function : InvertedTransformation -// purpose : -//======================================================================= +//================================================================================================= inline const gp_Trsf& HLRAlgo_Projector::InvertedTransformation() const { return myInvTrsf; } -//======================================================================= -// function : FullTransformation -// purpose : -//======================================================================= +//================================================================================================= inline const gp_Trsf& HLRAlgo_Projector::FullTransformation() const { return myScaledTrsf; } -//======================================================================= -// function : Focus -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRAlgo_Projector::Focus() const { @@ -80,20 +63,14 @@ inline Standard_Real HLRAlgo_Projector::Focus() const return myFocus; } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Projector::Transform(gp_Vec& D) const { D.Transform(myTrsf); } -//======================================================================= -// function : Transform -// purpose : -//======================================================================= +//================================================================================================= inline void HLRAlgo_Projector::Transform(gp_Pnt& Pnt) const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BCurveTool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BCurveTool.lxx index ea3b00521c..c17531fc11 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BCurveTool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BCurveTool.lxx @@ -24,40 +24,28 @@ #include #include -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BCurveTool::FirstParameter(const BRepAdaptor_Curve& C) { return (C.FirstParameter()); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BCurveTool::LastParameter(const BRepAdaptor_Curve& C) { return (C.LastParameter()); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_BCurveTool::Continuity(const BRepAdaptor_Curve& C) { return (C.Continuity()); } -//======================================================================= -// function : NbIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C, const GeomAbs_Shape Sh) @@ -65,10 +53,7 @@ inline Standard_Integer HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& return (C.NbIntervals(Sh)); } -//======================================================================= -// function : Intervals -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C, TColStd_Array1OfReal& Tab, @@ -77,60 +62,42 @@ inline void HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C, C.Intervals(Tab, Sh); } -//======================================================================= -// function : IsClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BCurveTool::IsClosed(const BRepAdaptor_Curve& C) { return (C.IsClosed()); } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BCurveTool::IsPeriodic(const BRepAdaptor_Curve& C) { return (C.IsPeriodic()); } -//======================================================================= -// function : Period -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BCurveTool::Period(const BRepAdaptor_Curve& C) { return (C.Period()); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt HLRBRep_BCurveTool::Value(const BRepAdaptor_Curve& C, const Standard_Real U) { return (C.Value(U)); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BCurveTool::D0(const BRepAdaptor_Curve& C, const Standard_Real U, gp_Pnt& P) { C.D0(U, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BCurveTool::D1(const BRepAdaptor_Curve& C, const Standard_Real U, @@ -149,10 +116,7 @@ inline void HLRBRep_BCurveTool::D2(const BRepAdaptor_Curve& C, C.D2(U, P, T, N); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BCurveTool::D3(const BRepAdaptor_Curve& C, const Standard_Real U, @@ -164,10 +128,7 @@ inline void HLRBRep_BCurveTool::D3(const BRepAdaptor_Curve& C, C.D3(U, P, V1, V2, V3); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec HLRBRep_BCurveTool::DN(const BRepAdaptor_Curve& C, const Standard_Real U, @@ -176,10 +137,7 @@ inline gp_Vec HLRBRep_BCurveTool::DN(const BRepAdaptor_Curve& C, return (C.DN(U, N)); } -//======================================================================= -// function : Resolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BCurveTool::Resolution(const BRepAdaptor_Curve& C, const Standard_Real R3d) @@ -187,100 +145,70 @@ inline Standard_Real HLRBRep_BCurveTool::Resolution(const BRepAdaptor_Curve& C, return (C.Resolution(R3d)); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType HLRBRep_BCurveTool::GetType(const BRepAdaptor_Curve& C) { return (C.GetType()); } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline gp_Lin HLRBRep_BCurveTool::Line(const BRepAdaptor_Curve& C) { return (C.Line()); } -//======================================================================= -// function : Circle -// purpose : -//======================================================================= +//================================================================================================= inline gp_Circ HLRBRep_BCurveTool::Circle(const BRepAdaptor_Curve& C) { return (C.Circle()); } -//======================================================================= -// function : Ellipse -// purpose : -//======================================================================= +//================================================================================================= inline gp_Elips HLRBRep_BCurveTool::Ellipse(const BRepAdaptor_Curve& C) { return (C.Ellipse()); } -//======================================================================= -// function : Parabola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Parab HLRBRep_BCurveTool::Parabola(const BRepAdaptor_Curve& C) { return (C.Parabola()); } -//======================================================================= -// function : Hyperbola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Hypr HLRBRep_BCurveTool::Hyperbola(const BRepAdaptor_Curve& C) { return (C.Hyperbola()); } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BCurveTool::Degree(const BRepAdaptor_Curve& C) { return (C.Degree()); } -//======================================================================= -// function : IsRational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BCurveTool::IsRational(const BRepAdaptor_Curve& C) { return (C.IsRational()); } -//======================================================================= -// function : NbPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BCurveTool::NbPoles(const BRepAdaptor_Curve& C) { return (C.NbPoles()); } -//======================================================================= -// function : NbKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BCurveTool::NbKnots(const BRepAdaptor_Curve& C) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BSurfaceTool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BSurfaceTool.lxx index 6c714603c9..6c0d6b1bdb 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BSurfaceTool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_BSurfaceTool.lxx @@ -28,50 +28,35 @@ #include #include -//======================================================================= -// function : FirstUParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::FirstUParameter(const BRepAdaptor_Surface& Surf) { return Surf.FirstUParameter(); } -//======================================================================= -// function : FirstVParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::FirstVParameter(const BRepAdaptor_Surface& Surf) { return Surf.FirstVParameter(); } -//======================================================================= -// function : LastUParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::LastUParameter(const BRepAdaptor_Surface& Surf) { return Surf.LastUParameter(); } -//======================================================================= -// function : LastVParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::LastVParameter(const BRepAdaptor_Surface& Surf) { return Surf.LastVParameter(); } -//======================================================================= -// function : NbUIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbUIntervals(const BRepAdaptor_Surface& Surf, const GeomAbs_Shape S) @@ -79,10 +64,7 @@ inline Standard_Integer HLRBRep_BSurfaceTool::NbUIntervals(const BRepAdaptor_Sur return Surf.NbUIntervals(S); } -//======================================================================= -// function : NbVIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbVIntervals(const BRepAdaptor_Surface& Surf, const GeomAbs_Shape S) @@ -90,10 +72,7 @@ inline Standard_Integer HLRBRep_BSurfaceTool::NbVIntervals(const BRepAdaptor_Sur return Surf.NbVIntervals(S); } -//======================================================================= -// function : UIntervals -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::UIntervals(const BRepAdaptor_Surface& Surf, TColStd_Array1OfReal& Tab, @@ -102,10 +81,7 @@ inline void HLRBRep_BSurfaceTool::UIntervals(const BRepAdaptor_Surface& Surf, Surf.UIntervals(Tab, S); } -//======================================================================= -// function : VIntervals -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::VIntervals(const BRepAdaptor_Surface& Surf, TColStd_Array1OfReal& Tab, @@ -114,10 +90,7 @@ inline void HLRBRep_BSurfaceTool::VIntervals(const BRepAdaptor_Surface& Surf, Surf.VIntervals(Tab, S); } -//======================================================================= -// function : UTrim -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Adaptor3d_Surface) HLRBRep_BSurfaceTool::UTrim(const BRepAdaptor_Surface& Surf, const Standard_Real F, @@ -127,10 +100,7 @@ inline Handle(Adaptor3d_Surface) HLRBRep_BSurfaceTool::UTrim(const BRepAdaptor_S return Surf.UTrim(F, L, Tol); } -//======================================================================= -// function : VTrim -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Adaptor3d_Surface) HLRBRep_BSurfaceTool::VTrim(const BRepAdaptor_Surface& Surf, const Standard_Real F, @@ -140,70 +110,49 @@ inline Handle(Adaptor3d_Surface) HLRBRep_BSurfaceTool::VTrim(const BRepAdaptor_S return Surf.VTrim(F, L, Tol); } -//======================================================================= -// function : IsUClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsUClosed(const BRepAdaptor_Surface& S) { return S.IsUClosed(); } -//======================================================================= -// function : IsVClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsVClosed(const BRepAdaptor_Surface& S) { return S.IsVClosed(); } -//======================================================================= -// function : IsUPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsUPeriodic(const BRepAdaptor_Surface& S) { return S.IsUPeriodic(); } -//======================================================================= -// function : UPeriod -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::UPeriod(const BRepAdaptor_Surface& S) { return S.UPeriod(); } -//======================================================================= -// function : IsVPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsVPeriodic(const BRepAdaptor_Surface& S) { return S.IsVPeriodic(); } -//======================================================================= -// function : VPeriod -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::VPeriod(const BRepAdaptor_Surface& S) { return S.VPeriod(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt HLRBRep_BSurfaceTool::Value(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -212,10 +161,7 @@ inline gp_Pnt HLRBRep_BSurfaceTool::Value(const BRepAdaptor_Surface& S, return S.Value(U, V); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::D0(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -225,10 +171,7 @@ inline void HLRBRep_BSurfaceTool::D0(const BRepAdaptor_Surface& S, S.D0(U, V, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::D1(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -240,10 +183,7 @@ inline void HLRBRep_BSurfaceTool::D1(const BRepAdaptor_Surface& S, S.D1(U, V, P, D1U, D1V); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::D2(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -258,10 +198,7 @@ inline void HLRBRep_BSurfaceTool::D2(const BRepAdaptor_Surface& S, S.D2(U, V, P, D1U, D1V, D2U, D2V, D2UV); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_BSurfaceTool::D3(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -280,10 +217,7 @@ inline void HLRBRep_BSurfaceTool::D3(const BRepAdaptor_Surface& S, S.D3(U, V, P, D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec HLRBRep_BSurfaceTool::DN(const BRepAdaptor_Surface& S, const Standard_Real U, @@ -294,10 +228,7 @@ inline gp_Vec HLRBRep_BSurfaceTool::DN(const BRepAdaptor_Surface& S, return S.DN(U, V, Nu, Nv); } -//======================================================================= -// function : UResolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::UResolution(const BRepAdaptor_Surface& S, const Standard_Real R3d) @@ -305,10 +236,7 @@ inline Standard_Real HLRBRep_BSurfaceTool::UResolution(const BRepAdaptor_Surface return S.UResolution(R3d); } -//======================================================================= -// function : VResolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_BSurfaceTool::VResolution(const BRepAdaptor_Surface& S, const Standard_Real R3d) @@ -316,210 +244,147 @@ inline Standard_Real HLRBRep_BSurfaceTool::VResolution(const BRepAdaptor_Surface return S.VResolution(R3d); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_SurfaceType HLRBRep_BSurfaceTool::GetType(const BRepAdaptor_Surface& S) { return S.GetType(); } -//======================================================================= -// function : Plane -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pln HLRBRep_BSurfaceTool::Plane(const BRepAdaptor_Surface& S) { return S.Plane(); } -//======================================================================= -// function : Cylinder -// purpose : -//======================================================================= +//================================================================================================= inline gp_Cylinder HLRBRep_BSurfaceTool::Cylinder(const BRepAdaptor_Surface& S) { return S.Cylinder(); } -//======================================================================= -// function : Cone -// purpose : -//======================================================================= +//================================================================================================= inline gp_Cone HLRBRep_BSurfaceTool::Cone(const BRepAdaptor_Surface& S) { return S.Cone(); } -//======================================================================= -// function : Sphere -// purpose : -//======================================================================= +//================================================================================================= inline gp_Sphere HLRBRep_BSurfaceTool::Sphere(const BRepAdaptor_Surface& S) { return S.Sphere(); } -//======================================================================= -// function : Torus -// purpose : -//======================================================================= +//================================================================================================= inline gp_Torus HLRBRep_BSurfaceTool::Torus(const BRepAdaptor_Surface& S) { return S.Torus(); } -//======================================================================= -// function : Bezier -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom_BezierSurface) HLRBRep_BSurfaceTool::Bezier(const BRepAdaptor_Surface& S) { return (S.Bezier()); } -//======================================================================= -// function : BSpline -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom_BSplineSurface) HLRBRep_BSurfaceTool::BSpline(const BRepAdaptor_Surface& S) { return (S.BSpline()); } -//======================================================================= -// function : AxeOfRevolution -// purpose : -//======================================================================= +//================================================================================================= inline gp_Ax1 HLRBRep_BSurfaceTool::AxeOfRevolution(const BRepAdaptor_Surface& S) { return (S.AxeOfRevolution()); } -//======================================================================= -// function : Direction -// purpose : -//======================================================================= +//================================================================================================= inline gp_Dir HLRBRep_BSurfaceTool::Direction(const BRepAdaptor_Surface& S) { return (S.Direction()); } -//======================================================================= -// function : BasisCurve -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Adaptor3d_Curve) HLRBRep_BSurfaceTool::BasisCurve(const BRepAdaptor_Surface& S) { return (S.BasisCurve()); } -//======================================================================= -// function : UContinuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_BSurfaceTool::UContinuity(const BRepAdaptor_Surface& S) { return (S.UContinuity()); } -//======================================================================= -// function : VContinuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_BSurfaceTool::VContinuity(const BRepAdaptor_Surface& S) { return (S.VContinuity()); } -//======================================================================= -// function : UDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::UDegree(const BRepAdaptor_Surface& S) { return (S.UDegree()); } -//======================================================================= -// function : NbUPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbUPoles(const BRepAdaptor_Surface& S) { return (S.NbUPoles()); } -//======================================================================= -// function : NbUKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbUKnots(const BRepAdaptor_Surface& S) { return (S.NbUKnots()); } -//======================================================================= -// function : IsURational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsURational(const BRepAdaptor_Surface& S) { return (S.IsURational()); } -//======================================================================= -// function : VDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::VDegree(const BRepAdaptor_Surface& S) { return (S.VDegree()); } -//======================================================================= -// function : NbVPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbVPoles(const BRepAdaptor_Surface& S) { return (S.NbVPoles()); } -//======================================================================= -// function : NbVKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_BSurfaceTool::NbVKnots(const BRepAdaptor_Surface& S) { return (S.NbVKnots()); } -//======================================================================= -// function : IsVRational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_BSurfaceTool::IsVRational(const BRepAdaptor_Surface& S) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CLPropsATool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CLPropsATool.lxx index 6ce15a4f23..359a65b1cf 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CLPropsATool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CLPropsATool.lxx @@ -18,20 +18,14 @@ #include #include -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CLPropsATool::Value(const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P) { P = A->Value(U); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CLPropsATool::D1(const HLRBRep_Curve* A, const Standard_Real U, @@ -41,10 +35,7 @@ inline void HLRBRep_CLPropsATool::D1(const HLRBRep_Curve* A, A->D1(U, P, V1); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CLPropsATool::D2(const HLRBRep_Curve* A, const Standard_Real U, @@ -55,10 +46,7 @@ inline void HLRBRep_CLPropsATool::D2(const HLRBRep_Curve* A, A->D2(U, P, V1, V2); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CLPropsATool::D3(const HLRBRep_Curve* A, const Standard_Real U, @@ -70,30 +58,21 @@ inline void HLRBRep_CLPropsATool::D3(const HLRBRep_Curve* A, A->D3(U, P, V1, V2, V3); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_CLPropsATool::Continuity(const HLRBRep_Curve*) { return GeomAbs_C2; } -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CLPropsATool::FirstParameter(const HLRBRep_Curve* A) { return A->FirstParameter(); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CLPropsATool::LastParameter(const HLRBRep_Curve* A) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Curve.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Curve.lxx index fa0db7b3b1..86682b3e3a 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Curve.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Curve.lxx @@ -24,30 +24,21 @@ #include #include -//======================================================================= -// function : Curve -// purpose : -//======================================================================= +//================================================================================================= inline BRepAdaptor_Curve& HLRBRep_Curve::Curve() { return myCurve; } -//======================================================================= -// function : GetCurve -// purpose : -//======================================================================= +//================================================================================================= inline const BRepAdaptor_Curve& HLRBRep_Curve::GetCurve() const { return myCurve; } -//======================================================================= -// function : Value3D -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const { @@ -56,110 +47,77 @@ inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const return P; } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Curve::D0(const Standard_Real U, gp_Pnt& P) const { HLRBRep_BCurveTool::D0(myCurve, U, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Curve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const { HLRBRep_BCurveTool::D1(myCurve, U, P, V); } -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Curve::FirstParameter() const { return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve)); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Curve::LastParameter() const { return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve)); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_Curve::Continuity() const { return HLRBRep_BCurveTool::Continuity(myCurve); } -//======================================================================= -// function : NbIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Curve::NbIntervals(const GeomAbs_Shape S) const { return HLRBRep_BCurveTool::NbIntervals(myCurve, S); } -//======================================================================= -// function : Intervals -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab, const GeomAbs_Shape Sh) const { HLRBRep_BCurveTool::Intervals(myCurve, Tab, Sh); } -//======================================================================= -// function : IsClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Curve::IsClosed() const { return HLRBRep_BCurveTool::IsClosed(myCurve); } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Curve::IsPeriodic() const { return HLRBRep_BCurveTool::IsPeriodic(myCurve); } -//======================================================================= -// function : Period -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Curve::Period() const { return HLRBRep_BCurveTool::Period(myCurve); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt2d HLRBRep_Curve::Value(const Standard_Real U) const { @@ -168,60 +126,42 @@ inline gp_Pnt2d HLRBRep_Curve::Value(const Standard_Real U) const return P; } -//======================================================================= -// function : Resolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Curve::Resolution(const Standard_Real R3d) const { return HLRBRep_BCurveTool::Resolution(myCurve, R3d); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType HLRBRep_Curve::GetType() const { return myType; } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Curve::Degree() const { return HLRBRep_BCurveTool::Degree(myCurve); } -//======================================================================= -// function : NbPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Curve::NbPoles() const { return HLRBRep_BCurveTool::NbPoles(myCurve); } -//======================================================================= -// function : NbKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Curve::NbKnots() const { return HLRBRep_BCurveTool::NbKnots(myCurve); } -//======================================================================= -// function : IsRational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Curve::IsRational() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CurveTool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CurveTool.lxx index 9b2c3bb5d1..36f2f0acae 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CurveTool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_CurveTool.lxx @@ -29,40 +29,28 @@ #define IS_C2_COMPOSITE 0 -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CurveTool::FirstParameter(const Standard_Address C) { return (((HLRBRep_Curve*)C)->FirstParameter()); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CurveTool::LastParameter(const Standard_Address C) { return (((HLRBRep_Curve*)C)->LastParameter()); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_CurveTool::Continuity(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Continuity()); } -//======================================================================= -// function : NbIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_CurveTool::NbIntervals(const Standard_Address C) { @@ -73,10 +61,7 @@ inline Standard_Integer HLRBRep_CurveTool::NbIntervals(const Standard_Address C) #endif } -//======================================================================= -// function : Intervals -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::Intervals(const Standard_Address C, TColStd_Array1OfReal& Tab) { @@ -87,10 +72,7 @@ inline void HLRBRep_CurveTool::Intervals(const Standard_Address C, TColStd_Array #endif } -//======================================================================= -// function : GetInterval -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::GetInterval(const Standard_Address /*C*/, const Standard_Integer i, @@ -102,60 +84,42 @@ inline void HLRBRep_CurveTool::GetInterval(const Standard_Address /*C*/, b = Tab.Value(i + 1); } -//======================================================================= -// function : IsClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_CurveTool::IsClosed(const Standard_Address C) { return (((HLRBRep_Curve*)C)->IsClosed()); } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_CurveTool::IsPeriodic(const Standard_Address C) { return (((HLRBRep_Curve*)C)->IsPeriodic()); } -//======================================================================= -// function : Period -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CurveTool::Period(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Period()); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt2d HLRBRep_CurveTool::Value(const Standard_Address C, const Standard_Real U) { return (((HLRBRep_Curve*)C)->Value(U)); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::D0(const Standard_Address C, const Standard_Real U, gp_Pnt2d& P) { ((HLRBRep_Curve*)C)->D0(U, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::D1(const Standard_Address C, const Standard_Real U, @@ -165,10 +129,7 @@ inline void HLRBRep_CurveTool::D1(const Standard_Address C, ((HLRBRep_Curve*)C)->D1(U, P, T); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::D2(const Standard_Address C, const Standard_Real U, @@ -179,10 +140,7 @@ inline void HLRBRep_CurveTool::D2(const Standard_Address C, ((HLRBRep_Curve*)C)->D2(U, P, T, N); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_CurveTool::D3(const Standard_Address C, const Standard_Real U, @@ -194,10 +152,7 @@ inline void HLRBRep_CurveTool::D3(const Standard_Address C, ((HLRBRep_Curve*)C)->D3(U, P, V1, V2, V3); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec2d HLRBRep_CurveTool::DN(const Standard_Address C, const Standard_Real U, @@ -206,10 +161,7 @@ inline gp_Vec2d HLRBRep_CurveTool::DN(const Standard_Address C, return (((HLRBRep_Curve*)C)->DN(U, N)); } -//======================================================================= -// function : Resolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CurveTool::Resolution(const Standard_Address C, const Standard_Real R3d) @@ -217,80 +169,56 @@ inline Standard_Real HLRBRep_CurveTool::Resolution(const Standard_Address C, return (((HLRBRep_Curve*)C)->Resolution(R3d)); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType HLRBRep_CurveTool::GetType(const Standard_Address C) { return (((HLRBRep_Curve*)C)->GetType()); } -//======================================================================= -// function : TheType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType HLRBRep_CurveTool::TheType(const Standard_Address C) { return (((HLRBRep_Curve*)C)->GetType()); } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline gp_Lin2d HLRBRep_CurveTool::Line(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Line()); } -//======================================================================= -// function : Circle -// purpose : -//======================================================================= +//================================================================================================= inline gp_Circ2d HLRBRep_CurveTool::Circle(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Circle()); } -//======================================================================= -// function : Ellipse -// purpose : -//======================================================================= +//================================================================================================= inline gp_Elips2d HLRBRep_CurveTool::Ellipse(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Ellipse()); } -//======================================================================= -// function : Parabola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Parab2d HLRBRep_CurveTool::Parabola(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Parabola()); } -//======================================================================= -// function : Hyperbola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Hypr2d HLRBRep_CurveTool::Hyperbola(const Standard_Address C) { return (((HLRBRep_Curve*)C)->Hyperbola()); } -//======================================================================= -// function : Bezier -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_BezierCurve) HLRBRep_CurveTool::Bezier(const Standard_Address /*C*/) { @@ -301,10 +229,7 @@ inline Handle(Geom2d_BezierCurve) HLRBRep_CurveTool::Bezier(const Standard_Addre return (0); } -//======================================================================= -// function : BSpline -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_BSplineCurve) HLRBRep_CurveTool::BSpline(const Standard_Address /*C*/) { @@ -315,20 +240,14 @@ inline Handle(Geom2d_BSplineCurve) HLRBRep_CurveTool::BSpline(const Standard_Add return (0); } -//======================================================================= -// function : EpsX -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_CurveTool::EpsX(const Standard_Address /*C*/) { return (1e-10); } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_CurveTool::Degree(const Standard_Address C) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.lxx index b70a7216ce..74d033b997 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.lxx @@ -14,150 +14,105 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : EDataArray -// purpose : -//======================================================================= +//================================================================================================= inline HLRBRep_Array1OfEData& HLRBRep_Data::EDataArray() { return myEData; } -//======================================================================= -// function : FDataArray -// purpose : -//======================================================================= +//================================================================================================= inline HLRBRep_Array1OfFData& HLRBRep_Data::FDataArray() { return myFData; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Data::Tolerance(const Standard_ShortReal tol) { myToler = tol; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal HLRBRep_Data::Tolerance() const { return myToler; } -//======================================================================= -// function : Projector -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Projector& HLRBRep_Data::Projector() { return myProj; } -//======================================================================= -// function : NbVertices -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Data::NbVertices() const { return myNbVertices; } -//======================================================================= -// function : NbEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Data::NbEdges() const { return myNbEdges; } -//======================================================================= -// function : NbFaces -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Data::NbFaces() const { return myNbFaces; } -//======================================================================= -// function : EdgeMap -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_IndexedMapOfShape& HLRBRep_Data::EdgeMap() { return myEMap; } -//======================================================================= -// function : FaceMap -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_IndexedMapOfShape& HLRBRep_Data::FaceMap() { return myFMap; } -//======================================================================= -// function : SimpleHidingFace -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Data::SimpleHidingFace() const { return iFaceSimp; } -//======================================================================= -// function : HidingTheFace -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Data::HidingTheFace() const { return iFaceTest; } -//======================================================================= -// function : MoreInterference -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Data::MoreInterference() const { return (iInterf <= myNbPoints + 2 * myNbSegments); } -//======================================================================= -// function : Interference -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_Interference& HLRBRep_Data::Interference() { return myIntf; } -//======================================================================= -// function :EdgeOfTheHidingFace -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Data::EdgeOfTheHidingFace(const Standard_Integer, const HLRBRep_EdgeData& ED) const diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeData.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeData.lxx index 065e2fbac9..3793b698bd 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeData.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Selected -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::Selected() const { return (myFlags & EMaskSelected) != 0; } -//======================================================================= -// function : Selected -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::Selected(const Standard_Boolean B) { @@ -37,20 +31,14 @@ inline void HLRBRep_EdgeData::Selected(const Standard_Boolean B) myFlags &= ~EMaskSelected; } -//======================================================================= -// function : Rg1Line -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::Rg1Line() const { return (myFlags & EMaskRg1Line) != 0; } -//======================================================================= -// function : Rg1Line -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::Rg1Line(const Standard_Boolean B) { @@ -60,20 +48,14 @@ inline void HLRBRep_EdgeData::Rg1Line(const Standard_Boolean B) myFlags &= ~EMaskRg1Line; } -//======================================================================= -// function : RgNLine -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::RgNLine() const { return (myFlags & EMaskRgNLine) != 0; } -//======================================================================= -// function : RgNLine -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::RgNLine(const Standard_Boolean B) { @@ -83,20 +65,14 @@ inline void HLRBRep_EdgeData::RgNLine(const Standard_Boolean B) myFlags &= ~EMaskRgNLine; } -//======================================================================= -// function : Vertical -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::Vertical() const { return (myFlags & EMaskVertical) != 0; } -//======================================================================= -// function : Vertical -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::Vertical(const Standard_Boolean B) { @@ -106,20 +82,14 @@ inline void HLRBRep_EdgeData::Vertical(const Standard_Boolean B) myFlags &= ~EMaskVertical; } -//======================================================================= -// function : Simple -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::Simple() const { return (myFlags & EMaskSimple) != 0; } -//======================================================================= -// function : Simple -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::Simple(const Standard_Boolean B) { @@ -129,20 +99,14 @@ inline void HLRBRep_EdgeData::Simple(const Standard_Boolean B) myFlags &= ~EMaskSimple; } -//======================================================================= -// function : OutLVSta -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::OutLVSta() const { return (myFlags & EMaskOutLVSta) != 0; } -//======================================================================= -// function : OutLVSta -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::OutLVSta(const Standard_Boolean B) { @@ -152,20 +116,14 @@ inline void HLRBRep_EdgeData::OutLVSta(const Standard_Boolean B) myFlags &= ~EMaskOutLVSta; } -//======================================================================= -// function : OutLVEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::OutLVEnd() const { return (myFlags & EMaskOutLVEnd) != 0; } -//======================================================================= -// function : OutLVEnd -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::OutLVEnd(const Standard_Boolean B) { @@ -175,20 +133,14 @@ inline void HLRBRep_EdgeData::OutLVEnd(const Standard_Boolean B) myFlags &= ~EMaskOutLVEnd; } -//======================================================================= -// function : CutAtSta -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::CutAtSta() const { return (myFlags & EMaskCutAtSta) != 0; } -//======================================================================= -// function : CutAtSta -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::CutAtSta(const Standard_Boolean B) { @@ -198,20 +150,14 @@ inline void HLRBRep_EdgeData::CutAtSta(const Standard_Boolean B) myFlags &= ~EMaskCutAtSta; } -//======================================================================= -// function : CutAtEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::CutAtEnd() const { return (myFlags & EMaskCutAtEnd) != 0; } -//======================================================================= -// function : CutAtEnd -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::CutAtEnd(const Standard_Boolean B) { @@ -221,20 +167,14 @@ inline void HLRBRep_EdgeData::CutAtEnd(const Standard_Boolean B) myFlags &= ~EMaskCutAtEnd; } -//======================================================================= -// function : VerAtSta -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::VerAtSta() const { return (myFlags & EMaskVerAtSta) != 0; } -//======================================================================= -// function : VerAtSta -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::VerAtSta(const Standard_Boolean B) { @@ -244,20 +184,14 @@ inline void HLRBRep_EdgeData::VerAtSta(const Standard_Boolean B) myFlags &= ~EMaskVerAtSta; } -//======================================================================= -// function : VerAtEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::VerAtEnd() const { return (myFlags & EMaskVerAtEnd) != 0; } -//======================================================================= -// function : VerAtEnd -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::VerAtEnd(const Standard_Boolean B) { @@ -267,20 +201,14 @@ inline void HLRBRep_EdgeData::VerAtEnd(const Standard_Boolean B) myFlags &= ~EMaskVerAtEnd; } -//======================================================================= -// function : AutoIntersectionDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::AutoIntersectionDone() const { return (myFlags & EMaskIntDone) != 0; } -//======================================================================= -// function : AutoIntersectionDone -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::AutoIntersectionDone(const Standard_Boolean B) { @@ -290,20 +218,14 @@ inline void HLRBRep_EdgeData::AutoIntersectionDone(const Standard_Boolean B) myFlags &= ~EMaskIntDone; } -//======================================================================= -// function : Used -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeData::Used() const { return (myFlags & EMaskUsed) != 0; } -//======================================================================= -// function : Used -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::Used(const Standard_Boolean B) { @@ -313,100 +235,70 @@ inline void HLRBRep_EdgeData::Used(const Standard_Boolean B) myFlags &= ~EMaskUsed; } -//======================================================================= -// function : HideCount -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_EdgeData::HideCount() const { return myHideCount; } -//======================================================================= -// function : HideCount -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::HideCount(const Standard_Integer I) { myHideCount = I; } -//======================================================================= -// function : VSta -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_EdgeData::VSta() const { return myVSta; } -//======================================================================= -// function : VSta -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::VSta(const Standard_Integer I) { myVSta = I; } -//======================================================================= -// function : VEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_EdgeData::VEnd() const { return myVEnd; } -//======================================================================= -// function : VEnd -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeData::VEnd(const Standard_Integer I) { myVEnd = I; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline HLRAlgo_EdgeStatus& HLRBRep_EdgeData::Status() { return myStatus; } -//======================================================================= -// function : ChangeGeometry -// purpose : -//======================================================================= +//================================================================================================= inline HLRBRep_Curve& HLRBRep_EdgeData::ChangeGeometry() { return myGeometry; } -//======================================================================= -// function : Geometry -// purpose : -//======================================================================= +//================================================================================================= inline const HLRBRep_Curve& HLRBRep_EdgeData::Geometry() const { return myGeometry; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal HLRBRep_EdgeData::Tolerance() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeInterferenceTool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeInterferenceTool.lxx index fd42fe94d1..ecec262cb7 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeInterferenceTool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeInterferenceTool.lxx @@ -16,50 +16,35 @@ #include -//======================================================================= -// function : InitVertices -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeInterferenceTool::InitVertices() { cur = 0; } -//======================================================================= -// function : MoreVertices -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeInterferenceTool::MoreVertices() const { return cur < 2; } -//======================================================================= -// function : NextVertex -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_EdgeInterferenceTool::NextVertex() { cur++; } -//======================================================================= -// function : CurrentVertex -// purpose : -//======================================================================= +//================================================================================================= inline const HLRAlgo_Intersection& HLRBRep_EdgeInterferenceTool::CurrentVertex() const { return inter[cur]; } -//======================================================================= -// function : CurrentOrientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation HLRBRep_EdgeInterferenceTool::CurrentOrientation() const { @@ -69,30 +54,21 @@ inline TopAbs_Orientation HLRBRep_EdgeInterferenceTool::CurrentOrientation() con return TopAbs_REVERSED; } -//======================================================================= -// function : CurrentParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_EdgeInterferenceTool::CurrentParameter() const { return inter[cur].Parameter(); } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_EdgeInterferenceTool::IsPeriodic() const { return Standard_False; } -//======================================================================= -// function : ParameterOfInterference -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_EdgeInterferenceTool::ParameterOfInterference( const HLRAlgo_Interference& I) const diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceData.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceData.lxx index c804c7ca89..f65cfb82b2 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceData.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Selected -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Selected() const { return (myFlags & (Standard_Integer)FMaskSelected) != 0; } -//======================================================================= -// function : Selected -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Selected(const Standard_Boolean B) { @@ -37,20 +31,14 @@ inline void HLRBRep_FaceData::Selected(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskSelected); } -//======================================================================= -// function : Back -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Back() const { return (myFlags & (Standard_Integer)FMaskBack) != 0; } -//======================================================================= -// function : Back -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Back(const Standard_Boolean B) { @@ -60,20 +48,14 @@ inline void HLRBRep_FaceData::Back(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskBack); } -//======================================================================= -// function : Side -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Side() const { return (myFlags & (Standard_Integer)FMaskSide) != 0; } -//======================================================================= -// function : Side -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Side(const Standard_Boolean B) { @@ -83,20 +65,14 @@ inline void HLRBRep_FaceData::Side(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskSide); } -//======================================================================= -// function : Closed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Closed() const { return (myFlags & (Standard_Integer)FMaskClosed) != 0; } -//======================================================================= -// function : Closed -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Closed(const Standard_Boolean B) { @@ -106,20 +82,14 @@ inline void HLRBRep_FaceData::Closed(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskClosed); } -//======================================================================= -// function : Hiding -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Hiding() const { return (myFlags & (Standard_Integer)FMaskHiding) != 0; } -//======================================================================= -// function : Hiding -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Hiding(const Standard_Boolean B) { @@ -129,20 +99,14 @@ inline void HLRBRep_FaceData::Hiding(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskHiding); } -//======================================================================= -// function : Simple -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Simple() const { return (myFlags & (Standard_Integer)FMaskSimple) != 0; } -//======================================================================= -// function : Simple -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Simple(const Standard_Boolean B) { @@ -152,20 +116,14 @@ inline void HLRBRep_FaceData::Simple(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskSimple); } -//======================================================================= -// function : Cut -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Cut() const { return (myFlags & (Standard_Integer)FMaskCut) != 0; } -//======================================================================= -// function : Cut -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Cut(const Standard_Boolean B) { @@ -175,20 +133,14 @@ inline void HLRBRep_FaceData::Cut(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskCut); } -//======================================================================= -// function : WithOutL -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::WithOutL() const { return (myFlags & (Standard_Integer)FMaskWithOutL) != 0; } -//======================================================================= -// function : WithOutL -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::WithOutL(const Standard_Boolean B) { @@ -198,20 +150,14 @@ inline void HLRBRep_FaceData::WithOutL(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskWithOutL); } -//======================================================================= -// function : Plane -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Plane() const { return (myFlags & (Standard_Integer)FMaskPlane) != 0; } -//======================================================================= -// function : Plane -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Plane(const Standard_Boolean B) { @@ -221,20 +167,14 @@ inline void HLRBRep_FaceData::Plane(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskPlane); } -//======================================================================= -// function : Cylinder -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Cylinder() const { return (myFlags & (Standard_Integer)FMaskCylinder) != 0; } -//======================================================================= -// function : Cylinder -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Cylinder(const Standard_Boolean B) { @@ -244,20 +184,14 @@ inline void HLRBRep_FaceData::Cylinder(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskCylinder); } -//======================================================================= -// function : Cone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Cone() const { return (myFlags & (Standard_Integer)FMaskCone) != 0; } -//======================================================================= -// function : Cone -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Cone(const Standard_Boolean B) { @@ -267,20 +201,14 @@ inline void HLRBRep_FaceData::Cone(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskCone); } -//======================================================================= -// function : Sphere -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Sphere() const { return (myFlags & (Standard_Integer)FMaskSphere) != 0; } -//======================================================================= -// function : Sphere -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Sphere(const Standard_Boolean B) { @@ -290,20 +218,14 @@ inline void HLRBRep_FaceData::Sphere(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskSphere); } -//======================================================================= -// function : Torus -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceData::Torus() const { return (myFlags & (Standard_Integer)FMaskTorus) != 0; } -//======================================================================= -// function : Torus -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Torus(const Standard_Boolean B) { @@ -313,40 +235,28 @@ inline void HLRBRep_FaceData::Torus(const Standard_Boolean B) myFlags &= ~((Standard_Integer)FMaskTorus); } -//======================================================================= -// function : Size -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_FaceData::Size() const { return mySize; } -//======================================================================= -// function : Size -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Size(const Standard_Real S) { mySize = S; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation HLRBRep_FaceData::Orientation() const { return ((TopAbs_Orientation)(myFlags & (Standard_Integer)EMaskOrient)); } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceData::Orientation(const TopAbs_Orientation O) { @@ -354,30 +264,21 @@ inline void HLRBRep_FaceData::Orientation(const TopAbs_Orientation O) myFlags |= ((Standard_Integer)O & (Standard_Integer)EMaskOrient); } -//======================================================================= -// function : Wires -// purpose : -//======================================================================= +//================================================================================================= inline Handle(HLRAlgo_WiresBlock)& HLRBRep_FaceData::Wires() { return myWires; } -//======================================================================= -// function : Geometry -// purpose : -//======================================================================= +//================================================================================================= inline HLRBRep_Surface& HLRBRep_FaceData::Geometry() { return myGeometry; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal HLRBRep_FaceData::Tolerance() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceIterator.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceIterator.lxx index ca967f84de..31deaa814d 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceIterator.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_FaceIterator.lxx @@ -17,40 +17,28 @@ #include #include -//======================================================================= -// function : MoreEdge -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::MoreEdge() const { return iWire <= nbWires; } -//======================================================================= -// function : BeginningOfWire -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::BeginningOfWire() const { return iEdge == 1; } -//======================================================================= -// function : EndOfWire -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::EndOfWire() const { return iEdge == nbEdges; } -//======================================================================= -// function : SkipWire -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_FaceIterator::SkipWire() { @@ -58,70 +46,49 @@ inline void HLRBRep_FaceIterator::SkipWire() NextEdge(); } -//======================================================================= -// function : Wire -// purpose : -//======================================================================= +//================================================================================================= inline Handle(HLRAlgo_EdgesBlock) HLRBRep_FaceIterator::Wire() const { return myWires->Wire(iWire); } -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_FaceIterator::Edge() const { return myEdges->Edge(iEdge); } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation HLRBRep_FaceIterator::Orientation() const { return myEdges->Orientation(iEdge); } -//======================================================================= -// function : OutLine -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::OutLine() const { return myEdges->OutLine(iEdge); } -//======================================================================= -// function : Internal -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::Internal() const { return myEdges->Internal(iEdge); } -//======================================================================= -// function : Double -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::Double() const { return myEdges->Double(iEdge); } -//======================================================================= -// function : IsoLine -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_FaceIterator::IsoLine() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_HLRToShape.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_HLRToShape.lxx index 5c94899500..8a4318cb27 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_HLRToShape.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_HLRToShape.lxx @@ -16,220 +16,154 @@ #include -//======================================================================= -// function : VCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::VCompound() { return InternalCompound(5, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : VCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::VCompound(const TopoDS_Shape& S) { return InternalCompound(5, Standard_True, S); } -//======================================================================= -// function : Rg1LineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::Rg1LineVCompound() { return InternalCompound(3, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : Rg1LineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::Rg1LineVCompound(const TopoDS_Shape& S) { return InternalCompound(3, Standard_True, S); } -//======================================================================= -// function : RgNLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::RgNLineVCompound() { return InternalCompound(4, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : RgNLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::RgNLineVCompound(const TopoDS_Shape& S) { return InternalCompound(4, Standard_True, S); } -//======================================================================= -// function : OutLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::OutLineVCompound() { return InternalCompound(2, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : OutLineVCompound3d -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::OutLineVCompound3d() { return InternalCompound(2, Standard_True, TopoDS_Shape(), Standard_True); } -//======================================================================= -// function : OutLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::OutLineVCompound(const TopoDS_Shape& S) { return InternalCompound(2, Standard_True, S); } -//======================================================================= -// function : IsoLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::IsoLineVCompound() { return InternalCompound(1, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : IsoLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::IsoLineVCompound(const TopoDS_Shape& S) { return InternalCompound(1, Standard_True, S); } -//======================================================================= -// function : HCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::HCompound() { return InternalCompound(5, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : HCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::HCompound(const TopoDS_Shape& S) { return InternalCompound(5, Standard_False, S); } -//======================================================================= -// function : Rg1LineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::Rg1LineHCompound() { return InternalCompound(3, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : Rg1LineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::Rg1LineHCompound(const TopoDS_Shape& S) { return InternalCompound(3, Standard_False, S); } -//======================================================================= -// function : RgNLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::RgNLineHCompound() { return InternalCompound(4, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : RgNLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::RgNLineHCompound(const TopoDS_Shape& S) { return InternalCompound(4, Standard_False, S); } -//======================================================================= -// function : OutLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::OutLineHCompound() { return InternalCompound(2, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : OutLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::OutLineHCompound(const TopoDS_Shape& S) { return InternalCompound(2, Standard_False, S); } -//======================================================================= -// function : IsoLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::IsoLineHCompound() { return InternalCompound(1, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : IsoLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::IsoLineHCompound(const TopoDS_Shape& S) { return InternalCompound(1, Standard_False, S); } -//======================================================================= -// function : CompoundOfEdges -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::CompoundOfEdges(const HLRBRep_TypeOfResultingEdge type, const Standard_Boolean visible, @@ -238,10 +172,7 @@ inline TopoDS_Shape HLRBRep_HLRToShape::CompoundOfEdges(const HLRBRep_TypeOfResu return InternalCompound(type, visible, TopoDS_Shape(), In3d); } -//======================================================================= -// function : CompoundOfEdges -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_HLRToShape::CompoundOfEdges(const TopoDS_Shape& S, const HLRBRep_TypeOfResultingEdge type, diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_PolyHLRToShape.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_PolyHLRToShape.lxx index 9d9dcd7ac6..9db3227907 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_PolyHLRToShape.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_PolyHLRToShape.lxx @@ -16,180 +16,126 @@ #include -//======================================================================= -// function : Show -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_PolyHLRToShape::Show() { myHideMode = Standard_False; } -//======================================================================= -// function : Hide -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_PolyHLRToShape::Hide() { myHideMode = Standard_True; } -//======================================================================= -// function : VCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::VCompound() { return InternalCompound(4, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : VCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::VCompound(const TopoDS_Shape& S) { return InternalCompound(4, Standard_True, S); } -//======================================================================= -// function : Rg1LineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineVCompound() { return InternalCompound(2, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : Rg1LineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineVCompound(const TopoDS_Shape& S) { return InternalCompound(2, Standard_True, S); } -//======================================================================= -// function : RgNLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineVCompound() { return InternalCompound(3, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : RgNLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineVCompound(const TopoDS_Shape& S) { return InternalCompound(3, Standard_True, S); } -//======================================================================= -// function : OutLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineVCompound() { return InternalCompound(1, Standard_True, TopoDS_Shape()); } -//======================================================================= -// function : OutLineVCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineVCompound(const TopoDS_Shape& S) { return InternalCompound(1, Standard_True, S); } -//======================================================================= -// function : HCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::HCompound() { return InternalCompound(4, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : HCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::HCompound(const TopoDS_Shape& S) { return InternalCompound(4, Standard_False, S); } -//======================================================================= -// function : Rg1LineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineHCompound() { return InternalCompound(2, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : Rg1LineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineHCompound(const TopoDS_Shape& S) { return InternalCompound(2, Standard_False, S); } -//======================================================================= -// function : RgNLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineHCompound() { return InternalCompound(3, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : RgNLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineHCompound(const TopoDS_Shape& S) { return InternalCompound(3, Standard_False, S); } -//======================================================================= -// function : OutLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineHCompound() { return InternalCompound(1, Standard_False, TopoDS_Shape()); } -//======================================================================= -// function : OutLineHCompound -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineHCompound(const TopoDS_Shape& S) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_SLPropsATool.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_SLPropsATool.lxx index d080d019f0..4ad6d55402 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_SLPropsATool.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_SLPropsATool.lxx @@ -18,10 +18,7 @@ #include #include -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_SLPropsATool::Value(const Standard_Address A, const Standard_Real U, @@ -31,10 +28,7 @@ inline void HLRBRep_SLPropsATool::Value(const Standard_Address A, P = ((HLRBRep_Surface*)A)->Value(U, V); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_SLPropsATool::D1(const Standard_Address A, const Standard_Real U, @@ -46,10 +40,7 @@ inline void HLRBRep_SLPropsATool::D1(const Standard_Address A, ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_SLPropsATool::D2(const Standard_Address A, const Standard_Real U, @@ -64,10 +55,7 @@ inline void HLRBRep_SLPropsATool::D2(const Standard_Address A, ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec HLRBRep_SLPropsATool::DN(const Standard_Address A, const Standard_Real U, @@ -78,20 +66,14 @@ inline gp_Vec HLRBRep_SLPropsATool::DN(const Standard_Address A, return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_SLPropsATool::Continuity(const Standard_Address) { return 2; } // et boum ! cky le 27 - 04 - 1993 -//======================================================================= -// function : Bounds -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_SLPropsATool::Bounds(const Standard_Address, Standard_Real& U1, diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ShapeBounds.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ShapeBounds.lxx index 1777dffb0c..ae4819cf79 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ShapeBounds.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ShapeBounds.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : HLRBRep_ShapeBounds -// purpose : -//======================================================================= +//================================================================================================= inline HLRBRep_ShapeBounds::HLRBRep_ShapeBounds() : myNbIso(0), @@ -30,60 +27,42 @@ inline HLRBRep_ShapeBounds::HLRBRep_ShapeBounds() { } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_ShapeBounds::Shape(const Handle(HLRTopoBRep_OutLiner)& S) { myShape = S; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(HLRTopoBRep_OutLiner)& HLRBRep_ShapeBounds::Shape() const { return myShape; } -//======================================================================= -// function : ShapeData -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_ShapeBounds::ShapeData(const Handle(Standard_Transient)& SD) { myShapeData = SD; } -//======================================================================= -// function : ShapeData -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Standard_Transient)& HLRBRep_ShapeBounds::ShapeData() const { return myShapeData; } -//======================================================================= -// function : NbOfIso -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_ShapeBounds::NbOfIso(const Standard_Integer nbIso) { myNbIso = nbIso; } -//======================================================================= -// function : NbOfIso -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_ShapeBounds::NbOfIso() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Surface.lxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Surface.lxx index ca96793193..630726ff20 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Surface.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Surface.lxx @@ -17,170 +17,119 @@ #include #include -//======================================================================= -// function : Surface -// purpose : -//======================================================================= +//================================================================================================= inline BRepAdaptor_Surface& HLRBRep_Surface::Surface() { return mySurf; } -//======================================================================= -// function : FirstUParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::FirstUParameter() const { return HLRBRep_BSurfaceTool::FirstUParameter(mySurf); } -//======================================================================= -// function : LastUParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::LastUParameter() const { return HLRBRep_BSurfaceTool::LastUParameter(mySurf); } -//======================================================================= -// function : FirstVParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::FirstVParameter() const { return HLRBRep_BSurfaceTool::FirstVParameter(mySurf); } -//======================================================================= -// function : LastVParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::LastVParameter() const { return HLRBRep_BSurfaceTool::LastVParameter(mySurf); } -//======================================================================= -// function : UContinuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_Surface::UContinuity() const { return HLRBRep_BSurfaceTool::UContinuity(mySurf); } -//======================================================================= -// function : VContinuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape HLRBRep_Surface::VContinuity() const { return HLRBRep_BSurfaceTool::VContinuity(mySurf); } -//======================================================================= -// function : NbUIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbUIntervals(const GeomAbs_Shape S) { return HLRBRep_BSurfaceTool::NbUIntervals(mySurf, S); } -//======================================================================= -// function : NbVIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbVIntervals(const GeomAbs_Shape S) { return HLRBRep_BSurfaceTool::NbVIntervals(mySurf, S); } -//======================================================================= -// function : IsUClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Surface::IsUClosed() const { return HLRBRep_BSurfaceTool::IsUClosed(mySurf); } -//======================================================================= -// function : IsVClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Surface::IsVClosed() const { return HLRBRep_BSurfaceTool::IsVClosed(mySurf); } -//======================================================================= -// function : IsUPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Surface::IsUPeriodic() const { return HLRBRep_BSurfaceTool::IsUPeriodic(mySurf); } -//======================================================================= -// function : UPeriod -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::UPeriod() const { return HLRBRep_BSurfaceTool::UPeriod(mySurf); } -//======================================================================= -// function : IsVPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRBRep_Surface::IsVPeriodic() const { return HLRBRep_BSurfaceTool::IsVPeriodic(mySurf); } -//======================================================================= -// function : VPeriod -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRBRep_Surface::VPeriod() const { return HLRBRep_BSurfaceTool::VPeriod(mySurf); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Surface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const { HLRBRep_BSurfaceTool::D0(mySurf, U, V, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Surface::D1(const Standard_Real U, const Standard_Real V, @@ -191,10 +140,7 @@ inline void HLRBRep_Surface::D1(const Standard_Real U, HLRBRep_BSurfaceTool::D1(mySurf, U, V, P, D1U, D1V); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Surface::D2(const Standard_Real U, const Standard_Real V, @@ -208,10 +154,7 @@ inline void HLRBRep_Surface::D2(const Standard_Real U, HLRBRep_BSurfaceTool::D2(mySurf, U, V, P, D1U, D1V, D2U, D2V, D2UV); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void HLRBRep_Surface::D3(const Standard_Real U, const Standard_Real V, @@ -229,10 +172,7 @@ inline void HLRBRep_Surface::D3(const Standard_Real U, HLRBRep_BSurfaceTool::D3(mySurf, U, V, P, D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec HLRBRep_Surface::DN(const Standard_Real U, const Standard_Real V, @@ -242,120 +182,84 @@ inline gp_Vec HLRBRep_Surface::DN(const Standard_Real U, return HLRBRep_BSurfaceTool::DN(mySurf, U, V, Nu, Nv); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_SurfaceType HLRBRep_Surface::GetType() const { return myType; } -//======================================================================= -// function : Cylinder -// purpose : -//======================================================================= +//================================================================================================= inline gp_Cylinder HLRBRep_Surface::Cylinder() const { return HLRBRep_BSurfaceTool::Cylinder(mySurf); } -//======================================================================= -// function : Cone -// purpose : -//======================================================================= +//================================================================================================= inline gp_Cone HLRBRep_Surface::Cone() const { return HLRBRep_BSurfaceTool::Cone(mySurf); } -//======================================================================= -// function : Sphere -// purpose : -//======================================================================= +//================================================================================================= inline gp_Sphere HLRBRep_Surface::Sphere() const { return HLRBRep_BSurfaceTool::Sphere(mySurf); } -//======================================================================= -// function : Torus -// purpose : -//======================================================================= +//================================================================================================= inline gp_Torus HLRBRep_Surface::Torus() const { return HLRBRep_BSurfaceTool::Torus(mySurf); } -//======================================================================= -// function : UDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::UDegree() const { return HLRBRep_BSurfaceTool::UDegree(mySurf); } -//======================================================================= -// function : NbUPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbUPoles() const { return HLRBRep_BSurfaceTool::NbUPoles(mySurf); } -//======================================================================= -// function : VDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::VDegree() const { return HLRBRep_BSurfaceTool::VDegree(mySurf); } -//======================================================================= -// function : NbVPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbVPoles() const { return HLRBRep_BSurfaceTool::NbVPoles(mySurf); } -//======================================================================= -// function : NbUKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbUKnots() const { return HLRBRep_BSurfaceTool::NbUKnots(mySurf); } -//======================================================================= -// function : NbVKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer HLRBRep_Surface::NbVKnots() const { return HLRBRep_BSurfaceTool::NbVKnots(mySurf); } -//======================================================================= -// function : Axis -// purpose : -//======================================================================= +//================================================================================================= inline gp_Ax1 HLRBRep_Surface::Axis() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_Data.lxx b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_Data.lxx index 4c5a7cf78b..e693a68a26 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_Data.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_Data.lxx @@ -21,120 +21,84 @@ #include #include -//======================================================================= -// function : EdgeSplE -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_Data::EdgeSplE(const TopoDS_Edge& E) const { return mySplE(E); } -//======================================================================= -// function : FaceIntL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_Data::FaceIntL(const TopoDS_Face& F) const { return myData(F).FaceIntL(); } -//======================================================================= -// function : FaceOutL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_Data::FaceOutL(const TopoDS_Face& F) const { return myData(F).FaceOutL(); } -//======================================================================= -// function : FaceIsoL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_Data::FaceIsoL(const TopoDS_Face& F) const { return myData(F).FaceIsoL(); } -//======================================================================= -// function : IsOutV -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTopoBRep_Data::IsOutV(const TopoDS_Vertex& V) const { return myOutV.Contains(V); } -//======================================================================= -// function : IsIntV -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTopoBRep_Data::IsIntV(const TopoDS_Vertex& V) const { return myIntV.Contains(V); } -//======================================================================= -// function : AddOutV -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTopoBRep_Data::AddOutV(const TopoDS_Vertex& V) { myOutV.Add(V); } -//======================================================================= -// function : AddIntV -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTopoBRep_Data::AddIntV(const TopoDS_Vertex& V) { myIntV.Add(V); } -//======================================================================= -// function : MoreEdge -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTopoBRep_Data::MoreEdge() const { return myEIterator.More(); } -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& HLRTopoBRep_Data::Edge() const { return TopoDS::Edge(myEIterator.Key()); } -//======================================================================= -// function : MoreVertex -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean HLRTopoBRep_Data::MoreVertex() const { return myVIterator.More(); } -//======================================================================= -// function : NextVertex -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTopoBRep_Data::NextVertex() { diff --git a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_FaceData.lxx b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_FaceData.lxx index 889f9ee194..03e1f3e03d 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_FaceData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_FaceData.lxx @@ -14,60 +14,42 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : FaceIntL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_FaceData::FaceIntL() const { return myIntL; } -//======================================================================= -// function : FaceOutL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_FaceData::FaceOutL() const { return myOutL; } -//======================================================================= -// function : FaceIsoL -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_ListOfShape& HLRTopoBRep_FaceData::FaceIsoL() const { return myIsoL; } -//======================================================================= -// function : AddIntL -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_ListOfShape& HLRTopoBRep_FaceData::AddIntL() { return myIntL; } -//======================================================================= -// function : AddOutL -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_ListOfShape& HLRTopoBRep_FaceData::AddOutL() { return myOutL; } -//======================================================================= -// function : AddIsoL -// purpose : -//======================================================================= +//================================================================================================= inline TopTools_ListOfShape& HLRTopoBRep_FaceData::AddIsoL() { diff --git a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.lxx b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.lxx index 9bd3918982..a2d91e3b2b 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.lxx @@ -14,50 +14,35 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : OriginalShape -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTopoBRep_OutLiner::OriginalShape(const TopoDS_Shape& OriS) { myOriginalShape = OriS; } -//======================================================================= -// function : OriginalShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape& HLRTopoBRep_OutLiner::OriginalShape() { return myOriginalShape; } -//======================================================================= -// function : OutLinedShape -// purpose : -//======================================================================= +//================================================================================================= inline void HLRTopoBRep_OutLiner::OutLinedShape(const TopoDS_Shape& OutS) { myOutLinedShape = OutS; } -//======================================================================= -// function : OutLinedShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape& HLRTopoBRep_OutLiner::OutLinedShape() { return myOutLinedShape; } -//======================================================================= -// function : DataStructure -// purpose : -//======================================================================= +//================================================================================================= inline HLRTopoBRep_Data& HLRTopoBRep_OutLiner::DataStructure() { diff --git a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_VData.lxx b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_VData.lxx index 02d9186540..802c225b32 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_VData.lxx +++ b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_VData.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : HLRTopoBRep_VData -// purpose : -//======================================================================= +//================================================================================================= inline HLRTopoBRep_VData::HLRTopoBRep_VData() : myParameter(0.0) { } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real HLRTopoBRep_VData::Parameter() const { return myParameter; } -//======================================================================= -// function : Vertex -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& HLRTopoBRep_VData::Vertex() const { diff --git a/src/ModelingAlgorithms/TKHLR/Intrv/Intrv_Interval.lxx b/src/ModelingAlgorithms/TKHLR/Intrv/Intrv_Interval.lxx index c14c812d87..743c3b4869 100644 --- a/src/ModelingAlgorithms/TKHLR/Intrv/Intrv_Interval.lxx +++ b/src/ModelingAlgorithms/TKHLR/Intrv/Intrv_Interval.lxx @@ -29,50 +29,35 @@ // ***--------* IsJustAfter // ***---* IsAfter -//======================================================================= -// function : Start -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Intrv_Interval::Start() const { return myStart; } -//======================================================================= -// function : End -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Intrv_Interval::End() const { return myEnd; } -//======================================================================= -// function : TolStart -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal Intrv_Interval::TolStart() const { return myTolStart; } -//======================================================================= -// function : TolEnd -// purpose : -//======================================================================= +//================================================================================================= inline Standard_ShortReal Intrv_Interval::TolEnd() const { return myTolEnd; } -//======================================================================= -// function : Bounds -// purpose : -//======================================================================= +//================================================================================================= inline void Intrv_Interval::Bounds(Standard_Real& Start, Standard_ShortReal& TolStart, @@ -85,10 +70,7 @@ inline void Intrv_Interval::Bounds(Standard_Real& Start, TolEnd = myTolEnd; } -//======================================================================= -// function : SetStart -// purpose : -//======================================================================= +//================================================================================================= inline void Intrv_Interval::SetStart(const Standard_Real Start, const Standard_ShortReal TolStart) { @@ -139,10 +121,7 @@ inline void Intrv_Interval::CutAtStart(const Standard_Real Start, const Standard } } -//======================================================================= -// function : SetEnd -// purpose : -//======================================================================= +//================================================================================================= inline void Intrv_Interval::SetEnd(const Standard_Real End, const Standard_ShortReal TolEnd) { @@ -192,10 +171,7 @@ inline void Intrv_Interval::CutAtEnd(const Standard_Real End, const Standard_Sho } } -//======================================================================= -// function : AreFused -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean AreFused(const Standard_Real c1, const Standard_ShortReal t1, @@ -205,10 +181,7 @@ inline Standard_Boolean AreFused(const Standard_Real c1, return t1 + t2 >= Abs(c1 - c2); } -//======================================================================= -// function : IsProbablyEmpty -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Intrv_Interval::IsProbablyEmpty() const { diff --git a/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.gxx b/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.gxx index f4812ea2c3..05bc8687d3 100644 --- a/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.gxx +++ b/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.gxx @@ -14,19 +14,15 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -//function : TopBas_Interference -//purpose : -//======================================================================= +//================================================================================================= + TopBas_Interference::TopBas_Interference() { } -//======================================================================= -//function : TopBas_Interference -//purpose : -//======================================================================= +//================================================================================================= + TopBas_Interference::TopBas_Interference(const TheSubShape& Inters, const TheShape& Bound, diff --git a/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.lxx b/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.lxx index f9ebe62f7e..1bd8be4e2c 100644 --- a/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.lxx +++ b/src/ModelingAlgorithms/TKHLR/TopBas/TopBas_Interference.lxx @@ -12,120 +12,84 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Intersection -// purpose : -//======================================================================= +//================================================================================================= inline void TopBas_Interference::Intersection(const TheSubShape& I) { myIntersection = I; } -//======================================================================= -// function : Boundary -// purpose : -//======================================================================= +//================================================================================================= inline void TopBas_Interference::Boundary(const TheShape& B) { myBoundary = B; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline void TopBas_Interference::Orientation(const TopAbs_Orientation Or) { myOrientation = Or; } -//======================================================================= -// function : Transition -// purpose : -//======================================================================= +//================================================================================================= inline void TopBas_Interference::Transition(const TopAbs_Orientation Or) { myTransition = Or; } -//======================================================================= -// function : BoundaryTransition -// purpose : -//======================================================================= +//================================================================================================= inline void TopBas_Interference::BoundaryTransition(const TopAbs_Orientation Or) { myBTransition = Or; } -//======================================================================= -// function : Intersection -// purpose : -//======================================================================= +//================================================================================================= inline const TheSubShape& TopBas_Interference::Intersection() const { return myIntersection; } -//======================================================================= -// function : ChangeIntersection -// purpose : -//======================================================================= +//================================================================================================= inline TheSubShape& TopBas_Interference::ChangeIntersection() { return myIntersection; } -//======================================================================= -// function : Boundary -// purpose : -//======================================================================= +//================================================================================================= inline const TheShape& TopBas_Interference::Boundary() const { return myBoundary; } -//======================================================================= -// function : ChangeBoundary -// purpose : -//======================================================================= +//================================================================================================= inline TheShape& TopBas_Interference::ChangeBoundary() { return myBoundary; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation TopBas_Interference::Orientation() const { return myOrientation; } -//======================================================================= -// function : Transition -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation TopBas_Interference::Transition() const { return myTransition; } -//======================================================================= -// function : BoundaryTransition -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation TopBas_Interference::BoundaryTransition() const { diff --git a/src/ModelingAlgorithms/TKHelix/HelixBRep/HelixBRep_BuilderHelix.cxx b/src/ModelingAlgorithms/TKHelix/HelixBRep/HelixBRep_BuilderHelix.cxx index 772d5e3fc0..531c94c221 100644 --- a/src/ModelingAlgorithms/TKHelix/HelixBRep/HelixBRep_BuilderHelix.cxx +++ b/src/ModelingAlgorithms/TKHelix/HelixBRep/HelixBRep_BuilderHelix.cxx @@ -541,28 +541,22 @@ void HelixBRep_BuilderHelix::SmoothingEdges(TopoDS_Edge& thePrev, TopoDS_Edge& t } } -//======================================================================= -// function : ErrorStatus -// purpose : -//======================================================================= +//================================================================================================= + Standard_Integer HelixBRep_BuilderHelix::ErrorStatus() const { return myErrorStatus; } -//======================================================================= -// function : WarningStatus -// purpose : -//======================================================================= +//================================================================================================= + Standard_Integer HelixBRep_BuilderHelix::WarningStatus() const { return myWarningStatus; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= + const TopoDS_Shape& HelixBRep_BuilderHelix::Shape() const { return myShape; diff --git a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Delaun.cxx b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Delaun.cxx index 16371015be..2b47cca9f9 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Delaun.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Delaun.cxx @@ -274,10 +274,8 @@ void BRepMesh_Delaun::perform(IMeshData::VectorOfInteger& theVertexIndices, compute(theVertexIndices); } -//======================================================================= -// function : superMesh -// purpose : Build the super mesh -//======================================================================= +//================================================================================================= + void BRepMesh_Delaun::superMesh(const Bnd_Box2d& theBox) { Standard_Real aMinX, aMinY, aMaxX, aMaxY; diff --git a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_Interval.lxx b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_Interval.lxx index c212065150..28b7db7f0c 100644 --- a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_Interval.lxx +++ b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_Interval.lxx @@ -14,60 +14,42 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : First -// purpose : -//======================================================================= +//================================================================================================= inline void BRepOffset_Interval::First(const Standard_Real U) { f = U; } -//======================================================================= -// function : Last -// purpose : -//======================================================================= +//================================================================================================= inline void BRepOffset_Interval::Last(const Standard_Real U) { l = U; } -//======================================================================= -// function : Type -// purpose : -//======================================================================= +//================================================================================================= inline void BRepOffset_Interval::Type(const ChFiDS_TypeOfConcavity T) { type = T; } -//======================================================================= -// function : First -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepOffset_Interval::First() const { return f; } -//======================================================================= -// function : Last -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepOffset_Interval::Last() const { return l; } -//======================================================================= -// function : Type -// purpose : -//======================================================================= +//================================================================================================= inline ChFiDS_TypeOfConcavity BRepOffset_Interval::Type() const { diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx index 0ae8f87c89..1307d4ba47 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx @@ -83,10 +83,7 @@ void BRepPrim_Builder::MakeEdge(TopoDS_Edge& E, const gp_Lin& L) const myBuilder.MakeEdge(E, new Geom_Line(L), Precision::Confusion()); } -//======================================================================= -// function : MakeEdge -// purpose : Make a Circular Edge -//======================================================================= +//================================================================================================= void BRepPrim_Builder::MakeEdge(TopoDS_Edge& E, const gp_Circ& C) const { @@ -201,10 +198,7 @@ void BRepPrim_Builder::AddWireEdge(TopoDS_Wire& W, myBuilder.Add(W, EE); } -//======================================================================= -// function : AddFaceWire -// purpose : Add a Wire to a Face -//======================================================================= +//================================================================================================= void BRepPrim_Builder::AddFaceWire(TopoDS_Face& F, const TopoDS_Wire& W) const { diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.lxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.lxx index 0fd67d590f..f6b5380b57 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.lxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Builder -// purpose : -//======================================================================= +//================================================================================================= inline const BRep_Builder& BRepPrim_Builder::Builder() const { diff --git a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Builder.lxx b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Builder.lxx index 93e92d8c92..3816838389 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Builder.lxx +++ b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Builder.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Builder -// purpose : -//======================================================================= +//================================================================================================= inline const BRep_Builder& BRepSweep_Builder::Builder() const { diff --git a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Iterator.lxx b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Iterator.lxx index 52fbf9d399..4abc796563 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Iterator.lxx +++ b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_Iterator.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepSweep_Iterator::More() const { return myIterator.More(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& BRepSweep_Iterator::Value() const { return myIterator.Value(); } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation BRepSweep_Iterator::Orientation() const { diff --git a/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShape.lxx b/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShape.lxx index ec6691d548..6963d421d6 100644 --- a/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShape.lxx +++ b/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShape.lxx @@ -14,50 +14,35 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Sweep_NumShape::Index() const { return myIndex; } -//======================================================================= -// function : Type -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_ShapeEnum Sweep_NumShape::Type() const { return myType; } -//======================================================================= -// function : Closed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Sweep_NumShape::Closed() const { return myClosed; } -//======================================================================= -// function : BegInfinite -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Sweep_NumShape::BegInfinite() const { return myBegInf; } -//======================================================================= -// function : EndInfinite -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Sweep_NumShape::EndInfinite() const { diff --git a/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShapeIterator.lxx b/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShapeIterator.lxx index d2e579652e..452ac59a9a 100644 --- a/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShapeIterator.lxx +++ b/src/ModelingAlgorithms/TKPrim/Sweep/Sweep_NumShapeIterator.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : More -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Sweep_NumShapeIterator::More() const { return myMore; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline const Sweep_NumShape& Sweep_NumShapeIterator::Value() const { return myCurrentNumShape; } -//======================================================================= -// function : Orientation -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_Orientation Sweep_NumShapeIterator::Orientation() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAlgo/ShapeAlgo_AlgoContainer.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAlgo/ShapeAlgo_AlgoContainer.lxx index 9bfdaa5c13..f5f6bae2b4 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAlgo/ShapeAlgo_AlgoContainer.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAlgo/ShapeAlgo_AlgoContainer.lxx @@ -15,20 +15,14 @@ #include -//======================================================================= -// function : SetToolContainer -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeAlgo_AlgoContainer::SetToolContainer(const Handle(ShapeAlgo_ToolContainer)& TC) { myTC = TC; } -//======================================================================= -// function : ToolContainer -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeAlgo_ToolContainer) ShapeAlgo_AlgoContainer::ToolContainer() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx index 290169d9be..92395e3bf3 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx @@ -17,10 +17,7 @@ #include #include -//======================================================================= -// function : SetFreeBound -// purpose : Sets contour -//======================================================================= +//================================================================================================= inline void ShapeAnalysis_FreeBoundData::SetFreeBound(const TopoDS_Wire& freebound) { @@ -72,10 +69,7 @@ inline void ShapeAnalysis_FreeBoundData::SetWidth(const Standard_Real width) // purpose : Adds notch on free bound with its maximum width //======================================================================= -//======================================================================= -// function : FreeBound -// purpose : Returns contour -//======================================================================= +//================================================================================================= inline TopoDS_Wire ShapeAnalysis_FreeBoundData::FreeBound() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBounds.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBounds.lxx index a9f9a08307..ee3b2ee56b 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBounds.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBounds.lxx @@ -17,20 +17,14 @@ // 25.12.98 pdn renaming methods GetWires and GetEdges to GetClosedWires and GetOpenWires // respectively -//======================================================================= -// function : GetClosedWires -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Compound& ShapeAnalysis_FreeBounds::GetClosedWires() const { return myWires; } -//======================================================================= -// function : GetOpenWires -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Compound& ShapeAnalysis_FreeBounds::GetOpenWires() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx index 5eb2b8ea97..6fa4c2310e 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : Shape -// purpose : Returns shape -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeAnalysis_FreeBoundsProperties::Shape() const { @@ -36,10 +33,7 @@ inline Standard_Boolean ShapeAnalysis_FreeBoundsProperties::IsLoaded() const return !(myShape.IsNull()); } -//======================================================================= -// function : Tolerance -// purpose : Returns tolerance -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_FreeBoundsProperties::Tolerance() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.cxx index 72b9933959..1abb1c86a3 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.cxx @@ -520,10 +520,7 @@ Standard_Boolean ShapeAnalysis_Surface::IsDegenerated(const gp_Pnt2d& p2d1, return du * du + dv * dv > max3d * max3d; } -//======================================================================= -// static : ComputeIso -// purpose : -//======================================================================= +//================================================================================================= static Handle(Geom_Curve) ComputeIso(const Handle(Geom_Surface)& surf, const Standard_Boolean utype, diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.lxx index fd0cd2e76b..13999f2395 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Surface.lxx @@ -14,60 +14,42 @@ #include #include -//======================================================================= -// function : Surface -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(Geom_Surface)& ShapeAnalysis_Surface::Surface() const { return mySurf; } -//======================================================================= -// function : TrueAdaptor3d -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(GeomAdaptor_Surface)& ShapeAnalysis_Surface::TrueAdaptor3d() const { return myAdSur; } -//======================================================================= -// function : Gap -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Surface::Gap() const { return myGap; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt ShapeAnalysis_Surface::Value(const Standard_Real u, const Standard_Real v) { return myAdSur->Value(u, v); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt ShapeAnalysis_Surface::Value(const gp_Pnt2d& p2d) { return myAdSur->Value(p2d.X(), p2d.Y()); } -//======================================================================= -// function : Bounds -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeAnalysis_Surface::Bounds(Standard_Real& ufirst, Standard_Real& ulast, @@ -80,20 +62,14 @@ inline void ShapeAnalysis_Surface::Bounds(Standard_Real& ufirst, vlast = myVL; } -//======================================================================= -// function : UCloseVal -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Surface::UCloseVal() const { return myUCloseVal; } -//======================================================================= -// function : VCloseVal -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Surface::VCloseVal() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.lxx index b0582912d7..774845cd49 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.lxx @@ -15,140 +15,98 @@ #include #include -//======================================================================= -// function : IsLoaded -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::IsLoaded() const { return !myWire.IsNull() && myWire->NbEdges() > 0; } -//======================================================================= -// function : IsReady -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::IsReady() const { return IsLoaded() && !myFace.IsNull(); } -//======================================================================= -// function : Precision -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Wire::Precision() const { return myPrecision; } -//======================================================================= -// function : WireData -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(ShapeExtend_WireData)& ShapeAnalysis_Wire::WireData() const { return myWire; } -//======================================================================= -// function : NbEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer ShapeAnalysis_Wire::NbEdges() const { return myWire.IsNull() ? 0 : myWire->NbEdges(); } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Face& ShapeAnalysis_Wire::Face() const { return myFace; } -//======================================================================= -// function : Surface -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(ShapeAnalysis_Surface)& ShapeAnalysis_Wire::Surface() const { return mySurf; } -//======================================================================= -// function : StatusOrder -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusOrder(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusOrder, Status); } -//======================================================================= -// function : StatusConnected -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusConnected(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusConnected, Status); } -//======================================================================= -// function : StatusEdgeCurves -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusEdgeCurves(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusEdgeCurves, Status); } -//======================================================================= -// function : StatusDegenerated -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusDegenerated(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusDegenerated, Status); } -//======================================================================= -// function : StatusClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusClosed(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusClosed, Status); } -//======================================================================= -// function : StatusSmall -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusSmall(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusSmall, Status); } -//======================================================================= -// function : StatusSelfIntersection -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusSelfIntersection( const ShapeExtend_Status Status) const @@ -156,100 +114,70 @@ inline Standard_Boolean ShapeAnalysis_Wire::StatusSelfIntersection( return ShapeExtend::DecodeStatus(myStatusSelfIntersection, Status); } -//======================================================================= -// function : StatusLacking -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusLacking(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusLacking, Status); } -//======================================================================= -// function : StatusGaps3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps3d(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusGaps3d, Status); } -//======================================================================= -// function : StatusGaps2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps2d(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusGaps2d, Status); } -//======================================================================= -// function : StatusCurveGaps -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusCurveGaps(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusCurveGaps, Status); } -//======================================================================= -// function : StatusLoop -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::StatusLoop(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatusLoop, Status); } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeAnalysis_Wire::LastCheckStatus(const ShapeExtend_Status Status) const { return ShapeExtend::DecodeStatus(myStatus, Status); } -//======================================================================= -// function : MinDistance3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Wire::MinDistance3d() const { return myMin3d; } -//======================================================================= -// function : MinDistance2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Wire::MinDistance2d() const { return myMin2d; } -//======================================================================= -// function : MaxDistance3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Wire::MaxDistance3d() const { return myMax3d; } -//======================================================================= -// function : MaxDistance2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeAnalysis_Wire::MaxDistance2d() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeConstruct/ShapeConstruct_Curve.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeConstruct/ShapeConstruct_Curve.cxx index 208c0644cd..bd8c87b9f9 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeConstruct/ShapeConstruct_Curve.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeConstruct/ShapeConstruct_Curve.cxx @@ -347,10 +347,8 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline(const Handle( return bspl; } -//======================================================================= -// function : FixKnots -// purpose : Fix coincided knots -//======================================================================= +//================================================================================================= + Standard_Boolean ShapeConstruct_Curve::FixKnots(Handle(TColStd_HArray1OfReal)& knots) { Standard_Boolean Fixed = Standard_False; @@ -370,10 +368,8 @@ Standard_Boolean ShapeConstruct_Curve::FixKnots(Handle(TColStd_HArray1OfReal)& k return Fixed; } -//======================================================================= -// function : FixKnots -// purpose : Fix coincided knots -//======================================================================= +//================================================================================================= + Standard_Boolean ShapeConstruct_Curve::FixKnots(TColStd_Array1OfReal& knots) { Standard_Boolean Fixed = Standard_False; diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_BSplineRestriction.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_BSplineRestriction.lxx index 9820068c3e..6b3761fb79 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_BSplineRestriction.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_BSplineRestriction.lxx @@ -11,30 +11,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetTol3d -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetTol3d(const Standard_Real Tol3d) { myTol3d = Tol3d; } -//======================================================================= -// function : SetTol2d -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetTol2d(const Standard_Real Tol2d) { myTol2d = Tol2d; } -//======================================================================= -// function : ModifyApproxSurfaceFlag -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxSurfaceFlag() { @@ -42,120 +33,84 @@ inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxSurfaceFlag return myApproxSurfaceFlag; } -//======================================================================= -// function : ModifyApproxCurve3dFlag -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve3dFlag() { return myApproxCurve3dFlag; } -//======================================================================= -// function : ModifyApproxCurve2dFlag -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve2dFlag() { return myApproxCurve2dFlag; } -//======================================================================= -// function : SetContinuity3d -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetContinuity3d(const GeomAbs_Shape Continuity3d) { myContinuity3d = Continuity3d; } -//======================================================================= -// function : SetContinuity2d -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetContinuity2d(const GeomAbs_Shape Continuity2d) { myContinuity2d = Continuity2d; } -//======================================================================= -// function : SetMaxDegree -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetMaxDegree(const Standard_Integer MaxDegree) { myMaxDegree = MaxDegree; } -//======================================================================= -// function : SetMaxNbSegments -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetMaxNbSegments(const Standard_Integer MaxNbSegments) { myNbMaxSeg = MaxNbSegments; } -//======================================================================= -// function : Curve3dError -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeCustom_BSplineRestriction::Curve3dError() const { return myCurve3dError; } -//======================================================================= -// function : Curve2dError -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeCustom_BSplineRestriction::Curve2dError() const { return myCurve2dError; } -//======================================================================= -// function : SurfaceError -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeCustom_BSplineRestriction::SurfaceError() const { return mySurfaceError; } -//======================================================================= -// function : SetPriority -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetPriority(const Standard_Boolean Degree) { myDeg = Degree; } -//======================================================================= -// function : SetConvRational -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetConvRational(const Standard_Boolean Rational) { myRational = Rational; } -//======================================================================= -// function : GetRestrictionParameters -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeCustom_RestrictionParameters) ShapeCustom_BSplineRestriction:: GetRestrictionParameters() const @@ -163,10 +118,7 @@ inline Handle(ShapeCustom_RestrictionParameters) ShapeCustom_BSplineRestriction: return myParameters; } -//======================================================================= -// function : SetRestrictionParameters -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeCustom_BSplineRestriction::SetRestrictionParameters( const Handle(ShapeCustom_RestrictionParameters)& aModes) diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_RestrictionParameters.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_RestrictionParameters.lxx index 97ddc35d9b..cef41dae8b 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_RestrictionParameters.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_RestrictionParameters.lxx @@ -13,157 +13,113 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GMaxDegree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeCustom_RestrictionParameters::GMaxDegree() { return myGMaxDegree; } -//======================================================================= -// function : GMaxSeg -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeCustom_RestrictionParameters::GMaxSeg() { return myGMaxSeg; } -//======================================================================= -// function : ConvertPlane -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertPlane() { return myConvPlane; } -//======================================================================= -// function : ConvertBezierSurf -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertBezierSurf() { return myConvBezierSurf; } -//======================================================================= -// function : ConvertRevolutionSurf -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertRevolutionSurf() { return myConvRevolSurf; } -//======================================================================= -// function : ConvertExtrusionSurf -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertExtrusionSurf() { return myConvExtrSurf; } -//======================================================================= -// function : ConvertOffsetSurf -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertOffsetSurf() { return myConvOffsetSurf; } -//======================================================================= -// function : SegmentSurfaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::SegmentSurfaceMode() { return mySegmentSurfaceMode; } -//======================================================================= -// function : ConvertCurve3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertCurve3d() { return myConvCurve3d; } -//======================================================================= -// function : ConvertOffsetCurv3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertOffsetCurv3d() { return myConvOffsetCurv3d; } -//======================================================================= -// function : ConvertCurve2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertCurve2d() { return myConvCurve2d; } -//======================================================================= -// function : ConvertOffsetCurv2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertOffsetCurv2d() { return myConvOffsetCurv2d; } -//======================================================================= -// function : ConvertConicalSurface -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertConicalSurf() { return myConvConicalSurf; } -//======================================================================= -// function : ConvertSphericalSurf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertSphericalSurf() { return myConvSphericalSurf; } -//======================================================================= -// function : ConvertToroidalSurf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertToroidalSurf() { return myConvCylindricalSurf; } -//======================================================================= -// function : ConvertCylindricalSurf -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean& ShapeCustom_RestrictionParameters::ConvertCylindricalSurf() { return myConvToroidalSurf; diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_ComplexCurve.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_ComplexCurve.lxx index 1f20b5c0d8..4b7f264766 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_ComplexCurve.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_ComplexCurve.lxx @@ -14,70 +14,49 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : ReversedParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeExtend_ComplexCurve::ReversedParameter(const Standard_Real U) const { return (1 - U); } -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeExtend_ComplexCurve::FirstParameter() const { return 0; } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeExtend_ComplexCurve::LastParameter() const { return 1; } -//======================================================================= -// function : IsClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeExtend_ComplexCurve::IsClosed() const { return myClosed; } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeExtend_ComplexCurve::IsPeriodic() const { return Standard_False; } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape ShapeExtend_ComplexCurve::Continuity() const { return GeomAbs_C0; } -//======================================================================= -// function : IsCN -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeExtend_ComplexCurve::IsCN(const Standard_Integer N) const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_MsgRegistrator.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_MsgRegistrator.lxx index ad10c4d611..80426d8ba0 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_MsgRegistrator.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeExtend/ShapeExtend_MsgRegistrator.lxx @@ -15,10 +15,7 @@ #include -//======================================================================= -// function : MapTransient -// purpose : -//======================================================================= +//================================================================================================= inline const ShapeExtend_DataMapOfTransientListOfMsg& ShapeExtend_MsgRegistrator::MapTransient() const @@ -26,10 +23,7 @@ inline const ShapeExtend_DataMapOfTransientListOfMsg& ShapeExtend_MsgRegistrator return myMapTransient; } -//======================================================================= -// function : MapShape -// purpose : -//======================================================================= +//================================================================================================= inline const ShapeExtend_DataMapOfShapeListOfMsg& ShapeExtend_MsgRegistrator::MapShape() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.lxx index eb4cc7ad12..14f53a6324 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.lxx @@ -13,150 +13,105 @@ #include -//======================================================================= -// function : FixWireMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixWireMode() { return myFixWireMode; } -//======================================================================= -// function : FixOrientationMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixOrientationMode() { return myFixOrientationMode; } -//======================================================================= -// function : FixAddNaturalBoundMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixAddNaturalBoundMode() { return myFixAddNaturalBoundMode; } -//======================================================================= -// function : FixMissingSeamMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixMissingSeamMode() { return myFixMissingSeamMode; } -//======================================================================= -// function : FixSmallAreaWireMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixSmallAreaWireMode() { return myFixSmallAreaWireMode; } -//======================================================================= -// function : RemoveSmallAreaFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::RemoveSmallAreaFaceMode() { return myRemoveSmallAreaFaceMode; } -//======================================================================= -// function : FixIntersectingWiresMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixIntersectingWiresMode() { return myFixIntersectingWiresMode; } -//======================================================================= -// function : FixLoopWiresMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixLoopWiresMode() { return myFixLoopWiresMode; } -//======================================================================= -// function : FixSplitFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixSplitFaceMode() { return myFixSplitFaceMode; } -//======================================================================= -// function : AutoCorrectPrecisionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::AutoCorrectPrecisionMode() { return myAutoCorrectPrecisionMode; } -//======================================================================= -// function : FixPeriodicDegeneratedMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Face::FixPeriodicDegeneratedMode() { return myFixPeriodicDegenerated; } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Face ShapeFix_Face::Face() const { return myFace; } -//======================================================================= -// function : Result -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeFix_Face::Result() const { return myResult; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Face::Status(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatus, status); } -//======================================================================= -// function : FixWireTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Wire) ShapeFix_Face::FixWireTool() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_FreeBounds.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_FreeBounds.lxx index 1d9f59a69d..d1d77461da 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_FreeBounds.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_FreeBounds.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetClosedWires -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Compound& ShapeFix_FreeBounds::GetClosedWires() const { return myWires; } -//======================================================================= -// function : GetOpenWires -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Compound& ShapeFix_FreeBounds::GetOpenWires() const { return myEdges; } -//======================================================================= -// function : GetShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& ShapeFix_FreeBounds::GetShape() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_IntersectionTool.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_IntersectionTool.lxx index b95d11643e..992c2486f1 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_IntersectionTool.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_IntersectionTool.lxx @@ -11,10 +11,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Context -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeBuild_ReShape) ShapeFix_IntersectionTool::Context() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Root.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Root.lxx index 96d4dddbbc..d149db1239 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Root.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Root.lxx @@ -13,60 +13,42 @@ #include -//======================================================================= -// function : Context -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeBuild_ReShape) ShapeFix_Root::Context() const { return myContext; } -//======================================================================= -// function : MsgRegistrator -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeExtend_BasicMsgRegistrator) ShapeFix_Root::MsgRegistrator() const { return myMsgReg; } -//======================================================================= -// function : Precision -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeFix_Root::Precision() const { return myPrecision; } -//======================================================================= -// function : MinTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeFix_Root::MinTolerance() const { return myMinTol; } -//======================================================================= -// function : MaxTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeFix_Root::MaxTolerance() const { return myMaxTol; } -//======================================================================= -// function : LimitTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeFix_Root::LimitTolerance(const Standard_Real toler) const { @@ -74,50 +56,35 @@ inline Standard_Real ShapeFix_Root::LimitTolerance(const Standard_Real toler) co return Min(myMaxTol, toler); } -//======================================================================= -// function : SendMsg -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Root::SendMsg(const Message_Msg& message, const Message_Gravity gravity) const { SendMsg(myShape, message, gravity); } -//======================================================================= -// function : SendWarning -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Root::SendWarning(const TopoDS_Shape& shape, const Message_Msg& message) const { SendMsg(shape, message, Message_Warning); } -//======================================================================= -// function : SendWarning -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Root::SendWarning(const Message_Msg& message) const { SendWarning(myShape, message); } -//======================================================================= -// function : SendFail -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Root::SendFail(const TopoDS_Shape& shape, const Message_Msg& message) const { SendMsg(shape, message, Message_Fail); } -//======================================================================= -// function : SendFail -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Root::SendFail(const Message_Msg& message) const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shape.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shape.lxx index 90370f437b..5c3f3b39bf 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shape.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shape.lxx @@ -19,120 +19,84 @@ #include #include -//======================================================================= -// function : FixSolidTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Solid) ShapeFix_Shape::FixSolidTool() const { return myFixSolid; } -//======================================================================= -// function : FixShellTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Shell) ShapeFix_Shape::FixShellTool() const { return myFixSolid->FixShellTool(); } -//======================================================================= -// function : FixFaceTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Face) ShapeFix_Shape::FixFaceTool() const { return myFixSolid->FixShellTool()->FixFaceTool(); } -//======================================================================= -// function : FixWireTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Wire) ShapeFix_Shape::FixWireTool() const { return myFixSolid->FixShellTool()->FixFaceTool()->FixWireTool(); } -//======================================================================= -// function : FixEdgeTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Edge) ShapeFix_Shape::FixEdgeTool() const { return myFixSolid->FixShellTool()->FixFaceTool()->FixWireTool()->FixEdgeTool(); } -//======================================================================= -// function : FixSolidMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixSolidMode() { return myFixSolidMode; } -//======================================================================= -// function : FixFreeShellMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixFreeShellMode() { return myFixShellMode; } -//======================================================================= -// function : FixFreeFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixFreeFaceMode() { return myFixFaceMode; } -//======================================================================= -// function : FixFreeWireMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixFreeWireMode() { return myFixWireMode; } -//======================================================================= -// function : FixSameParameterMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixSameParameterMode() { return myFixSameParameterMode; } -//======================================================================= -// function : FixVertexPositionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixVertexPositionMode() { return myFixVertexPositionMode; } -//======================================================================= -// function : FixVertexTolMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shape::FixVertexTolMode() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shell.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shell.lxx index b963d04422..40ac088b06 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shell.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shell.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : FixFaceTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Face) ShapeFix_Shell::FixFaceTool() { return myFixFace; } -//======================================================================= -// function : FixFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shell::FixFaceMode() { return myFixFaceMode; } -//======================================================================= -// function : FixOrientationMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Shell::FixOrientationMode() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.lxx index 186f637879..760550c377 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.lxx @@ -19,20 +19,14 @@ #include #include -//======================================================================= -// function : SetFace -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Wire::SetFace(const TopoDS_Face& face) { myAnalyzer->SetFace(face); } -//======================================================================= -// function : SetSurface -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Wire::SetSurface(const Handle(Geom_Surface)& surf) { @@ -54,140 +48,98 @@ inline void ShapeFix_Wire::SetSurface(const Handle(ShapeAnalysis_Surface)& theSu myAnalyzer->SetSurface(theSurfaceAnalysis); } -//======================================================================= -// function : SetSurface -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Wire::SetSurface(const Handle(Geom_Surface)& surf, const TopLoc_Location& loc) { myAnalyzer->SetSurface(surf, loc); } -//======================================================================= -// function : IsLoaded -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::IsLoaded() const { return myAnalyzer->IsLoaded(); } -//======================================================================= -// function : IsReady -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::IsReady() const { return myAnalyzer->IsReady(); } -//======================================================================= -// function : Wire -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Wire ShapeFix_Wire::Wire() const { return myAnalyzer->WireData()->Wire(); } -//======================================================================= -// function : WireAPIMake -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Wire ShapeFix_Wire::WireAPIMake() const { return myAnalyzer->WireData()->WireAPIMake(); } -//======================================================================= -// function : Analyzer -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeAnalysis_Wire) ShapeFix_Wire::Analyzer() const { return myAnalyzer; } -//======================================================================= -// function : WireData -// purpose : -//======================================================================= +//================================================================================================= inline const Handle(ShapeExtend_WireData)& ShapeFix_Wire::WireData() const { return myAnalyzer->WireData(); } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Face& ShapeFix_Wire::Face() const { return myAnalyzer->Face(); } -//======================================================================= -// function : ModifyTopologyMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wire::ModifyTopologyMode() { return myTopoMode; } -//======================================================================= -// function : ModifyGeometryMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wire::ModifyGeometryMode() { return myGeomMode; } -//======================================================================= -// function : ModifyRemoveLoopMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::ModifyRemoveLoopMode() { return myRemoveLoopMode; } -//======================================================================= -// function : ClosedWireMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wire::ClosedWireMode() { return myClosedMode; } -//======================================================================= -// function : PreferencePCurveMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wire::PreferencePCurveMode() { return myPreference2d; } -//======================================================================= -// function : FixGapsByRangesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wire::FixGapsByRangesMode() { @@ -197,50 +149,35 @@ inline Standard_Boolean& ShapeFix_Wire::FixGapsByRangesMode() //======================================================================= // function : Fix..Mode for high-level fixes -//======================================================================= -// function : FixReorderMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixReorderMode() { return myFixReorderMode; } -//======================================================================= -// function : FixSmallMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixSmallMode() { return myFixSmallMode; } -//======================================================================= -// function : FixConnectedMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixConnectedMode() { return myFixConnectedMode; } -//======================================================================= -// function : FixEdgeCurvesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixEdgeCurvesMode() { return myFixEdgeCurvesMode; } -//======================================================================= -// function : FixDegeneratedMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixDegeneratedMode() { @@ -250,180 +187,127 @@ inline Standard_Integer& ShapeFix_Wire::FixDegeneratedMode() //======================================================================= // function : Fix..Mode for low-level fixes -//======================================================================= -// function : FixReversed2dMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixReversed2dMode() { return myFixReversed2dMode; } -//======================================================================= -// function : FixRemovePCurveMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixRemovePCurveMode() { return myFixRemovePCurveMode; } -//======================================================================= -// function : FixRemoveCurve3dMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixRemoveCurve3dMode() { return myFixRemoveCurve3dMode; } -//======================================================================= -// function : FixAddPCurveMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixAddPCurveMode() { return myFixAddPCurveMode; } -//======================================================================= -// function : FixAddCurve3dMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixAddCurve3dMode() { return myFixAddCurve3dMode; } -//======================================================================= -// function : FixSeamMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixSeamMode() { return myFixSeamMode; } -//======================================================================= -// function : FixShiftedMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixShiftedMode() { return myFixShiftedMode; } -//======================================================================= -// function : FixSameParameterMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixSameParameterMode() { return myFixSameParameterMode; } -//======================================================================= -// function : FixVertexToleranceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixVertexToleranceMode() { return myFixVertexToleranceMode; } -//======================================================================= -// function : FixLackingMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixLackingMode() { return myFixLackingMode; } -//======================================================================= -// function : FixSelfIntersectionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixSelfIntersectionMode() { return myFixSelfIntersectionMode; } -//======================================================================= -// function : FixGaps3dMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixGaps3dMode() { return myFixGaps3dMode; } -//======================================================================= -// function : FixGaps2dMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixGaps2dMode() { return myFixGaps2dMode; } -//======================================================================= -// function : FixNotchedEdgesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixNotchedEdgesMode() { return myFixNotchedEdgesMode; } -//======================================================================= -// function : FixSelfIntersectingEdgeMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixSelfIntersectingEdgeMode() { return myFixSelfIntersectingEdgeMode; } -//======================================================================= -// function : FixIntersectingEdgesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixIntersectingEdgesMode() { return myFixIntersectingEdgesMode; } -//======================================================================= -// function : FixNonAdjacentIntersectingEdgesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer& ShapeFix_Wire::FixNonAdjacentIntersectingEdgesMode() { return myFixNonAdjacentIntersectingEdgesMode; } -//======================================================================= -// function : FixTailMode -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Integer& ShapeFix_Wire::FixTailMode() { return myFixTailMode; @@ -432,120 +316,85 @@ inline Standard_Integer& ShapeFix_Wire::FixTailMode() //======================================================================= // function : Status.. for high-level methods -//======================================================================= -// function : StatusReorder -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusReorder(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusReorder, status); } -//======================================================================= -// function : StatusSmall -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusSmall(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusSmall, status); } -//======================================================================= -// function : StatusConnected -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusConnected(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusConnected, status); } -//======================================================================= -// function : StatusEdgeCurves -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusEdgeCurves(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusEdgeCurves, status); } -//======================================================================= -// function : StatusDegenerated -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusDegenerated(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusDegenerated, status); } -//======================================================================= -// function : StatusLacking -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusLacking(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusLacking, status); } -//======================================================================= -// function : StatusSelfIntersection -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusSelfIntersection(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusSelfIntersection, status); } -//======================================================================= -// function : StatusGaps3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusGaps3d(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusGaps3d, status); } -//======================================================================= -// function : StatusGaps2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusGaps2d(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusGaps2d, status); } -//======================================================================= -// function : StatusClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusClosed(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusClosed, status); } -//======================================================================= -// function : StatusNotches -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusNotches(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusNotches, status); } -//======================================================================= -// function : StatusFixTails -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean ShapeFix_Wire::StatusFixTails(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusFixTails, status); @@ -561,20 +410,14 @@ inline Standard_Boolean ShapeFix_Wire::LastFixStatus(const ShapeExtend_Status st return ShapeExtend::DecodeStatus(myLastFixStatus, status); } -//======================================================================= -// function : FixEdgeTool -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeFix_Edge) ShapeFix_Wire::FixEdgeTool() const { return myFixEdge; } -//======================================================================= -// function : StatusRemovedSegment -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wire::StatusRemovedSegment() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wireframe.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wireframe.lxx index 05b090edbf..248de86fa0 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wireframe.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wireframe.lxx @@ -13,60 +13,42 @@ #include -//======================================================================= -// function : StatusWireGaps -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wireframe::StatusWireGaps(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusWireGaps, status); } -//======================================================================= -// function : StatusSmallEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeFix_Wireframe::StatusSmallEdges(const ShapeExtend_Status status) const { return ShapeExtend::DecodeStatus(myStatusSmallEdges, status); } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeFix_Wireframe::Shape() { return myShape; } -//======================================================================= -// function : ModeDropSmallEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeFix_Wireframe::ModeDropSmallEdges() { return myModeDrop; } -//======================================================================= -// function : SetLimitAngle -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeFix_Wireframe::SetLimitAngle(const Standard_Real theLimitAngle) { myLimitAngle = theLimitAngle; } -//======================================================================= -// function : LimitAngle -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeFix_Wireframe::LimitAngle() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx index f3963b8b09..d12d396540 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx @@ -438,10 +438,7 @@ static Standard_Boolean converttobspline(const Handle(ShapeProcess_Context)& con return Standard_True; } -//======================================================================= -// function : splitcontinuity -// purpose : Split by Continuity -//======================================================================= +//================================================================================================= static Standard_Boolean splitcontinuity(const Handle(ShapeProcess_Context)& context, const Message_ProgressRange&) diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.lxx index c24eef5e92..360d6f0973 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.lxx @@ -14,60 +14,42 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetLineMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertCurve3dToBezier::SetLineMode(const Standard_Boolean mode) { myLineMode = mode; } -//======================================================================= -// function : GetLineMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertCurve3dToBezier::GetLineMode() const { return myLineMode; } -//======================================================================= -// function : SetCircleMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertCurve3dToBezier::SetCircleMode(const Standard_Boolean mode) { myCircleMode = mode; } -//======================================================================= -// function : GetCircleMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertCurve3dToBezier::GetCircleMode() const { return myCircleMode; } -//======================================================================= -// function : SetConicMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertCurve3dToBezier::SetConicMode(const Standard_Boolean mode) { myConicMode = mode; } -//======================================================================= -// function : GetConicMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertCurve3dToBezier::GetConicMode() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.lxx index f46c608be6..8f79e2e1e9 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.lxx @@ -14,80 +14,56 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetPlaneMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertSurfaceToBezierBasis::SetPlaneMode(const Standard_Boolean mode) { myPlaneMode = mode; } -//======================================================================= -// function : GetPlaneMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertSurfaceToBezierBasis::GetPlaneMode() const { return myPlaneMode; } -//======================================================================= -// function : SetRevolutionMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertSurfaceToBezierBasis::SetRevolutionMode(const Standard_Boolean mode) { myRevolutionMode = mode; } -//======================================================================= -// function : GetRevolutionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertSurfaceToBezierBasis::GetRevolutionMode() const { return myRevolutionMode; } -//======================================================================= -// function : SetExtrusionMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertSurfaceToBezierBasis::SetExtrusionMode(const Standard_Boolean mode) { myExtrusionMode = mode; } -//======================================================================= -// function : GetExtrusionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertSurfaceToBezierBasis::GetExtrusionMode() const { return myExtrusionMode; } -//======================================================================= -// function : SetBSplineMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ConvertSurfaceToBezierBasis::SetBSplineMode(const Standard_Boolean mode) { myBSplineMode = mode; } -//======================================================================= -// function : GetBSplineMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ConvertSurfaceToBezierBasis::GetBSplineMode() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_EdgeDivide.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_EdgeDivide.lxx index 4f52f3397e..105bdcf059 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_EdgeDivide.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_EdgeDivide.lxx @@ -13,50 +13,35 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetFace -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_EdgeDivide::SetFace(const TopoDS_Face& F) { myFace = F; } -//======================================================================= -// function : HasCurve2d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_EdgeDivide::HasCurve2d() const { return myHasCurve2d; } -//======================================================================= -// function : HasCurve3d -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_EdgeDivide::HasCurve3d() const { return myHasCurve3d; } -//======================================================================= -// function : Knots2d -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TColStd_HSequenceOfReal) ShapeUpgrade_EdgeDivide::Knots2d() const { return myKnots2d; } -//======================================================================= -// function : Knots3d -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TColStd_HSequenceOfReal) ShapeUpgrade_EdgeDivide::Knots3d() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.lxx index a2fc778707..3f696c90b8 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.lxx @@ -13,60 +13,42 @@ #include -//======================================================================= -// function : MinArea -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real& ShapeUpgrade_RemoveInternalWires::MinArea() { return myMinArea; } -//======================================================================= -// function : RemoveFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean& ShapeUpgrade_RemoveInternalWires::RemoveFaceMode() { return myRemoveFacesMode; } -//======================================================================= -// function : RemovedFaces -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& ShapeUpgrade_RemoveInternalWires::RemovedFaces() const { return myRemovedFaces; } -//======================================================================= -// function : RemovedWires -// purpose : -//======================================================================= +//================================================================================================= inline const TopTools_SequenceOfShape& ShapeUpgrade_RemoveInternalWires::RemovedWires() const { return myRemoveWires; } -//======================================================================= -// function : GetResult -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeUpgrade_RemoveInternalWires::GetResult() const { return myResult; } -//======================================================================= -// function : Status -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_RemoveInternalWires::Status( const ShapeExtend_Status theStatus) const diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveLocations.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveLocations.lxx index 24aa99af74..57ea7cbc4a 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveLocations.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_RemoveLocations.lxx @@ -11,20 +11,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : GetResult -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeUpgrade_RemoveLocations::GetResult() const { return myShape; } -//======================================================================= -// function : SetRemoveLevel -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_RemoveLocations::SetRemoveLevel(const TopAbs_ShapeEnum theLevel) { @@ -35,20 +29,14 @@ inline void ShapeUpgrade_RemoveLocations::SetRemoveLevel(const TopAbs_ShapeEnum myLevelRemoving = theLevel; } -//======================================================================= -// function : RemoveLevel -// purpose : -//======================================================================= +//================================================================================================= inline TopAbs_ShapeEnum ShapeUpgrade_RemoveLocations::RemoveLevel() const { return myLevelRemoving; } -//======================================================================= -// function : ModifiedShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape ShapeUpgrade_RemoveLocations::ModifiedShape( const TopoDS_Shape& theInitShape) const diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.lxx index b9b759b9d3..52df5406ce 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.lxx @@ -14,200 +14,140 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Set2dConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::Set2dConversion(const Standard_Boolean mode) { my2dMode = mode; } -//======================================================================= -// function : Get2dConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get2dConversion() const { return my2dMode; } -//======================================================================= -// function : Set3dConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConversion(const Standard_Boolean mode) { my3dMode = mode; } -//======================================================================= -// function : Get3dConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConversion() const { return my3dMode; } -//======================================================================= -// function : SetSurfaceConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::SetSurfaceConversion(const Standard_Boolean mode) { mySurfaceMode = mode; } -//======================================================================= -// function : GetSurfaceConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetSurfaceConversion() const { return mySurfaceMode; } -//======================================================================= -// function : Set3dLineConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::Set3dLineConversion(const Standard_Boolean mode) { my3dLineMode = mode; } -//======================================================================= -// function : Get3dLineConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dLineConversion() const { return my3dLineMode; } -//======================================================================= -// function : Set3dCircleConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::Set3dCircleConversion(const Standard_Boolean mode) { my3dCircleMode = mode; } -//======================================================================= -// function : Get3dCircleConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dCircleConversion() const { return my3dCircleMode; } -//======================================================================= -// function : Set3dConicConversion -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConicConversion(const Standard_Boolean mode) { my3dConicMode = mode; } -//======================================================================= -// function : Get3dConicConversion -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConicConversion() const { return my3dConicMode; } -//======================================================================= -// function : SetPlaneMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::SetPlaneMode(const Standard_Boolean mode) { myPlaneMode = mode; } -//======================================================================= -// function : GetPlaneMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetPlaneMode() const { return myPlaneMode; } -//======================================================================= -// function : SetRevolutionMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::SetRevolutionMode(const Standard_Boolean mode) { myRevolutionMode = mode; } -//======================================================================= -// function : GetRevolutionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetRevolutionMode() const { return myRevolutionMode; } -//======================================================================= -// function : SetExtrusionMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::SetExtrusionMode(const Standard_Boolean mode) { myExtrusionMode = mode; } -//======================================================================= -// function : GetExtrusionMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetExtrusionMode() const { return myExtrusionMode; } -//======================================================================= -// function : SetBSplineMode -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_ShapeConvertToBezier::SetBSplineMode(const Standard_Boolean mode) { myBSplineMode = mode; } -//======================================================================= -// function : GetBSplineMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetBSplineMode() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_Tool.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_Tool.lxx index 312f6b670d..6d94bef273 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_Tool.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_Tool.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetContext -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_Tool::SetContext(const Handle(ShapeBuild_ReShape)& context) { myContext = context; } -//======================================================================= -// function : Context -// purpose : -//======================================================================= +//================================================================================================= inline Handle(ShapeBuild_ReShape) ShapeUpgrade_Tool::Context() const { return myContext; } -//======================================================================= -// function : SetPrecision -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_Tool::SetPrecision(const Standard_Real preci) { @@ -48,60 +39,42 @@ inline void ShapeUpgrade_Tool::SetPrecision(const Standard_Real preci) myMinTol = myPrecision; } -//======================================================================= -// function : Precision -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeUpgrade_Tool::Precision() const { return myPrecision; } -//======================================================================= -// function : SetMinTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_Tool::SetMinTolerance(const Standard_Real mintol) { myMinTol = mintol; } -//======================================================================= -// function : MinTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeUpgrade_Tool::MinTolerance() const { return myMinTol; } -//======================================================================= -// function : SetMaxTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void ShapeUpgrade_Tool::SetMaxTolerance(const Standard_Real maxtol) { myMaxTol = maxtol; } -//======================================================================= -// function : MaxTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeUpgrade_Tool::MaxTolerance() const { return myMaxTol; } -//======================================================================= -// function : LimitTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real ShapeUpgrade_Tool::LimitTolerance(const Standard_Real toler) const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.lxx index be5adef96b..a7136cdf49 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.lxx @@ -13,100 +13,70 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetMaxTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetMaxTolerance(const Standard_Real theMaxToler) { myMaxTolerance = theMaxToler; } -//======================================================================= -// function : MaxTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepBuilderAPI_Sewing::MaxTolerance() const { return myMaxTolerance; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepBuilderAPI_Sewing::Tolerance() const { return myTolerance; } -//======================================================================= -// function : SetTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetTolerance(const Standard_Real theToler) { myTolerance = theToler; } -//======================================================================= -// function : SetMinTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetMinTolerance(const Standard_Real theMinToler) { myMinTolerance = theMinToler; } -//======================================================================= -// function : MinTolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepBuilderAPI_Sewing::MinTolerance() const { return myMinTolerance; } -//======================================================================= -// function : SetFaceMode -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetFaceMode(const Standard_Boolean theFaceMode) { myFaceMode = theFaceMode; } -//======================================================================= -// function : FaceMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBuilderAPI_Sewing::FaceMode() const { return myFaceMode; } -//======================================================================= -// function : SetFloatingEdgesMode -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetFloatingEdgesMode(const Standard_Boolean theFloatingEdgesMode) { myFloatingEdgesMode = theFloatingEdgesMode; } -//======================================================================= -// function : FloatingEdgesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBuilderAPI_Sewing::FloatingEdgesMode() const { @@ -114,10 +84,8 @@ inline Standard_Boolean BRepBuilderAPI_Sewing::FloatingEdgesMode() const } /* -//======================================================================= -//function : SetCuttingFloatingEdgesMode -//purpose : -//======================================================================= +//================================================================================================= + inline void BRepBuilderAPI_Sewing::SetCuttingFloatingEdgesMode(const Standard_Boolean theCuttingFloatingEdgesMode) @@ -125,10 +93,8 @@ theCuttingFloatingEdgesMode) myCuttingFloatingEdgesMode = theCuttingFloatingEdgesMode; } -//======================================================================= -//function : CuttingFloatingEdgesMode -//purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BRepBuilderAPI_Sewing::CuttingFloatingEdgesMode() const { @@ -136,30 +102,21 @@ inline Standard_Boolean BRepBuilderAPI_Sewing::CuttingFloatingEdgesMode() const } */ -//======================================================================= -// function : SameParameterMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBuilderAPI_Sewing::SameParameterMode() const { return mySameParameterMode; } -//======================================================================= -// function : SetSameParameterMode -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetSameParameterMode(const Standard_Boolean SameParameterMode) { mySameParameterMode = SameParameterMode; } -//======================================================================= -// function : SetLocalTolerancesMode -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetLocalTolerancesMode( const Standard_Boolean theLocalTolerancesMode) @@ -167,30 +124,21 @@ inline void BRepBuilderAPI_Sewing::SetLocalTolerancesMode( myLocalToleranceMode = theLocalTolerancesMode; } -//======================================================================= -// function : LocalTolerancesMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBuilderAPI_Sewing::LocalTolerancesMode() const { return myLocalToleranceMode; } -//======================================================================= -// function : SetNonManifoldMode -// purpose : -//======================================================================= +//================================================================================================= inline void BRepBuilderAPI_Sewing::SetNonManifoldMode(const Standard_Boolean theNonManifoldMode) { myNonmanifold = theNonManifoldMode; } -//======================================================================= -// function : NonManifoldMode -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepBuilderAPI_Sewing::NonManifoldMode() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_Edge.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_Edge.lxx index f4a9756804..2cdc58504f 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_Edge.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_Edge.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Edge& BRepClass_Edge::Edge() { return myEdge; } -//======================================================================= -// function : Edge -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& BRepClass_Edge::Edge() const { return myEdge; } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Face& BRepClass_Edge::Face() { return myFace; } -//======================================================================= -// function : Face -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Face& BRepClass_Edge::Face() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_FaceExplorer.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_FaceExplorer.lxx index d47873b8da..824b790742 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_FaceExplorer.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepClass/BRepClass_FaceExplorer.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : MoreWires -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepClass_FaceExplorer::MoreWires() const { return myWExplorer.More(); } -//======================================================================= -// function : NextWire -// purpose : -//======================================================================= +//================================================================================================= inline void BRepClass_FaceExplorer::NextWire() { myWExplorer.Next(); } -//======================================================================= -// function : MoreEdges -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean BRepClass_FaceExplorer::MoreEdges() const { return myEExplorer.More(); } -//======================================================================= -// function : NextEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRepClass_FaceExplorer::NextEdge() { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistShapeShape.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistShapeShape.cxx index 6256c44f60..4e6b8188c9 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistShapeShape.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistShapeShape.cxx @@ -104,10 +104,8 @@ static Standard_Boolean BRepExtrema_CheckPair_Comparator(const BRepExtrema_Check } } // namespace -//======================================================================= -// struct : IndexBand -// purpose : -//======================================================================= +//================================================================================================= + struct IndexBand { IndexBand() @@ -126,10 +124,8 @@ struct IndexBand Standard_Integer Last; }; -//======================================================================= -// struct : ThreadSolution -// purpose : -//======================================================================= +//================================================================================================= + struct ThreadSolution { ThreadSolution(Standard_Integer theTaskNum) @@ -145,10 +141,8 @@ struct ThreadSolution NCollection_Array1 Dist; }; -//======================================================================= -// struct : VertexFunctor -// purpose : -//======================================================================= +//================================================================================================= + struct VertexFunctor { VertexFunctor(NCollection_Array1* theBandArray, const Message_ProgressRange& theRange) @@ -296,10 +290,8 @@ Standard_Boolean BRepExtrema_DistShapeShape::DistanceVertVert( return Standard_True; } -//======================================================================= -// struct : DistanceFunctor -// purpose : -//======================================================================= +//================================================================================================= + struct DistanceFunctor { DistanceFunctor(NCollection_Array1>* theArrayOfArrays, @@ -391,10 +383,8 @@ struct DistanceFunctor Standard_Real StartDist; }; -//======================================================================= -// struct : DistancePairFunctor -// purpose : -//======================================================================= +//================================================================================================= + struct DistancePairFunctor { DistancePairFunctor(NCollection_Array1* theBandArray, @@ -692,10 +682,8 @@ void BRepExtrema_DistShapeShape::LoadS2(const TopoDS_Shape& Shape2) Decomposition(Shape2, myMapV2, myMapE2, myMapF2); } -//======================================================================= -// struct : TreatmentFunctor -// purpose : -//======================================================================= +//================================================================================================= + struct TreatmentFunctor { TreatmentFunctor(NCollection_Array1>* theArrayOfArrays, diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx index 19ec83d07e..2b339c0fb6 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx @@ -17,10 +17,7 @@ #include #include -//======================================================================= -// function : BRepGProp_Domain -// purpose : Empty constructor. -//======================================================================= +//================================================================================================= inline BRepGProp_Domain::BRepGProp_Domain() {} diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Face.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Face.lxx index fc14d47338..b8f85a1936 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Face.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Face.lxx @@ -49,10 +49,8 @@ inline Standard_Boolean BRepGProp_Face::NaturalRestriction() const } // -//======================================================================= -// function : GetFace -// purpose : Returns TopoDS Face. -//======================================================================= + +//================================================================================================= inline const TopoDS_Face& BRepGProp_Face::GetFace() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.lxx index 93c7021e8f..9f63881dc9 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.lxx @@ -13,20 +13,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetNbKronrodPoints -// purpose : -//======================================================================= +//================================================================================================= inline void BRepGProp_TFunction::SetNbKronrodPoints(const Standard_Integer theNbPoints) { myNbPntOuter = (theNbPoints % 2 == 0) ? theNbPoints + 1 : theNbPoints; } -//======================================================================= -// function : SetValueType -// purpose : -//======================================================================= +//================================================================================================= inline void BRepGProp_TFunction::SetValueType(const GProp_ValueType theType) { @@ -34,30 +28,21 @@ inline void BRepGProp_TFunction::SetValueType(const GProp_ValueType theType) myUFunction.SetValueType(myValueType); } -//======================================================================= -// function : SetTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRepGProp_TFunction::SetTolerance(const Standard_Real theTolerance) { myTolerance = theTolerance; } -//======================================================================= -// function : TolReached -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepGProp_TFunction::ErrorReached() const { return myErrReached; } -//======================================================================= -// function : ErrorReached -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRepGProp_TFunction::AbsolutError() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.gxx b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.gxx index 15d1f03d3f..8a34dc02f5 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.gxx +++ b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.gxx @@ -14,10 +14,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -//function : MAT_TList -//purpose : -//======================================================================= +//================================================================================================= + MAT_TList::MAT_TList() { @@ -25,10 +23,8 @@ MAT_TList::MAT_TList() thenumberofitems = 0; } -//======================================================================= -//function : First -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::First() { @@ -36,10 +32,8 @@ void MAT_TList::First() thecurrentindex = 1; } -//======================================================================= -//function : Last -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Last() { @@ -47,10 +41,8 @@ void MAT_TList::Last() thecurrentindex = thenumberofitems; } -//======================================================================= -//function : Init -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Init(const Item& anitem) { @@ -62,10 +54,8 @@ void MAT_TList::Init(const Item& anitem) } } -//======================================================================= -//function : Next -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Next() { @@ -76,10 +66,8 @@ void MAT_TList::Next() } } -//======================================================================= -//function : Previous -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Previous() { @@ -90,80 +78,64 @@ void MAT_TList::Previous() } } -//======================================================================= -//function : More -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean MAT_TList::More() const { return (!thecurrentnode.IsNull()); } -//======================================================================= -//function : Current -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::Current() const { return thecurrentnode->GetItem(); } -//======================================================================= -//function : Current -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Current(const Item& anitem) const { thecurrentnode->SetItem(anitem); } -//======================================================================= -//function : FirstItem -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::FirstItem() const { return thefirstnode->GetItem(); } -//======================================================================= -//function : LastItem -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::LastItem() const { return thelastnode->GetItem(); } -//======================================================================= -//function : PreviousItem -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::PreviousItem() const { return thecurrentnode->Previous()->GetItem(); } -//======================================================================= -//function : NextItem -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::NextItem() const { return thecurrentnode->Next()->GetItem(); } -//======================================================================= -//function : Brackets -//purpose : -//======================================================================= +//================================================================================================= + Item MAT_TList::Brackets (const Standard_Integer anindex) { @@ -186,10 +158,8 @@ Item MAT_TList::Brackets (const Standard_Integer anindex) return thecurrentnode->GetItem(); } -//======================================================================= -//function : Unlink -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Unlink() { @@ -220,10 +190,8 @@ void MAT_TList::Unlink() thecurrentindex--; } -//======================================================================= -//function : LinkBefore -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::LinkBefore(const Item& anitem) { @@ -250,10 +218,8 @@ void MAT_TList::LinkBefore(const Item& anitem) node->Next(thecurrentnode); } -//======================================================================= -//function : LinkAfter -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::LinkAfter(const Item& anitem) { @@ -278,10 +244,8 @@ void MAT_TList::LinkAfter(const Item& anitem) node->Previous(thecurrentnode); } -//======================================================================= -//function : FrontAdd -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::FrontAdd(const Item& anitem) { @@ -303,10 +267,8 @@ void MAT_TList::FrontAdd(const Item& anitem) thefirstnode = node; } -//======================================================================= -//function : BackAdd -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::BackAdd(const Item& anitem) { @@ -326,10 +288,8 @@ void MAT_TList::BackAdd(const Item& anitem) thelastnode = node; } -//======================================================================= -//function : Permute -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Permute() { @@ -364,10 +324,8 @@ void MAT_TList::Permute() thecurrentindex++; } -//======================================================================= -//function : Loop -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Loop() const { @@ -375,10 +333,8 @@ void MAT_TList::Loop() const thefirstnode->Previous(thelastnode); } -//======================================================================= -//function : Dump -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TList::Dump(const Standard_Integer ashift, const Standard_Integer alevel) diff --git a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.lxx b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.lxx index 470d420216..bdae1bac0e 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TList.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Number -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer MAT_TList::Number() const { return thenumberofitems; } -//======================================================================= -// function : Index -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer MAT_TList::Index() const { return thecurrentindex; } -//======================================================================= -// function : IsEmpty -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean MAT_TList::IsEmpty() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.gxx b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.gxx index 7227b11c28..1d349aeb95 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.gxx +++ b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.gxx @@ -14,9 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -//function : Dummy -//purpose : -//======================================================================= +//================================================================================================= + void MAT_TListNode::Dummy()const {} diff --git a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.lxx b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.lxx index 6c3cc4ad0f..13d6d406c8 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNode.lxx @@ -14,77 +14,53 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : MAT_TListNode -// purpose : -//======================================================================= +//================================================================================================= inline MAT_TListNode::MAT_TListNode() {} -//======================================================================= -// function : MAT_TListNode -// purpose : -//======================================================================= +//================================================================================================= inline MAT_TListNode::MAT_TListNode(const Item& anitem) { theitem = anitem; } -//======================================================================= -// function : GetItem -// purpose : -//======================================================================= +//================================================================================================= inline Item MAT_TListNode::GetItem() const { return theitem; } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline Handle(MAT_TListNode) MAT_TListNode::Next() const { return thenext; } -//======================================================================= -// function : Previous -// purpose : -//======================================================================= +//================================================================================================= inline Handle(MAT_TListNode) MAT_TListNode::Previous() const { return theprevious; } -//======================================================================= -// function : SetItem -// purpose : -//======================================================================= +//================================================================================================= inline void MAT_TListNode::SetItem(const Item& anitem) { theitem = anitem; } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void MAT_TListNode::Next(const Handle(MAT_TListNode)& atlistnode) { thenext = atlistnode; } -//======================================================================= -// function : Previous -// purpose : -//======================================================================= +//================================================================================================= inline void MAT_TListNode::Previous(const Handle(MAT_TListNode)& atlistnode) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx index d0f90bb65a..4d7fc43309 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx @@ -600,10 +600,7 @@ void BRep_Builder::NaturalRestriction(const TopoDS_Face& F, const Standard_Boole F.TShape()->Modified(Standard_True); } -//======================================================================= -// function : MakeEdge -// purpose : make undefined edge -//======================================================================= +//================================================================================================= void BRep_Builder::MakeEdge(TopoDS_Edge& E) const { diff --git a/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx b/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx index de722bfefd..fc12e69959 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx @@ -20,10 +20,7 @@ #include #include -//======================================================================= -// function : MakeFace -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeFace(TopoDS_Face& F) const { @@ -31,10 +28,7 @@ inline void BRep_Builder::MakeFace(TopoDS_Face& F) const MakeShape(F, TF); } -//======================================================================= -// function : MakeEdge -// purpose : make edge from curve -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, const Handle(Geom_Curve)& C, @@ -44,10 +38,7 @@ inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, UpdateEdge(E, C, TopLoc_Location(), Tol); } -//======================================================================= -// function : MakeEdge -// purpose : make edge from curve -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, const Handle(Poly_Polygon3D)& P) const { @@ -82,10 +73,7 @@ inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, UpdateEdge(E, P, T, L); } -//======================================================================= -// function : MakeEdge -// purpose : make edge from curve -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, const Handle(Geom_Curve)& C, @@ -96,10 +84,7 @@ inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, UpdateEdge(E, C, L, Tol); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Geom_Curve)& C, @@ -108,10 +93,7 @@ inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, UpdateEdge(E, C, TopLoc_Location(), Tol); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Geom2d_Curve)& C, @@ -122,10 +104,7 @@ inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, UpdateEdge(E, C, BRep_Tool::Surface(F, l), l, Tol); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Geom2d_Curve)& C1, @@ -137,20 +116,14 @@ inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, UpdateEdge(E, C1, C2, BRep_Tool::Surface(F, l), l, Tol); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Poly_Polygon3D)& P) const { UpdateEdge(E, P, TopLoc_Location()); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Poly_PolygonOnTriangulation)& P, @@ -159,10 +132,7 @@ inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& UpdateEdge(E, P, T, TopLoc_Location()); } -//======================================================================= -// function : UpdateEdge -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const Handle(Poly_PolygonOnTriangulation)& P1, @@ -172,10 +142,7 @@ inline void BRep_Builder::UpdateEdge(const TopoDS_Edge& UpdateEdge(E, P1, P2, T, TopLoc_Location()); } -//======================================================================= -// function : Range -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_Builder::Range(const TopoDS_Edge& E, const TopoDS_Face& F, @@ -186,10 +153,7 @@ inline void BRep_Builder::Range(const TopoDS_Edge& E, Range(E, BRep_Tool::Surface(F, l), l, First, Last); } -//======================================================================= -// function : MakeVertex -// purpose : undefined vertex -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeVertex(TopoDS_Vertex& V) const { @@ -197,10 +161,7 @@ inline void BRep_Builder::MakeVertex(TopoDS_Vertex& V) const MakeShape(V, TV); } -//======================================================================= -// function : MakeVertex -// purpose : vertex from 3d point -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeVertex(TopoDS_Vertex& V, const gp_Pnt& P, diff --git a/src/ModelingData/TKBRep/BRep/BRep_CurveOnClosedSurface.lxx b/src/ModelingData/TKBRep/BRep/BRep_CurveOnClosedSurface.lxx index f9ca65394d..831ca14d98 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_CurveOnClosedSurface.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_CurveOnClosedSurface.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetUVPoints2 -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_CurveOnClosedSurface::SetUVPoints2(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { @@ -25,10 +22,7 @@ inline void BRep_CurveOnClosedSurface::SetUVPoints2(const gp_Pnt2d& P1, const gp myUV22 = P2; } -//======================================================================= -// function : UVPoints2 -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_CurveOnClosedSurface::UVPoints2(gp_Pnt2d& P1, gp_Pnt2d& P2) const { diff --git a/src/ModelingData/TKBRep/BRep/BRep_CurveOnSurface.lxx b/src/ModelingData/TKBRep/BRep/BRep_CurveOnSurface.lxx index 6c36b0d61b..15f327d807 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_CurveOnSurface.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_CurveOnSurface.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetUVPoints -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_CurveOnSurface::SetUVPoints(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { @@ -25,10 +22,7 @@ inline void BRep_CurveOnSurface::SetUVPoints(const gp_Pnt2d& P1, const gp_Pnt2d& myUV2 = P2; } -//======================================================================= -// function : UVPoints -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_CurveOnSurface::UVPoints(gp_Pnt2d& P1, gp_Pnt2d& P2) const { diff --git a/src/ModelingData/TKBRep/BRep/BRep_CurveRepresentation.lxx b/src/ModelingData/TKBRep/BRep/BRep_CurveRepresentation.lxx index abad60a733..e5b97bbee5 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_CurveRepresentation.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_CurveRepresentation.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Location -// purpose : -//======================================================================= +//================================================================================================= inline const TopLoc_Location& BRep_CurveRepresentation::Location() const { return myLocation; } -//======================================================================= -// function : Location -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_CurveRepresentation::Location(const TopLoc_Location& L) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_GCurve.lxx b/src/ModelingData/TKBRep/BRep/BRep_GCurve.lxx index 714e895cd5..f8b34cacb1 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_GCurve.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_GCurve.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : SetRange -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_GCurve::SetRange(const Standard_Real First, const Standard_Real Last) { @@ -26,10 +23,7 @@ inline void BRep_GCurve::SetRange(const Standard_Real First, const Standard_Real Update(); } -//======================================================================= -// function : Range -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_GCurve::Range(Standard_Real& First, Standard_Real& Last) const { @@ -37,30 +31,21 @@ inline void BRep_GCurve::Range(Standard_Real& First, Standard_Real& Last) const Last = myLast; } -//======================================================================= -// function : First -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRep_GCurve::First() const { return myFirst; } -//======================================================================= -// function : Last -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRep_GCurve::Last() const { return myLast; } -//======================================================================= -// function : First -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_GCurve::First(const Standard_Real F) { @@ -68,10 +53,7 @@ inline void BRep_GCurve::First(const Standard_Real F) Update(); } -//======================================================================= -// function : Last -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_GCurve::Last(const Standard_Real L) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_PointRepresentation.lxx b/src/ModelingData/TKBRep/BRep/BRep_PointRepresentation.lxx index 33c89276e3..1aa1fc8007 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_PointRepresentation.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_PointRepresentation.lxx @@ -14,40 +14,28 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Location -// purpose : -//======================================================================= +//================================================================================================= inline const TopLoc_Location& BRep_PointRepresentation::Location() const { return myLocation; } -//======================================================================= -// function : Location -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_PointRepresentation::Location(const TopLoc_Location& L) { myLocation = L; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRep_PointRepresentation::Parameter() const { return myParameter; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_PointRepresentation::Parameter(const Standard_Real P) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_TEdge.lxx b/src/ModelingData/TKBRep/BRep/BRep_TEdge.lxx index 8bb3766540..3d1462fa89 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_TEdge.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_TEdge.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRep_TEdge::Tolerance() const { return myTolerance; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_TEdge::Tolerance(const Standard_Real T) { myTolerance = T; } -//======================================================================= -// function : UpdateTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_TEdge::UpdateTolerance(const Standard_Real T) { @@ -45,20 +36,14 @@ inline void BRep_TEdge::UpdateTolerance(const Standard_Real T) myTolerance = T; } -//======================================================================= -// function : Curves -// purpose : -//======================================================================= +//================================================================================================= inline const BRep_ListOfCurveRepresentation& BRep_TEdge::Curves() const { return myCurves; } -//======================================================================= -// function : ChangeCurves -// purpose : -//======================================================================= +//================================================================================================= inline BRep_ListOfCurveRepresentation& BRep_TEdge::ChangeCurves() { diff --git a/src/ModelingData/TKBRep/BRep/BRep_TVertex.lxx b/src/ModelingData/TKBRep/BRep/BRep_TVertex.lxx index 88509aad2b..2a95b05699 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_TVertex.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_TVertex.lxx @@ -14,30 +14,21 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real BRep_TVertex::Tolerance() const { return myTolerance; } -//======================================================================= -// function : Tolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_TVertex::Tolerance(const Standard_Real T) { myTolerance = T; } -//======================================================================= -// function : UpdateTolerance -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_TVertex::UpdateTolerance(const Standard_Real T) { @@ -45,40 +36,28 @@ inline void BRep_TVertex::UpdateTolerance(const Standard_Real T) myTolerance = T; } -//======================================================================= -// function : Pnt -// purpose : -//======================================================================= +//================================================================================================= inline const gp_Pnt& BRep_TVertex::Pnt() const { return myPnt; } -//======================================================================= -// function : Pnt -// purpose : -//======================================================================= +//================================================================================================= inline void BRep_TVertex::Pnt(const gp_Pnt& P) { myPnt = P; } -//======================================================================= -// function : Points -// purpose : -//======================================================================= +//================================================================================================= inline const BRep_ListOfPointRepresentation& BRep_TVertex::Points() const { return myPoints; } -//======================================================================= -// function : ChangePoints -// purpose : -//======================================================================= +//================================================================================================= inline BRep_ListOfPointRepresentation& BRep_TVertex::ChangePoints() { diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx index 099520d95c..95ed8e7a67 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx @@ -340,10 +340,8 @@ Standard_Boolean BRepTools_History::prepareModified(const TopoDS_Shape& theIniti return Standard_True; } -//============================================================================== -// data : myEmptyList -// purpose : -//============================================================================== +//================================================================================================= + const TopTools_ListOfShape BRepTools_History::myEmptyList; //================================================================================================= @@ -353,30 +351,22 @@ const TopTools_ListOfShape& BRepTools_History::emptyList() return myEmptyList; } -//============================================================================== -// data : myMsgUnsupportedType -// purpose : -//============================================================================== +//================================================================================================= + const char* BRepTools_History::myMsgUnsupportedType = "Error: unsupported shape type."; -//============================================================================== -// data : myMsgGeneratedAndRemoved -// purpose : -//============================================================================== +//================================================================================================= + const char* BRepTools_History::myMsgGeneratedAndRemoved = "Error: a shape is generated and removed simultaneously."; -//============================================================================== -// data : myMsgModifiedAndRemoved -// purpose : -//============================================================================== +//================================================================================================= + const char* BRepTools_History::myMsgModifiedAndRemoved = "Error: a shape is modified and removed simultaneously."; -//============================================================================== -// data : myMsgGeneratedAndModified -// purpose : -//============================================================================== +//================================================================================================= + const char* BRepTools_History::myMsgGeneratedAndModified = "Error: a shape is generated and modified " "from the same shape simultaneously."; diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.lxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.lxx index 99eb705c55..f170cc6aa1 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.lxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.lxx @@ -16,10 +16,7 @@ #include -//======================================================================= -// function : ModifiedShape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& BRepTools_Modifier::ModifiedShape(const TopoDS_Shape& S) const { @@ -30,10 +27,8 @@ inline const TopoDS_Shape& BRepTools_Modifier::ModifiedShape(const TopoDS_Shape& return myMap(S); } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= + inline Standard_Boolean BRepTools_Modifier::IsDone() const { return myDone; diff --git a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx index 62a67c4968..b82c5537f1 100644 --- a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx +++ b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx @@ -25,10 +25,7 @@ #include #include -//======================================================================= -// function : MakeWire -// purpose : Make an empty wire -//======================================================================= +//================================================================================================= inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const { @@ -36,10 +33,7 @@ inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const MakeShape(W, TW); } -//======================================================================= -// function : MakeShell -// purpose : Make an empty Shell -//======================================================================= +//================================================================================================= inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const { @@ -47,10 +41,7 @@ inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const MakeShape(S, TS); } -//======================================================================= -// function : MakeSolid -// purpose : Make an empty Solid -//======================================================================= +//================================================================================================= inline void TopoDS_Builder::MakeSolid(TopoDS_Solid& S) const { diff --git a/src/ModelingData/TKBRep/TopoDS/TopoDS_HShape.lxx b/src/ModelingData/TKBRep/TopoDS/TopoDS_HShape.lxx index 6922445544..4f52d63095 100644 --- a/src/ModelingData/TKBRep/TopoDS/TopoDS_HShape.lxx +++ b/src/ModelingData/TKBRep/TopoDS/TopoDS_HShape.lxx @@ -14,47 +14,32 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : TopoDS_HShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_HShape::TopoDS_HShape() {} -//======================================================================= -// function : TopoDS_HShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_HShape::TopoDS_HShape(const TopoDS_Shape& aShape) : myShape(aShape) { } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline void TopoDS_HShape::Shape(const TopoDS_Shape& aShape) { myShape = aShape; } -//======================================================================= -// function : Shape -// purpose : -//======================================================================= +//================================================================================================= inline const TopoDS_Shape& TopoDS_HShape::Shape() const { return myShape; } -//======================================================================= -// function : ChangeShape -// purpose : -//======================================================================= +//================================================================================================= inline TopoDS_Shape& TopoDS_HShape::ChangeShape() { diff --git a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx index 75309b5a26..023d7c63d8 100644 --- a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx +++ b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx @@ -273,10 +273,7 @@ static void FindBounds(const TColStd_Array1OfReal& Arr, } } -//======================================================================= -// function :Locate1Coord -// purpose : along BSpline curve -//======================================================================= +//================================================================================================= static void Locate1Coord(const Standard_Integer Index, const gp_Pnt2d& UV, diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.lxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.lxx index cc62233452..352434c447 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.lxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.lxx @@ -18,77 +18,56 @@ #include #include -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean AdvApprox_ApproxAFunction::HasResult() const { return myHasResult; } -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean AdvApprox_ApproxAFunction::IsDone() const { return myDone; } -//======================================================================= -// function : Poles1d -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(TColStd_HArray2OfReal) AdvApprox_ApproxAFunction::Poles1d() const { return my1DPoles; } -//======================================================================= -// function : Poles2d -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(TColgp_HArray2OfPnt2d) AdvApprox_ApproxAFunction::Poles2d() const { return my2DPoles; } -//======================================================================= -// function : Poles -// purpose : -//======================================================================= +//================================================================================================= + inline Handle(TColgp_HArray2OfPnt) AdvApprox_ApproxAFunction::Poles() const { return my3DPoles; } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer AdvApprox_ApproxAFunction::Degree() const { return myDegree; } -//======================================================================= -// function : NbKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer AdvApprox_ApproxAFunction::NbKnots() const { return myKnots->Length(); } -//======================================================================= -// function : Knots -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TColStd_HArray1OfReal) AdvApprox_ApproxAFunction::Knots() const @@ -96,10 +75,7 @@ inline Handle(TColStd_HArray1OfReal) AdvApprox_ApproxAFunction::Knots() const return myKnots; } -//======================================================================= -// function : Multiplicities -// purpose : -//======================================================================= +//================================================================================================= inline Handle(TColStd_HArray1OfInteger) AdvApprox_ApproxAFunction::Multiplicities() const @@ -107,10 +83,7 @@ inline Handle(TColStd_HArray1OfInteger) AdvApprox_ApproxAFunction::Multiplicitie return myMults; } -//======================================================================= -// function : NumSubSpaces -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces( const Standard_Integer Dimension) const diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx b/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx index 36930088ea..7740c9d871 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx @@ -184,10 +184,8 @@ static void DUMP(const AppParCurves_MultiBSpCurve& C) -//======================================================================= -//function : FirstTangencyVector -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::FirstTangencyVector(const MultiLine& Line, const Standard_Integer index, math_Vector& V) @@ -265,10 +263,8 @@ void Approx_BSplComputeLine::FirstTangencyVector(const MultiLine& Line, } -//======================================================================= -//function : LastTangencyVector -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::LastTangencyVector(const MultiLine& Line, const Standard_Integer index, math_Vector& V) @@ -347,10 +343,8 @@ void Approx_BSplComputeLine::LastTangencyVector(const MultiLine& Line, -//======================================================================= -//function : SearchFirstLambda -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Approx_BSplComputeLine:: SearchFirstLambda(const MultiLine& Line, const math_Vector& aPar, @@ -407,10 +401,8 @@ SearchFirstLambda(const MultiLine& Line, } -//======================================================================= -//function : SearchLastLambda -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Approx_BSplComputeLine:: SearchLastLambda(const MultiLine& Line, const math_Vector& aPar, @@ -468,10 +460,8 @@ SearchLastLambda(const MultiLine& Line, -//======================================================================= -//function : Approx_BSplComputeLine -//purpose : -//======================================================================= +//================================================================================================= + Approx_BSplComputeLine::Approx_BSplComputeLine (const MultiLine& Line, const math_Vector& Parameters, @@ -510,10 +500,8 @@ Approx_BSplComputeLine::Approx_BSplComputeLine } -//======================================================================= -//function : Approx_BSplComputeLine -//purpose : -//======================================================================= +//================================================================================================= + Approx_BSplComputeLine::Approx_BSplComputeLine (const math_Vector& Parameters, const Standard_Integer degreemin, @@ -549,10 +537,8 @@ Approx_BSplComputeLine::Approx_BSplComputeLine tolreached = Standard_False; } -//======================================================================= -//function : Approx_BSplComputeLine -//purpose : -//======================================================================= +//================================================================================================= + Approx_BSplComputeLine::Approx_BSplComputeLine (const Standard_Integer degreemin, const Standard_Integer degreemax, @@ -584,10 +570,8 @@ Approx_BSplComputeLine::Approx_BSplComputeLine } -//======================================================================= -//function : Approx_BSplComputeLine -//purpose : -//======================================================================= +//================================================================================================= + Approx_BSplComputeLine::Approx_BSplComputeLine (const MultiLine& Line, const Standard_Integer degreemin, @@ -622,10 +606,8 @@ Approx_BSplComputeLine::Approx_BSplComputeLine -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::Perform(const MultiLine& Line) { @@ -764,10 +746,8 @@ void Approx_BSplComputeLine::Perform(const MultiLine& Line) -//======================================================================= -//function : Parameters -//purpose : -//======================================================================= +//================================================================================================= + const TColStd_Array1OfReal& Approx_BSplComputeLine::Parameters() const { return myParameters->Array1(); @@ -775,28 +755,22 @@ const TColStd_Array1OfReal& Approx_BSplComputeLine::Parameters() const -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + const AppParCurves_MultiBSpCurve& Approx_BSplComputeLine::Value() const { return TheMultiBSpCurve; } -//======================================================================= -//function : ChangeValue -//purpose : -//======================================================================= +//================================================================================================= + AppParCurves_MultiBSpCurve& Approx_BSplComputeLine::ChangeValue() { return TheMultiBSpCurve; } -//======================================================================= -//function : Parameters -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::Parameters(const MultiLine& Line, const Standard_Integer firstP, @@ -874,10 +848,8 @@ void Approx_BSplComputeLine::Parameters(const MultiLine& Line, } -//======================================================================= -//function : Compute -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Approx_BSplComputeLine::Compute(const MultiLine& Line, const Standard_Integer fpt, const Standard_Integer lpt, @@ -1023,10 +995,8 @@ Standard_Boolean Approx_BSplComputeLine::Compute(const MultiLine& Line, -//======================================================================= -//function : SetParameters -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetParameters(const math_Vector& ThePar) { myfirstParam = new TColStd_HArray1OfReal(ThePar.Lower(), @@ -1037,10 +1007,8 @@ void Approx_BSplComputeLine::SetParameters(const math_Vector& ThePar) } -//======================================================================= -//function : SetKnots -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetKnots(const TColStd_Array1OfReal& Knots) { myhasknots = Standard_True; @@ -1051,10 +1019,8 @@ void Approx_BSplComputeLine::SetKnots(const TColStd_Array1OfReal& Knots) } -//======================================================================= -//function : SetKnotsAndMultiplicities -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetKnotsAndMultiplicities (const TColStd_Array1OfReal& Knots, const TColStd_Array1OfInteger& Mults) @@ -1072,10 +1038,8 @@ void Approx_BSplComputeLine::SetKnotsAndMultiplicities } } -//======================================================================= -//function : Init -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::Init(const Standard_Integer degreemin, const Standard_Integer degreemax, const Standard_Real Tolerance3d, @@ -1097,10 +1061,8 @@ void Approx_BSplComputeLine::Init(const Standard_Integer degreemin, -//======================================================================= -//function : SetDegrees -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetDegrees(const Standard_Integer degreemin, const Standard_Integer degreemax) { @@ -1109,10 +1071,8 @@ void Approx_BSplComputeLine::SetDegrees(const Standard_Integer degreemin, } -//======================================================================= -//function : SetTolerances -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetTolerances(const Standard_Real Tolerance3d, const Standard_Real Tolerance2d) { @@ -1121,10 +1081,8 @@ void Approx_BSplComputeLine::SetTolerances(const Standard_Real Tolerance3d, } -//======================================================================= -//function : SetConstraints -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetConstraints(const AppParCurves_Constraint FirstC, const AppParCurves_Constraint LastC) { @@ -1132,38 +1090,30 @@ void Approx_BSplComputeLine::SetConstraints(const AppParCurves_Constraint FirstC mylastC = LastC; } -//======================================================================= -//function : SetPeriodic -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetPeriodic(const Standard_Boolean thePeriodic) { myPeriodic = thePeriodic; } -//======================================================================= -//function : IsAllApproximated -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Approx_BSplComputeLine::IsAllApproximated() const { return alldone; } -//======================================================================= -//function : IsToleranceReached -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Approx_BSplComputeLine::IsToleranceReached() const { return tolreached; } -//======================================================================= -//function : Error -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::Error(Standard_Real& tol3d, Standard_Real& tol2d) const { @@ -1173,10 +1123,8 @@ void Approx_BSplComputeLine::Error(Standard_Real& tol3d, -//======================================================================= -//function : SetContinuity -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::SetContinuity(const Standard_Integer C) { mycont = C; @@ -1184,10 +1132,8 @@ void Approx_BSplComputeLine::SetContinuity(const Standard_Integer C) -//======================================================================= -//function : FindRealConstraints -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::FindRealConstraints(const MultiLine& Line) { realfirstC = myfirstC; @@ -1259,10 +1205,8 @@ void Approx_BSplComputeLine::FindRealConstraints(const MultiLine& Line) -//======================================================================= -//function : Interpol -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::Interpol(const MultiLine& Line) { Standard_Integer i, Thefirstpt, Thelastpt, deg = 3; @@ -1400,10 +1344,8 @@ void Approx_BSplComputeLine::Interpol(const MultiLine& Line) } -//======================================================================= -//function : TangencyVector -//purpose : -//======================================================================= +//================================================================================================= + void Approx_BSplComputeLine::TangencyVector( const MultiLine& Line, const AppParCurves_MultiCurve& C, diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx index a788375de0..fe884bbe0f 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx @@ -441,19 +441,15 @@ void Approx_ComputeCLine::SetMaxSegments(const Standard_Integer theMaxSegments) myMaxSegments = theMaxSegments; } -//======================================================================= -//function : SetInvOrder -//purpose : -//======================================================================= +//================================================================================================= + void Approx_ComputeCLine::SetInvOrder(const Standard_Boolean theInvOrder) { myInvOrder = theInvOrder; } -//======================================================================= -//function : SetHangChecking -//purpose : -//======================================================================= +//================================================================================================= + void Approx_ComputeCLine::SetHangChecking(const Standard_Boolean theHangChecking) { myHangChecking = theHangChecking; diff --git a/src/ModelingData/TKGeomBase/CPnts/CPnts_AbscissaPoint.lxx b/src/ModelingData/TKGeomBase/CPnts/CPnts_AbscissaPoint.lxx index 9cf4ae0a36..6bb69b06f3 100644 --- a/src/ModelingData/TKGeomBase/CPnts/CPnts_AbscissaPoint.lxx +++ b/src/ModelingData/TKGeomBase/CPnts/CPnts_AbscissaPoint.lxx @@ -14,20 +14,14 @@ #include -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean CPnts_AbscissaPoint::IsDone() const { return myDone; } -//======================================================================= -// function : Parameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real CPnts_AbscissaPoint::Parameter() const { @@ -35,10 +29,7 @@ inline Standard_Real CPnts_AbscissaPoint::Parameter() const return myParam; } -//======================================================================= -// function : SetParameter -// purpose : -//======================================================================= +//================================================================================================= inline void CPnts_AbscissaPoint::SetParameter(const Standard_Real P) { diff --git a/src/ModelingData/TKGeomBase/CPnts/CPnts_UniformDeflection.lxx b/src/ModelingData/TKGeomBase/CPnts/CPnts_UniformDeflection.lxx index 191a5d44ab..d62da3eadd 100644 --- a/src/ModelingData/TKGeomBase/CPnts/CPnts_UniformDeflection.lxx +++ b/src/ModelingData/TKGeomBase/CPnts/CPnts_UniformDeflection.lxx @@ -15,20 +15,14 @@ #include #include -//======================================================================= -// function : IsAllDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean CPnts_UniformDeflection::IsAllDone() const { return myDone; } -//======================================================================= -// function : Next -// purpose : -//======================================================================= +//================================================================================================= inline void CPnts_UniformDeflection::Next() { @@ -37,10 +31,7 @@ inline void CPnts_UniformDeflection::Next() myIPoint++; } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real CPnts_UniformDeflection::Value() const { @@ -48,10 +39,7 @@ inline Standard_Real CPnts_UniformDeflection::Value() const return myParams[myIPoint + 1]; } -//======================================================================= -// function : Point -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt CPnts_UniformDeflection::Point() const { diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_Curve2dTool.lxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_Curve2dTool.lxx index 0f68d18f59..2229b9c067 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_Curve2dTool.lxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_Curve2dTool.lxx @@ -23,40 +23,28 @@ #include #include -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_Curve2dTool::FirstParameter(const Adaptor2d_Curve2d& C) { return C.FirstParameter(); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_Curve2dTool::LastParameter(const Adaptor2d_Curve2d& C) { return C.LastParameter(); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape Extrema_Curve2dTool::Continuity(const Adaptor2d_Curve2d& C) { return C.Continuity(); } -//======================================================================= -// function : NbIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_Curve2dTool::NbIntervals(const Adaptor2d_Curve2d& C, const GeomAbs_Shape S) @@ -64,10 +52,7 @@ inline Standard_Integer Extrema_Curve2dTool::NbIntervals(const Adaptor2d_Curve2d return C.NbIntervals(S); } -//======================================================================= -// function : Intervals -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_Curve2dTool::Intervals(const Adaptor2d_Curve2d& C, TColStd_Array1OfReal& T, @@ -76,60 +61,42 @@ inline void Extrema_Curve2dTool::Intervals(const Adaptor2d_Curve2d& C, C.Intervals(T, S); } -//======================================================================= -// function : IsClosed -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Extrema_Curve2dTool::IsClosed(const Adaptor2d_Curve2d& C) { return C.IsClosed(); } -//======================================================================= -// function : IsPeriodic -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Extrema_Curve2dTool::IsPeriodic(const Adaptor2d_Curve2d& C) { return C.IsPeriodic(); } -//======================================================================= -// function : Period -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_Curve2dTool::Period(const Adaptor2d_Curve2d& C) { return C.Period(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt2d Extrema_Curve2dTool::Value(const Adaptor2d_Curve2d& C, const Standard_Real U) { return C.Value(U); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_Curve2dTool::D0(const Adaptor2d_Curve2d& C, const Standard_Real U, gp_Pnt2d& P) { C.D0(U, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_Curve2dTool::D1(const Adaptor2d_Curve2d& C, const Standard_Real U, @@ -139,10 +106,7 @@ inline void Extrema_Curve2dTool::D1(const Adaptor2d_Curve2d& C, C.D1(U, P, V); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_Curve2dTool::D2(const Adaptor2d_Curve2d& C, const Standard_Real U, @@ -153,10 +117,7 @@ inline void Extrema_Curve2dTool::D2(const Adaptor2d_Curve2d& C, C.D2(U, P, V1, V2); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_Curve2dTool::D3(const Adaptor2d_Curve2d& C, const Standard_Real U, @@ -168,10 +129,7 @@ inline void Extrema_Curve2dTool::D3(const Adaptor2d_Curve2d& C, C.D3(U, P, V1, V2, V3); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= inline gp_Vec2d Extrema_Curve2dTool::DN(const Adaptor2d_Curve2d& C, const Standard_Real U, @@ -180,10 +138,7 @@ inline gp_Vec2d Extrema_Curve2dTool::DN(const Adaptor2d_Curve2d& C, return C.DN(U, N); } -//======================================================================= -// function : Resolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_Curve2dTool::Resolution(const Adaptor2d_Curve2d& C, const Standard_Real R3d) @@ -191,120 +146,84 @@ inline Standard_Real Extrema_Curve2dTool::Resolution(const Adaptor2d_Curve2d& C, return C.Resolution(R3d); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType Extrema_Curve2dTool::GetType(const Adaptor2d_Curve2d& C) { return C.GetType(); } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline gp_Lin2d Extrema_Curve2dTool::Line(const Adaptor2d_Curve2d& C) { return C.Line(); } -//======================================================================= -// function : Circle -// purpose : -//======================================================================= +//================================================================================================= inline gp_Circ2d Extrema_Curve2dTool::Circle(const Adaptor2d_Curve2d& C) { return C.Circle(); } -//======================================================================= -// function : Ellipse -// purpose : -//======================================================================= +//================================================================================================= inline gp_Elips2d Extrema_Curve2dTool::Ellipse(const Adaptor2d_Curve2d& C) { return C.Ellipse(); } -//======================================================================= -// function : Hyperbola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Hypr2d Extrema_Curve2dTool::Hyperbola(const Adaptor2d_Curve2d& C) { return C.Hyperbola(); } -//======================================================================= -// function : Parabola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Parab2d Extrema_Curve2dTool::Parabola(const Adaptor2d_Curve2d& C) { return C.Parabola(); } -//======================================================================= -// function : NbPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_Curve2dTool::NbPoles(const Adaptor2d_Curve2d& C) { return C.NbPoles(); } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_Curve2dTool::Degree(const Adaptor2d_Curve2d& C) { return C.Degree(); } -//======================================================================= -// function : IsRational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Extrema_Curve2dTool::IsRational(const Adaptor2d_Curve2d& C) { return C.Degree() != 0; } -//======================================================================= -// function : NbKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_Curve2dTool::NbKnots(const Adaptor2d_Curve2d& C) { return C.NbKnots(); } -//======================================================================= -// function : Bezier -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_BezierCurve) Extrema_Curve2dTool::Bezier(const Adaptor2d_Curve2d& C) { return C.Bezier(); } -//======================================================================= -// function : BSpline -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom2d_BSplineCurve) Extrema_Curve2dTool::BSpline(const Adaptor2d_Curve2d& C) { diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_CurveTool.lxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_CurveTool.lxx index 3113e030ee..8165ad7636 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_CurveTool.lxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_CurveTool.lxx @@ -25,50 +25,35 @@ #include #include -//======================================================================= -// function : FirstParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_CurveTool::FirstParameter(const Adaptor3d_Curve& C) { return C.FirstParameter(); } -//======================================================================= -// function : LastParameter -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_CurveTool::LastParameter(const Adaptor3d_Curve& C) { return C.LastParameter(); } -//======================================================================= -// function : Value -// purpose : -//======================================================================= +//================================================================================================= inline gp_Pnt Extrema_CurveTool::Value(const Adaptor3d_Curve& C, const Standard_Real U) { return C.Value(U); } -//======================================================================= -// function : D0 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_CurveTool::D0(const Adaptor3d_Curve& C, const Standard_Real U, gp_Pnt& P) { C.D0(U, P); } -//======================================================================= -// function : D1 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_CurveTool::D1(const Adaptor3d_Curve& C, const Standard_Real U, @@ -78,10 +63,7 @@ inline void Extrema_CurveTool::D1(const Adaptor3d_Curve& C, C.D1(U, P, V); } -//======================================================================= -// function : D2 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_CurveTool::D2(const Adaptor3d_Curve& C, const Standard_Real U, @@ -92,10 +74,7 @@ inline void Extrema_CurveTool::D2(const Adaptor3d_Curve& C, C.D2(U, P, V1, V2); } -//======================================================================= -// function : D3 -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_CurveTool::D3(const Adaptor3d_Curve& C, const Standard_Real U, @@ -107,10 +86,8 @@ inline void Extrema_CurveTool::D3(const Adaptor3d_Curve& C, C.D3(U, P, V1, V2, V3); } -//======================================================================= -// function : DN -// purpose : -//======================================================================= +//================================================================================================= + inline gp_Vec Extrema_CurveTool::DN(const Adaptor3d_Curve& C, const Standard_Real U, const Standard_Integer N) @@ -118,30 +95,21 @@ inline gp_Vec Extrema_CurveTool::DN(const Adaptor3d_Curve& C, return C.DN(U, N); } -//======================================================================= -// function : Continuity -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_Shape Extrema_CurveTool::Continuity(const Adaptor3d_Curve& C) { return C.Continuity(); } -//======================================================================= -// function : NbIntervals -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_CurveTool::NbIntervals(Adaptor3d_Curve& C, const GeomAbs_Shape S) { return C.NbIntervals(S); } -//======================================================================= -// function : Intervals -// purpose : -//======================================================================= +//================================================================================================= inline void Extrema_CurveTool::Intervals(Adaptor3d_Curve& C, TColStd_Array1OfReal& T, @@ -150,140 +118,98 @@ inline void Extrema_CurveTool::Intervals(Adaptor3d_Curve& C, C.Intervals(T, S); } -//======================================================================= -// function : Period -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_CurveTool::Period(const Adaptor3d_Curve& C) { return C.Period(); } -//======================================================================= -// function : GetType -// purpose : -//======================================================================= +//================================================================================================= inline GeomAbs_CurveType Extrema_CurveTool::GetType(const Adaptor3d_Curve& C) { return C.GetType(); } -//======================================================================= -// function : Line -// purpose : -//======================================================================= +//================================================================================================= inline gp_Lin Extrema_CurveTool::Line(const Adaptor3d_Curve& C) { return C.Line(); } -//======================================================================= -// function : Circle -// purpose : -//======================================================================= +//================================================================================================= inline gp_Circ Extrema_CurveTool::Circle(const Adaptor3d_Curve& C) { return C.Circle(); } -//======================================================================= -// function : Ellipse -// purpose : -//======================================================================= +//================================================================================================= inline gp_Elips Extrema_CurveTool::Ellipse(const Adaptor3d_Curve& C) { return C.Ellipse(); } -//======================================================================= -// function : Hyperbola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Hypr Extrema_CurveTool::Hyperbola(const Adaptor3d_Curve& C) { return C.Hyperbola(); } -//======================================================================= -// function : Parabola -// purpose : -//======================================================================= +//================================================================================================= inline gp_Parab Extrema_CurveTool::Parabola(const Adaptor3d_Curve& C) { return C.Parabola(); } -//======================================================================= -// function : NbPoles -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_CurveTool::NbPoles(const Adaptor3d_Curve& C) { return C.NbPoles(); } -//======================================================================= -// function : Degree -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_CurveTool::Degree(const Adaptor3d_Curve& C) { return C.Degree(); } -//======================================================================= -// function : IsRational -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean Extrema_CurveTool::IsRational(const Adaptor3d_Curve& C) { return C.IsRational(); } -//======================================================================= -// function : NbKnots -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Integer Extrema_CurveTool::NbKnots(const Adaptor3d_Curve& C) { return C.NbKnots(); } -//======================================================================= -// function : Bezier -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom_BezierCurve) Extrema_CurveTool::Bezier(const Adaptor3d_Curve& C) { return C.Bezier(); } -//======================================================================= -// function : BSpline -// purpose : -//======================================================================= +//================================================================================================= inline Handle(Geom_BSplineCurve) Extrema_CurveTool::BSpline(const Adaptor3d_Curve& C) { return C.BSpline(); } -//======================================================================= -// function : Resolution -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Real Extrema_CurveTool::Resolution(const Adaptor3d_Curve& C, const Standard_Real R3d) diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GExtPC.gxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GExtPC.gxx index 54d293e5ed..c2657f8e73 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GExtPC.gxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GExtPC.gxx @@ -32,10 +32,8 @@ #include -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GExtPC::Perform(const ThePoint& P) { mySqDist.Clear(); @@ -484,10 +482,8 @@ void Extrema_GExtPC::Perform(const ThePoint& P) } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GExtPC::Initialize(const TheCurve& C, const Standard_Real Uinf, @@ -507,10 +503,8 @@ void Extrema_GExtPC::Initialize(const TheCurve& C, } -//======================================================================= -//function : IntervalPerform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GExtPC::IntervalPerform(const ThePoint& P) { @@ -542,10 +536,8 @@ void Extrema_GExtPC::IntervalPerform(const ThePoint& P) } -//======================================================================= -//function : AddSol -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GExtPC::AddSol(const Standard_Real theU, const ThePoint& theP, const Standard_Real theSqDist, @@ -568,10 +560,8 @@ void Extrema_GExtPC::AddSol(const Standard_Real theU, const ThePoint& theP, } -//======================================================================= -//function : Extrema_GExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GExtPC::Extrema_GExtPC() { @@ -586,10 +576,8 @@ Extrema_GExtPC::Extrema_GExtPC() type = GeomAbs_OtherCurve; } -//======================================================================= -//function : Extrema_GExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GExtPC::Extrema_GExtPC(const ThePoint& P, const TheCurve& C, @@ -601,10 +589,8 @@ Extrema_GExtPC::Extrema_GExtPC(const ThePoint& P, Perform(P); } -//======================================================================= -//function : Extrema_GExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GExtPC::Extrema_GExtPC(const ThePoint& P, const TheCurve& C, @@ -616,10 +602,8 @@ Extrema_GExtPC::Extrema_GExtPC(const ThePoint& P, } -//======================================================================= -//function : IsDone -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GExtPC::IsDone() const { @@ -627,10 +611,8 @@ Standard_Boolean Extrema_GExtPC::IsDone() const } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Extrema_GExtPC::SquareDistance(const Standard_Integer N) const { @@ -639,10 +621,8 @@ Standard_Real Extrema_GExtPC::SquareDistance(const Standard_Integer N) const } -//======================================================================= -//function : NbExt -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer Extrema_GExtPC::NbExt() const { @@ -651,10 +631,8 @@ Standard_Integer Extrema_GExtPC::NbExt() const } -//======================================================================= -//function : IsMin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GExtPC::IsMin(const Standard_Integer N) const { @@ -664,10 +642,8 @@ Standard_Boolean Extrema_GExtPC::IsMin(const Standard_Integer N) const -//======================================================================= -//function : Point -//purpose : -//======================================================================= +//================================================================================================= + const ThePOnC & Extrema_GExtPC::Point(const Standard_Integer N) const { @@ -676,10 +652,8 @@ const ThePOnC & Extrema_GExtPC::Point(const Standard_Integer N) const } -//======================================================================= -//function : TrimmedDistances -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GExtPC::TrimmedSquareDistances(Standard_Real& dist1, Standard_Real& dist2, diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GLocateExtPC.gxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GLocateExtPC.gxx index 2ff7748895..bc0f3bba17 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GLocateExtPC.gxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GLocateExtPC.gxx @@ -31,10 +31,8 @@ #include -//======================================================================= -//function : Extrema_GLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GLocateExtPC::Extrema_GLocateExtPC() : myC(NULL), @@ -50,10 +48,8 @@ Extrema_GLocateExtPC::Extrema_GLocateExtPC() } -//======================================================================= -//function : Extrema_GLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GLocateExtPC::Extrema_GLocateExtPC (const ThePoint& P, const TheCurve& C, @@ -64,10 +60,8 @@ Extrema_GLocateExtPC::Extrema_GLocateExtPC (const ThePoint& P, Perform(P, U0); } -//======================================================================= -//function : Extrema_GLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GLocateExtPC::Extrema_GLocateExtPC (const ThePoint& P, const TheCurve& C, @@ -82,10 +76,8 @@ Extrema_GLocateExtPC::Extrema_GLocateExtPC (const ThePoint& P, -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GLocateExtPC::Initialize(const TheCurve& C, const Standard_Real Umin, @@ -113,10 +105,8 @@ void Extrema_GLocateExtPC::Initialize(const TheCurve& C, -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GLocateExtPC::Perform(const ThePoint& P, const Standard_Real U0) @@ -310,10 +300,8 @@ void Extrema_GLocateExtPC::Perform(const ThePoint& P, -//======================================================================= -//function : IsDone -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GLocateExtPC::IsDone () const { @@ -321,10 +309,8 @@ Standard_Boolean Extrema_GLocateExtPC::IsDone () const } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Extrema_GLocateExtPC::SquareDistance () const { @@ -350,10 +336,8 @@ Standard_Real Extrema_GLocateExtPC::SquareDistance () const } -//======================================================================= -//function : IsMin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GLocateExtPC::IsMin () const { @@ -379,10 +363,8 @@ Standard_Boolean Extrema_GLocateExtPC::IsMin () const } -//======================================================================= -//function : Point -//purpose : -//======================================================================= +//================================================================================================= + const ThePOnC & Extrema_GLocateExtPC::Point () const { diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtCC.gxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtCC.gxx index 8c48e74fe3..08f04077e7 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtCC.gxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtCC.gxx @@ -167,10 +167,8 @@ static Standard_Real ProjPOnC(const Pnt& theP, return aDist; } -//======================================================================= -//function : Extrema_GenExtCC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtCC::Extrema_GenExtCC() : myIsFindSingleSolution(Standard_False), myParallel(Standard_False), @@ -182,10 +180,8 @@ Extrema_GenExtCC::Extrema_GenExtCC() myC[0] = myC[1] = 0; } -//======================================================================= -//function : Extrema_GenExtCC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtCC::Extrema_GenExtCC(const Curve1& C1, const Curve2& C2) : myIsFindSingleSolution(Standard_False), @@ -203,10 +199,8 @@ Extrema_GenExtCC::Extrema_GenExtCC(const Curve1& C1, myUppBorder(2) = C2.LastParameter(); } -//======================================================================= -//function : Extrema_GenExtCC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtCC::Extrema_GenExtCC(const Curve1& C1, const Curve2& C2, const Standard_Real Uinf, @@ -228,10 +222,8 @@ Extrema_GenExtCC::Extrema_GenExtCC(const Curve1& C1, myUppBorder(2) = Vsup; } -//======================================================================= -//function : SetParams -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtCC::SetParams(const Curve1& C1, const Curve2& C2, const Standard_Real Uinf, @@ -247,19 +239,15 @@ void Extrema_GenExtCC::SetParams(const Curve1& C1, myUppBorder(2) = Vsup; } -//======================================================================= -//function : SetTolerance -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtCC::SetTolerance(Standard_Real theTol) { myCurveMinTol = theTol; } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtCC::Perform() { myDone = Standard_False; @@ -652,39 +640,31 @@ void Extrema_GenExtCC::Perform() } } -//======================================================================= -//function : IsDone -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenExtCC::IsDone() const { return myDone; } -//======================================================================= -//function : IsParallel -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenExtCC::IsParallel() const { if (!IsDone()) throw StdFail_NotDone(); return myParallel; } -//======================================================================= -//function : NbExt -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer Extrema_GenExtCC::NbExt() const { if (!IsDone()) throw StdFail_NotDone(); return myPoints1.Length(); } -//======================================================================= -//function : SquareDistance -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Extrema_GenExtCC::SquareDistance(const Standard_Integer N) const { if (N < 1 || N > NbExt()) @@ -695,10 +675,8 @@ Standard_Real Extrema_GenExtCC::SquareDistance(const Standard_Integer N) const return Tool1::Value(*((Curve1*)myC[0]), myPoints1(N)).SquareDistance(Tool2::Value(*((Curve2*)myC[1]), myPoints2(N))); } -//======================================================================= -//function : Points -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtCC::Points(const Standard_Integer N, POnC& P1, POnC& P2) const @@ -712,19 +690,15 @@ void Extrema_GenExtCC::Points(const Standard_Integer N, P2.SetValues(myPoints2(N), Tool2::Value(*((Curve2*)myC[1]), myPoints2(N))); } -//======================================================================= -//function : SetSingleSolutionFlag -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtCC::SetSingleSolutionFlag(const Standard_Boolean theFlag) { myIsFindSingleSolution = theFlag; } -//======================================================================= -//function : GetSingleSolutionFlag -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenExtCC::GetSingleSolutionFlag() const { return myIsFindSingleSolution; diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtPC.gxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtPC.gxx index 8dbb6d4a6f..6cdd99bfbe 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtPC.gxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenExtPC.gxx @@ -21,10 +21,8 @@ #include -//======================================================================= -//function : Extrema_GenExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtPC::Extrema_GenExtPC () : myDone(Standard_False), @@ -39,10 +37,8 @@ Extrema_GenExtPC::Extrema_GenExtPC () -//======================================================================= -//function : Extrema_GenExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtPC::Extrema_GenExtPC (const Pnt& P, const Curve& C, @@ -55,10 +51,8 @@ Extrema_GenExtPC::Extrema_GenExtPC (const Pnt& P, } -//======================================================================= -//function : Extrema_GenExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenExtPC::Extrema_GenExtPC (const Pnt& P, const Curve& C, @@ -73,10 +67,8 @@ Extrema_GenExtPC::Extrema_GenExtPC (const Pnt& P, } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtPC::Initialize(const Curve& C, const Standard_Integer NbU, @@ -92,10 +84,8 @@ void Extrema_GenExtPC::Initialize(const Curve& C, myusup = Tool::LastParameter(C); } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtPC::Initialize(const Curve& C, const Standard_Integer NbU, @@ -114,10 +104,8 @@ void Extrema_GenExtPC::Initialize(const Curve& C, } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtPC::Initialize(const Standard_Integer NbU, const Standard_Real Umin, @@ -132,10 +120,8 @@ void Extrema_GenExtPC::Initialize(const Standard_Integer NbU, myusup = Usup; } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtPC::Initialize(const Curve& C) { @@ -144,10 +130,8 @@ void Extrema_GenExtPC::Initialize(const Curve& C) -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenExtPC::Perform(const Pnt& P) /*----------------------------------------------------------------------------- @@ -183,10 +167,8 @@ Methode: -//======================================================================= -//function : IsDone -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenExtPC::IsDone () const { @@ -194,10 +176,8 @@ Standard_Boolean Extrema_GenExtPC::IsDone () const { } -//======================================================================= -//function : NbExt -//purpose : -//======================================================================= +//================================================================================================= + Standard_Integer Extrema_GenExtPC::NbExt () const { @@ -206,10 +186,8 @@ Standard_Integer Extrema_GenExtPC::NbExt () const { } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Extrema_GenExtPC::SquareDistance (const Standard_Integer N) const { @@ -222,10 +200,8 @@ Standard_Real Extrema_GenExtPC::SquareDistance (const Standard_Integer N) const } -//======================================================================= -//function : IsMin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenExtPC::IsMin (const Standard_Integer N) const { @@ -238,10 +214,8 @@ Standard_Boolean Extrema_GenExtPC::IsMin (const Standard_Integer N) const { } -//======================================================================= -//function : Point -//purpose : -//======================================================================= +//================================================================================================= + const POnC & Extrema_GenExtPC::Point (const Standard_Integer N) const { diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenLocateExtPC.gxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenLocateExtPC.gxx index 98b6cc6a49..cb38dfaa7e 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GenLocateExtPC.gxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GenLocateExtPC.gxx @@ -18,10 +18,8 @@ #include #include -//======================================================================= -//function : Extrema_GenLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenLocateExtPC::Extrema_GenLocateExtPC() : myDone(Standard_False), @@ -32,10 +30,8 @@ Extrema_GenLocateExtPC::Extrema_GenLocateExtPC() } -//======================================================================= -//function : Extrema_GenLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenLocateExtPC::Extrema_GenLocateExtPC (const Pnt& P, const Curve& C, @@ -47,10 +43,8 @@ Extrema_GenLocateExtPC::Extrema_GenLocateExtPC (const Pnt& P, } -//======================================================================= -//function : Extrema_GenLocateExtPC -//purpose : -//======================================================================= +//================================================================================================= + Extrema_GenLocateExtPC::Extrema_GenLocateExtPC (const Pnt& P, const Curve& C, @@ -64,10 +58,8 @@ Extrema_GenLocateExtPC::Extrema_GenLocateExtPC (const Pnt& P, } -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenLocateExtPC::Initialize(const Curve& C, const Standard_Real Umin, @@ -82,10 +74,8 @@ void Extrema_GenLocateExtPC::Initialize(const Curve& C, } -//======================================================================= -//function : Perform -//purpose : -//======================================================================= +//================================================================================================= + void Extrema_GenLocateExtPC::Perform(const Pnt& P, const Standard_Real U0) @@ -124,10 +114,8 @@ Methode: } } -//======================================================================= -//function : IsDone -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenLocateExtPC::IsDone () const { @@ -135,10 +123,8 @@ Standard_Boolean Extrema_GenLocateExtPC::IsDone () const } -//======================================================================= -//function : Value -//purpose : -//======================================================================= +//================================================================================================= + Standard_Real Extrema_GenLocateExtPC::SquareDistance() const { @@ -150,10 +136,8 @@ Standard_Real Extrema_GenLocateExtPC::SquareDistance() const } -//======================================================================= -//function : IsMin -//purpose : -//======================================================================= +//================================================================================================= + Standard_Boolean Extrema_GenLocateExtPC::IsMin () const { @@ -165,10 +149,8 @@ Standard_Boolean Extrema_GenLocateExtPC::IsMin () const } -//======================================================================= -//function : Point -//purpose : -//======================================================================= +//================================================================================================= + const POnC & Extrema_GenLocateExtPC::Point () const { diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Interpolate.lxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Interpolate.lxx index 231e58053b..0d4b9f9857 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Interpolate.lxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Interpolate.lxx @@ -14,20 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomLib_Interpolate::IsDone() const { return myIsDone; } -//======================================================================= -// function : Error -// purpose : -//======================================================================= +//================================================================================================= inline GeomLib_InterpolationErrors GeomLib_Interpolate::Error() const { diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_MakeCurvefromApprox.lxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_MakeCurvefromApprox.lxx index 0ae5d23493..024b8295f0 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_MakeCurvefromApprox.lxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_MakeCurvefromApprox.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : IsDone -// purpose : -//======================================================================= +//================================================================================================= inline Standard_Boolean GeomLib_MakeCurvefromApprox::IsDone() const { diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx index 0cb45ca667..fbb6ba76c4 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx @@ -2844,10 +2844,8 @@ gp_Parab IntAna_QuadQuadGeo::Parabola(const Standard_Integer n) const return (gp_Parab(gp_Ax2(pt1, dir1, dir2), param1)); } -//======================================================================= -// function : Hyperbola -// purpose : Returns a Hyperbola -//======================================================================= +//================================================================================================= + gp_Hypr IntAna_QuadQuadGeo::Hyperbola(const Standard_Integer n) const { if (!done) diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx index 2b9fe9ca64..2603413402 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx @@ -942,10 +942,9 @@ static void Function_SetUVBounds(Standard_Real& myU1, // // -//======================================================================= -// classn : ProjLib_Function -// purpose : -//======================================================================= + +//================================================================================================= + class ProjLib_Function : public AppCont_Function { Handle(Adaptor3d_Curve) myCurve; diff --git a/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx b/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx index 511ac40377..c50dc60eb7 100644 --- a/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx +++ b/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx @@ -114,10 +114,8 @@ void IVtkOCC_ViewerSelector::Pick(const Standard_Integer theXPix, TraverseSensitives(-1); } -//============================================================================ -// Method: Pick -// Purpose: Picking by rectangle -//============================================================================ +//================================================================================================= + void IVtkOCC_ViewerSelector::Pick(const Standard_Integer theXMin, const Standard_Integer theYMin, const Standard_Integer theXMax, diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveFace.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveFace.cxx index e4e04d30d3..907f0e56b6 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveFace.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveFace.cxx @@ -18,10 +18,8 @@ IMPLEMENT_STANDARD_RTTIEXT(MeshVS_SensitiveFace, Select3D_SensitiveFace) -//======================================================================= -// name : MeshVS_SensitiveFace::MeshVS_SensitiveFace -// Purpose : -//======================================================================= +//================================================================================================= + MeshVS_SensitiveFace::MeshVS_SensitiveFace(const Handle(SelectMgr_EntityOwner)& theOwnerId, const TColgp_Array1OfPnt& thePnts, const Select3D_TypeOfSensitivity theSensitivity) diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx index aff50cdd37..748faede77 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx @@ -22,10 +22,8 @@ IMPLEMENT_STANDARD_RTTIEXT(MeshVS_SensitiveMesh, Select3D_SensitiveEntity) -//======================================================================= -// name : MeshVS_SensitiveMesh::MeshVS_SensitiveMesh -// Purpose : -//======================================================================= +//================================================================================================= + MeshVS_SensitiveMesh::MeshVS_SensitiveMesh(const Handle(SelectMgr_EntityOwner)& theOwnerId, const Standard_Integer theMode) : Select3D_SensitiveEntity(theOwnerId) @@ -55,10 +53,8 @@ Standard_Integer MeshVS_SensitiveMesh::GetMode() const return myMode; } -//======================================================================= -// name : GetConnected -// Purpose : -//======================================================================= +//================================================================================================= + Handle(Select3D_SensitiveEntity) MeshVS_SensitiveMesh::GetConnected() { Handle(MeshVS_SensitiveMesh) aMeshEnt = new MeshVS_SensitiveMesh(myOwnerId); diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveSegment.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveSegment.cxx index c2f18d38cc..45a83666bc 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveSegment.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveSegment.cxx @@ -17,10 +17,8 @@ IMPLEMENT_STANDARD_RTTIEXT(MeshVS_SensitiveSegment, Select3D_SensitiveSegment) -//======================================================================= -// name : MeshVS_SensitiveSegment::MeshVS_SensitiveSegment -// Purpose : -//======================================================================= +//================================================================================================= + MeshVS_SensitiveSegment::MeshVS_SensitiveSegment(const Handle(SelectMgr_EntityOwner)& theOwnerId, const gp_Pnt& theFirstPnt, const gp_Pnt& theLastPnt) diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_VectorPrsBuilder.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_VectorPrsBuilder.cxx index 090015ee83..a386108947 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_VectorPrsBuilder.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_VectorPrsBuilder.cxx @@ -414,19 +414,15 @@ Standard_Real MeshVS_VectorPrsBuilder::calculateArrow(TColgp_Array1OfPnt& Points return h; } -//======================================================================= -// name : SetSimplePrsMode -// Purpose : -//======================================================================= +//================================================================================================= + void MeshVS_VectorPrsBuilder::SetSimplePrsMode(const Standard_Boolean IsSimpleArrow) { myIsSimplePrs = IsSimpleArrow; } -//======================================================================= -// name : SetSimplePrsParams -// Purpose : -//======================================================================= +//================================================================================================= + void MeshVS_VectorPrsBuilder::SetSimplePrsParams(const Standard_Real theLineWidthParam, const Standard_Real theStartParam, const Standard_Real theEndParam) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_BufferCompatT.hxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_BufferCompatT.hxx index 65939a7065..2a526456a5 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_BufferCompatT.hxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_BufferCompatT.hxx @@ -104,10 +104,8 @@ protected: Handle(NCollection_Buffer) myData; //!< buffer data }; -// ======================================================================= -// function : Create -// purpose : -// ======================================================================= +//================================================================================================= + template bool OpenGl_BufferCompatT::Create(const Handle(OpenGl_Context)&) { @@ -119,10 +117,8 @@ bool OpenGl_BufferCompatT::Create(const Handle(OpenGl_Context)&) return BaseBufferT::myBufferId != OpenGl_Buffer::NO_BUFFER; } -// ======================================================================= -// function : Release -// purpose : -// ======================================================================= +//================================================================================================= + template void OpenGl_BufferCompatT::Release(OpenGl_Context*) { @@ -136,10 +132,8 @@ void OpenGl_BufferCompatT::Release(OpenGl_Context*) myData.Nullify(); } -// ======================================================================= -// function : initLink -// purpose : -// ======================================================================= +//================================================================================================= + template bool OpenGl_BufferCompatT::initLink(const Handle(NCollection_Buffer)& theData, const unsigned int theComponentsNb, @@ -164,10 +158,8 @@ bool OpenGl_BufferCompatT::initLink(const Handle(NCollection_Buffer return true; } -// ======================================================================= -// function : init -// purpose : -// ======================================================================= +//================================================================================================= + template bool OpenGl_BufferCompatT::init(const Handle(OpenGl_Context)& theCtx, const unsigned int theComponentsNb, @@ -201,10 +193,8 @@ bool OpenGl_BufferCompatT::init(const Handle(OpenGl_Context)& theCt return true; } -// ======================================================================= -// function : subData -// purpose : -// ======================================================================= +//================================================================================================= + template bool OpenGl_BufferCompatT::subData(const Handle(OpenGl_Context)&, const Standard_Integer theElemFrom, @@ -229,10 +219,8 @@ bool OpenGl_BufferCompatT::subData(const Handle(OpenGl_Context)&, return true; } -// ======================================================================= -// function : getSubData -// purpose : -// ======================================================================= +//================================================================================================= + template bool OpenGl_BufferCompatT::getSubData(const Handle(OpenGl_Context)&, const Standard_Integer theElemFrom, diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Context_1.mm b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Context_1.mm index f55953d700..8d5a606f50 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Context_1.mm +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Context_1.mm @@ -36,10 +36,8 @@ #include -// ======================================================================= -// function : IsCurrent -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Boolean OpenGl_Context::IsCurrent() const { #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE @@ -51,10 +49,8 @@ Standard_Boolean OpenGl_Context::IsCurrent() const #endif } -// ======================================================================= -// function : MakeCurrent -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Boolean OpenGl_Context::MakeCurrent() { if (myGContext == NULL) @@ -71,10 +67,8 @@ Standard_Boolean OpenGl_Context::MakeCurrent() #endif } -// ======================================================================= -// function : SwapBuffers -// purpose : -// ======================================================================= +//================================================================================================= + void OpenGl_Context::SwapBuffers() { if (myGContext == NULL) @@ -99,10 +93,8 @@ void OpenGl_Context::SwapBuffers() #endif } -// ======================================================================= -// function : Init -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Boolean OpenGl_Context::Init (const Standard_Boolean theIsCoreProfile) { if (myIsInitialized) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_TextureFormat.hxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_TextureFormat.hxx index 361b660dca..14950d3086 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_TextureFormat.hxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_TextureFormat.hxx @@ -302,10 +302,8 @@ struct OpenGl_TextureFormatSelector } }; -// ======================================================================= -// function : Create -// purpose : -// ======================================================================= +//================================================================================================= + template inline OpenGl_TextureFormat OpenGl_TextureFormat::Create() { diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Window_1.mm b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Window_1.mm index 8e61ad112a..154e8e5d6d 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Window_1.mm +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Window_1.mm @@ -52,10 +52,8 @@ #include #endif -// ======================================================================= -// function : OpenGl_Window -// purpose : -// ======================================================================= +//================================================================================================= + OpenGl_Window::OpenGl_Window() : myOwnGContext (false), mySwapInterval (0) @@ -63,10 +61,8 @@ OpenGl_Window::OpenGl_Window() // } -// ======================================================================= -// function : Init -// purpose : -// ======================================================================= +//================================================================================================= + void OpenGl_Window::Init (const Handle(OpenGl_GraphicDriver)& theDriver, const Handle(Aspect_Window)& thePlatformWindow, const Handle(Aspect_Window)& theSizeWindow, @@ -267,10 +263,8 @@ OpenGl_Window::~OpenGl_Window() #endif } -// ======================================================================= -// function : Resize -// purpose : call_subr_resize -// ======================================================================= +//================================================================================================= + void OpenGl_Window::Resize() { // If the size is not changed - do nothing @@ -315,10 +309,8 @@ void OpenGl_Window::Resize() init(); } -// ======================================================================= -// function : init -// purpose : -// ======================================================================= +//================================================================================================= + void OpenGl_Window::init() { if (!Activate()) @@ -411,10 +403,8 @@ void OpenGl_Window::init() } } -// ======================================================================= -// function : SetSwapInterval -// purpose : -// ======================================================================= +//================================================================================================= + void OpenGl_Window::SetSwapInterval (Standard_Boolean theToForceNoSync) { const Standard_Integer aSwapInterval = theToForceNoSync ? 0 : myGlContext->caps->swapInterval; diff --git a/src/Visualization/TKService/Cocoa/Cocoa_LocalPool.mm b/src/Visualization/TKService/Cocoa/Cocoa_LocalPool.mm index aa61be949a..be17902d9b 100644 --- a/src/Visualization/TKService/Cocoa/Cocoa_LocalPool.mm +++ b/src/Visualization/TKService/Cocoa/Cocoa_LocalPool.mm @@ -25,10 +25,8 @@ #ifndef HAVE_OBJC_ARC -// ======================================================================= -// function : Cocoa_LocalPool -// purpose : -// ======================================================================= +//================================================================================================= + Cocoa_LocalPool::Cocoa_LocalPool() : myPoolObj ([[NSAutoreleasePool alloc] init]) { diff --git a/src/Visualization/TKService/Cocoa/Cocoa_Window.mm b/src/Visualization/TKService/Cocoa/Cocoa_Window.mm index cd42e414eb..13e008b6bc 100644 --- a/src/Visualization/TKService/Cocoa/Cocoa_Window.mm +++ b/src/Visualization/TKService/Cocoa/Cocoa_Window.mm @@ -90,10 +90,8 @@ static Standard_Integer getScreenBottom() @end #endif -// ======================================================================= -// function : Cocoa_Window -// purpose : -// ======================================================================= +//================================================================================================= + Cocoa_Window::Cocoa_Window (const Standard_CString theTitle, const Standard_Integer thePxLeft, const Standard_Integer thePxTop, @@ -150,10 +148,8 @@ Cocoa_Window::Cocoa_Window (const Standard_CString theTitle, #endif } -// ======================================================================= -// function : Cocoa_Window -// purpose : -// ======================================================================= +//================================================================================================= + #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE Cocoa_Window::Cocoa_Window (UIView* theViewNS) : Aspect_Window(), @@ -204,10 +200,8 @@ Cocoa_Window::~Cocoa_Window() } } -// ======================================================================= -// function : SetHView -// purpose : -// ======================================================================= +//================================================================================================= + #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE void Cocoa_Window::SetHView (UIView* theView) { @@ -232,10 +226,8 @@ void Cocoa_Window::SetHView (NSView* theView) #endif } -// ======================================================================= -// function : IsMapped -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Boolean Cocoa_Window::IsMapped() const { if (IsVirtual()) @@ -251,10 +243,8 @@ Standard_Boolean Cocoa_Window::IsMapped() const #endif } -// ======================================================================= -// function : Map -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::Map() const { if (IsVirtual()) @@ -272,10 +262,8 @@ void Cocoa_Window::Map() const } } -// ======================================================================= -// function : Unmap -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::Unmap() const { if (myHView != NULL) @@ -288,10 +276,8 @@ void Cocoa_Window::Unmap() const } } -// ======================================================================= -// function : DoResize -// purpose : -// ======================================================================= +//================================================================================================= + Aspect_TypeOfResize Cocoa_Window::DoResize() { if (myHView == NULL) @@ -332,19 +318,15 @@ Aspect_TypeOfResize Cocoa_Window::DoResize() return aMode; } -// ======================================================================= -// function : DoMapping -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Boolean Cocoa_Window::DoMapping() const { return Standard_True; } -// ======================================================================= -// function : Ratio -// purpose : -// ======================================================================= +//================================================================================================= + Standard_Real Cocoa_Window::Ratio() const { if (myHView == NULL) @@ -360,10 +342,8 @@ Standard_Real Cocoa_Window::Ratio() const return Standard_Real (aBounds.size.width / aBounds.size.height); } -// ======================================================================= -// function : Position -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::Position (Standard_Integer& X1, Standard_Integer& Y1, Standard_Integer& X2, Standard_Integer& Y2) const { @@ -383,10 +363,8 @@ void Cocoa_Window::Position (Standard_Integer& X1, Standard_Integer& Y1, #endif } -// ======================================================================= -// function : Size -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::Size (Standard_Integer& theWidth, Standard_Integer& theHeight) const { @@ -404,10 +382,8 @@ void Cocoa_Window::Size (Standard_Integer& theWidth, theHeight = (Standard_Integer )aBounds.size.height; } -// ======================================================================= -// function : SetTitle -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::SetTitle (const TCollection_AsciiString& theTitle) { if (myHView == NULL) @@ -425,10 +401,8 @@ void Cocoa_Window::SetTitle (const TCollection_AsciiString& theTitle) #endif } -// ======================================================================= -// function : InvalidateContent -// purpose : -// ======================================================================= +//================================================================================================= + void Cocoa_Window::InvalidateContent (const Handle(Aspect_DisplayConnection)& ) { if (myHView == NULL) @@ -443,10 +417,8 @@ void Cocoa_Window::InvalidateContent (const Handle(Aspect_DisplayConnection)& ) } } -// ======================================================================= -// function : VirtualKeyFromNative -// purpose : -// ======================================================================= +//================================================================================================= + Aspect_VKey Cocoa_Window::VirtualKeyFromNative (Standard_Integer theKey) { switch (theKey) diff --git a/src/Visualization/TKService/Graphic3d/Graphic3d_TransformUtils.hxx b/src/Visualization/TKService/Graphic3d/Graphic3d_TransformUtils.hxx index ff2483e5fb..7f06f64faa 100644 --- a/src/Visualization/TKService/Graphic3d/Graphic3d_TransformUtils.hxx +++ b/src/Visualization/TKService/Graphic3d/Graphic3d_TransformUtils.hxx @@ -131,10 +131,8 @@ static Standard_Real ScaleFactor(const NCollection_Mat4& theMatrix) } } // namespace Graphic3d_TransformUtils -// ======================================================================= -// function : Convert -// purpose : -// ======================================================================= +//================================================================================================= + template void Graphic3d_TransformUtils::Convert(const gp_Trsf& theTransformation, typename MatrixType::Mat4& theOut) diff --git a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx index e839f744a1..65da48b6e0 100644 --- a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx +++ b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx @@ -1578,11 +1578,8 @@ void AIS_Manipulator::ComputeSelection(const Handle(SelectMgr_Selection)& theSel } } -//======================================================================= -// class : Disk -// function : Init -// purpose : -//======================================================================= +//================================================================================================= + void AIS_Manipulator::Disk::Init(const Standard_ShortReal theInnerRadius, const Standard_ShortReal theOuterRadius, const gp_Ax1& thePosition, @@ -1603,11 +1600,8 @@ void AIS_Manipulator::Disk::Init(const Standard_ShortReal theInnerRadius, myTriangulation = aTool.CreatePolyTriangulation(aTrsf); } -//======================================================================= -// class : Sphere -// function : Init -// purpose : -//======================================================================= +//================================================================================================= + void AIS_Manipulator::Sphere::Init(const Standard_ShortReal theRadius, const gp_Pnt& thePosition, const ManipulatorSkin theSkinMode, @@ -1626,11 +1620,8 @@ void AIS_Manipulator::Sphere::Init(const Standard_ShortReal theRadius, myTriangulation = aTool.CreatePolyTriangulation(aTrsf); } -//======================================================================= -// class : Cube -// function : Init -// purpose : -//======================================================================= +//================================================================================================= + void AIS_Manipulator::Cube::Init(const gp_Ax1& thePosition, const Standard_ShortReal theSize, const ManipulatorSkin theSkinMode) @@ -1729,11 +1720,8 @@ void AIS_Manipulator::Cube::addTriangle(const Standard_Integer theIndex, myArray->AddVertex(theP3, theNormal); } -//======================================================================= -// class : Sector -// function : Init -// purpose : -//======================================================================= +//================================================================================================= + void AIS_Manipulator::Sector::Init(const Standard_ShortReal theRadius, const gp_Ax1& thePosition, const gp_Dir& theXDirection, diff --git a/src/Visualization/TKV3d/DsgPrs/DsgPrs_EllipseRadiusPresentation.cxx b/src/Visualization/TKV3d/DsgPrs/DsgPrs_EllipseRadiusPresentation.cxx index edb33ab8e8..d2b2935e5c 100644 --- a/src/Visualization/TKV3d/DsgPrs/DsgPrs_EllipseRadiusPresentation.cxx +++ b/src/Visualization/TKV3d/DsgPrs/DsgPrs_EllipseRadiusPresentation.cxx @@ -118,10 +118,7 @@ void DsgPrs_EllipseRadiusPresentation::Add(const Handle(Prs3d_Presentation)& aPr ArrowPrs); } -//======================================================================= -// function : Add -// purpose : // for offset curve -//======================================================================= +//================================================================================================= void DsgPrs_EllipseRadiusPresentation::Add(const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Drawer)& aDrawer, diff --git a/src/Visualization/TKV3d/PrsDim/PrsDim_FixRelation.cxx b/src/Visualization/TKV3d/PrsDim/PrsDim_FixRelation.cxx index c09391b171..0081b35629 100644 --- a/src/Visualization/TKV3d/PrsDim/PrsDim_FixRelation.cxx +++ b/src/Visualization/TKV3d/PrsDim/PrsDim_FixRelation.cxx @@ -66,10 +66,7 @@ static Standard_Boolean InDomain(const Standard_Real fpar, return Standard_False; } -//======================================================================= -// function : Constructor -// purpose : vertex Fix Relation -//======================================================================= +//================================================================================================= PrsDim_FixRelation::PrsDim_FixRelation(const TopoDS_Shape& aShape, const Handle(Geom_Plane)& aPlane, @@ -83,10 +80,7 @@ PrsDim_FixRelation::PrsDim_FixRelation(const TopoDS_Shape& aShape, myArrowSize = 5.; } -//======================================================================= -// function : Constructor -// purpose : vertex Fix Relation -//======================================================================= +//================================================================================================= PrsDim_FixRelation::PrsDim_FixRelation(const TopoDS_Shape& aShape, const Handle(Geom_Plane)& aPlane, diff --git a/src/Visualization/TKV3d/SelectMgr/SelectMgr_Frustum.lxx b/src/Visualization/TKV3d/SelectMgr/SelectMgr_Frustum.lxx index 04a04e479c..389924131c 100644 --- a/src/Visualization/TKV3d/SelectMgr/SelectMgr_Frustum.lxx +++ b/src/Visualization/TKV3d/SelectMgr/SelectMgr_Frustum.lxx @@ -460,10 +460,8 @@ Standard_Boolean SelectMgr_Frustum::hasTriangleOverlap(const gp_Pnt& thePnt1, return Standard_True; } -// ======================================================================= -// function : hasSphereOverlap -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::hasSphereOverlap(const gp_Pnt& thePnt, const Standard_Real theRadius, @@ -512,10 +510,8 @@ Standard_Boolean SelectMgr_Frustum::hasSphereOverlap(const gp_Pnt& theP return IsBoundaryIntersectSphere(aCenterProj, theRadius, aNorm, aBoundaries, isBoundaryInside); } -// ======================================================================= -// function : IsDotInside -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::isDotInside(const gp_Pnt& thePnt, const TColgp_Array1OfPnt& theVertices) const @@ -537,10 +533,8 @@ Standard_Boolean SelectMgr_Frustum::isDotInside(const gp_Pnt& the return false; } -// ======================================================================= -// function : isSegmentsIntersect -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::isSegmentsIntersect(const gp_Pnt& thePnt1Seg1, const gp_Pnt& thePnt2Seg1, @@ -599,10 +593,8 @@ Standard_Boolean SelectMgr_Frustum::isSegmentsIntersect(const gp_Pnt& thePnt1 return false; } -// ======================================================================= -// function : isIntersectCircle -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::isIntersectCircle( const Standard_Real theRadius, @@ -652,10 +644,8 @@ Standard_Boolean SelectMgr_Frustum::isIntersectCircle( return false; } -// ======================================================================= -// function : isInsideCylinderEndFace -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::isInsideCylinderEndFace( const Standard_Real theBottomRad, @@ -694,10 +684,8 @@ Standard_Boolean SelectMgr_Frustum::isInsideCylinderEndFace( return true; } -// ======================================================================= -// function : hasCylinderOverlap -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::hasCylinderOverlap(const Standard_Real theBottomRad, const Standard_Real theTopRad, @@ -828,10 +816,8 @@ Standard_Boolean SelectMgr_Frustum::hasCylinderOverlap(const Standard_Real return isCylInsideRec; } -// ======================================================================= -// function : hasCircleOverlap -// purpose : -// ======================================================================= +//================================================================================================= + template Standard_Boolean SelectMgr_Frustum::hasCircleOverlap(const Standard_Real theRadius, const gp_Trsf& theTrsf, @@ -895,10 +881,8 @@ Standard_Boolean SelectMgr_Frustum::hasCircleOverlap(const Standard_Real t return theIsFilled ? !isInside || (isCenterInside && isInside) : isInside && isCenterInside; } -//======================================================================= -// function : DumpJson -// purpose : -//======================================================================= +//================================================================================================= + template void SelectMgr_Frustum::DumpJson(Standard_OStream& theOStream, Standard_Integer theDepth) const {