![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
RoadNarrows Robotics. More...
Namespaces | |
| chronos | |
| Chronos - God of Time. | |
| cmd | |
| Commands. | |
| io | |
| Input/Output. | |
| str | |
| String. | |
Classes | |
| class | Camera |
| Camera base class. More... | |
| class | CameraCv |
| OpenCv implementation of the camera class. The video is streamed via OpenCv calls. More... | |
| class | CameraGst |
| GStreamer implementation of the camera class. The video is streamed via a Gstreamer/GTK callback mechanism. More... | |
| struct | CamRes |
| Camera resolution structure. More... | |
| struct | lbmanip_bm_ |
| LogBook parametric bookmark stream manipulator structure. More... | |
| struct | lbmanip_fg_ |
| LogBook parametric formatting flags manipulator structure. More... | |
| class | LogBook |
| class | Random |
| Random variable generators class. More... | |
| class | RegEx |
| Regular Express Class. More... | |
| class | Session |
| Session Class. More... | |
| class | SessionWin |
| class | State |
| class | StateCvCamera |
| class | StateEvent |
| class | StateGstCamera |
| class | StateImage |
| class | StateKb |
| class | StateMach |
| Finite State Machine Class. More... | |
| class | StateWin |
| class | StateWinCamera |
| class | Thread |
| class | Win |
| RNR Win window abstract base class. More... | |
| class | WinButton |
| Window button base class. More... | |
| class | WinButtonMenu |
| Window button menu base class. More... | |
| class | WinCvIoI |
| class | WinCvMouse |
| Window OpenCV Mouse base class. More... | |
| class | WinGtk |
| WinGtk window derived class. More... | |
| class | WinGtkButton |
| GTK window derived button class. More... | |
| class | WinGtkButtonMenu |
| GTK window derived button menu class. More... | |
| class | Xml |
| XML base class. More... | |
Typedefs | |
| typedef void(* | MouseCbFunc_T) (int cv_event, int x, int y, int flags, void *user_data) |
| Mouse Callback Function Type. More... | |
| typedef void(* | KeyCbFunc_T) (int code, int state, void *user_data) |
| Keyboard Callback Function Type. More... | |
| typedef void(* | BttnCbFunc_T) (int nBttnId, void *user_data) |
| Menu button Callback Function Type. More... | |
Enumerations | |
| enum | AlignOp { AlignOpDefault, AlignOpLeft, AlignOpCenter, AlignOpRight } |
| enum | RotOp { RotOp0, RotOp90, RotOp180, RotOp270 } |
| enum | UIEvent { UIEventNone, UIEventClick, UIEventDragStart, UIEventDragging, UIEventDragEnd, UIEventNumOf } |
| enum | WidgetState { WidgetStateNormal, WidgetStateActive, WidgetStateDisabled, WidgetStateNumOf } |
| enum | WinButtonType { WinButtonTypeImage, WinButtonTypeLabel } |
| Window button types. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const LogBook &log) |
| Stream insertion operator. More... | |
| LogBook & | eoe (LogBook &log) |
| LogBook end-of-entry stream manipulator. More... | |
| LogBook & | bookmark (LogBook &log) |
| LogBook bookmark stream manipulator. More... | |
| lbmanip_bm_ | bookmark (const std::string str) |
| LogBook bookmark parametric manipulator function. More... | |
| LogBook & | operator<< (LogBook &log, lbmanip_bm_ f) |
| LogBook bookmark parametric manipulator stream operators. More... | |
| lbmanip_fg_ | setflags (const unsigned flags) |
| LogBook formatting flags parametric manipulator function. More... | |
| LogBook & | operator<< (LogBook &log, lbmanip_fg_ f) |
| LogBook formatting flags parametric manipulator stream operators. More... | |
| std::ostream & | operator<< (std::ostream &os, const RegEx &re) |
| Insert object into output stream. More... | |
| std::istream & | operator>> (std::istream &is, RegEx &re) |
| Extract from input stream to object. More... | |
| const cv::Point | nopoint (-1,-1) |
| integer 2D "No Point" | |
| const cv::Point2f | nopoint2D (-1.0,-1.0) |
| fpn 2D "No Point" | |
| const cv::Point3f | nopoint3D (-1.0,-1.0,-1.0) |
| fpn 3D "No Point" | |
| bool | isnopoint (const cv::Point &pt) |
| Check if point is not set ("no point"). More... | |
| bool | isnopoint (const cv::Point2f &pt) |
| Check if point is not set ("no point"). More... | |
| bool | isnopoint (const cv::Point3f &pt) |
| Check if point is not set ("no point"). More... | |
| int | distL1 (const cv::Point &p1, const cv::Point &p2) |
| Calculate the L1 (taxi cab) distance between two 2D points. More... | |
| int | distL1 (const cv::Point2f &p1, const cv::Point2f &p2) |
| Calculate the L1 (taxi cab) distance between two 2D points. More... | |
| int | distL1 (const cv::Point3f &p1, const cv::Point3f &p2) |
| Calculate the L1 (taxi cab) distance between two 3D points. More... | |
| int | distL2 (const cv::Point &p1, const cv::Point &p2) |
| Calculate the L2 (euclidean) distance between two 2D points. More... | |
| double | distL2 (const cv::Point2f &p1, const cv::Point2f &p2) |
| Calculate the L2 (euclidean) distance between two 2D points. More... | |
| double | distL2 (const cv::Point3f &p1, const cv::Point3f &p2) |
| Calculate the L2 (euclidean) distance between two 3D points. More... | |
| int | distLinf (const cv::Point &p1, const cv::Point &p2) |
| Calculate the Linf distance between two 2D points. More... | |
| int | distLinf (const cv::Point2f &p1, const cv::Point2f &p2) |
| Calculate the Linf distance between two 2D points. More... | |
| int | distLinf (const cv::Point3f &p1, const cv::Point3f &p2) |
| Calculate the Linf distance between two 3D points. More... | |
| bool | isinrect (int x, int y, cv::Rect &r) |
| Check if point x,y is with rectangle r. More... | |
| cv::Size | ar43width (cv::Size &siz) |
| Calculate the nearest 4:3 aspect ratio from the width component of the target size. More... | |
| cv::Size | ar43width (int width) |
| Calculate the nearest 4:3 aspect ratio from the target width. More... | |
| cv::Size | ar43height (cv::Size &siz) |
| Calculate the nearest 4:3 aspect ratio from the height component of the target size. More... | |
| cv::Size | ar43height (int height) |
| Calculate the nearest 4:3 aspect ratio from the target height. More... | |
| void | dbgrect (const std::string &str, const cv::Rect &r) |
| Debug print rectangle. More... | |
| void | dbgpoint (const std::string &str, const cv::Point &pt) |
| Debug print point. More... | |
| void | dbgsize (const std::string &str, const cv::Size &siz) |
| Debug print size. More... | |
Variables | |
| const CamRes | CamResUndef = { -1, -1} |
| Common 4:3 aspect ratio camera resolutions. More... | |
| const CamRes | CamResDft = { 0, 0} |
| default resolution | |
| const CamRes | CamResQVGA = { 320, 240} |
| Quarter VGA 320 x 240 res. | |
| const CamRes | CamResVGA = { 640, 480} |
| VGA 640 x 480 resolution. | |
| const CamRes | CamRes1024x768 = {1024, 768} |
| 1024 x 768 resolution | |
| const CamRes | CamRes1440x1080 = {1440, 1080} |
| 1440 x 1080 resolution | |
| const CamRes | CamRes1600x1200 = {1600, 1200} |
| 1600 x 1200 resolution | |
| const CamRes | CamRes2048x1536 = {2048, 1536} |
| 2048 x 1536 resolution | |
| const CamRes | CamRes2592x1944 = {2592, 1944} |
| 2592 x 1944 resolution | |
| const CamRes | CamRes1280x800 = {1280, 800} |
| Common 16:10 aspect ratio camera resolutions. More... | |
| const CamRes | CamRes1440x900 = {1440, 900} |
| 1440 x 900 resolution | |
| const CamRes | CamRes1280x720 = {1280, 720} |
| Common ~16:9 aspect ratio camera resolutions. More... | |
| const CamRes | CamRes1920x1080 = {1920, 1080} |
| 1920 x 1080 resolution | |
| const char *const | VideoDevDft = "/dev/video0" |
| Default video device. More... | |
| const int | VideoIndexDft = 0 |
| default video index | |
| const int | VideoDevMajor = 81 |
| major device number | |
| const char *const | GuiStrColorWinBg = "#000000" |
| window bg color | |
| const char *const | GuiStrColorStatusFg = "#fed700" |
| status fg color | |
| const char *const | GuiStrColorStatusBg = "#000000" |
| status bg color | |
| const char *const | GuiStrColorStatusBorder = "#aa0000" |
| status border | |
| const char *const | GuiStrColorBttnBg = "#e6e6e6" |
| button bg color | |
| const char *const | GuiStrColorTextFg = "#ffffff" |
| text fg color | |
| const char *const | GuiStrColorTextBg = "#000000" |
| text bg color | |
| const char *const | GuiStrColorImageBg = "#ffffff" |
| image bg color | |
| const char *const | GuiStrColorRNRed = "#aa0000" |
| RN red. | |
| const char *const | GuiStrColorRNBlack = "#000000" |
| RN black. | |
| const char *const | GuiStrColorRNWhite = "#ffffff" |
| RN white. | |
| const char *const | GuiStrColorRNYellow = "#fed700" |
| RN yellow. | |
| const char *const | GuiStrFontLarge = "Arial 20" |
| large font | |
| const char *const | GuiStrFontMedium = "Arial 15" |
| medium font | |
| const char *const | GuiStrFontSmall = "Arial 12" |
| small font | |
| const char *const | GuiStrFontTiny = "Arial 8" |
| tiny font | |
| const char *const | WinIconDirDft = "/prj/share/appkit/images/icons" |
| const char *const | XmlDecl = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" |
| const char *const | XmlNsXsi |
| const char *const | XslDecl |
RoadNarrows Robotics.
| typedef void(* rnr::BttnCbFunc_T) (int nBttnId, void *user_data) |
| typedef void(* rnr::KeyCbFunc_T) (int code, int state, void *user_data) |
| typedef void(* rnr::MouseCbFunc_T) (int cv_event, int x, int y, int flags, void *user_data) |
Mouse Callback Function Type.
User-supplied callback function. The callback is called on mouse events focused on an OpenCV image widget.
Typical user-defined mouse events are select a region, drag, and draw.
| cv_event | OpenCv defined events. See CV_EVENT_*. |
| x | Mouse x pixel coordinate relative to upper left image widget. |
| y | Mouse y pixel coordinate relative to upper left image widget. |
| Windowing | system specific flags. |
| user_data | User-supplied data. |
| enum rnr::WinButtonType |
|
inline |
Calculate the nearest 4:3 aspect ratio from the height component of the target size.
| siz | Target object dimensions. |
Definition at line 307 of file WinOpenCv.h.
Referenced by rnr::WinCvIoI::calcMaxFit43().
|
inline |
Calculate the nearest 4:3 aspect ratio from the target height.
| height | Target height. |
Definition at line 324 of file WinOpenCv.h.
|
inline |
Calculate the nearest 4:3 aspect ratio from the width component of the target size.
| siz | Target object dimensions. |
Definition at line 272 of file WinOpenCv.h.
Referenced by rnr::WinCvIoI::calcMaxFit43().
|
inline |
Calculate the nearest 4:3 aspect ratio from the target width.
| width | Target width |
Definition at line 289 of file WinOpenCv.h.
LogBook bookmark stream manipulator.
Bookmark the pending entry. The bookmark string is auto-generated. The bookmark follows the the pending entry as it is logged and aged.
| log | LogBook reference. |
Definition at line 932 of file LogBook.cxx.
References rnr::LogBook::makeBookMarkLabel(), and rnr::LogBook::setPendingBookMark().
Referenced by rnr::cmd::CommandLine::compile(), mainInit(), rnr::cmd::CommandLine::readCommand(), rnr::LogBook::rsortMarks(), and rnr::LogBook::sortMarks().
| rnr::lbmanip_bm_ rnr::bookmark | ( | const std::string | str | ) |
LogBook bookmark parametric manipulator function.
| str | Bookmark label. |
Definition at line 939 of file LogBook.cxx.
References rnr::lbmanip_bm_::m_strMark.
|
inline |
|
inline |
Debug print rectangle.
| s | Preface string. |
| r | Rectangle. |
Definition at line 340 of file WinOpenCv.h.
|
inline |
|
inline |
Calculate the L1 (taxi cab) distance between two 2D points.
| pt1 | 2D integer point 1. |
| pt2 | 2D integer point 2. |
Definition at line 137 of file WinOpenCv.h.
|
inline |
Calculate the L1 (taxi cab) distance between two 2D points.
| pt1 | 2D floating-point number point 1. |
| pt2 | 2D floating-point number point 2. |
Definition at line 150 of file WinOpenCv.h.
|
inline |
Calculate the L1 (taxi cab) distance between two 3D points.
| pt1 | 3D floating-point number point 1. |
| pt2 | 3D floating-point number point 2. |
Definition at line 163 of file WinOpenCv.h.
|
inline |
Calculate the L2 (euclidean) distance between two 2D points.
| pt1 | 2D integer point 1. |
| pt2 | 2D integer point 2. |
Definition at line 176 of file WinOpenCv.h.
|
inline |
Calculate the L2 (euclidean) distance between two 2D points.
| pt1 | 2D floating-point number point 1. |
| pt2 | 2D floating-point number point 2. |
Definition at line 190 of file WinOpenCv.h.
|
inline |
Calculate the L2 (euclidean) distance between two 3D points.
| pt1 | 3D floating-point number point 1. |
| pt2 | 3D floating-point number point 2. |
Definition at line 203 of file WinOpenCv.h.
|
inline |
Calculate the Linf distance between two 2D points.
| pt1 | 2D integer point 1. |
| pt2 | 2D integer point 2. |
Definition at line 218 of file WinOpenCv.h.
|
inline |
Calculate the Linf distance between two 2D points.
| pt1 | 2D floating-point number point 1. |
| pt2 | 2D floating-point number point 2. |
Definition at line 231 of file WinOpenCv.h.
|
inline |
Calculate the Linf distance between two 3D points.
| pt1 | 3D floating-point number point 1. |
| pt2 | 3D floating-point number point 2. |
Definition at line 244 of file WinOpenCv.h.
LogBook end-of-entry stream manipulator.
The pending entry is copied into the log and then flushed of data, ready to begin recording new entry.
| log | LogBook reference. |
Definition at line 926 of file LogBook.cxx.
References rnr::LogBook::logPending().
Referenced by rnr::cmd::CommandLine::addCommand(), rnr::cmd::CommandLine::checkReadResult(), rnr::cmd::CommandLine::compile(), rnr::cmd::CommandLine::finalize(), rnr::cmd::CommandLine::lexQuotedString(), rnr::cmd::CommandLine::lexSyntaxParenExpr(), rnr::cmd::CommandLine::lexSyntaxWord(), rnr::cmd::CommandLine::lexWord(), rnr::cmd::CommandLine::logLexToken(), mainInit(), rnr::cmd::CommandLine::match(), rnr::cmd::CommandLine::matchCommand(), rnr::cmd::CommandLine::matchCommandForm(), rnr::cmd::CommandLine::parseArg(), rnr::cmd::CommandLine::parseArgv0(), rnr::cmd::CommandLine::parseIdentifier(), rnr::cmd::CommandLine::parseLiteralValue(), rnr::cmd::CommandLine::parseSyntax(), rnr::cmd::CommandLine::parseVarMod(), rnr::cmd::CommandLine::parseVarRangeExpr(), rnr::cmd::CommandLine::parseVarRegExpr(), rnr::cmd::CommandLine::parseVarType(), rnr::cmd::CommandLine::parseXorList(), rnr::cmd::CommandLine::readCommand(), rnr::cmd::CommandLine::removeAllCommands(), rnr::cmd::CommandLine::removeCommand(), rnr::cmd::CommandLine::tokEq(), and rnr::cmd::CommandLine::tokIdentifier().
|
inline |
Check if point x,y is with rectangle r.
| x | X integer coordinate. |
| y | Y integer coordinate. |
| r | Integer ectangle. |
Definition at line 258 of file WinOpenCv.h.
|
inline |
Check if point is not set ("no point").
| pt | 2D integer point. |
Definition at line 100 of file WinOpenCv.h.
|
inline |
Check if point is not set ("no point").
| pt | 2D floating-point number point. |
Definition at line 112 of file WinOpenCv.h.
|
inline |
Check if point is not set ("no point").
| pt | 3D floating-point number point |
Definition at line 124 of file WinOpenCv.h.
| std::ostream& rnr::operator<< | ( | std::ostream & | os, |
| const RegEx & | re | ||
| ) |
Insert object into output stream.
Output: re"REGEX" string where REGEX is the regular expression pattern.
| os | Output stream. |
| re | Object to insert. |
| std::ostream& rnr::operator<< | ( | std::ostream & | os, |
| const LogBook & | log | ||
| ) |
Stream insertion operator.
The entire log book is inserted. Formatting is controlled by the current flags settings.
| os | Output stream. |
| log | Log book. |
Referenced by rnr::RegEx::freeReMem(), and rnr::LogBook::makeBookMarkLabel().
| LogBook & rnr::operator<< | ( | LogBook & | log, |
| rnr::lbmanip_bm_ | f | ||
| ) |
LogBook bookmark parametric manipulator stream operators.
Bookmark the pending entry. The bookmark follows the the pending entry as it is logged and aged.
| log | LogBook reference. |
| f | Bookmark parametric type. |
Definition at line 946 of file LogBook.cxx.
References rnr::lbmanip_bm_::m_strMark, and rnr::LogBook::setPendingBookMark().
| LogBook & rnr::operator<< | ( | LogBook & | log, |
| rnr::lbmanip_fg_ | f | ||
| ) |
LogBook formatting flags parametric manipulator stream operators.
Modify formatting behavior with flags.
| log | LogBook reference. |
| f | Flags parametric type. |
Definition at line 959 of file LogBook.cxx.
References rnr::LogBook::setFlags().
| std::istream& rnr::operator>> | ( | std::istream & | is, |
| RegEx & | re | ||
| ) |
Extract from input stream to object.
Input: re"REGEX" string where REGEX is the regular expression pattern.
| is | Input stream. |
| re | Object to extract into. |
Referenced by rnr::RegEx::freeReMem().
| rnr::lbmanip_fg_ rnr::setflags | ( | const unsigned | flags | ) |
LogBook formatting flags parametric manipulator function.
| str | Bookmark label. |
Definition at line 952 of file LogBook.cxx.
| const CamRes rnr::CamRes1280x720 = {1280, 720} |
| const CamRes rnr::CamRes1280x800 = {1280, 800} |
| const CamRes rnr::CamResUndef = { -1, -1} |
| const char* const rnr::VideoDevDft = "/dev/video0" |
| const char* const rnr::XmlDecl = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" |
XML declaration fixed string
Definition at line 73 of file Xml.h.
Referenced by rnr::Xml::makeXmlHead().
| const char* const rnr::XmlNsXsi |
XML schema instance fixed substring
Definition at line 76 of file Xml.h.
Referenced by rnr::Xml::makeXmlHead().