Open3D (C++ API)
0.17.0
|
#include <ViewControlWithCustomAnimation.h>
Public Types | |
enum | AnimationMode { FreeMode = 0 , PreviewMode = 1 , PlayMode = 2 } |
Public Types inherited from open3d::visualization::ViewControl | |
enum | ProjectionType { Perspective = 0 , Orthogonal = 1 } |
Public Member Functions | |
virtual | ~ViewControlWithCustomAnimation () |
void | Reset () override |
void | ChangeFieldOfView (double step) override |
void | Scale (double scale) override |
void | Rotate (double x, double y, double xo, double yo) override |
Function to process rotation. More... | |
void | Translate (double x, double y, double xo, double yo) override |
Function to process translation. More... | |
void | SetAnimationMode (AnimationMode mode) |
void | AddKeyFrame () |
void | UpdateKeyFrame () |
void | DeleteKeyFrame () |
void | AddSpinKeyFrames (int num_of_key_frames=20) |
void | ClearAllKeyFrames () |
size_t | NumOfKeyFrames () const |
size_t | NumOfFrames () const |
void | ToggleTrajectoryLoop () |
void | ChangeTrajectoryInterval (int change) |
int | GetTrajectoryInterval () const |
std::string | GetStatusString () const |
void | Step (double change) |
void | GoToFirst () |
void | GoToLast () |
bool | CaptureTrajectory (const std::string &filename="") |
bool | LoadTrajectoryFromJsonFile (const std::string &filename) |
bool | LoadTrajectoryFromCameraTrajectory (const camera::PinholeCameraTrajectory &camera_trajectory) |
bool | IsPreviewing () |
bool | IsPlaying () |
bool | IsPlayingEnd (size_t num) |
bool | IsValidPinholeCameraTrajectory () const |
Public Member Functions inherited from open3d::visualization::ViewControl | |
virtual | ~ViewControl () |
void | SetViewMatrices (const Eigen::Matrix4d &model_matrix=Eigen::Matrix4d::Identity()) |
bool | ConvertToViewParameters (ViewParameters &status) const |
Function to get equivalent view parameters (support orthogonal) More... | |
bool | ConvertFromViewParameters (const ViewParameters &status) |
void | SetLookat (const Eigen::Vector3d &lookat) |
void | SetUp (const Eigen::Vector3d &up) |
void | SetFront (const Eigen::Vector3d &front) |
void | SetZoom (const double zoom) |
bool | ConvertToPinholeCameraParameters (camera::PinholeCameraParameters ¶meters) |
bool | ConvertFromPinholeCameraParameters (const camera::PinholeCameraParameters ¶meters, bool allow_arbitrary=false) |
ProjectionType | GetProjectionType () const |
void | SetProjectionParameters () |
virtual void | ChangeWindowSize (int width, int height) |
geometry::Ray3D | UnprojectPoint (double x, double y) const |
virtual void | CameraLocalTranslate (double forward, double right, double up) |
virtual void | CameraLocalRotate (double x, double y, double xo=0.0, double yo=0.0) |
virtual void | ResetCameraLocalRotate () |
virtual void | Roll (double x) |
const geometry::AxisAlignedBoundingBox & | GetBoundingBox () const |
void | ResetBoundingBox () |
void | FitInGeometry (const geometry::Geometry &geometry) |
double | GetFieldOfView () const |
Function to get field of view. More... | |
gl_util::GLMatrix4f | GetMVPMatrix () const |
gl_util::GLMatrix4f | GetProjectionMatrix () const |
gl_util::GLMatrix4f | GetViewMatrix () const |
gl_util::GLMatrix4f | GetModelMatrix () const |
gl_util::GLVector3f | GetEye () const |
gl_util::GLVector3f | GetLookat () const |
gl_util::GLVector3f | GetUp () const |
gl_util::GLVector3f | GetFront () const |
gl_util::GLVector3f | GetRight () const |
int | GetWindowWidth () const |
int | GetWindowHeight () const |
double | GetZNear () const |
double | GetZFar () const |
void | SetConstantZNear (double z_near) |
void | SetConstantZFar (double z_far) |
void | UnsetConstantZNear () |
void | UnsetConstantZFar () |
Protected Member Functions | |
size_t | CurrentFrame () const |
size_t | CurrentKeyframe () const |
double | RegularizeFrameIndex (double current_frame, size_t num_of_frames, bool is_loop) |
void | SetViewControlFromTrajectory () |
Additional Inherited Members | |
Static Public Attributes inherited from open3d::visualization::ViewControl | |
static const double | FIELD_OF_VIEW_MAX = 90.0 |
static const double | FIELD_OF_VIEW_MIN = 5.0 |
static const double | FIELD_OF_VIEW_DEFAULT = 60.0 |
static const double | FIELD_OF_VIEW_STEP = 5.0 |
static const double | ZOOM_DEFAULT = 0.7 |
static const double | ZOOM_MIN = 0.02 |
static const double | ZOOM_MAX = 2.0 |
static const double | ZOOM_STEP = 0.02 |
static const double | ROTATION_RADIAN_PER_PIXEL = 0.003 |
|
inlinevirtual |
void open3d::visualization::ViewControlWithCustomAnimation::AddKeyFrame | ( | ) |
void open3d::visualization::ViewControlWithCustomAnimation::AddSpinKeyFrames | ( | int | num_of_key_frames = 20 | ) |
bool open3d::visualization::ViewControlWithCustomAnimation::CaptureTrajectory | ( | const std::string & | filename = "" | ) |
|
overridevirtual |
Function to change field of view.
step | The step to change field of view. |
Reimplemented from open3d::visualization::ViewControl.
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
void open3d::visualization::ViewControlWithCustomAnimation::DeleteKeyFrame | ( | ) |
std::string open3d::visualization::ViewControlWithCustomAnimation::GetStatusString | ( | ) | const |
|
inline |
void open3d::visualization::ViewControlWithCustomAnimation::GoToFirst | ( | ) |
void open3d::visualization::ViewControlWithCustomAnimation::GoToLast | ( | ) |
|
inline |
|
inline |
|
inline |
bool open3d::visualization::ViewControlWithCustomAnimation::IsValidPinholeCameraTrajectory | ( | ) | const |
bool open3d::visualization::ViewControlWithCustomAnimation::LoadTrajectoryFromCameraTrajectory | ( | const camera::PinholeCameraTrajectory & | camera_trajectory | ) |
bool open3d::visualization::ViewControlWithCustomAnimation::LoadTrajectoryFromJsonFile | ( | const std::string & | filename | ) |
|
inline |
|
inline |
|
protected |
|
overridevirtual |
Reimplemented from open3d::visualization::ViewControl.
|
overridevirtual |
Function to process rotation.
Coordinates are measured in screen coordinates relative to the top-left corner of the window client area.
x | The distance the mouse cursor has moved in x-axis. |
y | The distance the mouse cursor has moved in y-axis. |
xo | Original point coordinate of the mouse in x-axis. |
yo | Original point coordinate of the mouse in y-axis. |
Reimplemented from open3d::visualization::ViewControl.
|
overridevirtual |
Function to process scaling
scale | is the scale ratio. |
Reimplemented from open3d::visualization::ViewControl.
void open3d::visualization::ViewControlWithCustomAnimation::SetAnimationMode | ( | AnimationMode | mode | ) |
|
protected |
void open3d::visualization::ViewControlWithCustomAnimation::Step | ( | double | change | ) |
|
inline |
|
overridevirtual |
Function to process translation.
Coordinates are measured in screen coordinates relative to the top-left corner of the window client area.
x | Distance the mouse cursor has moved in x-axis. |
y | Distance the mouse cursor has moved in y-axis. |
xo | Original point coordinate of the mouse in x-axis. |
yo | Original point coordinate of the mouse in y-axis. |
Reimplemented from open3d::visualization::ViewControl.
void open3d::visualization::ViewControlWithCustomAnimation::UpdateKeyFrame | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |