-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visprep #21
Conversation
pointless checks from GridDialog (the QSpinner makes sure the result is always within the set limits, no point checking again)
cliTest/testvisprepparser.cpp
Outdated
{ | ||
VisPrepParser parser; | ||
ArgumentHolder ah{"prog", "-pr", "foo"}; | ||
REQUIRE_THROWS_WITH(parser.parse(ah.argc(), ah.argv()), Catch::Contains("Restricted visibilyt of 'foo' makes no sense, use a positive number or -1 for unrestricted")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: visibilyt -> visibility
cliTest/testvisprepparser.cpp
Outdated
{ | ||
VisPrepParser parser; | ||
ArgumentHolder ah{"prog", "-pr", "0.0"}; | ||
REQUIRE_THROWS_WITH(parser.parse(ah.argc(), ah.argv()), Catch::Contains("Restricted visibilyt of '0.0' makes no sense, use a positive number or -1 for unrestricted")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: visibilyt -> visibility
depthmapXcli/visprepparser.cpp
Outdated
if ( m_maxVisibility == 0.0) | ||
{ | ||
std::stringstream message; | ||
message << "Restricted visibilyt of '" << argv[i] << "' makes no sense, use a positive number or -1 for unrestricted"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: visibilyt -> visibility
depthmapXcli/runmethods.cpp
Outdated
if ( gridSize > gp.getMax() || gridSize < gp.getMin()) | ||
{ | ||
std::stringstream message; | ||
message << "Chosen grid spacing " << gridSize << " is outside of the expected intervall of " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: intervall -> interval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, some tests for this exception?
Tricky, as run methods aren't really testable. That's why I tried out the calculation to a separate class in sala.
…On May 19, 2017 4:22:05 PM GMT+01:00, Petros Koutsolampros ***@***.***> wrote:
orange-vertex commented on this pull request.
> + auto mGraph =
loadGraph(clp.getFileName().c_str(),perfWriter);
+
+ std::cout << "Initial checks... " << std::flush;
+ auto state = mGraph->getState();
+ if (~state & MetaGraph::LINEDATA)
+ {
+ throw depthmapX::RuntimeException("Graph must have line
data before preparing VGA");
+ }
+ // set grid
+ QtRegion r = mGraph->getRegion();
+
+ GridProperties gp(__max(r.width(), r.height()));
+ if ( gridSize > gp.getMax() || gridSize < gp.getMin())
+ {
+ std::stringstream message;
+ message << "Chosen grid spacing " << gridSize << " is
outside of the expected intervall of "
Also, some tests for this exception?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#21 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
typos and some signed/unsigned warnings
Add prep steps for VGA to command line