Privacy
An open-source, flexible 3D physical simulation framework
mars::gui::CaptureGUI Class Reference

#include <CaptureGUI.h>

Public Member Functions

 CaptureGUI (interfaces::ControlCenter *c)
 
 ~CaptureGUI ()
 
void show (void)
 
void hide (void)
 
bool isHidden (void)
 
void close (void)
 
void addCamera (CaptureConfig *camera)
 
void removeCamera (CaptureConfig *camera)
 
void cameraSelected (int index)
 
void setFrameRate (double frameRate)
 
void startCapture (void)
 
void stopCapture (void)
 
- Public Member Functions inherited from mars::main_gui::BaseWidget
 BaseWidget (QWidget *parent, cfg_manager::CFGManagerInterface *_cfg, std::string _widgetName)
 
 ~BaseWidget ()
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
void setHiddenCloseState (bool v)
 
bool getHiddenCloseState ()
 
void show ()
 
void hide ()
 
bool isHidden ()
 
void saveState ()
 
const std::string & getName ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 
- Public Member Functions inherited from mars::main_gui::PropertyCallback
virtual ~PropertyCallback ()
 Destructor. More...
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 Called every time a property has changed its value. More...
 
virtual void topLevelItemChanged (QtProperty *current)
 Called every time another branch of a QtTreePropertyBrowser has been selected. More...
 
virtual void accept ()
 Associated with the OK button of the Property Dialog. More...
 
virtual void reject ()
 Associated with the Cancel button of the Property Dialog. More...
 

Public Attributes

main_gui::PropertyDialogpDialog
 

Protected Slots

void timerEvent (QTimerEvent *event)
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 
virtual void accept ()
 
virtual void reject ()
 

Private Member Functions

QPushButton * generatePushButton (QString objectName, QString text)
 
QLayout * generateDoubleBox (QDoubleSpinBox *&theBox, QString objectName, QString text)
 
void updateGUI (void)
 

Private Attributes

interfaces::ControlCentercontrol
 
QtVariantProperty * status
 
QtVariantProperty * winIDCombo
 
QtVariantProperty * frameBox
 
QtVariantProperty * capture
 
unsigned int camera
 
bool take_events
 
bool first_camera
 
bool update_frame_box
 
bool filled
 
std::vector< CaptureConfig * > cameras
 

Additional Inherited Members

- Signals inherited from mars::main_gui::BaseWidget
void hideSignal (void)
 
void closeSignal (void)
 
- Protected Member Functions inherited from mars::main_gui::BaseWidget
void changeEvent (QEvent *ev)
 
void cfgWindow (void)
 
void applyGeometry ()
 
void hideEvent (QHideEvent *event)
 
void closeEvent (QCloseEvent *event)
 
- Protected Attributes inherited from mars::main_gui::BaseWidget
cfg_manager::CFGManagerInterfacecfg
 
bool setWindowProp
 
bool hiddenState
 

Detailed Description

Definition at line 43 of file CaptureGUI.h.

Constructor & Destructor Documentation

◆ CaptureGUI()

mars::gui::CaptureGUI::CaptureGUI ( interfaces::ControlCenter c)

Definition at line 26 of file CaptureGUI.cpp.

◆ ~CaptureGUI()

mars::gui::CaptureGUI::~CaptureGUI ( void  )

Definition at line 59 of file CaptureGUI.cpp.

Member Function Documentation

◆ accept

void mars::gui::CaptureGUI::accept ( void  )
protectedvirtualslot

Definition at line 62 of file CaptureGUI.cpp.

◆ addCamera()

void mars::gui::CaptureGUI::addCamera ( CaptureConfig camera)

Definition at line 117 of file CaptureGUI.cpp.

◆ cameraSelected()

void mars::gui::CaptureGUI::cameraSelected ( int  index)

Definition at line 78 of file CaptureGUI.cpp.

◆ close()

