5 #include "compoundwidget.h" 49 static std::shared_ptr<CheckBoxes>
create(
Layout &layoutVal,
50 std::vector<std::string> checkBoxNames,
52 const cv::Point &pos = cv::Point(0,0));
87 virtual const char *
getType()
const;
89 static const char *type;
97 void addCheckBox(
const std::string &txt);
103 cv::Mat getCheckBoxNotSelected();
104 cv::Mat getCheckBoxSelected();
106 std::shared_ptr<VFrame> frame;
107 std::vector<MatWidget*> drawings;
108 cv::Mat checkBoxNotSelected;
109 cv::Mat checkBoxSelected;
110 std::vector<bool> selections;
120 #endif // CHECKBOXES_H virtual void recalcCompound()
recalcCompound
void setUserCB(Widget::CBUserSelection cbUserSelection)
cbUserSelection will be invoked per user selection
std::string getTextAt(int index) const
getTextAt
size_t size() const
return nunmber of check boxes in group
The CheckBoxes class.
Definition: checkboxes.h:18
bool isChecked(int index) const
isChecked
This namespace holds all the classes of the CanvasCV library.
Definition: canvas.h:20
The Layout class.
Definition: layout.h:17
void setChecked(int index, bool checked)
setSelection
static std::shared_ptr< CheckBoxes > create(Layout &layoutVal, std::vector< std::string > checkBoxNames, Widget::CBUserSelection cbUserSelection=Widget::CBUserSelection(), const cv::Point &pos=cv::Point(0, 0))
create a check box widget
virtual const char * getType() const
getType is always implemented by derived to return the same static pointer per widget.