26 #ifndef _mtsComponentViewer_h
27 #define _mtsComponentViewer_h
47 void WriteString(
osaPipeExec & pipe,
const std::string & s,
double timeoutInSec = 0.1);
63 void *ReadFromUDrawGraph(
int);
66 static void ParseArgs(
const std::string &input, std::string &arg1, std::string &arg2);
67 static bool ParseProcessAndComponent(
const std::string &input, std::string &processName,
68 std::string &componentName);
69 virtual void ProcessResponse(
void);
71 bool ConnectToUDrawGraph(
void);
73 virtual void SendAllInfo(
void);
74 void ActivateMenuItems(
void);
76 std::string GetComponentInUDrawGraphFormat(
const std::string & processName,
const std::string & componentName,
78 std::string GetStateInUDrawGraphFormat(
const mtsComponentState &componentState)
const;
81 enum BorderType { BORDER_NONE, BORDER_SINGLE, BORDER_DOUBLE };
82 void ChangeComponentBorder(
const std::string &processName,
const std::string &componentName, BorderType border);
100 virtual void Run(
void);
108 #endif // _mts_ComponentViewer.h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
osaPipeExec UDrawPipe
Definition: mtsComponentViewer.h:51
bool WaitingForResponse
Definition: mtsComponentViewer.h:65
mtsDescriptionConnection ConnectionRequest
Definition: mtsComponentViewer.h:57
Definition: mtsParameterTypes.h:100
#define CMN_UNUSED(argument)
Definition: cmnPortability.h:479
Defines a task with a Run method trigger by signals (any queued command or event).
Declaration of osaThread.
Define a thread object.
Definition: osaThread.h:164
const int CMN_DYNAMIC_CREATION_ONEARG
Definition: cmnClassRegisterMacros.h:333
Declaration of Base Class for Manager ComponentsIn the networked configuration, the communication bet...
virtual void Configure(const std::string &CMN_UNUSED(filename))
Definition: mtsComponentViewer.h:96
virtual void Startup(void)
Definition: mtsComponent.h:262
Definition: mtsTaskFromSignal.h:40
bool ConnectionStarted
Definition: mtsComponentViewer.h:56
Definition: mtsParameterTypes.h:533
Definition: mtsComponentState.h:34
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Definition: mtsComponentViewer.h:40
BorderType
Definition: mtsComponentViewer.h:81
std::string UDrawResponse
Definition: mtsComponentViewer.h:53
Definition: osaThreadSignal.h:40
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
virtual void Cleanup(void)
Definition: mtsComponent.h:267
Definition: osaPipeExec.h:31
bool UDrawPipeConnected
Definition: mtsComponentViewer.h:52
Definition: mtsParameterTypes.h:769
bool ShowProxies
Definition: mtsComponentViewer.h:54
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
bool ReaderThreadFinished
Definition: mtsComponentViewer.h:64
osaThread ReaderThread
Definition: mtsComponentViewer.h:61
osaThreadSignal ReadyToRead
Definition: mtsComponentViewer.h:62