15namespace visualization {
28 void Reset()
override;
30 void Scale(
double scale)
override;
31 void Rotate(
double x,
double y,
double xo,
double yo)
override;
32 void Translate(
double x,
double y,
double xo,
double yo)
override;
56 void Step(
double change);
Definition PinholeCameraTrajectory.h:21
View controller for visualizer.
Definition ViewControl.h:23
Definition ViewControlWithCustomAnimation.h:17
bool IsPlayingEnd(size_t num)
Definition ViewControlWithCustomAnimation.h:67
bool IsPlaying()
Definition ViewControlWithCustomAnimation.h:66
void Scale(double scale) override
Definition ViewControlWithCustomAnimation.cpp:45
void GoToLast()
Definition ViewControlWithCustomAnimation.cpp:203
void Step(double change)
Definition ViewControlWithCustomAnimation.cpp:173
ViewTrajectory view_trajectory_
Definition ViewControlWithCustomAnimation.h:82
bool IsValidPinholeCameraTrajectory() const
Definition ViewControlWithCustomAnimation.cpp:270
size_t CurrentFrame() const
Definition ViewControlWithCustomAnimation.h:73
size_t NumOfKeyFrames() const
Definition ViewControlWithCustomAnimation.h:40
size_t CurrentKeyframe() const
Definition ViewControlWithCustomAnimation.h:74
double RegularizeFrameIndex(double current_frame, size_t num_of_frames, bool is_loop)
Definition ViewControlWithCustomAnimation.cpp:286
double current_keyframe_
Definition ViewControlWithCustomAnimation.h:84
bool CaptureTrajectory(const std::string &filename="")
Definition ViewControlWithCustomAnimation.cpp:215
bool LoadTrajectoryFromJsonFile(const std::string &filename)
Definition ViewControlWithCustomAnimation.cpp:230
void SetAnimationMode(AnimationMode mode)
Definition ViewControlWithCustomAnimation.cpp:69
void GoToFirst()
Definition ViewControlWithCustomAnimation.cpp:191
double current_frame_
Definition ViewControlWithCustomAnimation.h:83
virtual ~ViewControlWithCustomAnimation()
Definition ViewControlWithCustomAnimation.h:26
void AddSpinKeyFrames(int num_of_key_frames=20)
Definition ViewControlWithCustomAnimation.cpp:125
void Reset() override
Definition ViewControlWithCustomAnimation.cpp:17
void UpdateKeyFrame()
Definition ViewControlWithCustomAnimation.cpp:104
AnimationMode animation_mode_
Definition ViewControlWithCustomAnimation.h:81
void ChangeTrajectoryInterval(int change)
Definition ViewControlWithCustomAnimation.h:49
void ChangeFieldOfView(double step) override
Definition ViewControlWithCustomAnimation.cpp:23
std::string GetStatusString() const
Definition ViewControlWithCustomAnimation.cpp:136
void ToggleTrajectoryLoop()
Definition ViewControlWithCustomAnimation.h:44
void DeleteKeyFrame()
Definition ViewControlWithCustomAnimation.cpp:112
size_t NumOfFrames() const
Definition ViewControlWithCustomAnimation.h:43
AnimationMode
Definition ViewControlWithCustomAnimation.h:19
@ PlayMode
Definition ViewControlWithCustomAnimation.h:22
@ PreviewMode
Definition ViewControlWithCustomAnimation.h:21
@ FreeMode
Definition ViewControlWithCustomAnimation.h:20
bool LoadTrajectoryFromCameraTrajectory(const camera::PinholeCameraTrajectory &camera_trajectory)
Definition ViewControlWithCustomAnimation.cpp:242
void AddKeyFrame()
Definition ViewControlWithCustomAnimation.cpp:87
bool IsPreviewing()
Definition ViewControlWithCustomAnimation.h:63
void ClearAllKeyFrames()
Definition ViewControlWithCustomAnimation.h:39
void SetViewControlFromTrajectory()
Definition ViewControlWithCustomAnimation.cpp:310
void Rotate(double x, double y, double xo, double yo) override
Function to process rotation.
Definition ViewControlWithCustomAnimation.cpp:51
void Translate(double x, double y, double xo, double yo) override
Function to process translation.
Definition ViewControlWithCustomAnimation.cpp:60
int GetTrajectoryInterval() const
Definition ViewControlWithCustomAnimation.h:54
Definition ViewTrajectory.h:20
bool is_loop_
Definition ViewTrajectory.h:71
int interval_
Definition ViewTrajectory.h:72
void ChangeInterval(int change)
Definition ViewTrajectory.h:42
std::vector< ViewParameters > view_status_
Definition ViewTrajectory.h:70
size_t NumOfFrames() const
Definition ViewTrajectory.h:49
Definition PinholeCameraIntrinsic.cpp:16