10#include <QWaitCondition>
12#include <QTreeWidgetItem>
30#include <yarp/dataplayer/YarpDataplayer.h>
50 void addPart(
const char* szName,
const char* type,
int frames,
const char* portName,
const char* szFileName=NULL);
63 bool getPartPort(
const char* szName, QString *dest);
88 bool setFrame(
const int frameNum)
override;
92 int getFrame(
const std::string &name)
override;
96 bool load(
const std::string &path)
override;
108 bool play()
override;
112 bool pause()
override;
116 bool stop()
override;
120 bool quit()
override;
135 bool doGuiSetup(QString newPath);
139 void goToPercentage(
int value);
149 QTreeWidgetItem *getRowByPart(QString szName);
183 std::vector<yarp::yarpDataplayer::RowInfo> rowInfoVec;
185 std::vector<std::string> dataType;
188 QWaitCondition waitCond;
195 QString errorMessage;
225 void onInternalQuit();
226 void onItemDoubleClicked(QTreeWidgetItem *item,
int column);
227 void onErrorMessage(QString msg);
228 void onInitDone(
int subDirCount);
229 void onMenuFileOpen();
230 void onMenuPlayBackPlay();
231 void onMenuPlayBackPause();
232 void onMenuPlayBackStop();
233 void onMenuPlayBackForward();
234 void onMenuPlayBackBackward();
235 void onMenuPlayBackStrict();
236 void onMenuPlayBackRepeat();
237 void onMenuHelpAbout();
238 void onMenuSpeedUp();
239 void onMenuSpeedDown();
240 void onMenuSpeedNormal();
241 void onUpdateGuiRateThread();
242 void onSpeedValueChanged(
int value);
243 void onSliderPressed();
244 void onSliderReleased();
246 void resetButtonOnStop();
248 void onInternalLoad(QString);
249 void onInternalPlay();
250 void onInternalPause();
251 void onInternalStop();
253 void onInternalSetFrame(
const int frameNum);
254 void onInternalGetFrame(
const std::string &name,
int *frame);
255 void onInternalGetSliderPercentage(
int *frame);
267 std::vector<yarp::yarpDataplayer::RowInfo>& rowInfoVec,
268 QObject *parent = 0);
276 QMainWindow *mainWindow;
277 std::vector<yarp::yarpDataplayer::RowInfo> rowInfoVec;
void initDone(int subDirCount)
bool quit() override
function that handles an IDL message - quit
void closeEvent(QCloseEvent *event) override
void stepFromCommand(yarp::os::Bottle &reply)
function steps datasets when requeted from terminal
void internalSetFrame(const int frameNum)
bool setFrame(const int frameNum) override
function that handles an IDL message - setFrame
bool pause() override
function that handles an IDL message - pause
bool stop() override
function that handles an IDL message - stop
bool getPartActivation(const char *szName)
function that gets which parts are activated
bool load(const std::string &path) override
function that handles an IDL message - load
void addPart(const char *szName, const char *type, int frames, const char *portName, const char *szFileName=NULL)
function that adds a data part to the main window
bool setPartProgress(const char *szName, int percentage)
function that sets the dataset part progress bar
bool setInitialPartProgress(const char *szName, int percentage)
function that sets the initial dataset part progress bar
void internalGetFrame(const std::string &name, int *frame)
void internalGetSliderPercentage(int *percentage)
bool setTimeTaken(const char *szName, double time)
function that sets the time taken
void internalLoad(QString)
int getSliderPercentage() override
function that returns slider percentage
bool setFrameRate(const char *szName, int frameRate)
function that sets the frame rate
void internalStep(yarp::os::Bottle *reply)
bool getPartPort(const char *szName, QString *dest)
function that handles individual dataset part ports
void setPlayProgress(int percentage)
function that sets the play progress bar
bool updateFrameNumber(int number)
function that updates the frame number
bool step() override
function that that handles an IDL message - step
void createUtilities()
function that creates utilities
int getFrame(const std::string &name) override
function that handles an IDL message - getFrame
void clearUtilities()
function that deletes utilities
std::string getStatus() override
function that returns the player status (playing, paused, stopped)
bool play() override
function that handles an IDL message - play
void getFrameCmd(const char *part, int *frame)
function that gets the frame command
bool attach(yarp::os::RpcServer &source)
function that that attaches the rpcServer port for IDL
std::map< const char *, int > partMap
A simple collection of objects that can be described and transmitted in a portable way.
Helper class for finding config files and other external resources.
A port that is specialized as an RPC server.
yarpdataplayer_IDL Interface.