RcsPySim
A robot control and simulation library
Rcs::ViewerComponent Class Reference

#include <ViewerComponent.h>

Inheritance diagram for Rcs::ViewerComponent:
Collaboration diagram for Rcs::ViewerComponent:

Public Member Functions

 ViewerComponent (RcsGraph *currentGraph, bool syncWithEventLoop=false)
 
 ViewerComponent (RcsGraph *desiredGraph, RcsGraph *currentGraph, bool syncWithEventLoop=false)
 
virtual ~ViewerComponent ()
 
void updateGraph (RcsGraph *graph)
 
void postUpdateGraph ()
 
const char * getName () const
 
double getCallbackUpdatePeriod () const
 
void setText (const std::string &text)
 
KeyCatcher * getKeyCatcher ()
 
Viewer * getViewer ()
 
BodyNode * getBodyNodePtrFromDesiredGraph (const char *name)
 
BodyNode * getBodyNodePtrFromCurrentGraph (const char *name)
 
void lock ()
 
void unlock ()
 
bool startThread ()
 
bool stopThread ()
 

Private Member Functions

void init ()
 
 ViewerComponent (const ViewerComponent &)
 
ViewerComponentoperator= (const ViewerComponent &)
 

Private Attributes

const RcsGraph * desiredGraph
 
const RcsGraph * currentGraph
 
ComponentViewerviewer
 
KeyCatcher * kc
 
bool syncWithEventLoop
 

Detailed Description

Definition at line 16 of file ViewerComponent.h.

Constructor & Destructor Documentation

◆ ViewerComponent() [1/3]

Rcs::ViewerComponent::ViewerComponent ( RcsGraph *  currentGraph,
bool  syncWithEventLoop = false 
)

Definition at line 135 of file ViewerComponent.cpp.

◆ ViewerComponent() [2/3]

Rcs::ViewerComponent::ViewerComponent ( RcsGraph *  desiredGraph,
RcsGraph *  currentGraph,
bool  syncWithEventLoop = false 
)

Definition at line 147 of file ViewerComponent.cpp.

◆ ~ViewerComponent()

Rcs::ViewerComponent::~ViewerComponent ( )
virtual

Definition at line 169 of file ViewerComponent.cpp.

◆ ViewerComponent() [3/3]

Rcs::ViewerComponent::ViewerComponent ( const ViewerComponent )
private

Member Function Documentation

◆ getBodyNodePtrFromCurrentGraph()

Rcs::BodyNode * Rcs::ViewerComponent::getBodyNodePtrFromCurrentGraph ( const char *  name)

Definition at line 271 of file ViewerComponent.cpp.

◆ getBodyNodePtrFromDesiredGraph()

Rcs::BodyNode * Rcs::ViewerComponent::getBodyNodePtrFromDesiredGraph ( const char *  name)

Definition at line 263 of file ViewerComponent.cpp.

◆ getCallbackUpdatePeriod()

double Rcs::ViewerComponent::getCallbackUpdatePeriod ( ) const

Definition at line 226 of file ViewerComponent.cpp.

◆ getKeyCatcher()

Rcs::KeyCatcher * Rcs::ViewerComponent::getKeyCatcher ( )

Definition at line 242 of file ViewerComponent.cpp.

◆ getName()

const char * Rcs::ViewerComponent::getName ( ) const

Definition at line 218 of file ViewerComponent.cpp.

◆ getViewer()

Rcs::Viewer * Rcs::ViewerComponent::getViewer ( )

Definition at line 255 of file ViewerComponent.cpp.

◆ init()

void Rcs::ViewerComponent::init ( )
private

Definition at line 159 of file ViewerComponent.cpp.

◆ lock()

void Rcs::ViewerComponent::lock ( )

Definition at line 279 of file ViewerComponent.cpp.

◆ operator=()

ViewerComponent& Rcs::ViewerComponent::operator= ( const ViewerComponent )
private

◆ postUpdateGraph()

void Rcs::ViewerComponent::postUpdateGraph ( )

Definition at line 184 of file ViewerComponent.cpp.

◆ setText()

void Rcs::ViewerComponent::setText ( const std::string &  text)

Definition at line 234 of file ViewerComponent.cpp.

◆ startThread()

bool Rcs::ViewerComponent::startThread ( )

Definition at line 292 of file ViewerComponent.cpp.

◆ stopThread()

bool Rcs::ViewerComponent::stopThread ( )

Definition at line 301 of file ViewerComponent.cpp.

◆ unlock()

void Rcs::ViewerComponent::unlock ( )

Definition at line 287 of file ViewerComponent.cpp.

◆ updateGraph()

void Rcs::ViewerComponent::updateGraph ( RcsGraph *  graph)

Definition at line 177 of file ViewerComponent.cpp.

Member Data Documentation

◆ currentGraph

const RcsGraph* Rcs::ViewerComponent::currentGraph
private

Definition at line 57 of file ViewerComponent.h.

◆ desiredGraph

const RcsGraph* Rcs::ViewerComponent::desiredGraph
private

Definition at line 56 of file ViewerComponent.h.

◆ kc

KeyCatcher* Rcs::ViewerComponent::kc
private

Definition at line 59 of file ViewerComponent.h.

◆ syncWithEventLoop

bool Rcs::ViewerComponent::syncWithEventLoop
private

Definition at line 60 of file ViewerComponent.h.

◆ viewer

ComponentViewer* Rcs::ViewerComponent::viewer
private

Definition at line 58 of file ViewerComponent.h.


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