Go to the documentation of this file.
16 #ifndef SURGSIM_FRAMEWORK_TRANSFERPROPERTIESBEHAVIOR_H
17 #define SURGSIM_FRAMEWORK_TRANSFERPROPERTIESBEHAVIOR_H
19 #include <boost/thread/mutex.hpp>
55 std::shared_ptr<SurgSim::Framework::Accessible> sourceAccessible,
57 std::shared_ptr<SurgSim::Framework::Accessible> tagetAccessible,
77 void update(
double dt)
override;
bool doInitialize() override
Definition: TransferPropertiesBehavior.cpp:102
bool doWakeUp() override
Definition: TransferPropertiesBehavior.cpp:107
virtual ~TransferPropertiesBehavior()
Destructor.
Definition: TransferPropertiesBehavior.cpp:33
int getTargetManagerType() const override
Specifies which manger will handle this behavior.
Definition: TransferPropertiesBehavior.cpp:121
TransferPropertiesBehavior(const std::string &name)
Constructor.
Definition: TransferPropertiesBehavior.cpp:26
void setTargetManagerType(int managerType)
Sets the type of manager that this behavior should use, this cannot be done after initialization has ...
Definition: TransferPropertiesBehavior.cpp:114
Behaviors perform actions.
Definition: Behavior.h:40
Behavior to copy properties between instances of Accessible.
Definition: TransferPropertiesBehavior.h:33
Definition: CompoundShapeToGraphics.cpp:29
Public struct to pair an accessible with its appropriate property.
Definition: Accessible.h:178
std::vector< Connection > m_incomingConnections
Queue for adding new connections.
Definition: TransferPropertiesBehavior.h:97
bool connect(std::shared_ptr< SurgSim::Framework::Accessible > sourceAccessible, const std::string &sourcePropertyName, std::shared_ptr< SurgSim::Framework::Accessible > tagetAccessible, const std::string &targetPropertyName)
Connect two properties of two instances of accessible, once connected the value of the property will ...
Definition: TransferPropertiesBehavior.cpp:57
void update(double dt) override
Update the behavior.
Definition: TransferPropertiesBehavior.cpp:38
int m_targetManager
The manager type that will handle this behavior.
Definition: TransferPropertiesBehavior.h:100
std::pair< Property, Property > Connection
Local typedefs.
Definition: TransferPropertiesBehavior.h:88
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
boost::mutex m_incomingMutex
Lock for adding new connections.
Definition: TransferPropertiesBehavior.h:94
std::vector< Connection > m_connections
List of connections in this object.
Definition: TransferPropertiesBehavior.h:91