mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-15 12:35:51 +03:00
Coding - Function guard update (#610)
- Removed verbose function header comments (name, purpose) across multiple C++ source files. - Introduced a single-line separator comment before each function for consistent formatting. - Applied the change in visualization, modeling, algorithms, foundation, and application framework modules.
This commit is contained in:
parent
d04384f9d4
commit
0947067ed5
@ -33,10 +33,8 @@
|
||||
static Standard_GUID BinStorageDriver("03a56835-8269-11d5-aab2-0050044b1af1");
|
||||
static Standard_GUID BinRetrievalDriver("03a56836-8269-11d5-aab2-0050044b1af1");
|
||||
|
||||
//=======================================================================
|
||||
// function : Factory
|
||||
// purpose : PLUGIN FACTORY
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(Standard_Transient)& BinDrivers::Factory(const Standard_GUID& theGUID)
|
||||
{
|
||||
if (theGUID == BinStorageDriver)
|
||||
|
@ -31,10 +31,8 @@
|
||||
static Standard_GUID BinLStorageDriver("13a56835-8269-11d5-aab2-0050044b1af1");
|
||||
static Standard_GUID BinLRetrievalDriver("13a56836-8269-11d5-aab2-0050044b1af1");
|
||||
|
||||
//=======================================================================
|
||||
// function : Factory
|
||||
// purpose : PLUGIN FACTORY
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(Standard_Transient)& BinLDrivers::Factory(const Standard_GUID& theGUID)
|
||||
{
|
||||
if (theGUID == BinLStorageDriver)
|
||||
|
@ -17,10 +17,7 @@
|
||||
#include <TDocStd_FormatVersion.hxx>
|
||||
#include <BinMDataStd.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BinLDrivers_DocumentSection
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BinLDrivers_DocumentSection::BinLDrivers_DocumentSection()
|
||||
: myIsPostRead(Standard_False)
|
||||
@ -106,7 +103,7 @@ void BinLDrivers_DocumentSection::WriteTOC(Standard_OStream& theStream
|
||||
if (aBufSize < aLen)
|
||||
aBufSize += sizeof(Standard_Integer);
|
||||
|
||||
// Write the buffer: size + string
|
||||
// Write the buffer: size + string
|
||||
#ifdef DO_INVERSE
|
||||
aBufSz[0] = InverseInt((Standard_Integer)aBufSize);
|
||||
#else
|
||||
|
@ -39,10 +39,7 @@ typedef struct
|
||||
unsigned char Data4[8]; // 8-bytes long on all OS
|
||||
} BinObjMgt_UUID;
|
||||
|
||||
//=======================================================================
|
||||
// function : BinObjMgt_Persistent
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BinObjMgt_Persistent::BinObjMgt_Persistent()
|
||||
: myIndex(1),
|
||||
|
@ -697,10 +697,7 @@ Standard_OStream& TNaming::Print(const TNaming_NameType NAME, Standard_OStream&
|
||||
return s;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Print
|
||||
// purpose : Prints UsedShapes.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_OStream& TNaming::Print(const TDF_Label& ACCESS, Standard_OStream& s)
|
||||
{
|
||||
|
@ -2165,10 +2165,7 @@ TNaming_Name& TNaming_Naming::ChangeName()
|
||||
return myName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Regenerate
|
||||
// purpose : idem designer
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean TNaming_Naming::Regenerate(TDF_LabelMap& MDF)
|
||||
|
||||
|
@ -50,10 +50,8 @@ IMPLEMENT_STANDARD_RTTIEXT(TNaming_TranslateTool, Standard_Transient)
|
||||
// myTriangleMode(aTriMode)
|
||||
//{
|
||||
//}
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose : Adds S2 in S1
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TNaming_TranslateTool::Add(TopoDS_Shape& S1, const TopoDS_Shape& S2) const
|
||||
{
|
||||
BRep_Builder B;
|
||||
|
@ -84,10 +84,7 @@ LDOMBasicString::LDOMBasicString(const char* aValue,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LDOMBasicString
|
||||
// purpose : Copy constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
LDOMBasicString::LDOMBasicString(const LDOMBasicString& anOther)
|
||||
: myType(anOther.Type())
|
||||
|
@ -163,10 +163,7 @@ const LDOM_BasicAttribute& LDOM_BasicElement::GetAttribute(const LDOMBasicString
|
||||
return aNullAttribute;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetFirstAttribute
|
||||
// purpose : private method
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const LDOM_BasicAttribute* LDOM_BasicElement::GetFirstAttribute(
|
||||
const LDOM_BasicNode*& theLastCh,
|
||||
|
@ -49,10 +49,7 @@ LDOM_CharacterData& LDOM_CharacterData::operator=(const LDOM_CharacterData& theO
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : setData
|
||||
// purpose : replace the data
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void LDOM_CharacterData::setData(const LDOMString& theValue)
|
||||
{
|
||||
|
@ -44,10 +44,7 @@ void LDOM_NodeList::Append(const LDOM_BasicNode& aNode) const
|
||||
mySeq->Append(&aNode);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LDOM_NodeList
|
||||
// purpose : Copy constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
LDOM_NodeList::LDOM_NodeList(const LDOM_NodeList& theOther)
|
||||
{
|
||||
|
@ -87,10 +87,7 @@ int LDOM_SBuffer::overflow(int c)
|
||||
return c;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : underflow
|
||||
// purpose : redefined virtual
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
int LDOM_SBuffer::underflow()
|
||||
{
|
||||
|
@ -377,10 +377,8 @@ void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const LDOMBasicString&
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Write
|
||||
// purpose : Stream out a char
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const char theChar)
|
||||
{
|
||||
theOStream.write(&theChar, sizeof(char));
|
||||
|
@ -88,10 +88,7 @@ IMPLEMENT_STANDARD_RTTIEXT(TDF_Data, Standard_Transient)
|
||||
aDelta->AddAttributeDelta(DELTACREATION); \
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDF_Data
|
||||
// purpose : empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDF_Data::TDF_Data()
|
||||
: myTransaction(0),
|
||||
|
@ -26,10 +26,8 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(TDF_DataSet, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
// function : TDF_DataSet
|
||||
// purpose : Creates a DataSet.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDF_DataSet::TDF_DataSet() {}
|
||||
|
||||
//=================================================================================================
|
||||
|
@ -76,10 +76,7 @@ void TDF_IDFilter::Keep(const TDF_IDList& anIDList)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Ignore
|
||||
// purpose : Ignores an ID.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDF_IDFilter::Ignore(const Standard_GUID& anID)
|
||||
{
|
||||
|
@ -343,10 +343,7 @@ TDF_LabelNode* TDF_Label::FindOrAddChild(const Standard_Integer aTag,
|
||||
return childLabelNode;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InternalDump
|
||||
// purpose : Private method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDF_Label::InternalDump(Standard_OStream& anOS,
|
||||
const TDF_IDFilter& aFilter,
|
||||
|
@ -48,10 +48,7 @@ Handle(TDF_Reference) TDF_Reference::Set(const TDF_Label& L, const TDF_Label& Or
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDF_Reference
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDF_Reference::TDF_Reference() {}
|
||||
|
||||
|
@ -558,10 +558,7 @@ void TDF_Tool::DeductLabels(TDF_LabelList& aLabelList, TDF_LabelIntegerMap& aLab
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DeepDump
|
||||
// purpose : Deep dump of a DF.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDF_Tool::DeepDump(Standard_OStream& anOS, const Handle(TDF_Data)& aDF)
|
||||
{
|
||||
@ -645,10 +642,7 @@ void TDF_Tool::ExtendedDeepDump(Standard_OStream& anOS,
|
||||
anOS << " dumped between " << --i << std::endl;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ExtendedDeepDump
|
||||
// purpose : Internal method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void TDF_Tool_ExtendedDeepDump(Standard_OStream& anOS,
|
||||
const TDF_Label& aLabel,
|
||||
|
@ -117,10 +117,8 @@ void TDataStd_AsciiString::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_AsciiString::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -82,10 +82,8 @@ static Handle(TDataStd_BooleanArray) SetAttr(const TDF_Label& label,
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_BooleanArray
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_BooleanArray::TDataStd_BooleanArray()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -217,10 +215,8 @@ void TDataStd_BooleanArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_BooleanArray::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -49,10 +49,8 @@ static Handle(TDataStd_BooleanList) SetAttr(const TDF_Label& label, const Standa
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_BooleanList
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_BooleanList::TDataStd_BooleanList()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -219,10 +217,7 @@ void TDataStd_BooleanList::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_BooleanList::SetID()
|
||||
{
|
||||
|
@ -35,10 +35,8 @@ const Standard_GUID& TDataStd_ByteArray::GetID()
|
||||
return TDataStd_ByteArrayID;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_ByteArray
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_ByteArray::TDataStd_ByteArray()
|
||||
: myIsDelta(Standard_False),
|
||||
myID(GetID())
|
||||
@ -210,10 +208,7 @@ void TDataStd_ByteArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_ByteArray::SetID()
|
||||
{
|
||||
|
@ -87,10 +87,7 @@ void TDataStd_Comment::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_Comment::SetID()
|
||||
{
|
||||
|
@ -219,10 +219,7 @@ void TDataStd_ExtStringArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_ExtStringArray::SetID()
|
||||
{
|
||||
|
@ -50,10 +50,8 @@ static Handle(TDataStd_ExtStringList) SetAttr(const TDF_Label& label, const Stan
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_ExtStringList
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_ExtStringList::TDataStd_ExtStringList()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -275,10 +273,7 @@ void TDataStd_ExtStringList::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_ExtStringList::SetID()
|
||||
{
|
||||
|
@ -73,10 +73,7 @@ Handle(TDataStd_Integer) TDataStd_Integer::Set(const TDF_Label& L,
|
||||
return SetAttr(L, V, theGuid);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_Integer
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_Integer::TDataStd_Integer()
|
||||
: myValue(-1),
|
||||
@ -129,10 +126,8 @@ void TDataStd_Integer::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_Integer::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -62,10 +62,7 @@ static Handle(TDataStd_IntegerArray) SetAttr(const TDF_Label& label,
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_IntegerArray
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_IntegerArray::TDataStd_IntegerArray()
|
||||
: myIsDelta(Standard_False),
|
||||
@ -219,10 +216,7 @@ void TDataStd_IntegerArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_IntegerArray::SetID()
|
||||
{
|
||||
|
@ -49,10 +49,8 @@ static Handle(TDataStd_IntegerList) SetAttr(const TDF_Label& label, const Standa
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_IntegerList
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_IntegerList::TDataStd_IntegerList()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -268,10 +266,7 @@ void TDataStd_IntegerList::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_IntegerList::SetID()
|
||||
{
|
||||
|
@ -95,10 +95,7 @@ void TDataStd_Name::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_Name::SetID()
|
||||
{
|
||||
|
@ -44,10 +44,8 @@ const Standard_GUID& TDataStd_NamedData::GetID()
|
||||
return TDataStd_NamedDataID;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_NamedData
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_NamedData::TDataStd_NamedData() {}
|
||||
|
||||
//=================================================================================================
|
||||
|
@ -73,10 +73,7 @@ Handle(TDataStd_Real) TDataStd_Real::Set(const TDF_Label& L,
|
||||
return SetAttr(L, V, theGuid);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_Real
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_Real::TDataStd_Real()
|
||||
: myValue(RealFirst()),
|
||||
@ -156,10 +153,8 @@ void TDataStd_Real::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_Real::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -62,10 +62,7 @@ static Handle(TDataStd_RealArray) SetAttr(const TDF_Label& label,
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_RealArray
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_RealArray::TDataStd_RealArray()
|
||||
: myIsDelta(Standard_False),
|
||||
@ -218,10 +215,7 @@ void TDataStd_RealArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_RealArray::SetID()
|
||||
{
|
||||
|
@ -49,10 +49,8 @@ static Handle(TDataStd_RealList) SetAttr(const TDF_Label& label, const Standard_
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_RealList
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_RealList::TDataStd_RealList()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -268,10 +266,8 @@ void TDataStd_RealList::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_RealList::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -58,10 +58,8 @@ static Handle(TDataStd_ReferenceArray) SetAttr(const TDF_Label& label,
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_ReferenceArray
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_ReferenceArray::TDataStd_ReferenceArray()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -209,10 +207,7 @@ void TDataStd_ReferenceArray::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_ReferenceArray::SetID()
|
||||
{
|
||||
|
@ -50,10 +50,8 @@ static Handle(TDataStd_ReferenceList) SetAttr(const TDF_Label& label, const Stan
|
||||
return A;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TDataStd_ReferenceList
|
||||
// purpose : Empty Constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TDataStd_ReferenceList::TDataStd_ReferenceList()
|
||||
: myID(GetID())
|
||||
{
|
||||
@ -269,10 +267,8 @@ void TDataStd_ReferenceList::SetID(const Standard_GUID& theGuid)
|
||||
myID = theGuid;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetID
|
||||
// purpose : sets default ID
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDataStd_ReferenceList::SetID()
|
||||
{
|
||||
Backup();
|
||||
|
@ -240,10 +240,7 @@ void TDocStd_Document::AbortCommand()
|
||||
AbortTransaction();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : CommitTransaction
|
||||
// purpose : Private method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean TDocStd_Document::CommitTransaction()
|
||||
{
|
||||
@ -339,10 +336,7 @@ Standard_Boolean TDocStd_Document::CommitTransaction()
|
||||
return isDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AbortTransaction
|
||||
// purpose : Private method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDocStd_Document::AbortTransaction()
|
||||
{
|
||||
@ -376,10 +370,7 @@ void TDocStd_Document::AbortTransaction()
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :OpenTransaction
|
||||
// purpose : Private method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TDocStd_Document::OpenTransaction()
|
||||
{
|
||||
|
@ -43,10 +43,7 @@ TDocStd_XLink::TDocStd_XLink()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Set
|
||||
// purpose : Class method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Handle(TDocStd_XLink) TDocStd_XLink::Set(const TDF_Label& atLabel)
|
||||
{
|
||||
|
@ -41,10 +41,7 @@ const Standard_GUID& TDocStd_XLinkRoot::GetID()
|
||||
return myID;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Set
|
||||
// purpose : CLASS method.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Handle(TDocStd_XLinkRoot) TDocStd_XLinkRoot::Set(const Handle(TDF_Data)& aDF)
|
||||
{
|
||||
|
@ -23,10 +23,7 @@ IMPLEMENT_STANDARD_RTTIEXT(TFunction_Driver, Standard_Transient)
|
||||
|
||||
TFunction_Driver::TFunction_Driver() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose : Initialization
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TFunction_Driver::Init(const TDF_Label& L)
|
||||
{
|
||||
|
@ -58,10 +58,8 @@ const Standard_GUID& TFunction_Logbook::ID() const
|
||||
return GetID();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TFunction_Logbook
|
||||
// purpose : A Logbook creation
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TFunction_Logbook::TFunction_Logbook()
|
||||
: isDone(Standard_False)
|
||||
{
|
||||
|
@ -21,10 +21,8 @@
|
||||
#include <ShapePersistent_Geom_Surface.hxx>
|
||||
#include <ShapePersistent_BRep.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void ShapePersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
theMap.Bind<StdLPersistent_HArray1::Persistent>("PTopoDS_HArray1OfHShape");
|
||||
|
@ -61,10 +61,8 @@ void StdDrivers::DefineFormat(const Handle(TDocStd_Application)& theApp)
|
||||
0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
StdLPersistent ::BindTypes(theMap);
|
||||
|
@ -16,10 +16,8 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StdDrivers_DocumentRetrievalDriver, StdLDrivers_DocumentRetrievalDriver)
|
||||
|
||||
//=======================================================================
|
||||
// function : bindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
StdDrivers::BindTypes(theMap);
|
||||
|
@ -23,10 +23,8 @@
|
||||
#include <StdPersistent_DataXtd_PatternStd.hxx>
|
||||
#include <StdPersistent_PPrsStd.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
// Non-attribute data
|
||||
|
@ -58,10 +58,8 @@ void StdLDrivers::DefineFormat(const Handle(TDocStd_Application)& theApp)
|
||||
0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdLDrivers::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
StdLPersistent::BindTypes(theMap);
|
||||
|
@ -232,10 +232,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read(
|
||||
return aReadData.PersistentObject(aRootData.Roots()->First()->Reference());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Read
|
||||
// purpose : not implemented
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdLDrivers_DocumentRetrievalDriver::Read(Standard_IStream& /*theIStream*/,
|
||||
const Handle(Storage_Data)& /*theStorageData*/,
|
||||
@ -301,10 +298,8 @@ void StdLDrivers_DocumentRetrievalDriver::raiseOnStorageError(Storage_Error theE
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : bindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdLDrivers_DocumentRetrievalDriver::bindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
StdLDrivers::BindTypes(theMap);
|
||||
|
@ -28,10 +28,8 @@
|
||||
#include <StdLPersistent_TreeNode.hxx>
|
||||
#include <StdLPersistent_NamedData.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BindTypes
|
||||
// purpose : Register types
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StdLPersistent::BindTypes(StdObjMgt_MapOfInstantiators& theMap)
|
||||
{
|
||||
// Non-attribute data
|
||||
|
@ -65,10 +65,7 @@ TObj_Model::~TObj_Model()
|
||||
Close();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : CloseDocument
|
||||
// purpose : free OCAF document
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TObj_Model::CloseDocument(const Handle(TDocStd_Document)& theDoc)
|
||||
{
|
||||
|
@ -23,10 +23,7 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(TObj_TIntSparseArray, TDF_Attribute)
|
||||
|
||||
//=======================================================================
|
||||
// function : TObj_TIntSparseArray
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TObj_TIntSparseArray::TObj_TIntSparseArray()
|
||||
: myVector(100),
|
||||
|
@ -606,28 +606,22 @@ void TPrsStd_AISPresentation::Paste(const Handle(TDF_Attribute)& theInto,
|
||||
anInto->myAIS.Nullify();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AfterAddition
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TPrsStd_AISPresentation::AfterAddition()
|
||||
{
|
||||
AfterResume();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BeforeRemoval
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TPrsStd_AISPresentation::BeforeRemoval()
|
||||
{
|
||||
BeforeForget();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BeforeForget
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TPrsStd_AISPresentation::BeforeForget()
|
||||
{
|
||||
if (!myAIS.IsNull())
|
||||
|
@ -31,10 +31,8 @@
|
||||
static Standard_GUID XmlStorageDriver("03a56820-8269-11d5-aab2-0050044b1af1");
|
||||
static Standard_GUID XmlRetrievalDriver("03a56822-8269-11d5-aab2-0050044b1af1");
|
||||
|
||||
//=======================================================================
|
||||
// function : Factory
|
||||
// purpose : PLUGIN FACTORY
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(Standard_Transient)& XmlDrivers::Factory(const Standard_GUID& theGUID)
|
||||
{
|
||||
if (theGUID == XmlStorageDriver)
|
||||
|
@ -31,10 +31,8 @@
|
||||
static Standard_GUID XmlLStorageDriver("13a56820-8269-11d5-aab2-0050044b1af1");
|
||||
static Standard_GUID XmlLRetrievalDriver("13a56822-8269-11d5-aab2-0050044b1af1");
|
||||
|
||||
//=======================================================================
|
||||
// function : Factory
|
||||
// purpose : PLUGIN FACTORY
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theGUID)
|
||||
{
|
||||
if (theGUID == XmlLStorageDriver)
|
||||
@ -61,10 +59,8 @@ const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theG
|
||||
|
||||
#define SLENGTH 80
|
||||
|
||||
//=======================================================================
|
||||
// function : CreationDate
|
||||
// purpose : mm/dd/yy
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TCollection_AsciiString XmlLDrivers::CreationDate()
|
||||
{
|
||||
Standard_Character nowstr[SLENGTH];
|
||||
|
@ -15,10 +15,8 @@
|
||||
|
||||
#include <XmlLDrivers_NamespaceDef.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : XmlLDrivers_NamespaceDef
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
XmlLDrivers_NamespaceDef::XmlLDrivers_NamespaceDef() {}
|
||||
|
||||
//=================================================================================================
|
||||
|
@ -19,10 +19,8 @@
|
||||
#include <XmlObjMgt_Document.hxx>
|
||||
#include <XmlObjMgt_Persistent.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : XmlObjMgt_Persistent
|
||||
// purpose : empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
XmlObjMgt_Persistent::XmlObjMgt_Persistent()
|
||||
: myID(0)
|
||||
{
|
||||
|
@ -6212,10 +6212,7 @@ Standard_Boolean RWStepAP214_ReadWriteModule::ComplexType(
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ReadStep
|
||||
// purpose : Reading of a file
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
@ -10838,10 +10835,7 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer
|
||||
return;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : WriteStep
|
||||
// purpose : Writing of a file
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_ReadWriteModule::WriteStep(const Standard_Integer CN,
|
||||
StepData_StepWriter& SW,
|
||||
|
@ -246,10 +246,7 @@ Standard_Real STEPConstruct_UnitContext::ConvertSiPrefix(const StepBasic_SiPrefi
|
||||
return 1.;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::SiUnitNameFactor
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor(
|
||||
const Handle(StepBasic_SiUnit)& aSiUnit,
|
||||
@ -268,10 +265,7 @@ Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor(
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::ComputeFactors
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer STEPConstruct_UnitContext::ComputeFactors(
|
||||
const Handle(StepRepr_GlobalUnitAssignedContext)& aContext,
|
||||
@ -488,10 +482,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
|
||||
return status;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::ComputeTolerance
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer STEPConstruct_UnitContext::ComputeTolerance(
|
||||
const Handle(StepRepr_GlobalUncertaintyAssignedContext)& aContext)
|
||||
@ -556,82 +547,64 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance(
|
||||
return status;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::LengthFactor
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real STEPConstruct_UnitContext::LengthFactor() const
|
||||
{
|
||||
return lengthFactor;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::PlaneAngleFactor
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real STEPConstruct_UnitContext::PlaneAngleFactor() const
|
||||
{
|
||||
return planeAngleFactor;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::SolidAngleFactor
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real STEPConstruct_UnitContext::SolidAngleFactor() const
|
||||
{
|
||||
return solidAngleFactor;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::Uncertainty
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real STEPConstruct_UnitContext::Uncertainty() const
|
||||
{
|
||||
return theUncertainty;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::HasUncertainty
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_UnitContext::HasUncertainty() const
|
||||
{
|
||||
return hasUncertainty;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::LengthDone
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_UnitContext::LengthDone() const
|
||||
{
|
||||
return lengthDone;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::PlaneAngleDone
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_UnitContext::PlaneAngleDone() const
|
||||
{
|
||||
return planeAngleDone;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::SolidAngleDone
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_UnitContext::SolidAngleDone() const
|
||||
{
|
||||
return solidAngleDone;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// Method : STEPConstruct_UnitContext::StatusMessage
|
||||
// Purpose :
|
||||
// ==========================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_CString STEPConstruct_UnitContext::StatusMessage(const Standard_Integer status) const
|
||||
{
|
||||
switch (status)
|
||||
|
@ -2346,10 +2346,8 @@ void STEPControl_ActorRead::computeIDEASClosings(
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// Method : SetModel
|
||||
// Purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void STEPControl_ActorRead::SetModel(const Handle(Interface_InterfaceModel)& theModel)
|
||||
{
|
||||
myModel = theModel;
|
||||
|
@ -13,10 +13,8 @@
|
||||
|
||||
#include <StepData_Factors.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : Constructor
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepData_Factors::StepData_Factors()
|
||||
: myLengthFactor(1.),
|
||||
myPlaneAngleFactor(1.),
|
||||
@ -27,10 +25,8 @@ StepData_Factors::StepData_Factors()
|
||||
{
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : InitializeFactors
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepData_Factors::InitializeFactors(const Standard_Real theLengthFactor,
|
||||
const Standard_Real thePlaneAngleFactor,
|
||||
const Standard_Real theSolidAngleFactor)
|
||||
@ -42,64 +38,50 @@ void StepData_Factors::InitializeFactors(const Standard_Real theLengthFactor,
|
||||
myFactDR = thePlaneAngleFactor;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : LengthFactor
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::LengthFactor() const
|
||||
{
|
||||
return myLengthFactor;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : PlaneAngleFactor
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::PlaneAngleFactor() const
|
||||
{
|
||||
return myPlaneAngleFactor;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : SolidAngleFactor
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::SolidAngleFactor() const
|
||||
{
|
||||
return mySolidAngleFactor;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : FactorRadianDegree
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::FactorRadianDegree() const
|
||||
{
|
||||
return myFactRD;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : FactorDegreeRadian
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::FactorDegreeRadian() const
|
||||
{
|
||||
return myFactDR;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : SetCascadeUnit
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepData_Factors::SetCascadeUnit(const Standard_Real theUnit)
|
||||
{
|
||||
myCascadeUnit = theUnit;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : CascadeUnit
|
||||
// Purpose:
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real StepData_Factors::CascadeUnit() const
|
||||
{
|
||||
return myCascadeUnit;
|
||||
|
@ -104,10 +104,8 @@ static void ResetPreci(Handle(StepData_StepModel)& theStepModel,
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Builder
|
||||
// Purpose : Empty constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_Builder::StepToTopoDS_Builder()
|
||||
: myError(StepToTopoDS_BuilderOther)
|
||||
{
|
||||
|
@ -26,10 +26,8 @@
|
||||
#include <Transfer_TransientProcess.hxx>
|
||||
#include <TransferBRep.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::StepToTopoDS_Tool
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_Tool::StepToTopoDS_Tool()
|
||||
: myComputePC(Standard_False),
|
||||
myNbC0Surf(0),
|
||||
@ -55,10 +53,7 @@ StepToTopoDS_Tool::StepToTopoDS_Tool(const StepToTopoDS_DataMapOfTRI& Ma
|
||||
Init(Map, TP);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : Init
|
||||
// Purpose : Init with a Map
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::Init(const StepToTopoDS_DataMapOfTRI& Map,
|
||||
const Handle(Transfer_TransientProcess)& TP)
|
||||
@ -112,70 +107,49 @@ const TopoDS_Shape& StepToTopoDS_Tool::Find(
|
||||
return myDataMap.Find(TRI);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::ClearEdgeMap
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::ClearEdgeMap()
|
||||
{
|
||||
myEdgeMap.Clear();
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::IsEdgeBound
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean StepToTopoDS_Tool::IsEdgeBound(const StepToTopoDS_PointPair& PP)
|
||||
{
|
||||
return myEdgeMap.IsBound(PP);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool_BindEdge
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::BindEdge(const StepToTopoDS_PointPair& PP, const TopoDS_Edge& E)
|
||||
{
|
||||
myEdgeMap.Bind(PP, E);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::FindEdge
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const TopoDS_Edge& StepToTopoDS_Tool::FindEdge(const StepToTopoDS_PointPair& PP)
|
||||
{
|
||||
return myEdgeMap.Find(PP);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::ClearVertexMap
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::ClearVertexMap()
|
||||
{
|
||||
myVertexMap.Clear();
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::IsVertexBound
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean StepToTopoDS_Tool::IsVertexBound(const Handle(StepGeom_CartesianPoint)& PG)
|
||||
{
|
||||
return myVertexMap.IsBound(PG);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::BindVertex
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::BindVertex(const Handle(StepGeom_CartesianPoint)& P, const TopoDS_Vertex& V)
|
||||
{
|
||||
@ -185,30 +159,21 @@ void StepToTopoDS_Tool::BindVertex(const Handle(StepGeom_CartesianPoint)& P, con
|
||||
#endif
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_Tool::FindVertex
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const TopoDS_Vertex& StepToTopoDS_Tool::FindVertex(const Handle(StepGeom_CartesianPoint)& P)
|
||||
{
|
||||
return myVertexMap.Find(P);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : ComputePCurve
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_Tool::ComputePCurve(const Standard_Boolean B)
|
||||
{
|
||||
myComputePC = B;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : ComputePCurve
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean StepToTopoDS_Tool::ComputePCurve() const
|
||||
{
|
||||
|
@ -63,10 +63,8 @@
|
||||
//: d8
|
||||
// Used in I-DEAS-like STP processing (ssv; 15.11.2010)
|
||||
// #define DEBUG
|
||||
// ============================================================================
|
||||
// Method : DecodeMakeEdgeError
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
|
||||
const Handle(Standard_Transient)& orig,
|
||||
const Handle(Geom_Curve)& myCurve,
|
||||
@ -135,10 +133,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
|
||||
#endif
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateEdge::StepToTopoDS_TranslateEdge
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Handle(Geom_Curve) MakeCurve(const Handle(StepGeom_Curve)& C1,
|
||||
const Handle(Transfer_TransientProcess)& TP,
|
||||
|
@ -75,19 +75,14 @@
|
||||
#include <XSAlgo.hxx>
|
||||
#include <XSAlgo_ShapeProcessor.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : RemoveSinglePCurve
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void RemoveSinglePCurve(const TopoDS_Edge& aEdge, const TopoDS_Face& aFace)
|
||||
{
|
||||
ShapeBuild_Edge().RemovePCurve(aEdge, aFace);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : RemovePCurves
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void RemovePCurves(const TopoDS_Wire& aWire, const TopoDS_Face& aFace)
|
||||
{
|
||||
@ -176,10 +171,7 @@ static void CheckPCurves(TopoDS_Wire& aWire,
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateEdgeLoop::StepToTopoDS_TranslateEdgeLoop
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateEdgeLoop::StepToTopoDS_TranslateEdgeLoop()
|
||||
: myError(StepToTopoDS_TranslateEdgeLoopOther)
|
||||
|
@ -426,10 +426,8 @@ static Handle(Poly_Triangulation) CreatePolyTriangulation(
|
||||
}
|
||||
} // namespace
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateFace
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateFace::StepToTopoDS_TranslateFace()
|
||||
: myError(StepToTopoDS_TranslateFaceOther)
|
||||
{
|
||||
|
@ -41,20 +41,15 @@
|
||||
#include <Transfer_TransientProcess.hxx>
|
||||
|
||||
// #include <BRepAPI.hxx>
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop()
|
||||
: myError(StepToTopoDS_TranslatePolyLoopOther)
|
||||
{
|
||||
done = Standard_False;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop(
|
||||
const Handle(StepShape_PolyLoop)& PL,
|
||||
@ -66,10 +61,7 @@ StepToTopoDS_TranslatePolyLoop::StepToTopoDS_TranslatePolyLoop(
|
||||
Init(PL, T, S, F, theLocalFactors);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL,
|
||||
StepToTopoDS_Tool& aTool,
|
||||
@ -199,10 +191,7 @@ void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL,
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const
|
||||
{
|
||||
@ -210,10 +199,7 @@ const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const
|
||||
return myResult;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslatePolyLoopError StepToTopoDS_TranslatePolyLoop::Error() const
|
||||
{
|
||||
|
@ -35,10 +35,8 @@
|
||||
#include <Transfer_TransientProcess.hxx>
|
||||
#include <TransferBRep_ShapeBinder.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateShell::StepToTopoDS_TranslateShell
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateShell::StepToTopoDS_TranslateShell()
|
||||
: myError(StepToTopoDS_TranslateShellOther)
|
||||
{
|
||||
|
@ -30,10 +30,8 @@
|
||||
#include <Transfer_TransientProcess.hxx>
|
||||
#include <TransferBRep_ShapeBinder.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateSolid::StepToTopoDS_TranslateSolid
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateSolid::StepToTopoDS_TranslateSolid()
|
||||
: myError(StepToTopoDS_TranslateSolidOther)
|
||||
{
|
||||
|
@ -33,10 +33,8 @@
|
||||
|
||||
// #include <BRepAPI.hxx>
|
||||
// For I-DEAS-like processing (ssv; 15.11.2010)
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateVertex::StepToTopoDS_TranslateVertex
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateVertex::StepToTopoDS_TranslateVertex()
|
||||
: myError(StepToTopoDS_TranslateVertexOther)
|
||||
{
|
||||
|
@ -33,10 +33,8 @@
|
||||
#include <Transfer_TransientProcess.hxx>
|
||||
|
||||
// #include <BRepAPI.hxx>
|
||||
// ============================================================================
|
||||
// Method : StepToTopoDS_TranslateVertexLoop::StepToTopoDS_TranslateVertexLoop
|
||||
// Purpose : Empty Constructor
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
StepToTopoDS_TranslateVertexLoop::StepToTopoDS_TranslateVertexLoop()
|
||||
: myError(StepToTopoDS_TranslateVertexLoopOther)
|
||||
{
|
||||
|
@ -34,20 +34,16 @@
|
||||
#include <TopoDSToStep_Tool.hxx>
|
||||
#include <Transfer_FinderProcess.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_Builder::TopoDSToStep_Builder()
|
||||
: myError(TopoDSToStep_BuilderOther)
|
||||
{
|
||||
done = Standard_False;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_Builder::TopoDSToStep_Builder(const TopoDS_Shape& aShape,
|
||||
TopoDSToStep_Tool& aTool,
|
||||
const Handle(Transfer_FinderProcess)& FP,
|
||||
@ -59,10 +55,8 @@ TopoDSToStep_Builder::TopoDSToStep_Builder(const TopoDS_Shape&
|
||||
Init(aShape, aTool, FP, theTessellatedGeomParam, theLocalFactors, theProgress);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : Init
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDSToStep_Builder::Init(const TopoDS_Shape& aShape,
|
||||
TopoDSToStep_Tool& myTool,
|
||||
const Handle(Transfer_FinderProcess)& FP,
|
||||
|
@ -27,10 +27,8 @@
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDSToStep_FacetedTool.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method :
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_FacetedError TopoDSToStep_FacetedTool::CheckTopoDSShape(const TopoDS_Shape& aShape)
|
||||
{
|
||||
TopExp_Explorer FaceExp, EdgeExp;
|
||||
|
@ -52,20 +52,15 @@
|
||||
#include <TopoDSToStep_WireframeBuilder.hxx>
|
||||
#include <Transfer_FinderProcess.hxx>
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder::TopoDSToStep_Builder
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder()
|
||||
: myError(TopoDSToStep_BuilderOther)
|
||||
{
|
||||
done = Standard_False;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder::TopoDSToStep_Builder
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_WireframeBuilder::TopoDSToStep_WireframeBuilder(
|
||||
const TopoDS_Shape& aShape,
|
||||
@ -86,20 +81,14 @@ void TopoDSToStep_WireframeBuilder::Init(const TopoDS_Shape& aShape,
|
||||
myResult = itemList;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder::Error
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopoDSToStep_BuilderError TopoDSToStep_WireframeBuilder::Error() const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Method : TopoDSToStep_Builder::Value
|
||||
// Purpose :
|
||||
// ============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(TColStd_HSequenceOfTransient)& TopoDSToStep_WireframeBuilder::Value() const
|
||||
{
|
||||
|
@ -34,10 +34,7 @@ IMPLEMENT_STANDARD_RTTIEXT(VrmlData_Node, Standard_Transient)
|
||||
|
||||
static VrmlData_Scene MyDefaultScene;
|
||||
|
||||
//=======================================================================
|
||||
// function : IsEqual
|
||||
// purpose : Global method
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean IsEqual(const Handle(VrmlData_Node)& theOne, const Handle(VrmlData_Node)& theTwo)
|
||||
{
|
||||
|
@ -68,10 +68,7 @@ Standard_Boolean XCAFDoc_AssemblyGraph::IsDirectLink(const Standard_Integer theN
|
||||
return GetChildren(theNode1).Contains(theNode2);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : GetNodeType
|
||||
// purpose : Returns node type
|
||||
// =======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
XCAFDoc_AssemblyGraph::NodeType XCAFDoc_AssemblyGraph::GetNodeType(
|
||||
const Standard_Integer theNode) const
|
||||
|
@ -138,10 +138,7 @@ void XCAFDoc_GraphNode::UnSetFather(const Standard_Integer Findex)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : UnSetFatherlink
|
||||
// purpose : Remove link finily
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void XCAFDoc_GraphNode::UnSetFatherlink(const Handle(XCAFDoc_GraphNode)& F)
|
||||
{
|
||||
@ -175,10 +172,7 @@ void XCAFDoc_GraphNode::UnSetChild(const Standard_Integer Chindex)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : UnSetChildlink
|
||||
// purpose : Remove link finily
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void XCAFDoc_GraphNode::UnSetChildlink(const Handle(XCAFDoc_GraphNode)& Ch)
|
||||
{
|
||||
|
@ -235,10 +235,7 @@ Standard_Boolean XSControl_Controller::RecognizeWriteTransient(
|
||||
return myAdaptorWrite->Recognize(new Transfer_TransientMapper(obj));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransferFinder
|
||||
// purpose : internal function
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static IFSelect_ReturnStatus TransferFinder(const Handle(Transfer_ActorOfFinderProcess)& theActor,
|
||||
const Handle(Transfer_Finder)& theMapper,
|
||||
|
@ -183,10 +183,7 @@ void DDataStd_DrawPresentation::Paste(const Handle(TDF_Attribute)& Into,
|
||||
Handle(DDataStd_DrawPresentation)::DownCast(Into)->SetDrawable(myDrawable);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AfterAddition
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DDataStd_DrawPresentation::AfterAddition()
|
||||
{
|
||||
@ -194,10 +191,7 @@ void DDataStd_DrawPresentation::AfterAddition()
|
||||
// if (isDisplayed) DrawDisplay ();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BeforeRemoval
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DDataStd_DrawPresentation::BeforeRemoval()
|
||||
{
|
||||
@ -205,10 +199,7 @@ void DDataStd_DrawPresentation::BeforeRemoval()
|
||||
// if (isDisplayed) DrawErase ();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BeforeForget
|
||||
// purpose : erase if displayed
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DDataStd_DrawPresentation::BeforeForget()
|
||||
{
|
||||
|
@ -731,10 +731,8 @@ Handle(TFunction_Function) DNaming::GetLastFunction(const Handle(TDataStd_UAttri
|
||||
return aLastFun;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetObjectFromFunction
|
||||
// purpose : Returns Object
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Handle(TDataStd_UAttribute) DNaming::GetObjectFromFunction(
|
||||
const Handle(TFunction_Function)& theFunction)
|
||||
{
|
||||
|
@ -42,10 +42,7 @@ static Standard_Real IntersectorTangency = Precision::PConfusion();
|
||||
static Standard_Real HatcherConfusion2d = 1.e-8;
|
||||
static Standard_Real HatcherConfusion3d = 1.e-8;
|
||||
|
||||
//=======================================================================
|
||||
// Function : DBRep_IsoBuilder
|
||||
// Purpose : Constructeur.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
DBRep_IsoBuilder::DBRep_IsoBuilder(const TopoDS_Face& TopologicalFace,
|
||||
const Standard_Real Infinite,
|
||||
|
@ -55,10 +55,7 @@ void Draw_Grid::Steps(const Standard_Real StepX,
|
||||
myIsActive = myStepX > MinimumStep && myStepY > MinimumStep && myStepZ > MinimumStep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// Function : DrawOn
|
||||
// Purpose : Displays the grid.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void Draw_Grid::DrawOn(Draw_Display& Out) const
|
||||
{
|
||||
|
@ -1183,10 +1183,8 @@ bool Draw::ParseInteger(const Standard_CString theExpressionString,
|
||||
return true;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Set
|
||||
// purpose : set a TCL var
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void Draw::Set(const Standard_CString Name, const Standard_CString val)
|
||||
{
|
||||
Standard_PCharacter pName, pVal;
|
||||
|
@ -645,10 +645,8 @@ void DrawTrSurf::Set(const Standard_CString theName, const gp_Pnt2d& thePoint)
|
||||
Draw::Set(theName, aDrawPoint);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Set
|
||||
// purpose : Geometry from Geom
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DrawTrSurf::Set(const Standard_CString theName,
|
||||
const Handle(Geom_Geometry)& theGeometry,
|
||||
const Standard_Boolean isSenseMarker)
|
||||
@ -753,10 +751,8 @@ void DrawTrSurf::Set(const Standard_CString theName,
|
||||
Draw::Set(theName, aDrawable);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Set
|
||||
// purpose : Curve from Geom2d
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DrawTrSurf::Set(const Standard_CString theName,
|
||||
const Handle(Geom2d_Curve)& theCurve,
|
||||
const Standard_Boolean isSenseMarker)
|
||||
|
@ -45,10 +45,7 @@ DrawTrSurf_Drawable::DrawTrSurf_Drawable(
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DrawCurve2dOn
|
||||
// purpose : draw a 2D curve
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DrawTrSurf_Drawable::DrawCurve2dOn(Adaptor2d_Curve2d& C, Draw_Display& aDisplay) const
|
||||
{
|
||||
@ -128,10 +125,7 @@ static void PlotCurve(Draw_Display& aDisplay,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DrawCurveOn
|
||||
// purpose : draw a 3D curve
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void DrawTrSurf_Drawable::DrawCurveOn(Adaptor3d_Curve& C, Draw_Display& aDisplay) const
|
||||
{
|
||||
|
@ -1155,10 +1155,8 @@ static Standard_Integer OCCN1(Draw_Interpretor& di, Standard_Integer argc, const
|
||||
#include <BRepPrimAPI_MakeSphere.hxx>
|
||||
#include <BRepAlgoAPI_Section.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : OCCN2
|
||||
// purpose : BOOLEAN OPERATION
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer OCCN2(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
if (argc > 2)
|
||||
|
@ -918,10 +918,8 @@ void StructuralDump(Draw_Interpretor& theCommands,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : checkshape
|
||||
// purpose : Checks a shape
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer checkshape(Draw_Interpretor& theCommands,
|
||||
Standard_Integer narg,
|
||||
const char** a)
|
||||
|
@ -1720,10 +1720,7 @@ static Standard_Integer ROF(Draw_Interpretor& theCommands, Standard_Integer narg
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GLU
|
||||
// purpose : Commande glue
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer GLU(Draw_Interpretor&, Standard_Integer narg, const char** a)
|
||||
{
|
||||
|
@ -46,10 +46,7 @@ static Standard_Real ComputeArea(const gp_XY& theP1, const gp_XY& theP2, const g
|
||||
return 0.5 * Abs((theP3 - theP1).Crossed(theP2 - theP1));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Perform
|
||||
// purpose : Performs checking
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void MeshTest_CheckTopology::Perform(Draw_Interpretor& di)
|
||||
{
|
||||
|
@ -990,11 +990,8 @@ static Standard_Integer DT_SplitSurface(Draw_Interpretor& di, Standard_Integer n
|
||||
}
|
||||
|
||||
//---------------gka
|
||||
//=======================================================================
|
||||
// function : offset2dcurve
|
||||
// purpose :
|
||||
//
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer offset2dcurve(Draw_Interpretor& di,
|
||||
Standard_Integer argc,
|
||||
const char** argv)
|
||||
@ -1016,11 +1013,8 @@ static Standard_Integer offset2dcurve(Draw_Interpretor& di,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : offsetcurve
|
||||
// purpose :
|
||||
//
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer offsetcurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
if (argc < 5)
|
||||
|
@ -5866,10 +5866,8 @@ static int TextToBRep(Draw_Interpretor& /*theDI*/,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VFont
|
||||
// purpose : Font management
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
struct FontComparator
|
||||
{
|
||||
bool operator()(const Handle(Font_SystemFont)& theFontA, const Handle(Font_SystemFont)& theFontB)
|
||||
|
@ -3329,10 +3329,7 @@ static int VZBuffTrihedron(Draw_Interpretor& /*theDI*/,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// function : VRotate
|
||||
// purpose : Camera Rotating
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static int VRotate(Draw_Interpretor& /*theDi*/, Standard_Integer theArgNb, const char** theArgVec)
|
||||
{
|
||||
|
@ -483,10 +483,8 @@ static Standard_Integer noteDelete(Draw_Interpretor& di, Standard_Integer argc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : noteDeleteAll
|
||||
// purpose : deletes all notes
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const cmd XNoteDeleteAll = {"XNoteDeleteAll", 2, "XNoteDeleteAll Doc"};
|
||||
|
||||
static Standard_Integer noteDeleteAll(Draw_Interpretor& di,
|
||||
|
@ -101,10 +101,8 @@ static bool parseCoordinateSystem(const char* theArg, RWMesh_CoordinateSystem& t
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// function : ReadGltf
|
||||
// purpose : Reads glTF file
|
||||
//=============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer ReadGltf(Draw_Interpretor& theDI,
|
||||
Standard_Integer theNbArgs,
|
||||
const char** theArgVec)
|
||||
@ -286,10 +284,8 @@ static Standard_Integer ReadGltf(Draw_Interpretor& theDI,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// function : WriteGltf
|
||||
// purpose : Writes glTF file
|
||||
//=============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer WriteGltf(Draw_Interpretor& theDI,
|
||||
Standard_Integer theNbArgs,
|
||||
const char** theArgVec)
|
||||
|
@ -55,10 +55,8 @@ static bool parseCoordinateSystem(const char* theArg, RWMesh_CoordinateSystem& t
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// function : ReadObj
|
||||
// purpose : Reads OBJ file
|
||||
//=============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer ReadObj(Draw_Interpretor& theDI,
|
||||
Standard_Integer theNbArgs,
|
||||
const char** theArgVec)
|
||||
@ -232,10 +230,8 @@ static Standard_Integer ReadObj(Draw_Interpretor& theDI,
|
||||
return 0;
|
||||
}
|
||||
|
||||
///=============================================================================
|
||||
// function : WriteObj
|
||||
// purpose : Writes OBJ file
|
||||
//=============================================================================
|
||||
///=================================================================================================
|
||||
|
||||
static Standard_Integer WriteObj(Draw_Interpretor& theDI,
|
||||
Standard_Integer theNbArgs,
|
||||
const char** theArgVec)
|
||||
|
@ -36,10 +36,8 @@
|
||||
#include <XSControl_WorkSession.hxx>
|
||||
#include <XSDRAW.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : writeply
|
||||
// purpose : write PLY file
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer WritePly(Draw_Interpretor& theDI,
|
||||
Standard_Integer theNbArgs,
|
||||
const char** theArgVec)
|
||||
|
@ -77,10 +77,8 @@ static Standard_Integer writestl(Draw_Interpretor& di, Standard_Integer argc, co
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// function : readstl
|
||||
// purpose : Reads stl file
|
||||
//=============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_Integer readstl(Draw_Interpretor& theDI,
|
||||
Standard_Integer theArgc,
|
||||
const char** theArgv)
|
||||
|
@ -23,10 +23,7 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Poly_CoherentTriangulation, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
// function : Poly_CoherentTriangulation
|
||||
// purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Poly_CoherentTriangulation::Poly_CoherentTriangulation(
|
||||
const Handle(NCollection_BaseAllocator)& theAlloc)
|
||||
|
@ -29,10 +29,7 @@
|
||||
|
||||
TopLoc_Location::TopLoc_Location() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : TopLoc_Location
|
||||
// purpose : constructor Datum
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopLoc_Location::TopLoc_Location(const Handle(TopLoc_Datum3D)& D)
|
||||
{
|
||||
@ -63,10 +60,7 @@ TopLoc_Location::operator gp_Trsf() const
|
||||
return Transformation();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Inverted
|
||||
// purpose : return the inverse
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopLoc_Location TopLoc_Location::Inverted() const
|
||||
{
|
||||
@ -137,10 +131,7 @@ TopLoc_Location TopLoc_Location::Predivided(const TopLoc_Location& Other) const
|
||||
return Other.Inverted().Multiplied(*this);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Powered
|
||||
// purpose : power elevation
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TopLoc_Location TopLoc_Location::Powered(const Standard_Integer pwr) const
|
||||
{
|
||||
@ -165,10 +156,7 @@ TopLoc_Location TopLoc_Location::Powered(const Standard_Integer pwr) const
|
||||
return Inverted().Powered(-pwr);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsEqual
|
||||
// purpose : operator ==
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
// two locations are Equal if the Items have the same LocalValues and Powers
|
||||
// this is a recursive function to test it
|
||||
|
@ -18,10 +18,8 @@
|
||||
|
||||
static const Standard_Real CGOLD = 0.3819660; // 0.5*(3 - sqrt(5));
|
||||
|
||||
//=======================================================================
|
||||
// function : SHFT
|
||||
// purpose : Shifts arguments
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void SHFT(Standard_Real& theA, Standard_Real& theB, Standard_Real& theC, Standard_Real& theD)
|
||||
{
|
||||
theA = theB;
|
||||
|
@ -726,11 +726,8 @@ void FSD_File::ReadInfo(Standard_Integer& nbObj,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ReadCompleteInfo
|
||||
// purpose :
|
||||
//
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void FSD_File::ReadCompleteInfo(Standard_IStream& /*theIStream*/, Handle(Storage_Data)& /*theData*/)
|
||||
{
|
||||
}
|
||||
|
@ -339,10 +339,7 @@ Handle(TColStd_HSequenceOfHExtendedString) Message_Algorithm::GetMessageStrings(
|
||||
return Handle(TColStd_HSequenceOfHExtendedString)::DownCast(myReportStrings->Value(aFlagIndex));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PrepareReport
|
||||
// purpose : static method
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TCollection_ExtendedString Message_Algorithm::PrepareReport(
|
||||
const Handle(TColStd_HPackedMapOfInteger)& theMapError,
|
||||
@ -367,10 +364,7 @@ TCollection_ExtendedString Message_Algorithm::PrepareReport(
|
||||
return aNewReport;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PrepareReport
|
||||
// purpose : static method
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TCollection_ExtendedString Message_Algorithm::PrepareReport(
|
||||
const TColStd_SequenceOfHExtendedString& theReportSeq,
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user