DART  6.6.2
MotionBlurSimWindow.hpp
Go to the documentation of this file.
1 //
2 // MotionBlurSimWindow.hpp
3 // dart
4 //
5 // Created by Dong Xu on 1/22/17.
6 //
7 //
8 
9 #ifndef DART_GUI_MOTIONBLURSIMWINDOW_HPP_
10 #define DART_GUI_MOTIONBLURSIMWINDOW_HPP_
11 
12 #include <vector>
13 #include <Eigen/Dense>
14 
15 #include "dart/gui/SimWindow.hpp"
16 
17 namespace dart {
18 namespace gui {
19 
21 {
22 public:
23 
26 
28  virtual ~MotionBlurSimWindow();
29 
30  // Set the Quality of Motion Blur
31  // Default is 5 (record position of every frame)
32  // int from 0 (No motion blur) - 5 (Highest)
33  // The function takes value smaller than 0 as 0, larger than 5 as 5
34  void setMotionBlurQuality(int _val);
35 
36  // Override the render function in dart/gui/Win3D.hpp
37  // To draw the motion image
38  // Render function is called once per GUI display time
39  // but in MotionBlurSimWindow, draw function will run in motion blur frequency
40  void render() override;
41 
42  // Override the display timer,
43  // Move the part of "step" in world function to the render function
44  void displayTimer(int _val) override;
45 
46 protected:
47  // Determines the frequency of the motion blur
48  // Default is 1, which means motion blur effect has the highest quality
49  // When set to m, motion blur record data every m frames
51 
52 }; // End of Class Definition
53 
54 } // namespace gui
55 } // namespace dart
56 
57 #endif // DART_GUI_MOTIONBLURSIMWINDOW_HPP_
Definition: MotionBlurSimWindow.hpp:21
virtual ~MotionBlurSimWindow()
Definition: MotionBlurSimWindow.cpp:33
void setMotionBlurQuality(int _val)
Definition: MotionBlurSimWindow.cpp:38
int mMotionBlurFrequency
Definition: MotionBlurSimWindow.hpp:50
void render() override
Definition: MotionBlurSimWindow.cpp:68
void displayTimer(int _val) override
Definition: MotionBlurSimWindow.cpp:210
MotionBlurSimWindow()
Definition: MotionBlurSimWindow.cpp:27
Definition: SimWindow.hpp:56
Definition: BulletCollisionDetector.cpp:63