1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

Data Exchange - Clear up Step from Static_Interface #283

Remove unused Interface_Static includes
Update SchemaName method signatures
This commit is contained in:
dpasukhi
2025-01-23 23:40:47 +00:00
parent 1e0d8c3f1e
commit a0401c7872
40 changed files with 44 additions and 197 deletions

View File

@@ -19,7 +19,6 @@
#include <GeomToStep_MakeAxis2Placement3d.hxx>
#include <Interface_Macros.hxx>
#include <Interface_Static.hxx>
#include <StepAP203_CcDesignApproval.hxx>
#include <StepAP203_CcDesignDateAndTimeAssignment.hxx>
#include <StepAP203_CcDesignPersonAndOrganizationAssignment.hxx>
@@ -316,136 +315,6 @@ void STEPConstruct_ContextTool::SetACname (const Handle(TCollection_HAsciiString
GetAPD()->Application()->SetApplication (name);
}
/*
//=======================================================================
//function : SetACapplication
//purpose :
//=======================================================================
void STEPConstruct_ContextTool::SetACapplication (const Handle(TCollection_HAsciiString)& application)
{
GetPDC()->Formation()->OfProduct()->FrameOfReferenceValue(1)
->FrameOfReference()->SetApplication(application);
}
*/
// --------------------------------
// Product Related Product Category
// --------------------------------
/*
//=======================================================================
//function : GetPRPC
//purpose :
//=======================================================================
Handle(StepBasic_ProductRelatedProductCategory) STEPConstruct_ContextTool::GetPRPC()
{
return thePRPC;
}
//=======================================================================
//function : AddPRPC
//purpose :
//=======================================================================
void STEPConstruct_ContextTool::AddPRPC (const Standard_Boolean enforce)
{
Standard_Boolean noprpc = thePRPC.IsNull();
if (noprpc || enforce) {
//:i3 abv 1 Sep 98: ProSTEP TR9: generate PRODUCT_TYPE (derived) instead of PRPC
switch (Interface_Static::IVal("write.step.schema")) { //j4
default:
case 1:
thePRPC = new StepBasic_ProductType;
thePRPC->SetName (new TCollection_HAsciiString("part"));
break;
case 4:
case 2:
thePRPC = new StepBasic_ProductRelatedProductCategory;
thePRPC->SetName (new TCollection_HAsciiString("part"));
break;
case 3:
thePRPC = new StepBasic_ProductRelatedProductCategory;
thePRPC->SetName (new TCollection_HAsciiString("detail")); // !!!!! or "assembly"
break;
}
thePRPC->UnSetDescription(); //:i3
}
// if (noprpc || enforce) aStepModel->AddWithRefs(thePRPC);
}
//=======================================================================
//function : SetPRPCName
//purpose :
//=======================================================================
void STEPConstruct_ContextTool::SetPRPCName(const Handle(TCollection_HAsciiString)& aName)
{
GetPRPC()->SetName(aName);
}
//=======================================================================
//function : GetPRPCName
//purpose :
//=======================================================================
Handle(TCollection_HAsciiString) STEPConstruct_ContextTool::GetPRPCName()
{
if (GetPRPC().IsNull()) return new TCollection_HAsciiString("");
return GetPRPC()->Name();
}
//=======================================================================
//function : SetPRPCDescription
//purpose :
//=======================================================================
void STEPConstruct_ContextTool::SetPRPCDescription (const Handle(TCollection_HAsciiString)& aDescription)
{
Handle(StepBasic_ProductRelatedProductCategory) aPRPC = GetPRPC();
aPRPC->SetDescription(aDescription);
// aPRPC->HasDescription(Standard_True);
}
//=======================================================================
//function : GetPRPCDescription
//purpose :
//=======================================================================
Handle(TCollection_HAsciiString) STEPConstruct_ContextTool::GetPRPCDescription()
{
Handle(StepBasic_ProductRelatedProductCategory) aPRPC = GetPRPC();
if (!aPRPC.IsNull() && aPRPC->HasDescription())
return aPRPC->Description();
else {
return new TCollection_HAsciiString("");
}
}
// ================================================================
//
// Settings from an already done SDR (see SDRtool)
//
// ================================================================
void STEPConstruct_ContextTool::SetSDR (const Handle(StepShape_ShapeDefinitionRepresentation)& sdr)
{
// SDR partage des choses avec le contexte ... On raccroche les wagons
Handle(StepBasic_Product) theProduct =
sdr->Definition()->Definition().ProductDefinition()->Formation()->OfProduct();
Handle(StepBasic_ApplicationContext) theAppli =
theProduct->FrameOfReferenceValue(1)->FrameOfReference();
Handle(StepBasic_HArray1OfProduct) ProdList =
new StepBasic_HArray1OfProduct(1,1);
ProdList->SetValue(1,theProduct);
thePRPC->SetProducts (ProdList);
theAPD->SetApplication (theAppli);
}
*/
//=======================================================================
//function : GetDefaultAxis
//purpose :

View File

@@ -16,7 +16,6 @@
//:j4 gka 16.03.99 S4134
// abv 20.11.99 renamed from StepPDR_SDRtool
#include <Interface_Static.hxx>
#include <StepBasic_ApplicationContext.hxx>
#include <StepBasic_DesignContext.hxx>
#include <StepBasic_MechanicalContext.hxx>

View File

@@ -17,7 +17,6 @@
#include <APIHeaderSection_MakeHeader.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Static.hxx>
#include <Quantity_Color.hxx>
#include <StepBasic_MeasureValueMember.hxx>
#include <STEPConstruct.hxx>

View File

@@ -17,7 +17,6 @@
//abv 17.11.99: renamed from StepPDR_MakeUnitAndToleranceContext and merged with STEPControl_Unit
//abv 30.02.00: ability to write file in units other than MM
#include <Interface_Static.hxx>
#include <StepBasic_ConversionBasedUnitAndAreaUnit.hxx>
#include <StepBasic_ConversionBasedUnitAndLengthUnit.hxx>
#include <StepBasic_ConversionBasedUnitAndPlaneAngleUnit.hxx>

View File

@@ -19,7 +19,6 @@
#include <gp_Pnt.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_Static.hxx>
#include <Message.hxx>
#include <StepBasic_DerivedUnit.hxx>
#include <StepBasic_DerivedUnitElement.hxx>