34 namespace visualization {
45 void Reset()
override;
47 void Scale(
double scale)
override;
48 void Rotate(
double x,
double y,
double xo,
double yo)
override;
49 void Translate(
double x,
double y,
double xo,
double yo)
override;
73 void Step(
double change);
AnimationMode
Definition: ViewControlWithCustomAnimation.h:38
bool IsValidPinholeCameraTrajectory() const
Definition: ViewControlWithCustomAnimation.cpp:286
void SetViewControlFromTrajectory()
Definition: ViewControlWithCustomAnimation.cpp:326
Definition: ViewTrajectory.h:38
void AddSpinKeyFrames(int num_of_key_frames=20)
Definition: ViewControlWithCustomAnimation.cpp:142
double current_frame_
Definition: ViewControlWithCustomAnimation.h:100
bool IsPlayingEnd(size_t num)
Definition: ViewControlWithCustomAnimation.h:84
void ChangeTrajectoryInterval(int change)
Definition: ViewControlWithCustomAnimation.h:66
void ChangeInterval(int change)
Definition: ViewTrajectory.h:60
bool is_loop_
Definition: ViewTrajectory.h:89
void ClearAllKeyFrames()
Definition: ViewControlWithCustomAnimation.h:56
std::vector< ViewParameters > view_status_
Definition: ViewTrajectory.h:88
size_t NumOfKeyFrames() const
Definition: ViewControlWithCustomAnimation.h:57
void Reset() override
Definition: ViewControlWithCustomAnimation.cpp:34
void ChangeFieldOfView(double step) override
Definition: ViewControlWithCustomAnimation.cpp:40
Definition: ViewControlWithCustomAnimation.h:41
Definition: ViewControl.h:38
Definition: ViewControlWithCustomAnimation.h:40
int GetTrajectoryInterval() const
Definition: ViewControlWithCustomAnimation.h:71
Definition: PinholeCameraTrajectory.h:37
AnimationMode animation_mode_
Definition: ViewControlWithCustomAnimation.h:98
void AddKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:104
bool CaptureTrajectory(const std::string &filename="")
Definition: ViewControlWithCustomAnimation.cpp:231
std::string GetStatusString() const
Definition: ViewControlWithCustomAnimation.cpp:153
void Scale(double scale) override
Definition: ViewControlWithCustomAnimation.cpp:62
bool LoadTrajectoryFromCameraTrajectory(const camera::PinholeCameraTrajectory &camera_trajectory)
Definition: ViewControlWithCustomAnimation.cpp:258
double RegularizeFrameIndex(double current_frame, size_t num_of_frames, bool is_loop)
Definition: ViewControlWithCustomAnimation.cpp:302
void Rotate(double x, double y, double xo, double yo) override
Definition: ViewControlWithCustomAnimation.cpp:68
ViewTrajectory view_trajectory_
Definition: ViewControlWithCustomAnimation.h:99
void GoToLast()
Definition: ViewControlWithCustomAnimation.cpp:219
bool LoadTrajectoryFromJsonFile(const std::string &filename)
Definition: ViewControlWithCustomAnimation.cpp:246
int interval_
Definition: ViewTrajectory.h:90
void GoToFirst()
Definition: ViewControlWithCustomAnimation.cpp:207
Definition: ViewControlWithCustomAnimation.h:36
double current_keyframe_
Definition: ViewControlWithCustomAnimation.h:101
Definition: PinholeCameraIntrinsic.cpp:33
void UpdateKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:121
size_t CurrentFrame() const
Definition: ViewControlWithCustomAnimation.h:90
void Step(double change)
Definition: ViewControlWithCustomAnimation.cpp:189
size_t NumOfFrames() const
Definition: ViewTrajectory.h:67
void Translate(double x, double y, double xo, double yo) override
Definition: ViewControlWithCustomAnimation.cpp:77
void ToggleTrajectoryLoop()
Definition: ViewControlWithCustomAnimation.h:61
size_t NumOfFrames() const
Definition: ViewControlWithCustomAnimation.h:60
bool IsPreviewing()
Definition: ViewControlWithCustomAnimation.h:80
void DeleteKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:129
bool IsPlaying()
Definition: ViewControlWithCustomAnimation.h:83
void SetAnimationMode(AnimationMode mode)
Definition: ViewControlWithCustomAnimation.cpp:86
size_t CurrentKeyframe() const
Definition: ViewControlWithCustomAnimation.h:91
Definition: ViewControlWithCustomAnimation.h:39