Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add set/get_focus_point to the header file

Also fixed the indentation of the docs for these functions.
  • Loading branch information...
commit 8d1cd31206027a66d377aca4b2bc11f163025eb9 1 parent fbdfcf1
@joaquimrocha authored
Showing with 35 additions and 23 deletions.
  1. +25 −23 skeltrack/skeltrack-skeleton.c
  2. +10 −0 skeltrack/skeltrack-skeleton.h
View
48 skeltrack/skeltrack-skeleton.c
@@ -1548,16 +1548,16 @@ skeltrack_skeleton_new (void)
}
/**
- * skeltrack_skeleton_set_focus_point:
- * @self: The #SkeltrackSkeleton
- * @x: The x coordinate of the focus point.
- * @y: The y coordinate of the focus point.
- * @z: The z coordinate of the focus point.
- *
- * Gets the focus point which is the origin from where the tracking will
- * start. The coordinates will be in mm.
- *
- **/
+ * skeltrack_skeleton_set_focus_point:
+ * @self: The #SkeltrackSkeleton
+ * @x: The x coordinate of the focus point.
+ * @y: The y coordinate of the focus point.
+ * @z: The z coordinate of the focus point.
+ *
+ * Gets the focus point which is the origin from where the tracking will
+ * start. The coordinates will be in mm.
+ *
+ **/
void
skeltrack_skeleton_get_focus_point (SkeltrackSkeleton *self,
gint *x,
@@ -1570,19 +1570,20 @@ skeltrack_skeleton_get_focus_point (SkeltrackSkeleton *self,
}
/**
- * skeltrack_skeleton_set_focus_point:
- * @self: The #SkeltrackSkeleton
- * @x: The x coordinate of the focus point.
- * @y: The y coordinate of the focus point.
- * @z: The z coordinate of the focus point.
- *
- * Sets the focus point which is the origin from where the tracking will
- * start. The coordinates should be in mm.
- *
- * If this method is not called the default values are @x = 0, @y = 0,
- * @z = 1000, that is, in the center of the screen and at 1m from the
- * camera.
- **/
+ * skeltrack_skeleton_set_focus_point:
+ * @self: The #SkeltrackSkeleton
+ * @x: The x coordinate of the focus point.
+ * @y: The y coordinate of the focus point.
+ * @z: The z coordinate of the focus point.
+ *
+ * Sets the focus point which is the origin from where the tracking will
+ * start. The coordinates should be in mm.
+ *
+ * If this method is not called the default values are @x = 0, @y = 0,
+ * @z = 1000, that is, in the center of the screen and at 1m from the
+ * camera.
+ *
+ **/
void
skeltrack_skeleton_set_focus_point (SkeltrackSkeleton *self,
gint x,
@@ -1617,6 +1618,7 @@ skeltrack_skeleton_set_focus_point (SkeltrackSkeleton *self,
*
* If this method is called while a previous attempt of tracking the joints
* is still running, a %G_IO_ERROR_PENDING error occurs.
+ *
**/
void
skeltrack_skeleton_track_joints (SkeltrackSkeleton *self,
View
10 skeltrack/skeltrack-skeleton.h
@@ -80,6 +80,16 @@ SkeltrackJointList skeltrack_skeleton_track_joints_sync (SkeltrackSkelet
GCancellable *cancellable,
GError **error);
+void skeltrack_skeleton_get_focus_point (SkeltrackSkeleton *self,
+ gint *x,
+ gint *y,
+ gint *z);
+
+void skeltrack_skeleton_set_focus_point (SkeltrackSkeleton *self,
+ gint x,
+ gint y,
+ gint z);
+
G_END_DECLS
#endif /* __SKELTRACK_SKELETON_H__ */
Please sign in to comment.
Something went wrong with that request. Please try again.