Migrates AreaEffectSimulation to generated rtiddsgen API
Converts accessor calls to plain member access across aes service and plugin.
This commit is contained in:
102 files changed
+3307
-3313
No files matched your search
+10
-10
@@ -169,10 +169,10 @@ void ObjectEffector::sendEffectorToDds()
|
||||
DEBUG_LOG(m_logger) << "sendEffectorToDds NewState= " << m_effectorStateMachine->getCurrentStateStr() << ", participantId=" << m_participantId
|
||||
<< ", aesItemId=" << m_aesItemId;
|
||||
AreaEffectSimulation::Effector effector;
|
||||
effector.id(m_participantId);
|
||||
effector.effectorState(m_effectorStateMachine->getCurrentState());
|
||||
effector.aesItemId(m_aesItemId);
|
||||
effector.participantId(m_participantId);
|
||||
effector.id = m_participantId;
|
||||
effector.effectorState = m_effectorStateMachine->getCurrentState();
|
||||
effector.aesItemId = m_aesItemId;
|
||||
effector.participantId = m_participantId;
|
||||
m_mainHandler->dds()->dts()->publish(effector);
|
||||
}
|
||||
|
||||
@@ -205,20 +205,20 @@ void ObjectEffector::setIndendedTrajectory(const std::vector<Core::RelativePosit
|
||||
m_intendendTrajectory.clear();
|
||||
for (const Core::RelativePositionRelativeTime &geoPosRelTime : geometryRelativeToLaunchOrigin)
|
||||
{
|
||||
double t = geoPosRelTime.relativeTime();
|
||||
double x = geoPosRelTime.offsetX();
|
||||
double y = geoPosRelTime.offsetY();
|
||||
double z = geoPosRelTime.offsetZ();
|
||||
double t = geoPosRelTime.relativeTime;
|
||||
double x = geoPosRelTime.offsetX;
|
||||
double y = geoPosRelTime.offsetY;
|
||||
double z = geoPosRelTime.offsetZ;
|
||||
m_intendendTrajectory.push_back({LtsUtils::QPoint3D(x, y, z), t});
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectEffector::setEffectorData(const EffectorData &effectorData)
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "setEffectorData" << ", effectorData.properties() = '" << effectorData.properties() << "'";
|
||||
DEBUG_LOG(m_logger) << "setEffectorData" << ", effectorData.properties() = '" << effectorData.properties << "'";
|
||||
|
||||
m_effectorData = effectorData;
|
||||
setIndendedTrajectory(effectorData.trajectoryRelative());
|
||||
setIndendedTrajectory(effectorData.trajectoryRelative);
|
||||
delete m_firingStrategy;
|
||||
m_firingStrategy = FiringStrategyFactory::createFiringStrategy(this);
|
||||
connect(m_firingStrategy, &AbstractFiringStrategy::signalFired,
|
||||
|
||||
Reference in new issue
Block a user