Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Class of Sense dealing with video data. More...
#include <camera.h>
Classes | |
class | Descriptor |
Class describing a physical camera. More... | |
Public Member Functions | |
virtual | ~Camera () |
virtual Camera::Descriptor | getDescriptor ()=0 |
Get descriptor to identify physical Camera. More... | |
virtual const unsigned int | getStreamCount ()=0 |
Get the number of available streams. More... | |
virtual std::shared_ptr< VideoStream > | openVideoStream (VideoListener *listener)=0 |
Creates a VideoStream for listener to be connected to. More... | |
virtual void | streamClosed (VideoStream *stream)=0 |
Closes a specific VideoStream. More... | |
Public Member Functions inherited from SR::Sense | |
void | setCalibration (Transformation calibration) |
Sets a Transformation object to represent the sense's calibration with respect to the display. More... | |
Transformation | getCalibration () |
Gets callibration. More... | |
virtual | ~Sense () |
Ensures the proper destruction of the sense implementation. More... | |
virtual std::string | getName ()=0 |
Return the name of the sense. More... | |
virtual std::string | getDescription ()=0 |
Return a description of the sense. More... | |
virtual void | start ()=0 |
Start continuous updates, default behaviour is defined in the updater() function. More... | |
virtual void | stop ()=0 |
Stop continuous updates. More... | |
Static Public Member Functions | |
static void | addImplementation (CameraListFunction *listFunction, CameraCreateImplementationFunction *createFunction, std::string cameraType) |
Static function to make a Camera implementation available through the Camera::listDescriptors and Camera::create functions. More... | |
static std::vector< SR_cameraDescriptor > | listDescriptors () |
List camera identifiers. More... | |
static Camera * | create (SRContext &context, Camera::Descriptor cameraDescriptor) |
Create a camera with a given identifier. More... | |
static Camera * | create (SRContext &context) |
Create a camera. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SR::Sense | |
Transformation | calibration |
Class of Sense dealing with video data.
Extentions of Camera can either provide input to the system or output in the user
|
virtual |
|
static |
Static function to make a Camera implementation available through the Camera::listDescriptors and Camera::create functions.
listFunction | is one of the functions that will be called when Camera::listDescriptors is called |
createFunction | is one of the functions that can be called when Camera::create is called for a camera of the right type |
cameraType | indicates when this createFunction should be used |
Create a camera.
context | is the environment in which created senses are kept track of |
|
static |
Create a camera with a given identifier.
context | is the environment in which created senses are kept track of |
cameraDescriptor | indicates what type of Camera implementation should be constructed |
|
pure virtual |
|
pure virtual |
Get the number of available streams.
Camera modules (with multiple sensors) can be represented as a Camera implementation with multiple streams. This can be helpful when the frames are related, which would be the case with calibrated stereo cameras offering depth information.
|
static |
List camera identifiers.
|
pure virtual |
Creates a VideoStream for listener
to be connected to.
listener | will receive video updates from now on |
|
pure virtual |
Closes a specific VideoStream.
stream | will no longer supply video updates |