 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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);
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void ClearAllKeyFrames()
Definition: ViewControlWithCustomAnimation.h:39
constexpr double M_PI
Pi.
Definition: CVConst.h:19
virtual void ChangeFieldOfView(double step)
Definition: ViewControl.cpp:264
AnimationMode
Definition: ViewControlWithCustomAnimation.h:19
bool LoadTrajectoryFromCameraTrajectory(const camera::PinholeCameraTrajectory &camera_trajectory)
Definition: ViewControlWithCustomAnimation.cpp:242
std::string filename
Definition: PointCloudIO.cpp:47
@ PreviewMode
Definition: ViewControlWithCustomAnimation.h:21
bool ReadIJsonConvertible(const std::string &filename, cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:122
normal_z x
Definition: my_point_types.h:165
@ FreeMode
Definition: ViewControlWithCustomAnimation.h:20
virtual void Reset()
Definition: ViewControl.cpp:238
virtual void Rotate(double x, double y, double xo=0.0, double yo=0.0)
Function to process rotation.
Definition: ViewControl.cpp:284
virtual void Translate(double x, double y, double xo=0.0, double yo=0.0)
Function to process translation.
Definition: ViewControl.cpp:298
void SetProjectionParameters()
Definition: ViewControl.cpp:247
bool ConvertToViewParameters(ViewParameters &status) const
Function to get equivalent view parameters (support orthogonal)
Definition: ViewControl.cpp:86
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
size_t CurrentFrame() const
Definition: ViewControlWithCustomAnimation.h:73
bool IsPlayingEnd(size_t num)
Definition: ViewControlWithCustomAnimation.h:67
void AddSpinKeyFrames(int num_of_key_frames=20)
Definition: ViewControlWithCustomAnimation.cpp:125
void ComputeInterpolationCoefficients()
Definition: ViewTrajectory.cpp:24
size_t NumOfKeyFrames() const
Definition: ViewControlWithCustomAnimation.h:40
void ChangeInterval(int change)
Definition: ViewTrajectory.h:43
@ PlayMode
Definition: ViewControlWithCustomAnimation.h:22
void ChangeTrajectoryInterval(int change)
Definition: ViewControlWithCustomAnimation.h:49
size_t NumOfFrames() const
Definition: ViewControlWithCustomAnimation.h:43
void Reset() override
Definition: ViewControlWithCustomAnimation.cpp:17
Definition: ViewTrajectory.h:21
double field_of_view_
Definition: ViewControl.h:201
void SetAnimationMode(AnimationMode mode)
Definition: ViewControlWithCustomAnimation.cpp:69
size_t NumOfFrames() const
Definition: ViewTrajectory.h:50
void UpdateKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:104
bool IsValidPinholeCameraTrajectory() const
Definition: ViewControlWithCustomAnimation.cpp:270
bool ConvertFromViewParameters(const ViewParameters &status)
Definition: ViewControl.cpp:97
normal_z y
Definition: my_point_types.h:168
void SetViewControlFromTrajectory()
Definition: ViewControlWithCustomAnimation.cpp:310
std::vector< ViewParameters > view_status_
Definition: ViewTrajectory.h:74
bool CaptureTrajectory(const std::string &filename="")
Definition: ViewControlWithCustomAnimation.cpp:215
virtual ~ViewControlWithCustomAnimation()
Definition: ViewControlWithCustomAnimation.h:26
bool LoadTrajectoryFromJsonFile(const std::string &filename)
Definition: ViewControlWithCustomAnimation.cpp:230
void GoToLast()
Definition: ViewControlWithCustomAnimation.cpp:203
static const int INTERVAL_MIN
Definition: ViewTrajectory.h:24
#define LogDebug(...)
Definition: Logging.h:90
bool is_loop_
Definition: ViewTrajectory.h:75
void Step(double change)
Definition: ViewControlWithCustomAnimation.cpp:173
size_t CurrentKeyframe() const
Definition: ViewControlWithCustomAnimation.h:74
int GetTrajectoryInterval() const
Definition: ViewControlWithCustomAnimation.h:54
int interval_
Definition: ViewTrajectory.h:76
double RegularizeFrameIndex(double current_frame, size_t num_of_frames, bool is_loop)
Definition: ViewControlWithCustomAnimation.cpp:286
std::string GetCurrentTimeStamp()
Returns current time stamp.
Definition: Helper.cpp:286
static const double FIELD_OF_VIEW_MIN
Definition: ViewControl.h:28
void DeleteKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:112
virtual void Scale(double scale)
Definition: ViewControl.cpp:279
void Reset()
Definition: ViewTrajectory.h:62
void ChangeFieldOfView(double step) override
Definition: ViewControlWithCustomAnimation.cpp:23
Definition: ViewParameters.h:17
GLMatrix4f Perspective(double field_of_view_, double aspect, double z_near, double z_far)
Definition: GLHelper.cpp:50
Definition: ViewControlWithCustomAnimation.h:17
void Scale(double scale) override
Definition: ViewControlWithCustomAnimation.cpp:45
View controller for visualizer.
Definition: ViewControl.h:25
void GoToFirst()
Definition: ViewControlWithCustomAnimation.cpp:191
Definition: PinholeCameraTrajectory.h:22
double current_keyframe_
Definition: ViewControlWithCustomAnimation.h:84
bool ConvertFromPinholeCameraParameters(const camera::PinholeCameraParameters ¶meters, bool allow_arbitrary=false)
Definition: ViewControl.cpp:173
bool WriteIJsonConvertible(const std::string &filename, const cloudViewer::utility::IJsonConvertible &object)
Definition: IJsonConvertibleIO.cpp:144
bool IsPlaying()
Definition: ViewControlWithCustomAnimation.h:66
ViewTrajectory view_trajectory_
Definition: ViewControlWithCustomAnimation.h:82
std::tuple< bool, ViewParameters > GetInterpolatedFrame(size_t k)
Definition: ViewTrajectory.cpp:112
void Rotate(double x, double y, double xo, double yo) override
Function to process rotation.
Definition: ViewControlWithCustomAnimation.cpp:51
bool IsPreviewing()
Definition: ViewControlWithCustomAnimation.h:63
void AddKeyFrame()
Definition: ViewControlWithCustomAnimation.cpp:87
ProjectionType GetProjectionType() const
Definition: ViewControl.cpp:230
double current_frame_
Definition: ViewControlWithCustomAnimation.h:83
static const double ROTATION_RADIAN_PER_PIXEL
Definition: ViewControl.h:37
void Translate(double x, double y, double xo, double yo) override
Function to process translation.
Definition: ViewControlWithCustomAnimation.cpp:60
std::string GetStatusString() const
Definition: ViewControlWithCustomAnimation.cpp:136
void ToggleTrajectoryLoop()
Definition: ViewControlWithCustomAnimation.h:44
AnimationMode animation_mode_
Definition: ViewControlWithCustomAnimation.h:81
std::vector< PinholeCameraParameters > parameters_
List of PinholeCameraParameters objects.
Definition: PinholeCameraTrajectory.h:35