17 #include "core/export_handling.h" 18 #include "core/input.h" 19 #include "core/output.h" 20 #include "core/trim.h" 21 #include "core/roviz_item_p.h" 22 #include "config/config.h" 23 #include "core/template_decl.h" 24 #include "streams/stream_object.h" 27 #include ROVIZ_BASE_INCLUDE 45 #if ROVIZ_BACKEND == ROVIZ_BACKEND_Dev 54 explicit RovizItem(std::string type_name);
70 virtual void starting(
void);
81 virtual void thread(
void) = 0;
93 void stop(
void)
override;
103 virtual void stopped(
void);
113 Input<T> addInput(std::string name);
152 bool waitForCond(std::function<
bool (
void)> cond);
178 bool waitFor(std::function<
bool (
void)> cond);
214 bool running(
void)
const override;
225 void wake(
void)
const;
237 std::mutex &mutex(
void)
const;
251 Trim addTrim(std::string name,
double default_value,
double min,
double max, std::function<
void (
double)> notifier_func);
265 Trim addTrim(std::string name,
double default_value,
double min,
double max,
bool logarithmic);
280 Trim addTrim(std::string name,
double default_value,
double min,
double max,
int steps, std::function<
void (
double)> notifier_func);
297 Trim addTrim(std::string name,
double default_value,
double min,
double max,
int steps = 0,
bool logarithmic =
false, std::function<
void (
double)> notifier_func = [](
double){});
313 Trim addTrim(std::string name,
double default_value,
double min,
double max,
double step_size, std::function<
void (
double)> notifier_func = [](
double){});
326 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_value,
int min,
int max,
bool restart_when_changed =
false);
339 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_value,
double min,
double max,
bool restart_when_changed =
false);
352 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_value, std::function<
bool (std::string&)> checker = [](std::string &){
return true;},
bool restart_when_changed =
false);
364 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_index,
const std::list<std::string> &possibilities,
bool restart_when_changed =
false);
375 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_value,
bool restart_when_changed =
false);
388 Config<T> addConfig(
const std::string &name,
const typename ConfigStorageType<T>::type &default_value,
enum FilePath::Mode file_mode,
const std::string &filter,
bool restart_when_changed =
false);
391 std::unique_ptr<RovizItemPrivate> _this;
412 void start(
void)
override;
421 void pause(
void)
override;
426 void join(
void)
override;
435 void unpause(
void)
override;
439 #endif // PORTABLEITEM_H Storage for the configuration of an item.
Definition: config.h:20
Represents the output of an item.
Definition: output.h:18
A value that can be trimmed at runtime.
Definition: trim.h:21
Base class for all items that use the roviz framework.
Definition: roviz_item.h:43