Lines Matching refs:selector
33 ModeSelector selector(options); in TEST() local
35 selector.calculate(0); in TEST()
36 EXPECT_EQ(HeadTrackingMode::STATIC, selector.getActualMode()); in TEST()
37 EXPECT_EQ(selector.getHeadToStagePose(), Pose3f()); in TEST()
44 ModeSelector selector(options, HeadTrackingMode::WORLD_RELATIVE); in TEST() local
46 selector.setWorldToHeadPose(0, worldToHead); in TEST()
47 selector.setScreenStable(0, true); in TEST()
48 selector.calculate(0); in TEST()
49 EXPECT_EQ(HeadTrackingMode::WORLD_RELATIVE, selector.getActualMode()); in TEST()
50 EXPECT_EQ(selector.getHeadToStagePose(), worldToHead.inverse()); in TEST()
57 ModeSelector selector(options, HeadTrackingMode::SCREEN_RELATIVE); in TEST() local
59 selector.setScreenToHeadPose(0, screenToHead); in TEST()
60 selector.calculate(0); in TEST()
61 EXPECT_EQ(HeadTrackingMode::SCREEN_RELATIVE, selector.getActualMode()); in TEST()
62 EXPECT_EQ(selector.getHeadToStagePose(), screenToHead.inverse()); in TEST()
70 ModeSelector selector(options); in TEST() local
72 selector.setScreenToStagePose(screenToStage); in TEST()
73 selector.setDesiredMode(HeadTrackingMode::WORLD_RELATIVE); in TEST()
74 selector.setWorldToHeadPose(0, worldToHead); in TEST()
75 selector.setScreenStable(0, true); in TEST()
76 selector.calculate(0); in TEST()
77 EXPECT_EQ(HeadTrackingMode::WORLD_RELATIVE, selector.getActualMode()); in TEST()
78 EXPECT_EQ(selector.getHeadToStagePose(), worldToHead.inverse() * screenToStage); in TEST()
86 ModeSelector selector(options); in TEST() local
88 selector.setScreenToStagePose(screenToStage); in TEST()
89 selector.setDesiredMode(HeadTrackingMode::WORLD_RELATIVE); in TEST()
90 selector.setWorldToHeadPose(0, worldToHead); in TEST()
91 selector.setScreenStable(0, false); in TEST()
92 selector.calculate(10); in TEST()
93 EXPECT_EQ(HeadTrackingMode::STATIC, selector.getActualMode()); in TEST()
94 EXPECT_EQ(selector.getHeadToStagePose(), screenToStage); in TEST()
102 ModeSelector selector(options); in TEST() local
104 selector.setScreenToStagePose(screenToStage); in TEST()
105 selector.setDesiredMode(HeadTrackingMode::WORLD_RELATIVE); in TEST()
106 selector.setWorldToHeadPose(100, worldToHead); in TEST()
107 selector.setScreenStable(0, true); in TEST()
108 selector.calculate(101); in TEST()
109 EXPECT_EQ(HeadTrackingMode::STATIC, selector.getActualMode()); in TEST()
110 EXPECT_EQ(selector.getHeadToStagePose(), screenToStage); in TEST()
118 ModeSelector selector(options); in TEST() local
120 selector.setScreenToStagePose(screenToStage); in TEST()
121 selector.setDesiredMode(HeadTrackingMode::WORLD_RELATIVE); in TEST()
122 selector.setWorldToHeadPose(0, worldToHead); in TEST()
123 selector.calculate(101); in TEST()
124 EXPECT_EQ(HeadTrackingMode::STATIC, selector.getActualMode()); in TEST()
125 EXPECT_EQ(selector.getHeadToStagePose(), screenToStage); in TEST()
133 ModeSelector selector(options); in TEST() local
135 selector.setScreenToStagePose(screenToStage); in TEST()
136 selector.setDesiredMode(HeadTrackingMode::SCREEN_RELATIVE); in TEST()
137 selector.setScreenToHeadPose(0, screenToHead); in TEST()
138 selector.calculate(0); in TEST()
139 EXPECT_EQ(HeadTrackingMode::SCREEN_RELATIVE, selector.getActualMode()); in TEST()
140 EXPECT_EQ(selector.getHeadToStagePose(), screenToHead.inverse() * screenToStage); in TEST()
149 ModeSelector selector(options); in TEST() local
151 selector.setScreenToStagePose(screenToStage); in TEST()
152 selector.setDesiredMode(HeadTrackingMode::SCREEN_RELATIVE); in TEST()
153 selector.setScreenToHeadPose(0, screenToHead); in TEST()
154 selector.setWorldToHeadPose(50, worldToHead); in TEST()
155 selector.setScreenStable(50, true); in TEST()
156 selector.calculate(101); in TEST()
157 EXPECT_EQ(HeadTrackingMode::WORLD_RELATIVE, selector.getActualMode()); in TEST()
158 EXPECT_EQ(selector.getHeadToStagePose(), worldToHead.inverse() * screenToStage); in TEST()
166 ModeSelector selector(options); in TEST() local
168 selector.setScreenToStagePose(screenToStage); in TEST()
170 selector.setDesiredMode(HeadTrackingMode::SCREEN_RELATIVE); in TEST()
171 selector.setScreenToHeadPose(50, std::nullopt); in TEST()
172 selector.setWorldToHeadPose(50, worldToHead); in TEST()
173 selector.setScreenStable(50, true); in TEST()
174 selector.calculate(101); in TEST()
175 EXPECT_EQ(HeadTrackingMode::WORLD_RELATIVE, selector.getActualMode()); in TEST()
176 EXPECT_EQ(selector.getHeadToStagePose(), worldToHead.inverse() * screenToStage); in TEST()