void mars::gui::CaptureGUI::close ( void  )
inline

Definition at line 56 of file CaptureGUI.h.

◆ generateDoubleBox()

QLayout* mars::gui::CaptureGUI::generateDoubleBox ( QDoubleSpinBox *&  theBox,
QString  objectName,
QString  text 
)
private

◆ generatePushButton()

QPushButton* mars::gui::CaptureGUI::generatePushButton ( QString  objectName,
QString  text 
)
private

◆ hide()

void mars::gui::CaptureGUI::hide ( void  )
inline

Definition at line 54 of file CaptureGUI.h.

◆ isHidden()

bool mars::gui::CaptureGUI::isHidden ( void  )
inline

Definition at line 55 of file CaptureGUI.h.

◆ reject

void mars::gui::CaptureGUI::reject ( void  )
protectedvirtualslot

Definition at line 63 of file CaptureGUI.cpp.

◆ removeCamera()

void mars::gui::CaptureGUI::removeCamera ( CaptureConfig camera)

Definition at line 135 of file CaptureGUI.cpp.

◆ setFrameRate()

void mars::gui::CaptureGUI::setFrameRate ( double  frameRate)

Definition at line 84 of file CaptureGUI.cpp.

◆ show()

void mars::gui::CaptureGUI::show ( void  )
inline

Definition at line 53 of file CaptureGUI.h.

◆ startCapture()

void mars::gui::CaptureGUI::startCapture ( void  )

Definition at line 88 of file CaptureGUI.cpp.

◆ stopCapture()

void mars::gui::CaptureGUI::stopCapture ( void  )

Definition at line 96 of file CaptureGUI.cpp.

◆ timerEvent

void mars::gui::CaptureGUI::timerEvent ( QTimerEvent *  event)
protectedslot

Definition at line 161 of file CaptureGUI.cpp.

◆ updateGUI()

void mars::gui::CaptureGUI::updateGUI ( void  )
private

Definition at line 101 of file CaptureGUI.cpp.

◆ valueChanged

void mars::gui::CaptureGUI::valueChanged ( QtProperty *  property,
const QVariant &  value 
)
protectedvirtualslot

Definition at line 65 of file CaptureGUI.cpp.

Member Data Documentation

◆ camera

unsigned int mars::gui::CaptureGUI::camera
private

Definition at line 72 of file CaptureGUI.h.

◆ cameras

std::vector<CaptureConfig*> mars::gui::CaptureGUI::cameras
private

Definition at line 75 of file CaptureGUI.h.

◆ capture

QtVariantProperty* mars::gui::CaptureGUI::capture
private

Definition at line 71 of file CaptureGUI.h.

◆ control

interfaces::ControlCenter* mars::gui::CaptureGUI::control
private

Definition at line 66 of file CaptureGUI.h.

◆ filled

bool mars::gui::CaptureGUI::filled
private

Definition at line 73 of file CaptureGUI.h.

◆ first_camera

bool mars::gui::CaptureGUI::first_camera
private

Definition at line 73 of file CaptureGUI.h.

◆ frameBox

QtVariantProperty* mars::gui::CaptureGUI::frameBox
private

Definition at line 70 of file CaptureGUI.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::CaptureGUI::pDialog

Definition at line 51 of file CaptureGUI.h.

◆ status

QtVariantProperty* mars::gui::CaptureGUI::status
private

Definition at line 68 of file CaptureGUI.h.

◆ take_events

bool mars::gui::CaptureGUI::take_events
private

Definition at line 73 of file CaptureGUI.h.

◆ update_frame_box

bool mars::gui::CaptureGUI::update_frame_box
private

Definition at line 73 of file CaptureGUI.h.

◆ winIDCombo

QtVariantProperty* mars::gui::CaptureGUI::winIDCombo
private

Definition at line 69 of file CaptureGUI.h.


The documentation for this class was generated from the following files: