15 namespace 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);
bool LoadTrajectoryFromCameraTrajectory(const camera::PinholeCameraTrajectory &camera_trajectory)
void ChangeFieldOfView(double step) override
size_t NumOfFrames() const
bool LoadTrajectoryFromJsonFile(const std::string &filename)
bool IsPlayingEnd(size_t num)
size_t CurrentFrame() const
void AddSpinKeyFrames(int num_of_key_frames=20)
ViewTrajectory view_trajectory_
void Rotate(double x, double y, double xo, double yo) override
Function to process rotation.
virtual ~ViewControlWithCustomAnimation()
size_t CurrentKeyframe() const
size_t NumOfKeyFrames() const
void SetAnimationMode(AnimationMode mode)
void ChangeTrajectoryInterval(int change)
void ToggleTrajectoryLoop()
AnimationMode animation_mode_
int GetTrajectoryInterval() const
void SetViewControlFromTrajectory()
void Scale(double scale) override
std::string GetStatusString() const
bool IsValidPinholeCameraTrajectory() const
double RegularizeFrameIndex(double current_frame, size_t num_of_frames, bool is_loop)
void Translate(double x, double y, double xo, double yo) override
Function to process translation.
bool CaptureTrajectory(const std::string &filename="")
View controller for visualizer.
size_t NumOfFrames() const
std::vector< ViewParameters > view_status_
void ChangeInterval(int change)
Generic file read and write utility for python interface.