7 #ifndef __tire_LocatorFromEulerSystem_h__ 8 #define __tire_LocatorFromEulerSystem_h__ 17 class LocatorFromEulerSystem :
18 virtual public SystemI,
19 public Initialize<LocatorFromEulerSystem>
22 LocatorFromEulerSystem(
void) {}
23 void initialize(
void) {}
24 void compile(
const t_note_id &a_note_id)
26 AsLocatorFromEuler asLocatorFromEuler;
27 asLocatorFromEuler.bind(m_rg_dataset->scope());
28 std::vector<Record> locators;
29 asLocatorFromEuler.filter(locators, m_rg_dataset);
31 for(
unsigned int i_loc = 0; i_loc < locators.size(); i_loc++)
33 Record &r_locator = locators[i_loc];
34 setIdentity(asLocatorFromEuler.transform(r_locator));
35 translate(asLocatorFromEuler.transform(r_locator),
36 asLocatorFromEuler.location(r_locator));
37 rotate(asLocatorFromEuler.transform(r_locator),
38 asLocatorFromEuler.zyx(r_locator)[0], e_zAxis);
39 rotate(asLocatorFromEuler.transform(r_locator),
40 asLocatorFromEuler.zyx(r_locator)[1], e_yAxis);
41 rotate(asLocatorFromEuler.transform(r_locator),
42 asLocatorFromEuler.zyx(r_locator)[2], e_xAxis);
45 virtual void connectOrchestrator(sp<OrchestratorI> a_spOrchestrator)
47 a_spOrchestrator->connect(
this,
48 &LocatorFromEulerSystem::compile,FE_NOTE_COMPILE);
49 m_rg_dataset = a_spOrchestrator->dataset();
53 sp<RecordGroup> m_rg_dataset;
kernel
Definition: namespace.dox:3