File tree Expand file tree Collapse file tree 3 files changed +49
-1
lines changed
Expand file tree Collapse file tree 3 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 88#include < QApplication>
99#include < Standard_WarningsRestore.hxx>
1010
11+ #include < Message.hxx>
1112#include < Standard_Version.hxx>
1213
1314int main (int theNbArgs, char ** theArgVec)
1415{
16+ // handle application options
17+ for (int anArgIter = 0 ; anArgIter < theNbArgs; ++anArgIter)
18+ {
19+ // enable verbose messages from OCCT algorithms
20+ if (std::strcmp (theArgVec[anArgIter], " -v" ) == 0
21+ || std::strcmp (theArgVec[anArgIter], " --verbose" ) == 0 )
22+ {
23+ if (anArgIter + 1 < theNbArgs)
24+ theArgVec[anArgIter] = theArgVec[anArgIter + 1 ];
25+
26+ --anArgIter;
27+ --theNbArgs;
28+ Message::DefaultMessenger ()->Printers ().First ()->SetTraceLevel (Message_Trace);
29+ }
30+ }
31+
1532 // before creating QApplication: define platform plugin to load (e.g. xcb on Linux)
1633 // and graphic driver (e.g. desktop OpenGL with desired profile/surface)
1734 OcctQtTools::qtGlPlatformSetup ();
Original file line number Diff line number Diff line change 1414
1515int main (int theNbArgs, char ** theArgVec)
1616{
17- // Message::DefaultMessenger()->Printers().First()->SetTraceLevel(Message_Trace);
17+ // handle application options
18+ for (int anArgIter = 0 ; anArgIter < theNbArgs; ++anArgIter)
19+ {
20+ // enable verbose messages from OCCT algorithms
21+ if (std::strcmp (theArgVec[anArgIter], " -v" ) == 0
22+ || std::strcmp (theArgVec[anArgIter], " --verbose" ) == 0 )
23+ {
24+ if (anArgIter + 1 < theNbArgs)
25+ theArgVec[anArgIter] = theArgVec[anArgIter + 1 ];
26+
27+ --anArgIter;
28+ --theNbArgs;
29+ Message::DefaultMessenger ()->Printers ().First ()->SetTraceLevel (Message_Trace);
30+ }
31+ }
1832
1933 // before creating QApplication: define platform plugin to load (e.g. xcb on Linux)
2034 // and graphic driver (e.g. desktop OpenGL with desired profile/surface)
Original file line number Diff line number Diff line change 88#include < QApplication>
99#include < Standard_WarningsRestore.hxx>
1010
11+ #include < Message.hxx>
1112#include < Standard_Version.hxx>
1213
1314int main (int theNbArgs, char ** theArgVec)
1415{
16+ // handle application options
17+ for (int anArgIter = 0 ; anArgIter < theNbArgs; ++anArgIter)
18+ {
19+ // enable verbose messages from OCCT algorithms
20+ if (std::strcmp (theArgVec[anArgIter], " -v" ) == 0
21+ || std::strcmp (theArgVec[anArgIter], " --verbose" ) == 0 )
22+ {
23+ if (anArgIter + 1 < theNbArgs)
24+ theArgVec[anArgIter] = theArgVec[anArgIter + 1 ];
25+
26+ --anArgIter;
27+ --theNbArgs;
28+ Message::DefaultMessenger ()->Printers ().First ()->SetTraceLevel (Message_Trace);
29+ }
30+ }
31+
1532 // before creating QApplication: define platform plugin to load (e.g. xcb on Linux)
1633 // and graphic driver (e.g. desktop OpenGL with desired profile/surface)
1734 OcctQtTools::qtGlPlatformSetup ();
You can’t perform that action at this time.
0 commit comments