20# ifdef COMPILING_DLL_SimulatedRealityCameras
21# define DIMENCOSR_API __declspec(dllexport)
23# define DIMENCOSR_API __declspec(dllimport)
39typedef std::vector<SR_cameraDescriptor>(CameraListFunction)();
99 operator std::string() {
#define DIMENCOSR_API
Definition: camera.h:26
Class describing a physical camera.
Definition: camera.h:77
SR_cameraDescriptor info
Definition: camera.h:79
Descriptor(SR_cameraDescriptor info)
Construct a Camera::Descriptor with a struct combining a camera type and serial number.
Definition: camera.h:86
Class of Sense dealing with video data.
Definition: camera.h:71
virtual std::shared_ptr< VideoStream > openVideoStream(VideoListener *listener)=0
Creates a VideoStream for listener to be connected to.
static Camera * create(SRContext &context)
Create a camera.
static std::vector< SR_cameraDescriptor > listDescriptors()
List camera identifiers.
static Camera * create(SRContext &context, Camera::Descriptor cameraDescriptor)
Create a camera with a given identifier.
virtual const unsigned int getStreamCount()=0
Get the number of available streams.
static void addImplementation(CameraListFunction *listFunction, CameraCreateImplementationFunction *createFunction, std::string cameraType)
Static function to make a Camera implementation available through the Camera::listDescriptors and Cam...
virtual void streamClosed(VideoStream *stream)=0
Closes a specific VideoStream.
virtual Camera::Descriptor getDescriptor()=0
Get descriptor to identify physical Camera.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
Interface for listening to SR_videoFrame updates.
Definition: videolistener.h:31
Stream of SR_videoFrame objects.
Definition: videostream.h:36
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
Camera *() CameraCreateImplementationFunction(SRContext &, SR_cameraDescriptor)
Definition: camera.h:44
DIMENCOSR_API std::vector< CameraListFunction * > & cameraListImplementationFunctions()
Vector of functions to list camera descriptors of a specific type.
DIMENCOSR_API std::map< std::string, CameraCreateImplementationFunction * > & cameraCreateImplementationFunctions()
Map of camera type to functions to create cameras of that type.
C-compatible descriptor of SR camera component.
Definition: cameradescriptor.h:15
uint64_t serialNumber
Definition: cameradescriptor.h:17
uint64_t cameraTypeLength
Definition: cameradescriptor.h:20
const char * cameraType
Definition: cameradescriptor.h:21