scenepic 1.1.0
3D Visualization Made Easy
focus_point.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4#ifndef _SCENEPIC_FOCUS_POINT_H_
5#define _SCENEPIC_FOCUS_POINT_H_
6
7#include "json_value.h"
8#include "matrix.h"
9
10namespace scenepic
11{
16 {
17 public:
23 const Vector& position = Vector::Zero(),
24 const Vector& orientation_axis_angle = VectorNone());
25
27 std::string to_string() const;
28
33
35 bool is_none() const;
36
38 static FocusPoint None();
39
41 FocusPoint& operator=(const Vector& position);
42
44 const Vector& position() const;
45
47 const Vector& orientation_axis_angle() const;
48
49 private:
50 Vector m_position;
51 Vector m_orientation_axis_angle;
52 };
53} // namespace scenepic
54
55#endif
3D focus point for this frame (with optional 3D rotation for orientation lock), used in the ScenePic ...
Definition: focus_point.h:16
static FocusPoint None()
A value indicating "no focus point".
bool is_none() const
Whether this is a "none" focus point.
const Vector & orientation_axis_angle() const
The orientation axis angle.
JsonValue to_json() const
Convert this object into ScenePic json.
const Vector & position() const
The position of the focus point.
FocusPoint(const Vector &position=Vector::Zero(), const Vector &orientation_axis_angle=VectorNone())
Constructor.
std::string to_string() const
Return a JSON string representing the object.
FocusPoint & operator=(const Vector &position)
Assignment operator.
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Definition: audio_track.h:14