ModelingAlgorithms TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat TKMesh TKXMesh TKShHealing
Visualization TKService TKV3d TKOpenGl TKOpenGles TKMeshVS TKIVtk TKD3DHost
ApplicationFramework TKCDF TKLCAF TKCAF TKBinL TKXmlL TKBin TKXml TKStdL TKStd TKTObj TKBinTObj TKXmlTObj TKVCAF
-DataExchange TKXDE TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES TKXCAF TKXDEIGES TKXDESTEP TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh TKXDECascade TKExpress ExpToCasExe
+DataExchange TKXDE TKXSBase TKXDESTEP TKXDEIGES TKXDESTL TKXDEVRML TKXDECascade TKXDEOBJ TKXDEGLTF TKXDEPLY TKXCAF TKXmlXCAF TKBinXCAF TKRWMesh
+DETools TKExpress ExpToCasExe
Draw TKDraw TKTopTest TKOpenGlTest TKOpenGlesTest TKD3DHostTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw TKIVtkDraw DRAWEXE TKXSDRAWBase TKXSDRAWDEWrapper TKXSDRAWGLTF TKXSDRAWIGES TKXSDRAWOBJ TKXSDRAWPLY TKXSDRAWSTEP TKXSDRAWSTL TKXSDRAWVRML
TKBinTObj
TKXmlTObj
TKXDESTEP
-TKSTEP
-TKSTEPAttr
-TKSTEP209
-TKSTEPBase
-TKXDEIGES
-TKIGES
TKXSBase
-TKVRML
-TKSTL
+TKXDEVRML
+TKXDESTL
TKRWMesh
+TKXDEGLTF
+TKXDEOBJ
+TKXDEPLY
TKXDE
TKBinXCAF
TKXmlXCAF
+++ /dev/null
-project(TKIGES)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKBRep
-TKernel
-TKMath
-TKTopAlgo
-TKShHealing
-TKG2d
-TKG3d
-TKGeomBase
-TKGeomAlgo
-TKPrim
-TKBool
-TKXSBase
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-IGESData
-IGESFile
-IGESBasic
-IGESGraph
-IGESGeom
-IGESDimen
-IGESDraw
-IGESSolid
-IGESDefs
-IGESAppli
-IGESConvGeom
-IGESSelect
-IGESToBRep
-GeomToIGES
-Geom2dToIGES
-BRepToIGES
-BRepToIGESBRep
-IGESControl
TKFeat
TKCAF
TKVCAF
-TKIGES
+TKXDEIGES
TKXSBase
TKMesh
TKXCAF
TKBinXCAF
-TKSTEP
-TKSTEPBase
TKXDESTEP
TKXSDRAW
-TKSTL
+TKXDESTL
TKXml
TKTObj
TKXmlL
+++ /dev/null
-project(TKSTEP)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKernel
-TKSTEPAttr
-TKSTEP209
-TKSTEPBase
-TKBRep
-TKMath
-TKG2d
-TKShHealing
-TKTopAlgo
-TKG3d
-TKGeomBase
-TKGeomAlgo
-TKXSBase
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-StepAP214
-RWStepAP214
-StepAP203
-RWStepAP203
-STEPConstruct
-STEPEdit
-GeomToStep
-StepToGeom
-StepToTopoDS
-TopoDSToStep
-STEPControl
-STEPSelections
-StepAP209
-RWStepAP242
-StepAP242
+++ /dev/null
-project(TKSTEP209)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKernel
-TKXSBase
-TKSTEPBase
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-StepElement
-StepFEA
-RWStepElement
-RWStepFEA
+++ /dev/null
-project(TKSTEPAttr)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKernel
-TKXSBase
-TKSTEPBase
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-StepVisual
-RWStepVisual
-StepDimTol
-RWStepDimTol
-StepKinematics
-RWStepKinematics
+++ /dev/null
-project(TKSTEPBase)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKernel
-TKXSBase
-TKMath
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-StepBasic
-RWStepBasic
-StepRepr
-RWStepRepr
-StepGeom
-RWStepGeom
-StepShape
-RWStepShape
+++ /dev/null
-project(TKSTL)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKXDE
-TKernel
-TKMath
-TKBRep
-TKG2d
-TKG3d
-TKTopAlgo
-TKLCAF
-TKXCAF
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-StlAPI
-RWStl
+++ /dev/null
-project(TKVRML)
-
-OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
+++ /dev/null
-TKBRep
-TKXDE
-TKTopAlgo
-TKMath
-TKGeomBase
-TKernel
-TKPrim
-TKG2d
-TKG3d
-TKMesh
-TKHLR
-TKRWMesh
-TKService
-TKGeomAlgo
-TKV3d
-TKLCAF
-TKXCAF
-TKXSBase
+++ /dev/null
-EXTERNLIB
-PACKAGES
+++ /dev/null
-VrmlConverter
-VrmlAPI
-Vrml
-VrmlData
TKBRep
TKXCAF
TKernel
-TKIGES
TKV3d
TKMath
TKService
TKLCAF
TKG3d
TKRWMesh
-TKSTEPBase
-TKSTEP
-TKSTL
+TKXDEOBJ
+TKXDEGLTF
+TKXDEPLY
+TKXDESTL
TKMesh
TKXSDRAW
TKXDECascade
TKViewerTest
TKBinXCAF
TKXmlXCAF
-TKVRML
+TKXDEVRML
--- /dev/null
+project(TKXDEGLTF)
+
+OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
--- /dev/null
+TKernel
+TKMath
+TKMesh
+TKXCAF
+TKLCAF
+TKV3d
+TKBRep
+TKG3d
+TKXDE
+TKService
+TKRWMesh
+CSF_RapidJSON
+CSF_Draco
--- /dev/null
+EXTERNLIB
+PACKAGES
TKXDE
TKernel
TKMath
+TKTopAlgo
+TKShHealing
TKXSBase
+TKGeomBase
+TKGeomAlgo
+TKBool
+TKPrim
TKCDF
TKLCAF
TKG2d
TKG3d
TKXCAF
-TKIGES
IGESCAFControl
+IGESData
+IGESFile
+IGESBasic
+IGESGraph
+IGESGeom
+IGESDimen
+IGESDraw
+IGESSolid
+IGESDefs
+IGESAppli
+IGESConvGeom
+IGESSelect
+IGESToBRep
+GeomToIGES
+Geom2dToIGES
+BRepToIGES
+BRepToIGESBRep
+IGESControl
--- /dev/null
+project(TKXDEOBJ)
+
+OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
--- /dev/null
+TKernel
+TKMath
+TKMesh
+TKXCAF
+TKLCAF
+TKV3d
+TKBRep
+TKG3d
+TKXDE
+TKService
+TKRWMesh
+CSF_RapidJSON
--- /dev/null
+EXTERNLIB
+PACKAGES
--- /dev/null
+project(TKXDEPLY)
+
+OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
--- /dev/null
+TKernel
+TKMath
+TKMesh
+TKXCAF
+TKLCAF
+TKV3d
+TKBRep
+TKG3d
+TKXDE
+TKService
+TKRWMesh
+CSF_RapidJSON
--- /dev/null
+EXTERNLIB
+PACKAGES
TKXDE
TKBRep
-TKSTEPAttr
TKernel
TKMath
TKXSBase
TKTopAlgo
TKG2d
TKCAF
-TKSTEPBase
TKCDF
TKLCAF
TKG3d
TKXCAF
-TKSTEP
TKShHealing
+TKernel
+TKBRep
+TKMath
+TKG2d
+TKShHealing
+TKTopAlgo
+TKG3d
+TKGeomBase
+TKGeomAlgo
+TKXSBase
STEPCAFControl
+StepAP214
+RWStepAP214
+StepAP203
+RWStepAP203
+STEPConstruct
+STEPEdit
+GeomToStep
+StepToGeom
+StepToTopoDS
+TopoDSToStep
+STEPControl
+STEPSelections
+StepAP209
+RWStepAP242
+StepAP242
+StepElement
+StepFEA
+RWStepElement
+RWStepFEA
+StepVisual
+RWStepVisual
+StepDimTol
+RWStepDimTol
+StepKinematics
+RWStepKinematics
+StepBasic
+RWStepBasic
+StepRepr
+RWStepRepr
+StepGeom
+RWStepGeom
+StepShape
+RWStepShape
+StepSelect
+StepData
+StepFile
+RWHeaderSection
+APIHeaderSection
+HeaderSection
\ No newline at end of file
--- /dev/null
+project(TKXDESTL)
+
+OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
--- /dev/null
+TKXDE
+TKernel
+TKMath
+TKBRep
+TKG2d
+TKG3d
+TKTopAlgo
+TKLCAF
+TKXCAF
--- /dev/null
+EXTERNLIB
+PACKAGES
--- /dev/null
+StlAPI
+RWStl
--- /dev/null
+project(TKXDEVRML)
+
+OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
--- /dev/null
+TKBRep
+TKXDE
+TKTopAlgo
+TKMath
+TKGeomBase
+TKernel
+TKPrim
+TKG2d
+TKG3d
+TKMesh
+TKHLR
+TKRWMesh
+TKService
+TKGeomAlgo
+TKV3d
+TKLCAF
+TKXCAF
+TKXSBase
--- /dev/null
+EXTERNLIB
+PACKAGES
--- /dev/null
+VrmlConverter
+VrmlAPI
+Vrml
+VrmlData
IFSelect
TransferBRep
XSControl
-StepData
-StepFile
-HeaderSection
-RWHeaderSection
-APIHeaderSection
-StepSelect
XSAlgo
LibCtl
MoniTool
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
-TKRWMesh
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKRWMesh
+TKXDEGLTF
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
-TKRWMesh
TKXSBase
TKXDEIGES
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKRWMesh
+TKXDEOBJ
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKRWMesh
+TKXDEPLY
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKRWMesh
+TKXDESTL
TKXSDRAWBase
\ No newline at end of file
TKG3d
TKViewerTest
TKG2d
-TKSTEPBase
TKTopAlgo
TKGeomBase
TKGeomAlgo
TKMesh
TKDraw
-TKSTEP
-TKIGES
-TKSTL
-TKVRML
TKLCAF
TKDCAF
TKXCAF
TKRWMesh
+TKXDEVRML
TKXSDRAWBase
\ No newline at end of file
void XDEDRAW::Init(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
// Load static variables for STEPCAF (ssv; 16.08.2012)
STEPCAFControl_Controller::Init();
void XDEDRAW_Colors::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
//=====================================
// Work with colors
Standard_Integer theNbArgs,
const char** theArgVec)
{
- //if (theNbArgs < 2)
- //{
- // theDI << "Use: " << theArgVec[0] << " filename \n";
- // return 1;
- //}
- //const TCollection_AsciiString aSessionName(theArgVec[1]);
- //Handle(XSControl_WorkSession) aSession;
- //if (!THE_PREVIOUS_WORK_SESSIONS.Find(aSessionName, aSession))
- //{
- // TCollection_AsciiString aWSs;
- // for (XSControl_WorkSessionMap::Iterator anIter(THE_PREVIOUS_WORK_SESSIONS);
- // anIter.More(); anIter.Next())
- // {
- // aWSs += "\"";
- // aWSs += anIter.Key();
- // aWSs += "\"\n";
- // }
- // theDI << "Error: Can't find active session. Active sessions list:\n" << aWSs;
- // return 1;
- //}
+ if (theNbArgs < 2)
+ {
+ theDI << "Use: " << theArgVec[0] << " filename \n";
+ return 1;
+ }
+ const TCollection_AsciiString aSessionName(theArgVec[1]);
+ Handle(XSControl_WorkSession) aSession;
+ const XSControl_WorkSessionMap& aWSList = XSDRAWBase::WorkSessionList();
+ if (!aWSList.Find(aSessionName, aSession))
+ {
+ TCollection_AsciiString aWSs;
+ for (XSControl_WorkSessionMap::Iterator anIter(aWSList);
+ anIter.More(); anIter.Next())
+ {
+ aWSs += "\"";
+ aWSs += anIter.Key();
+ aWSs += "\"\n";
+ }
+ theDI << "Error: Can't find active session. Active sessions list:\n" << aWSs;
+ return 1;
+ }
+ XSDRAWBase::Session() = aSession;
return 0;
}
Standard_Integer theNbArgs,
const char** theArgVec)
{
- //(void)theNbArgs;
- //(void)theArgVec;
- //Message::SendInfo() << "Active sessions list:";
- //TCollection_AsciiString aWSs;
- //for (XSControl_WorkSessionMap::Iterator anIter(THE_PREVIOUS_WORK_SESSIONS);
- // anIter.More(); anIter.Next())
- //{
- // theDI << "\"" << anIter.Key() << "\"\n";
- //}
+ (void)theNbArgs;
+ (void)theArgVec;
+ Message::SendInfo() << "Active sessions list:";
+ TCollection_AsciiString aWSs;
+ for (XSControl_WorkSessionMap::Iterator anIter(XSDRAWBase::WorkSessionList());
+ anIter.More(); anIter.Next())
+ {
+ theDI << "\"" << anIter.Key() << "\"\n";
+ }
return 0;
}
Standard_Integer theNbArgs,
const char** theArgVec)
{
- //if (theNbArgs < 2)
- //{
- // theDI << theArgVec[0] << " shape: search for shape origin among all last tranalated files\n";
- // return 0;
- //}
+ if (theNbArgs < 2)
+ {
+ theDI << theArgVec[0] << " shape: search for shape origin among all last tranalated files\n";
+ return 0;
+ }
- //char command[256];
- //Sprintf(command, "fromshape %.200s -1", theArgVec[1]);
- //XSControl_WorkSessionMap DictWS = THE_PREVIOUS_WORK_SESSIONS;
- //if (DictWS.IsEmpty())
- // return theDI.Eval(command);
+ char command[256];
+ Sprintf(command, "fromshape %.200s -1", theArgVec[1]);
+ const XSControl_WorkSessionMap& DictWS = XSDRAWBase::WorkSessionList();
+ if (DictWS.IsEmpty())
+ return theDI.Eval(command);
- //Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
- //for (XSControl_WorkSessionMap::Iterator DicIt(DictWS);
- // DicIt.More(); DicIt.Next())
- //{
- // Handle(XSControl_WorkSession) CurrentWS = DicIt.Value();
- // theDI.Eval(command);
- //}
+ Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
+ for (XSControl_WorkSessionMap::Iterator DicIt(DictWS);
+ DicIt.More(); DicIt.Next())
+ {
+ Handle(XSControl_WorkSession) CurrentWS = DicIt.Value();
+ theDI.Eval(command);
+ }
return 0;
}
void XDEDRAW_Common::InitCommands(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString g = "XDE translation commands";
void XDEDRAW_GDTs::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString g = "XDE G&DTs commands";
void XDEDRAW_Layers::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
//=====================================
// Work with layers
void XDEDRAW_Props::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString g = "XDE property's commands";
void XDEDRAW_Shapes::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
//=====================================
// Work with shapes
void XDEDRAW_Views::InitCommands(Draw_Interpretor& di)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString g = "XDE Views commands";
if (what > 10) { sout<<" *** Not yet implemented"<<std::endl; return; }
if (what < 10) {
sout << "****** Data recorded on Last Transfer ******"<<std::endl;
- PrintStatsProcess (myTP,what,mode);
+ PrintStatsProcess (myTP, sout, what,mode);
}
// reste what = 10 : on liste les racines des final results
sout << "****** Final Results ******"<<std::endl;
//=======================================================================
void XSControl_TransferReader::PrintStatsProcess(const Handle(Transfer_TransientProcess)& TP,
+ Standard_OStream& theStream,
const Standard_Integer what,
const Standard_Integer mode)
{
Handle(TColStd_HSequenceOfTransient) list; // null
- XSControl_TransferReader::PrintStatsOnList (TP,list,what,mode);
+ XSControl_TransferReader::PrintStatsOnList (TP, theStream,list,what,mode);
}
//=======================================================================
void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientProcess)& TP,
+ Standard_OStream& theStream,
const Handle(TColStd_HSequenceOfTransient)& list,
const Standard_Integer what,
const Standard_Integer mode)
{
- Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
-
char mess[250];
if (TP.IsNull()) return;
- if (what == 0) { TP->PrintStats(0,sout); return; }
+ if (what == 0) { TP->PrintStats(0, theStream); return; }
- sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer Process (Read) ******"<<std::endl;
- if (what == 1) sout << "****** Individual Transfers (Roots) ******\n";
- if (what == 2) sout << "****** All recorded data about Transfer ******\n";
- if (what == 3) sout << "****** Abnormal records ******\n";
+ theStream <<"\n*******************************************************************\n";
+ theStream << "****** Statistics on Transfer Process (Read) ******"<<std::endl;
+ if (what == 1) theStream << "****** Individual Transfers (Roots) ******\n";
+ if (what == 2) theStream << "****** All recorded data about Transfer ******\n";
+ if (what == 3) theStream << "****** Abnormal records ******\n";
if (what == 1 || what == 2 || what == 3) {
- if (mode == 0) sout<<"****** (n0s of recorded entities) ******\n";
- if (mode == 1) sout<<"****** (per entity : type + result) ******\n";
- if (mode == 2) sout<<"****** (per entity : type + result/status) ******\n";
- if (mode == 3) sout<<"****** (count per type of entity) ******\n";
- if (mode == 4) sout<<"****** (count per type of result) ******\n";
- if (mode == 5) sout<<"****** (count per couple entity-type / result-type/status) ******\n";
- if (mode == 6) sout<<"****** (list per couple entity-type / result-type/status) ******\n";
+ if (mode == 0) theStream<<"****** (n0s of recorded entities) ******\n";
+ if (mode == 1) theStream<<"****** (per entity : type + result) ******\n";
+ if (mode == 2) theStream<<"****** (per entity : type + result/status) ******\n";
+ if (mode == 3) theStream<<"****** (count per type of entity) ******\n";
+ if (mode == 4) theStream<<"****** (count per type of result) ******\n";
+ if (mode == 5) theStream<<"****** (count per couple entity-type / result-type/status) ******\n";
+ if (mode == 6) theStream<<"****** (list per couple entity-type / result-type/status) ******\n";
}
- if (what == 4) sout << "****** Check messages ******\n";
- if (what == 5) sout << "****** Fail messages ******\n";
- sout<<"*******************************************************************\n";
+ if (what == 4) theStream << "****** Check messages ******\n";
+ if (what == 5) theStream << "****** Fail messages ******\n";
+ theStream <<"*******************************************************************\n";
// Cas what = 1,2,3 : contenu du TP (binders)
IFSelect_PrintCount pcm = IFSelect_CountByItem;
if (mode == 6) pcm = IFSelect_ListByItem;
- sout <<"**** Entities in Model : "<<model->NbEntities()<<std::endl;
- sout <<"**** Nb Items (Transfer) : "<<nb<<std::endl;
+ theStream <<"**** Entities in Model : "<<model->NbEntities()<<std::endl;
+ theStream <<"**** Nb Items (Transfer) : "<<nb<<std::endl;
if (!nolist)
- sout<<"**** Nb Items (Listed) : "<<nl<<std::endl;
+ theStream <<"**** Nb Items (Listed) : "<<nl<<std::endl;
for (itrp.Start(); itrp.More(); itrp.Next()) {
nbi ++;
nbnr ++;
if (notrec) counter->Add(ent,"(not recorded)");
else if (mode == 1 || mode == 2) {
- sout<<"["<<Interface_MSG::Blanks (nbi,4)<<nbi<<" ]:";
- model->Print (ent, sout);
- sout<<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<std::endl;
+ theStream <<"["<<Interface_MSG::Blanks (nbi,4)<<nbi<<" ]:";
+ model->Print (ent, theStream);
+ theStream <<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<std::endl;
continue;
}
}
- if (mode == 0) { sout<<" "<<model->Number(ent); continue; }
+ if (mode == 0) { theStream <<" "<<model->Number(ent); continue; }
if (mode != 3) {
stat = BinderStatus(binder,mess);
// 0 Binder Null. 1 void 2 Warning seul 3 Fail seul
// mode : 0 list num; 1 : num+label + type + result (abrege); 2 : complet
if (mode == 1 || mode == 2) {
- sout<<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
- model->Print (ent, sout);
- sout<<" "<<model->TypeName(ent,Standard_False);
- sout<<" Result:"<<mess<<std::endl;
+ theStream <<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
+ model->Print (ent, theStream);
+ theStream <<" "<<model->TypeName(ent,Standard_False);
+ theStream <<" Result:"<<mess<<std::endl;
if (mode == 1) continue;
const Handle(Interface_Check)& ch = binder->Check();
Standard_Integer newi,newnbw = ch->NbWarnings(), newnbf = ch->NbFails();
if (newnbw > 0) {
- sout<<" - Warnings : "<<newnbw<<":\n";
- for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<std::endl;
+ theStream <<" - Warnings : "<<newnbw<<":\n";
+ for (newi = 1; newi <= newnbw; newi ++) theStream <<ch->CWarning(newi)<<std::endl;
}
if (newnbf > 0) {
- sout<<" - Fails : "<<newnbf<<":\n";
- for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<std::endl;
+ theStream <<" - Fails : "<<newnbf<<":\n";
+ for (newi = 1; newi <= newnbf; newi ++) theStream <<ch->CFail(newi)<<std::endl;
}
continue;
}
// Fin de l iteration
}
- if (!counter.IsNull()) counter->PrintList (sout, model, pcm);
- else sout<<std::endl;
+ if (!counter.IsNull()) counter->PrintList (theStream, model, pcm);
+ else theStream <<std::endl;
// Pourcentages
if (mode != 3 && nbi > 0) {
- sout << "****** Percentages according Transfer Status ******"<<std::endl;
+ theStream << "****** Percentages according Transfer Status ******"<<std::endl;
PrintPercent (TP->Messenger(),"Result ",nbr+nbrw,nl);
PrintPercent (TP->Messenger(),"Result + FAIL ",nbrf,nl);
PrintPercent (TP->Messenger(),"FAIL, no Result ",nbf,nl);
chl.SetName("** TRANSFER READ CHECK **");
if (mode == 0)
{
- chl.Print (sout, model, (what == 5));
+ chl.Print (theStream, model, (what == 5));
}
else {
IFSelect_PrintCount pcm = IFSelect_CountByItem;
if (mode == 2) pcm = IFSelect_ListByItem;
Handle(IFSelect_CheckCounter) counter = new IFSelect_CheckCounter(Standard_True);
counter->Analyse (chl,model,Standard_True,(what == 5));
- counter->PrintList (sout, model, pcm);
+ counter->PrintList (theStream, model, pcm);
}
}
//! 2 : ShortByItem (count + 5 first numbers)
//! 3 : ListByItem (count + entity numbers)
//! 4 : EntitiesByItem (count + entity numbers and labels)
- Standard_EXPORT static void PrintStatsProcess (const Handle(Transfer_TransientProcess)& theTP, const Standard_Integer theWhat, const Standard_Integer theMode = 0);
+ Standard_EXPORT static void PrintStatsProcess (const Handle(Transfer_TransientProcess)& theTP,
+ Standard_OStream& theStream,
+ const Standard_Integer theWhat,
+ const Standard_Integer theMode = 0);
//! Works as PrintStatsProcess, but displays data only on the
//! entities which are in <list> (filter)
- Standard_EXPORT static void PrintStatsOnList (const Handle(Transfer_TransientProcess)& theTP, const Handle(TColStd_HSequenceOfTransient)& theList, const Standard_Integer theWhat, const Standard_Integer theMode = 0);
+ Standard_EXPORT static void PrintStatsOnList (const Handle(Transfer_TransientProcess)& theTP,
+ Standard_OStream& theStream,
+ const Handle(TColStd_HSequenceOfTransient)& theList,
+ const Standard_Integer theWhat,
+ const Standard_Integer theMode = 0);
DEFINE_STANDARD_RTTIEXT(XSControl_TransferReader,Standard_Transient)
#include <XSDRAW_Functions.hxx>
#include <XSDRAW_FunctionsSession.hxx>
#include <XSDRAW_FunctionsShape.hxx>
+#include <XSAlgo.hxx>
void XSDRAW::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
+ XSAlgo::Init();
XSDRAW_Functions::Init(theDI);
XSDRAW_FunctionsSession::Init(theDI);
XSDRAW_FunctionsShape::Init(theDI);
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
Handle(XSControl_Controller) control = WS->NormAdaptor();
if (theNbArgs == 1)
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
const Standard_Boolean modew = (theArgVec[0][2] == 'w');
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Handle(Transfer_TransientProcess)& TP =
if (TP->Model() != WS->Model()) aSSC.SStream() << "Model differs from the session";
Handle(TColStd_HSequenceOfTransient) list =
WS->GiveList(theArgVec[2]);
- XSControl_TransferReader::PrintStatsOnList(TP, list, mod1, mod2);
+ XSControl_TransferReader::PrintStatsOnList(TP, aSSC.SStream(), list, mod1, mod2);
// TP->PrintStats (1,aSSC.SStream());
}
else aSSC.SStream() << "TransferRead : not defined";
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Handle(Transfer_TransientProcess)& TP =
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** tpitem/tproot/twitem/twroot ****
if (theNbArgs < 2)
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Handle(Transfer_TransientProcess)& TP = WS->TransferReader()->TransientProcess();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** trstat : TransferReader ****
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
// **** trbegin : TransferReader ****
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
Handle(XSControl_TransferReader) TR = WS->TransferReader();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
//const Standard_CString arg1 = pilot->Arg(1);
// **** tread : TransferReader ****
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
// **** TReader -> TProcess ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
// **** TProcess -> TReader ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** twmode ****
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
//=======================================================================
void XSDRAW_Functions::Init(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString aGroup = "DE: General";
theDI.Add("xinit"
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
// **** Version & cie ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
aSSC.SStream() << "Write All : give file name !";
return 1;
}
- return WS->SendAll(arg1) == IFSelect_RetDone;
+ return (WS->SendAll(arg1) == IFSelect_RetDone ? 0 : 1);
}
//=======================================================================
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
aSSC.SStream() << ko << " bad arguments, abandon";
return 1;
}
- return WS->SendSelected(arg1, sp) == IFSelect_RetDone;
+ return (WS->SendSelected(arg1, sp) == IFSelect_RetDone ? 0 : 1);
}
//=======================================================================
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theNbArgs;
- (void)theArgVec;
Handle(IFSelect_WorkSession) WS = XSDRAWBase::Session();
Handle(IFSelect_Signature) signtype = WS->SignType();
if (signtype.IsNull()) signtype = new IFSelect_SignType;
- Handle(IFSelect_SignCounter) counter =
+ Handle(IFSelect_SignCounter) aCounter =
new IFSelect_SignCounter(signtype, Standard_False);
- counter->AddModel(WS->Model());
- counter->PrintList(aSSC.SStream(), WS->Model(), IFSelect_CountByItem);
+ if (theNbArgs == 1)
+ {
+ aCounter->AddModel(WS->Model());
+ }
+ else
+ {
+ // on demande un givelist
+ Handle(TColStd_HSequenceOfTransient) list = WS->GiveList(theArgVec[1]);
+ if (list.IsNull())
+ {
+ theDI << "Error: Nothing selected from : " << theArgVec[1] << "\n";
+ return 1;
+ }
+ aCounter->AddWithGraph(list, WS->Graph());
+ }
+ aCounter->PrintList(aSSC.SStream(), WS->Model(), IFSelect_CountByItem);
return 0;
}
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
- (void)theNbArgs;
+ if (theNbArgs < 2)
+ {
+ aSSC.SStream() << "Error: Empty Mode\n";
+ return 1;
+ }
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
//
const Standard_CString arg1 = theArgVec[1];
case 'T': niv = 7; break;
case 'f': niv = 8; break;
case 'F': niv = 10; break;
- default: aSSC.SStream() << "Unknown Mode . data tout court pour help";
+ default: aSSC.SStream() << "Unknown Mode . tout court pour help";
return 1;
}
- WS->TraceDumpModel(niv);
+ WS->DumpModel(niv, aSSC.SStream());
return 0;
}
XSDRAW::StreamContainer aSSC(theDI);
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
Handle(IFSelect_WorkLibrary) WL = WS->WorkLibrary();
- Standard_SStream aStream;
Standard_Integer levdef = 0, levmax = 10, level;
WL->DumpLevels(levdef, levmax);
if (theNbArgs < 2 || (theNbArgs == 2 && levmax < 0))
{
Standard_CString help = WL->DumpHelp(level);
if (help[0] != '\0')
- aStream << level << " : " << help;
+ aSSC.SStream() << level << " : " << help;
}
return 1;
}
Handle(Standard_Transient) ent = WS->StartingEntity(num);
if (ent.IsNull())
{
- aStream << "No entity with given id " << arg1 << " (" << num << ") is found in the current model";
+ aSSC.SStream() << "No entity with given id " << arg1 << " (" << num << ") is found in the current model";
}
else
{
- aStream << " -- DUMP Entity n0 " << num << " level " << level;
- WL->DumpEntity(WS->Model(), WS->Protocol(), ent, aStream, level);
+ aSSC.SStream() << " -- DUMP Entity n0 " << num << " level " << level;
+ WL->DumpEntity(WS->Model(), WS->Protocol(), ent, aSSC.SStream(), level);
Interface_CheckIterator chl = WS->CheckOne(ent);
if (!chl.IsEmpty(Standard_False))
- chl.Print(aStream, WS->Model(), Standard_False);
+ chl.Print(aSSC.SStream(), WS->Model(), Standard_False);
}
return 0;
}
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
// **** ListItems ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
{
if (mode < 0) aSSC.SStream() << "Give a suitable mode";
aSSC.SStream() << " Available Modes :\n"
- << " a : all data g : graph+check c : check p : selectpointed";
+ << " a : all g : graph+check c : check p : selectpointed";
return 1;
}
WS->ClearData(mode);
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
// **** Item Label ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
Standard_CString arg2 = theArgVec[2];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
// **** Split ****
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const Standard_CString arg2 = theArgVec[2];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
(void)theNbArgs;
(void)theArgVec;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
Handle(XSControl_WorkSession) WS = XSDRAWBase::Session();
const Standard_CString arg1 = theArgVec[1];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
if (theNbArgs < 2)
{
aSSC.SStream() << "Give the name of an EditForm or an Editor";
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
if (theNbArgs < 2)
{
aSSC.SStream() << "Give the name of an EditForm [+ name of Value else all]";
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
if (theNbArgs < 2)
{
aSSC.SStream() << "Give the name of an EditForm [+ option keep to re-apply edited values]";
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
if (theNbArgs < 2)
{
aSSC.SStream() << "Give the name of an EditForm [+ Entity-Ident]";
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
const Standard_CString arg2 = theArgVec[2];
const Standard_CString arg3 = theArgVec[3];
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
const Handle(Transfer_TransientProcess)& TP = XSDRAWBase::Session()->TransferReader()->TransientProcess();
if (TP.IsNull())
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
const Standard_CString arg2 = theArgVec[2];
TCollection_AsciiString aCommand(theArgVec[0]);
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** fromshape (tread) ****
if (theNbArgs < 2)
TopoDS_Shape sh = TransferBRep::ShapeResult(TP, ent);
if (sh.IsNull())
{
- ent.Nullify();
continue;
}
- if (XSControl_IsEqualSubShape(Shape, sh, aLevel)) break;
+ if (XSControl_IsEqualSubShape(Shape, sh, aLevel))
+ break;
modrec = -2;
sh.Location(L);
- if (XSControl_IsEqualSubShape(S0, sh, aLevel)) break;
- ent.Nullify();
+ if (XSControl_IsEqualSubShape(S0, sh, aLevel))
+ break;
modrec = 2;
}
}
}
}
}
- if (!yena) aSSC.SStream() << "No transfer (either import or export) recorded" << std::endl;
+ if (!yena)
+ {
+ aSSC.SStream() << "No transfer (either import or export) recorded" << std::endl;
+ return 1;
+ }
- return 1;
+ return 0;
}
//=======================================================================
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** connected entities (last transfer) ****
const Handle(XSControl_TransferReader)& TR = XSDRAWBase::Session()->TransferReader();
const char** theArgVec)
{
XSDRAW::StreamContainer aSSC(theDI);
- (void)theDI;
const Standard_CString arg1 = theArgVec[1];
// **** twrite ****
Handle(XSControl_TransferWriter) TW = XSDRAWBase::Session()->TransferWriter();
#include <XSDRAWBase.hxx>
+#include <Interface_Static.hxx>
#include <XCAFDoc_DocumentTool.hxx>
#include <XSAlgo.hxx>
#include <XSAlgo_AlgoContainer.hxx>
return aUnit;
}
}
- XSAlgo::AlgoContainer()->PrepareForTransfer();
+ if (Interface_Static::IsPresent("xstep.cascade.unit"))
+ {
+ UnitsMethods::SetCasCadeLengthUnit(Interface_Static::IVal("xstep.cascade.unit"));
+ }
return UnitsMethods::GetCasCadeLengthUnit();
}
#include <Draw_PluginMacro.hxx>
#include <Draw_Interpretor.hxx>
#include <Draw_ProgressIndicator.hxx>
-#include <De_ConfigurationNode.hxx>
#include <DE_ConfigurationContext.hxx>
#include <DE_Provider.hxx>
#include <DE_Wrapper.hxx>
//=======================================================================
void XSDRAWDEWrapper::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
Standard_CString aGroup = "XDE translation commands";
theDI.Add("DumpConfiguration",
//=======================================================================
void XSDRAWGLTF::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* aGroup = "XSTEP-STL/VRML"; // Step transfer file commands
theDI.Add("ReadGltf",
//=======================================================================
void XSDRAWIGES::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
IGESControl_Controller::Init();
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* aGroup = "DE: IGES";
theDI.Add("tplosttrim", "number of untrimmed faces during last transfer", __FILE__, XSDRAWIGES_tplosttrim, aGroup);
//=======================================================================
void XSDRAWOBJ::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* g = "XSTEP-STL/VRML"; // Step transfer file commands
theDI.Add("ReadObj",
"ReadObj Doc file [-fileCoordSys {Zup|Yup}] [-fileUnit Unit]"
//=======================================================================
void XSDRAWPLY::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* g = "XSTEP-STL/VRML"; // Step transfer file commands
//XSDRAW::LoadDraw(theCommands);
theDI.Add("WritePly", R"(
//=======================================================================
void XSDRAWSTEP::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* g = "DE: STEP"; // Step transfer file commands
theDI.Add("stepwrite", "stepwrite mode[0-4 afsmw] shape", __FILE__, stepwrite, g);
theDI.Add("testwritestep", "testwritestep filename.stp shape [-stream]",
//=============================================================================
void XSDRAWSTL::Factory(Draw_Interpretor& theDI)
{
- static Standard_Boolean initactor = Standard_False;
- if (initactor)
+ static Standard_Boolean aIsActivated = Standard_False;
+ if (aIsActivated)
{
return;
}
- initactor = Standard_True;
+ aIsActivated = Standard_True;
const char* g = "XSTEP-STL/VRML"; // Step transfer file commands
theDI.Add("writestl", "shape file [ascii/binary (0/1) : 1 by default] [InParallel (0/1) : 0 by default]", __FILE__, writestl, g);
## Slow import of IGES data
###############################
-pload QAcommands
+pload QAcommands IGES
if { [regexp {Debug mode} [dversion]] } {
cpulimit 8500
## Slow import of IGES data
###############################
-pload QAcommands
+pload QAcommands IGES
if { [regexp {Debug mode} [dversion]] } {
cpulimit 8500
# Extrema_GenExtPS needs to be optimized
##########################################
-pload DATAEXCHANGEKERNEL
+pload STEP
# Restore testing shape and get timing characteristics for operation stepread
dchrono perf_h restart
cpulimit 1000
-pload DATAEXCHANGEKERNEL
+pload STEP
# Restore testing shape and get timing characteristics for operation stepread
dchrono perf_h restart
# Recalculation of BSpline cache causes a performance problems
############################################################################
-pload XSDRAW
+pload STEP
dchrono t restart
testreadstep [locate_data_file bug27048.stp] result