Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
RSDevice Class Reference
Inheritance diagram for RSDevice:
Inheritance graph
[legend]

Public Types

enum  DeviceType { kNormalDevice = 0, kRecorderDevice, kPlaybackDevice }
 

Static Public Member Functions

static void Init (v8::Local< v8::Object > exports)
 
static v8::Local< v8::Object > NewInstance (rs2_device *dev, DeviceType type=kNormalDevice)
 

Private Member Functions

void DestroyMe ()
 
bool IsPlaybackInternal ()
 
bool IsRecorderInternal ()
 
 RSDevice (DeviceType type=kNormalDevice)
 
 ~RSDevice ()
 

Static Private Member Functions

static NAN_METHOD (GetCameraInfo)
 
static NAN_METHOD (Destroy)
 
static NAN_METHOD (SupportsCameraInfo)
 
static NAN_METHOD (Reset)
 
static NAN_METHOD (QuerySensors)
 
static NAN_METHOD (TriggerErrorForTest)
 
static NAN_METHOD (SpawnRecorderDevice)
 
static NAN_METHOD (PauseRecord)
 
static NAN_METHOD (ResumeRecord)
 
static NAN_METHOD (GetFileName)
 
static NAN_METHOD (PausePlayback)
 
static NAN_METHOD (ResumePlayback)
 
static NAN_METHOD (StopPlayback)
 
static NAN_METHOD (GetPosition)
 
static NAN_METHOD (GetDuration)
 
static NAN_METHOD (Seek)
 
static NAN_METHOD (IsRealTime)
 
static NAN_METHOD (SetIsRealTime)
 
static NAN_METHOD (SetPlaybackSpeed)
 
static NAN_METHOD (IsPlayback)
 
static NAN_METHOD (IsRecorder)
 
static NAN_METHOD (GetCurrentStatus)
 
static NAN_METHOD (SetStatusChangedCallbackMethodName)
 
static NAN_METHOD (IsTm2)
 
static NAN_METHOD (EnableLoopback)
 
static NAN_METHOD (DisableLoopback)
 
static NAN_METHOD (IsLoopbackEnabled)
 
static void New (const Nan::FunctionCallbackInfo< v8::Value > &info)
 

Private Attributes

rs2_devicedev_
 
rs2_errorerror_
 
std::string status_changed_callback_method_name_
 
DeviceType type_
 

Static Private Attributes

static Nan::Persistent< v8::Function > constructor_
 

Friends

class DevicesChangedCallbackInfo
 
class FrameCallbackInfo
 
class PlaybackStatusCallbackInfo
 
class RSContext
 
class RSDeviceHub
 
class RSDeviceList
 
class RSPipeline
 

Detailed Description

Definition at line 2434 of file addon.cpp.

Member Enumeration Documentation

Enumerator
kNormalDevice 
kRecorderDevice 
kPlaybackDevice 

Definition at line 2436 of file addon.cpp.

Constructor & Destructor Documentation

RSDevice::RSDevice ( DeviceType  type = kNormalDevice)
inlineexplicitprivate

Definition at line 2503 of file addon.cpp.

RSDevice::~RSDevice ( )
inlineprivate

Definition at line 2506 of file addon.cpp.

Member Function Documentation

void RSDevice::DestroyMe ( )
inlineprivate

Definition at line 2510 of file addon.cpp.

static void RSDevice::Init ( v8::Local< v8::Object >  exports)
inlinestatic

Definition at line 2441 of file addon.cpp.

bool RSDevice::IsPlaybackInternal ( )
inlineprivate

Definition at line 2830 of file addon.cpp.

bool RSDevice::IsRecorderInternal ( )
inlineprivate

Definition at line 2837 of file addon.cpp.

static RSDevice::NAN_METHOD ( GetCameraInfo  )
inlinestaticprivate

Definition at line 2525 of file addon.cpp.

static RSDevice::NAN_METHOD ( Destroy  )
inlinestaticprivate

Definition at line 2539 of file addon.cpp.

static RSDevice::NAN_METHOD ( SupportsCameraInfo  )
inlinestaticprivate

Definition at line 2548 of file addon.cpp.

static RSDevice::NAN_METHOD ( Reset  )
inlinestaticprivate

Definition at line 2560 of file addon.cpp.

static RSDevice::NAN_METHOD ( QuerySensors  )
inlinestaticprivate

Definition at line 2567 of file addon.cpp.

static RSDevice::NAN_METHOD ( TriggerErrorForTest  )
inlinestaticprivate

Definition at line 2591 of file addon.cpp.

static RSDevice::NAN_METHOD ( SpawnRecorderDevice  )
inlinestaticprivate

Definition at line 2606 of file addon.cpp.

static RSDevice::NAN_METHOD ( PauseRecord  )
inlinestaticprivate

Definition at line 2620 of file addon.cpp.

static RSDevice::NAN_METHOD ( ResumeRecord  )
inlinestaticprivate

Definition at line 2629 of file addon.cpp.

static RSDevice::NAN_METHOD ( GetFileName  )
inlinestaticprivate

Definition at line 2638 of file addon.cpp.

static RSDevice::NAN_METHOD ( PausePlayback  )
inlinestaticprivate

Definition at line 2658 of file addon.cpp.

static RSDevice::NAN_METHOD ( ResumePlayback  )
inlinestaticprivate

Definition at line 2667 of file addon.cpp.

static RSDevice::NAN_METHOD ( StopPlayback  )
inlinestaticprivate

Definition at line 2676 of file addon.cpp.

static RSDevice::NAN_METHOD ( GetPosition  )
inlinestaticprivate

Definition at line 2685 of file addon.cpp.

static RSDevice::NAN_METHOD ( GetDuration  )
inlinestaticprivate

Definition at line 2695 of file addon.cpp.

static RSDevice::NAN_METHOD ( Seek  )
inlinestaticprivate

Definition at line 2706 of file addon.cpp.

static RSDevice::NAN_METHOD ( IsRealTime  )
inlinestaticprivate

Definition at line 2716 of file addon.cpp.

static RSDevice::NAN_METHOD ( SetIsRealTime  )
inlinestaticprivate

Definition at line 2728 of file addon.cpp.

static RSDevice::NAN_METHOD ( SetPlaybackSpeed  )
inlinestaticprivate

Definition at line 2738 of file addon.cpp.

static RSDevice::NAN_METHOD ( IsPlayback  )
inlinestaticprivate

Definition at line 2748 of file addon.cpp.

static RSDevice::NAN_METHOD ( IsRecorder  )
inlinestaticprivate

Definition at line 2757 of file addon.cpp.

static RSDevice::NAN_METHOD ( GetCurrentStatus  )
inlinestaticprivate

Definition at line 2766 of file addon.cpp.

static RSDevice::NAN_METHOD ( SetStatusChangedCallbackMethodName  )
inlinestaticprivate

Definition at line 2779 of file addon.cpp.

static RSDevice::NAN_METHOD ( IsTm2  )
inlinestaticprivate

Definition at line 2790 of file addon.cpp.

static RSDevice::NAN_METHOD ( EnableLoopback  )
inlinestaticprivate

Definition at line 2800 of file addon.cpp.

static RSDevice::NAN_METHOD ( DisableLoopback  )
inlinestaticprivate

Definition at line 2810 of file addon.cpp.

static RSDevice::NAN_METHOD ( IsLoopbackEnabled  )
inlinestaticprivate

Definition at line 2819 of file addon.cpp.

static void RSDevice::New ( const Nan::FunctionCallbackInfo< v8::Value > &  info)
inlinestaticprivate

Definition at line 2517 of file addon.cpp.

static v8::Local<v8::Object> RSDevice::NewInstance ( rs2_device dev,
DeviceType  type = kNormalDevice 
)
inlinestatic

Definition at line 2485 of file addon.cpp.

Friends And Related Function Documentation

friend class DevicesChangedCallbackInfo
friend

Definition at line 2849 of file addon.cpp.

friend class FrameCallbackInfo
friend

Definition at line 2850 of file addon.cpp.

friend class PlaybackStatusCallbackInfo
friend

Definition at line 2854 of file addon.cpp.

friend class RSContext
friend

Definition at line 2848 of file addon.cpp.

friend class RSDeviceHub
friend

Definition at line 2853 of file addon.cpp.

friend class RSDeviceList
friend

Definition at line 2852 of file addon.cpp.

friend class RSPipeline
friend

Definition at line 2851 of file addon.cpp.

Member Data Documentation

Nan::Persistent< v8::Function > RSDevice::constructor_
staticprivate

Definition at line 2843 of file addon.cpp.

rs2_device* RSDevice::dev_
private

Definition at line 2844 of file addon.cpp.

rs2_error* RSDevice::error_
private

Definition at line 2845 of file addon.cpp.

std::string RSDevice::status_changed_callback_method_name_
private

Definition at line 2847 of file addon.cpp.

DeviceType RSDevice::type_
private

Definition at line 2846 of file addon.cpp.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32