Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FrameListener pullrequest #48

Closed
wants to merge 8 commits into from
Closed

FrameListener pullrequest #48

wants to merge 8 commits into from

Conversation

kohrt
Copy link
Contributor

@kohrt kohrt commented Aug 25, 2014

I moved the definition of the FrameMap to the frame_listener.hpp and extended to FrameListener to have prototypes of all needed methods, that are implemented in the actual FrameListener implementation. Also I added a static method for creating a new FrameListener.
With this changes the projects that are using libfreenect2 only have to include the libfreenect2.hpp and the frame_listener.hpp. They do not have to include the frame_listener_impl.h anymore.

Thiemo Wiedemeyer added 8 commits August 21, 2014 16:33
added the frame map definition to header, so that a program using libfreenect2 does not have to include the frame listener implementation.
Config is read from the Config struct.
Removed unused variables from opencl code.
added a cmake variable for the depends dir.
@christiankerl
Copy link
Contributor

I would like to keep FrameListener as an interface with a single method onFrame. Now one needs to implement 3 methods. It is a good idea to hide the implementation details of SyncMultiFrameListener. Therefore, I would propose to leave FrameListener as it is. And hide the implementation of SyncMultiFrameListener using the pimpl pattern.

@kohrt
Copy link
Contributor Author

kohrt commented Aug 26, 2014

That is also a solution. As long as the implementation gets hidden everything is fine.

christiankerl added a commit to christiankerl/libfreenect2 that referenced this pull request Sep 28, 2014
…OpenKinect#48\n - added non-blocking method to check if all frames are available\n - added timed wait function if compiled with c++0x or c++11
christiankerl added a commit to christiankerl/libfreenect2 that referenced this pull request Sep 28, 2014
 - implementation using pimpl - fixes OpenKinect#48
 - added non-blocking method to check if all frames are available - fixes OpenKinect#56
 - added timed wait function if compiled with c++0x or c++11
@christiankerl
Copy link
Contributor

included in PR #57

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants