Overte C++ Documentation
RegionTracker.h
1 //
2 // RegionTracker.h
3 // libraries/workload/src/workload
4 //
5 // Created by Andrew Meadows 2018.02.21
6 // Copyright 2018 High Fidelity, Inc.
7 //
8 // Originally from lighthouse3d. Modified to utilize glm::vec3 and clean up to our coding standards
9 // Simple plane class.
10 //
11 // Distributed under the Apache License, Version 2.0.
12 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
13 //
14 
15 #ifndef hifi_workload_RegionTracker_h
16 #define hifi_workload_RegionTracker_h
17 
18 #include "Space.h"
19 #include "Engine.h"
20 
21 namespace workload {
22 
23  class RegionTrackerConfig : public Job::Config {
24  Q_OBJECT
25  public:
26  RegionTrackerConfig() : Job::Config(true) {}
27  };
28 
29  class RegionTracker {
30  public:
31  using Config = RegionTrackerConfig;
32  using Outputs = VaryingSet2<Changes, IndexVectors>;
33  using JobModel = workload::Job::ModelO<RegionTracker, Outputs, Config>;
34 
35  RegionTracker() {}
36 
37  void configure(const Config& config);
38  void run(const workload::WorkloadContextPointer& renderContext, Outputs& outputs);
39 
40  protected:
41  };
42 } // namespace workload
43 
44 #endif // hifi_workload_RegionTracker_h