BaseDevice component. More...
#include <osvr/Common/ImagingComponent.h>
Public Types | |
|
typedef std::function< void(ImageData const &, util::time::TimeValue const &)> | ImageHandler |
Public Types inherited from osvr::common::DeviceComponent | |
| typedef BaseDevice | Parent |
Public Member Functions | |
| void | sendImageData (OSVR_ImagingMetadata metadata, OSVR_ImageBufferElement *imageData, OSVR_ChannelCount sensor, OSVR_TimeValue const ×tamp) |
| void | registerImageHandler (ImageHandler cb) |
Public Member Functions inherited from osvr::common::DeviceComponent | |
| void | recordParent (Parent &dev) |
| Called (only) by BaseDevice when being added: effectively records a "parent pointer" that does not convey ownership. | |
| void | update () |
| Called during mainloop. | |
Static Public Member Functions | |
| static shared_ptr < ImagingComponent > | create (OSVR_ChannelCount numSensor=0) |
| Factory method. More... | |
Public Attributes | |
| messages::ImageRegion | imageRegion |
| Message from server to client, containing some image data. | |
| messages::ImagePlacedInSharedMemory | imagePlacedInSharedMemory |
| Message from server to client, notifying of image data in the shared memory ring buffer. | |
Additional Inherited Members | |
Protected Member Functions inherited from osvr::common::DeviceComponent | |
| DeviceComponent () | |
| Protected constructor, to require subclassing. | |
| bool | m_hasParent () const |
| Returns true if we have a parent registered. | |
| Parent & | m_getParent () |
| Gets the parent - only call if m_hasParent() is true. | |
| void | m_registerHandler (vrpn_MESSAGEHANDLER handler, void *userdata, RawMessageType const &msgType) |
| Registers a handler whose lifetime is tied to the lifetime of the component. More... | |
| virtual void | m_update () |
| Implementation-specific (optional) stuff to do during mainloop. | |
BaseDevice component.
Definition at line 75 of file ImagingComponent.h.
|
static |
Factory method.
Required to ensure that allocation and deallocation stay on the same side of a DLL line.
Definition at line 199 of file ImagingComponent.cpp.