Go to the documentation of this file.
16 #ifndef SURGSIM_BLOCKS_TRANSFERPHYSICSTOVERTICESBEHAVIOR_H
17 #define SURGSIM_BLOCKS_TRANSFERPHYSICSTOVERTICESBEHAVIOR_H
29 class DeformableRepresentation;
33 class CurveRepresentation;
50 std::shared_ptr<Physics::DeformableRepresentation>
getSource()
const;
55 void setSource(
const std::shared_ptr<Framework::Component>& source);
58 std::shared_ptr<Framework::Component>
getTarget()
const;
64 void setTarget(
const std::shared_ptr<Framework::Component>& target);
68 void update(
double dt)
override;
76 std::shared_ptr<Physics::DeformableRepresentation>
m_source;
77 std::shared_ptr<Framework::Component>
m_target;
void setSource(const std::shared_ptr< Framework::Component > &source)
Sets the source for this behavior, all the positions from the state of the source will be copied into...
Definition: TransferPhysicsToVerticesBehavior.cpp:34
Transfer Physics State to any representation that has a Vertices property, the "Vertices" property on...
Definition: TransferPhysicsToVerticesBehavior.h:41
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
Behaviors perform actions.
Definition: Behavior.h:40
void update(double dt) override
override update
Definition: TransferPhysicsToVerticesBehavior.cpp:59
DataStructures::VerticesPlain m_vertices
< Target representation
Definition: TransferPhysicsToVerticesBehavior.h:80
std::shared_ptr< Framework::Component > m_target
< Source representation
Definition: TransferPhysicsToVerticesBehavior.h:77
Definition: CompoundShapeToGraphics.cpp:29
std::shared_ptr< Physics::DeformableRepresentation > getSource() const
Definition: TransferPhysicsToVerticesBehavior.cpp:49
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: TransferPhysicsToVerticesBehavior.cpp:74
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: TransferPhysicsToVerticesBehavior.cpp:69
TransferPhysicsToVerticesBehavior(const std::string &name)
Constructor.
Definition: TransferPhysicsToVerticesBehavior.cpp:28
std::shared_ptr< Framework::Component > getTarget() const
Definition: TransferPhysicsToVerticesBehavior.cpp:54
void setTarget(const std::shared_ptr< Framework::Component > &target)
Sets the target for this behavior, it needs to have a "Vertices" property that takes DataStructures::...
Definition: TransferPhysicsToVerticesBehavior.cpp:41
std::shared_ptr< Physics::DeformableRepresentation > m_source
Definition: TransferPhysicsToVerticesBehavior.h:76