29 EnvironmentalPrimitiveSegmentBase::EnvironmentalPrimitiveSegmentBase()
36 EnvironmentalPrimitiveBaseList primitives;
40 EnvironmentalPrimitiveBasePtr primitive = EnvironmentalPrimitiveBasePtr::dynamicCast(
getEntityById(
id,
c));
44 primitives.push_back(primitive);
53 PlanePrimitiveBaseList primitives;
59 if (primitive->ice_isA(PlanePrimitiveBase::ice_staticId()))
61 primitives.push_back(PlanePrimitiveBasePtr::dynamicCast(primitive));
70 SpherePrimitiveBaseList primitives;
76 if (primitive->ice_isA(SpherePrimitiveBase::ice_staticId()))
78 primitives.push_back(SpherePrimitiveBasePtr::dynamicCast(primitive));
87 CylinderPrimitiveBaseList primitives;
93 if (primitive->ice_isA(CylinderPrimitiveBase::ice_staticId()))
95 primitives.push_back(CylinderPrimitiveBasePtr::dynamicCast(primitive));
105 BoxPrimitiveBaseList primitives;
111 if (primitive->ice_isA(BoxPrimitiveBase::ice_staticId()))
113 primitives.push_back(BoxPrimitiveBasePtr::dynamicCast(primitive));
122 return EnvironmentalPrimitiveBasePtr::dynamicCast(
getEntityById(
id,
c));
129 if (primitive->ice_isA(PlanePrimitiveBase::ice_staticId()))
131 return PlanePrimitiveBasePtr::dynamicCast(primitive);
135 return PlanePrimitiveBasePtr();
143 if (primitive->ice_isA(SpherePrimitiveBase::ice_staticId()))
145 return SpherePrimitiveBasePtr::dynamicCast(primitive);
149 return SpherePrimitiveBasePtr();
157 if (primitive->ice_isA(CylinderPrimitiveBase::ice_staticId()))
159 return CylinderPrimitiveBasePtr::dynamicCast(primitive);
163 return CylinderPrimitiveBasePtr();
171 if (primitive->ice_isA(BoxPrimitiveBase::ice_staticId()))
173 return BoxPrimitiveBasePtr::dynamicCast(primitive);
177 return BoxPrimitiveBasePtr();
183 EnvironmentalPrimitiveBaseList result;
189 if (primitive->getTime(
c)->timestamp == timestamp->timestamp)
191 result.push_back(primitive);
200 PlanePrimitiveBaseList result;
206 if (primitive->ice_isA(PlanePrimitiveBase::ice_staticId()) && primitive->getTime(
c)->timestamp == timestamp->timestamp)
208 result.push_back(PlanePrimitiveBasePtr::dynamicCast(primitive));
217 SpherePrimitiveBaseList result;
223 if (primitive->ice_isA(SpherePrimitiveBase::ice_staticId()) && primitive->getTime(
c)->timestamp == timestamp->timestamp)
225 result.push_back(SpherePrimitiveBasePtr::dynamicCast(primitive));
234 CylinderPrimitiveBaseList result;
240 if (primitive->ice_isA(CylinderPrimitiveBase::ice_staticId()) && primitive->getTime(
c)->timestamp == timestamp->timestamp)
242 result.push_back(CylinderPrimitiveBasePtr::dynamicCast(primitive));
251 BoxPrimitiveBaseList result;
257 if (primitive->ice_isA(BoxPrimitiveBase::ice_staticId()) && primitive->getTime(
c)->timestamp == timestamp->timestamp)
259 result.push_back(BoxPrimitiveBasePtr::dynamicCast(primitive));
269 Ice::Long timestamp = getMostRecentTimestamp<EnvironmentalPrimitiveBasePtr>(primitives,
c);
271 EnvironmentalPrimitiveBaseList result;
272 for (
auto& p : primitives)
274 if (p->getTime()->timestamp == timestamp)
285 PlanePrimitiveBaseList primitives =
getPlanes(
c);
286 Ice::Long timestamp = getMostRecentTimestamp<PlanePrimitiveBasePtr>(primitives,
c);
288 PlanePrimitiveBaseList result;
289 for (
auto& p : primitives)
291 if (p->getTime()->timestamp == timestamp)
302 SpherePrimitiveBaseList primitives =
getSpheres(
c);
303 Ice::Long timestamp = getMostRecentTimestamp<SpherePrimitiveBasePtr>(primitives,
c);
305 SpherePrimitiveBaseList result;
306 for (
auto& p : primitives)
308 if (p->getTime()->timestamp == timestamp)
320 Ice::Long timestamp = getMostRecentTimestamp<CylinderPrimitiveBasePtr>(primitives,
c);
322 CylinderPrimitiveBaseList result;
323 for (
auto& p : primitives)
325 if (p->getTime()->timestamp == timestamp)
336 BoxPrimitiveBaseList primitives =
getBoxes(
c);
337 Ice::Long timestamp = getMostRecentTimestamp<BoxPrimitiveBasePtr>(primitives,
c);
339 BoxPrimitiveBaseList result;
340 for (
auto& p : primitives)
342 if (p->getTime()->timestamp == timestamp)
355 for (
auto& p : primitives)
357 if (p->getTime()->timestamp == timestamp)
368 for (
auto& p : primitives)
370 if (p->getTime()->timestamp < olderThan)