Commit ddc208933cee2e5bf5bc1c384ab82c75170733db

Authored by Josh Klontz
1 parent 3b327548

Documented Context properties

sdk/openbr_plugin.h
... ... @@ -412,31 +412,76 @@ class BR_EXPORT Context : public Object
412 412 QFile logFile;
413 413  
414 414 public:
  415 + /*!
  416 + * \brief Path to <tt>share/openbr/openbr.bib</tt>
  417 + */
415 418 Q_PROPERTY(QString sdkPath READ get_sdkPath WRITE set_sdkPath RESET reset_sdkPath)
  419 + BR_PROPERTY(QString, sdkPath, "")
  420 +
  421 + /*!
  422 + * \brief The default algorithm to use when enrolling and comparing templates.
  423 + */
416 424 Q_PROPERTY(QString algorithm READ get_algorithm WRITE set_algorithm RESET reset_algorithm)
  425 + BR_PROPERTY(QString, algorithm, "")
  426 +
  427 + /*!
  428 + * \brief Optional log file to copy <tt>stderr</tt> to.
  429 + */
417 430 Q_PROPERTY(QString log READ get_log WRITE set_log RESET reset_log)
  431 + BR_PROPERTY(QString, log, "")
  432 +
  433 + /*!
  434 + * \brief Path to use when resolving images specified with relative paths.
  435 + */
418 436 Q_PROPERTY(QString path READ get_path WRITE set_path RESET reset_path)
  437 + BR_PROPERTY(QString, path, "")
  438 +
  439 + /*!
  440 + * \brief The maximum number of templates to process in parallel.
  441 + */
419 442 Q_PROPERTY(int blockSize READ get_blockSize WRITE set_blockSize RESET reset_blockSize)
  443 + BR_PROPERTY(int, blockSize, 1)
  444 +
  445 + /*!
  446 + * \brief The number of threads to use.
  447 + */
420 448 Q_PROPERTY(int parallelism READ get_parallelism WRITE set_parallelism RESET reset_parallelism)
421   - Q_PROPERTY(bool profiling READ get_profiling WRITE set_profiling RESET reset_profiling)
422   - Q_PROPERTY(bool quiet READ get_quiet WRITE set_quiet RESET reset_quiet)
423   - Q_PROPERTY(bool verbose READ get_verbose WRITE set_verbose RESET reset_verbose)
424   - Q_PROPERTY(QString mostRecentMessage READ get_mostRecentMessage WRITE set_mostRecentMessage RESET reset_mostRecentMessage)
425   - Q_PROPERTY(double currentStep READ get_currentStep WRITE set_currentStep RESET reset_currentStep)
426   - Q_PROPERTY(double totalSteps READ get_totalSteps WRITE set_totalSteps RESET reset_totalSteps)
427   - Q_PROPERTY(bool enrollAll READ get_enrollAll WRITE set_enrollAll RESET reset_enrollAll)
428   - BR_PROPERTY(QString, sdkPath, "")
429   - BR_PROPERTY(QString, algorithm, "")
430   - BR_PROPERTY(QString, log, "")
431   - BR_PROPERTY(QString, path, "")
432   - BR_PROPERTY(int, blockSize, -1)
433 449 BR_PROPERTY(int, parallelism, 0)
434   - BR_PROPERTY(bool, profiling, false)
  450 +
  451 + /*!
  452 + * \brief If \c true no messages will be sent to the terminal, \c false by default.
  453 + */
  454 + Q_PROPERTY(bool quiet READ get_quiet WRITE set_quiet RESET reset_quiet)
435 455 BR_PROPERTY(bool, quiet, false)
  456 +
  457 + /*!
  458 + * \brief If \c true extra messages will be sent to the terminal, \c false by default.
  459 + */
  460 + Q_PROPERTY(bool verbose READ get_verbose WRITE set_verbose RESET reset_verbose)
436 461 BR_PROPERTY(bool, verbose, false)
  462 +
  463 + /*!
  464 + * \brief The most resent message sent to the terminal.
  465 + */
  466 + Q_PROPERTY(QString mostRecentMessage READ get_mostRecentMessage WRITE set_mostRecentMessage RESET reset_mostRecentMessage)
437 467 BR_PROPERTY(QString, mostRecentMessage, "")
  468 +
  469 + /*!
  470 + * \brief Used internally to compute progress() and timeRemaining().
  471 + */
  472 + Q_PROPERTY(double currentStep READ get_currentStep WRITE set_currentStep RESET reset_currentStep)
438 473 BR_PROPERTY(double, currentStep, 0)
  474 +
  475 + /*!
  476 + * \brief Used internally to compute progress() and timeRemaining().
  477 + */
  478 + Q_PROPERTY(double totalSteps READ get_totalSteps WRITE set_totalSteps RESET reset_totalSteps)
439 479 BR_PROPERTY(double, totalSteps, 0)
  480 +
  481 + /*!
  482 + * \brief If \c true enroll 0 or more templates per image, otherwise (default) enroll exactly one.
  483 + */
  484 + Q_PROPERTY(bool enrollAll READ get_enrollAll WRITE set_enrollAll RESET reset_enrollAll)
440 485 BR_PROPERTY(bool, enrollAll, false)
441 486  
442 487 QHash<QString,QString> abbreviations; /*!< \brief Used by br::Transform::make() to expand abbreviated algorithms into their complete definitions. */
... ...
share/openbr/Doxyfile.in
... ... @@ -360,7 +360,7 @@ LOOKUP_CACHE_SIZE = 0
360 360 # Private class members and static file members will be hidden unless
361 361 # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
362 362  
363   -EXTRACT_ALL = NO
  363 +EXTRACT_ALL = YES
364 364  
365 365 # If the EXTRACT_PRIVATE tag is set to YES all private members of a class
366 366 # will be included in the documentation.
... ... @@ -375,7 +375,7 @@ EXTRACT_PACKAGE = NO
375 375 # If the EXTRACT_STATIC tag is set to YES all static members of a file
376 376 # will be included in the documentation.
377 377  
378   -EXTRACT_STATIC = NO
  378 +EXTRACT_STATIC = YES
379 379  
380 380 # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
381 381 # defined locally in source files will be included in the documentation.
... ... @@ -1538,7 +1538,7 @@ INCLUDE_FILE_PATTERNS =
1538 1538 # undefined via #undef or recursively expanded use the := operator
1539 1539 # instead of the = operator.
1540 1540  
1541   -PREDEFINED = Q_PROPERTY()= BR_EXPORT=
  1541 +PREDEFINED = BR_EXPORT=
1542 1542  
1543 1543 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
1544 1544 # this tag can be used to specify a list of macro names that should be expanded.
... ...