mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Coding - Move StepData_ConfParameters to DESTEP package #261
Replace StepData_ConfParameters with DESTEP_Parameters across multiple files. New location will help to keep any translate related stuff in one place for high level usage.
This commit is contained in:
@@ -375,7 +375,7 @@ IFSelect_ReturnStatus STEPCAFControl_Reader::ReadFile (const Standard_CString th
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
IFSelect_ReturnStatus STEPCAFControl_Reader::ReadFile (const Standard_CString theFileName,
|
||||
const StepData_ConfParameters& theParams)
|
||||
const DESTEP_Parameters& theParams)
|
||||
{
|
||||
return myReader.ReadFile(theFileName, theParams);
|
||||
}
|
||||
@@ -450,7 +450,7 @@ Standard_Boolean STEPCAFControl_Reader::Perform (const Standard_CString filename
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Reader::Perform (const Standard_CString filename,
|
||||
const Handle(TDocStd_Document)& doc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress)
|
||||
{
|
||||
if (ReadFile(filename, theParams) != IFSelect_RetDone)
|
||||
@@ -482,7 +482,7 @@ Standard_Boolean STEPCAFControl_Reader::Perform (const TCollection_AsciiString &
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Reader::Perform (const TCollection_AsciiString& filename,
|
||||
const Handle(TDocStd_Document)& doc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress)
|
||||
{
|
||||
if (ReadFile(filename.ToCString(), theParams) != IFSelect_RetDone)
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
//! @param[in] theParams default configuration parameters
|
||||
//! @return read status
|
||||
Standard_EXPORT IFSelect_ReturnStatus ReadFile(const Standard_CString theFileName,
|
||||
const StepData_ConfParameters& theParams);
|
||||
const DESTEP_Parameters& theParams);
|
||||
|
||||
//! Loads a file from stream and returns the read status.
|
||||
//! @param[in] theName auxiliary stream name
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
|
||||
Standard_EXPORT Standard_Boolean Perform (const TCollection_AsciiString& filename,
|
||||
const Handle(TDocStd_Document)& doc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
|
||||
//! Translate STEP file given by filename into the document
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
//! Return True if succeeded, and False in case of fail
|
||||
Standard_EXPORT Standard_Boolean Perform (const Standard_CString filename,
|
||||
const Handle(TDocStd_Document)& doc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
|
||||
//! Returns data on external files
|
||||
|
@@ -401,7 +401,7 @@ Standard_Boolean STEPCAFControl_Writer::Transfer(const Handle(TDocStd_Document)&
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Writer::Transfer(const Handle(TDocStd_Document)& theDoc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode,
|
||||
const Standard_CString theMulti,
|
||||
const Message_ProgressRange& theProgress)
|
||||
@@ -438,7 +438,7 @@ Standard_Boolean STEPCAFControl_Writer::Transfer(const TDF_Label& theLabel,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Writer::Transfer(const TDF_Label& theLabel,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode,
|
||||
const Standard_CString theIsMulti,
|
||||
const Message_ProgressRange& theProgress)
|
||||
@@ -475,7 +475,7 @@ Standard_Boolean STEPCAFControl_Writer::Transfer(const TDF_LabelSequence& theLab
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Writer::Transfer(const TDF_LabelSequence& theLabels,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode,
|
||||
const Standard_CString theIsMulti,
|
||||
const Message_ProgressRange& theProgress)
|
||||
@@ -514,7 +514,7 @@ Standard_Boolean STEPCAFControl_Writer::Perform(const Handle(TDocStd_Document)&
|
||||
//=======================================================================
|
||||
Standard_Boolean STEPCAFControl_Writer::Perform(const Handle(TDocStd_Document)& theDoc,
|
||||
const Standard_CString theFileName,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress)
|
||||
{
|
||||
if (!Transfer(theDoc, theParams, STEPControl_AsIs, 0L, theProgress))
|
||||
@@ -687,8 +687,8 @@ Standard_Boolean STEPCAFControl_Writer::transfer(STEPControl_Writer& theWriter,
|
||||
if (aPS1.UserBreak())
|
||||
return Standard_False;
|
||||
|
||||
StepData_ConfParameters::WriteMode_Assembly assemblymode = aModel->InternalParameters.WriteAssembly;
|
||||
aModel->InternalParameters.WriteAssembly = StepData_ConfParameters::WriteMode_Assembly_On;
|
||||
DESTEP_Parameters::WriteMode_Assembly assemblymode = aModel->InternalParameters.WriteAssembly;
|
||||
aModel->InternalParameters.WriteAssembly = DESTEP_Parameters::WriteMode_Assembly_On;
|
||||
theWriter.Transfer(aSass, STEPControl_AsIs, aModel->InternalParameters, Standard_True, aPS1.Next());
|
||||
aModel->InternalParameters.WriteAssembly = assemblymode;
|
||||
}
|
||||
@@ -849,8 +849,8 @@ TopoDS_Shape STEPCAFControl_Writer::transferExternFiles(const TDF_Label& theLabe
|
||||
anExtFile->SetWS(aNewWS);
|
||||
anExtFile->SetName(aNewName);
|
||||
anExtFile->SetLabel(theLabel);
|
||||
StepData_ConfParameters::WriteMode_Assembly anAssemblymode = aStepWriter.Model()->InternalParameters.WriteAssembly;
|
||||
aStepWriter.Model()->InternalParameters.WriteAssembly = StepData_ConfParameters::WriteMode_Assembly_Off;
|
||||
DESTEP_Parameters::WriteMode_Assembly anAssemblymode = aStepWriter.Model()->InternalParameters.WriteAssembly;
|
||||
aStepWriter.Model()->InternalParameters.WriteAssembly = DESTEP_Parameters::WriteMode_Assembly_Off;
|
||||
const Standard_CString anIsMulti = 0;
|
||||
anExtFile->SetTransferStatus(transfer(aStepWriter, aLabelSeq, theMode, anIsMulti, Standard_True, theProgress));
|
||||
aStepWriter.Model()->InternalParameters.WriteAssembly = anAssemblymode;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <STEPCAFControl_DataMapOfLabelExternFile.hxx>
|
||||
#include <STEPControl_Writer.hxx>
|
||||
#include <StepAP242_GeometricItemSpecificUsage.hxx>
|
||||
#include <StepData_ConfParameters.hxx>
|
||||
#include <DESTEP_Parameters.hxx>
|
||||
#include <StepData_Factors.hxx>
|
||||
#include <StepDimTol_Datum.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
//! @param theProgress progress indicator
|
||||
//! Returns True if translation is OK
|
||||
Standard_EXPORT Standard_Boolean Transfer(const Handle(TDocStd_Document)& theDoc,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode = STEPControl_AsIs,
|
||||
const Standard_CString theIsMulti = 0,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
//! This method uses if need to set parameters avoiding
|
||||
//! initialization from Interface_Static
|
||||
Standard_EXPORT Standard_Boolean Transfer(const TDF_Label& theLabel,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode = STEPControl_AsIs,
|
||||
const Standard_CString theIsMulti = 0,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
@@ -133,7 +133,7 @@ public:
|
||||
//! This method uses if need to set parameters avoiding
|
||||
//! initialization from Interface_Static
|
||||
Standard_EXPORT Standard_Boolean Transfer(const TDF_LabelSequence& theLabelSeq,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const STEPControl_StepModelType theMode = STEPControl_AsIs,
|
||||
const Standard_CString theIsMulti = 0,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
@@ -154,7 +154,7 @@ public:
|
||||
//! Returns True if translation is OK
|
||||
Standard_EXPORT Standard_Boolean Perform(const Handle(TDocStd_Document)& theDoc,
|
||||
const Standard_CString theFileName,
|
||||
const StepData_ConfParameters& theParams,
|
||||
const DESTEP_Parameters& theParams,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
|
||||
//! Returns data on external files
|
||||
|
Reference in New Issue
Block a user