sot-talos-balance  1.7.0
CRTProtocol Class Reference

#include <sot/talos_balance/sdk_qualisys/RTProtocol.h>

Classes

struct  SComponentOptions
 
struct  SDiscoverResponse
 
struct  SPoint
 
struct  SSettingsSkeleton
 
struct  SSettingsSkeletonSegment
 

Public Types

enum  EAxis {
  XPos = 0,
  XNeg = 1,
  YPos = 2,
  YNeg = 3,
  ZPos = 4,
  ZNeg = 5
}
 
enum  ECameraMode {
  ModeMarker = 0,
  ModeMarkerIntensity = 1,
  ModeVideo = 2
}
 
enum  ECameraModel {
  ModelMacReflex = 0,
  ModelProReflex120 = 1,
  ModelProReflex240 = 2,
  ModelProReflex500 = 3,
  ModelProReflex1000 = 4,
  ModelOqus100 = 5,
  ModelOqus300 = 6,
  ModelOqus300Plus = 7,
  ModelOqus400 = 8,
  ModelOqus500 = 9,
  ModelOqus200C = 10,
  ModelOqus500Plus = 11,
  ModelOqus700 = 12,
  ModelOqus700Plus = 13,
  ModelOqus600Plus = 14,
  ModelMiqusM1 = 15,
  ModelMiqusM3 = 16,
  ModelMiqusM5 = 17,
  ModelMiqusSyncUnit = 18,
  ModelMiqusVideo = 19,
  ModelMiqusVideoColor = 20
}
 
enum  ECameraSystemType {
  Unknown = 0,
  Oqus = 1,
  Miqus = 2
}
 
enum  EProcessingActions {
  ProcessingNone = 0x0000,
  ProcessingTracking2D = 0x0001,
  ProcessingTracking3D = 0x0002,
  ProcessingTwinSystemMerge = 0x0004,
  ProcessingSplineFill = 0x0008,
  ProcessingAIM = 0x0010,
  Processing6DOFTracking = 0x0020,
  ProcessingForceData = 0x0040,
  ProcessingGazeVector = 0x0080,
  ProcessingExportTSV = 0x0100,
  ProcessingExportC3D = 0x0200,
  ProcessingExportMatlabFile = 0x0800,
  ProcessingExportAviFile = 0x1000,
  ProcessingPreProcess2D = 0x2000
}
 
enum  ESignalSource {
  SourceControlPort = 0,
  SourceIRReceiver = 1,
  SourceSMPTE = 2,
  SourceVideoSync = 3,
  SourceIRIG = 4
}
 
enum  EStreamRate {
  RateNone = 0,
  RateAllFrames = 1,
  RateFrequency = 2,
  RateFrequencyDivisor = 3
}
 
enum  ESyncOutFreqMode {
  ModeShutterOut = 1,
  ModeMultiplier,
  ModeDivisor,
  ModeActualFreq,
  ModeMeasurementTime,
  ModeFixed100Hz
}
 
enum  EVideoAspectRatio {
  VideoAspectRatio16x9 = 0,
  VideoAspectRatio4x3 = 1,
  VideoAspectRatio1x1 = 2,
  VideoAspectRatioNone = 3
}
 
enum  EVideoResolution {
  VideoResolution1080p = 0,
  VideoResolution720p = 1,
  VideoResolution540p = 2,
  VideoResolution480p = 3,
  VideoResolutionNone = 4
}
 

Public Member Functions

 CRTProtocol ()
 
 ~CRTProtocol ()
 
bool CheckLicense (const char *pLicenseCode)
 
bool CloseMeasurement ()
 
bool Connect (const char *pServerAddr, unsigned short nPort, unsigned short *pnUDPServerPort=nullptr, int nMajorVersion=MAJOR_VERSION, int nMinorVersion=MINOR_VERSION, bool bBigEndian=false)
 
bool Connected () const
 
void Disconnect ()
 
bool DiscoverRTServer (unsigned short nServerPort, bool bNoLocalResponses, unsigned short nDiscoverPort=DEFAULT_AUTO_DESCOVER_PORT)
 
unsigned int Get3DBoneCount () const
 
const char * Get3DBoneFromName (unsigned int boneIndex) const
 
const char * Get3DBoneToName (unsigned int boneIndex) const
 
const char * Get3DCalibrated () const
 
unsigned int Get3DLabelColor (unsigned int nMarkerIndex) const
 
unsigned int Get3DLabeledMarkerCount () const
 
const char * Get3DLabelName (unsigned int nMarkerIndex) const
 
EAxis Get3DUpwardAxis () const
 
unsigned int Get6DOFBodyColor (unsigned int nBodyIndex) const
 
unsigned int Get6DOFBodyCount () const
 
const char * Get6DOFBodyName (unsigned int nBodyIndex) const
 
bool Get6DOFBodyPoint (unsigned int nBodyIndex, unsigned int nMarkerIndex, SPoint &sPoint) const
 
unsigned int Get6DOFBodyPointCount (unsigned int nBodyIndex) const
 
void Get6DOFEulerNames (std::string &first, std::string &second, std::string &third) const
 
bool GetAnalogDevice (unsigned int nDeviceIndex, unsigned int &nDeviceID, unsigned int &nChannels, char *&pName, unsigned int &nFrequency, char *&pUnit, float &fMinRange, float &fMaxRange) const
 
unsigned int GetAnalogDeviceCount () const
 
const char * GetAnalogLabel (unsigned int nDeviceIndex, unsigned int nChannelIndex) const
 
const char * GetAnalogUnit (unsigned int nDeviceIndex, unsigned int nChannelIndex) const
 
bool GetByteOrder (bool &bBigEndian)
 
bool GetCameraAutoExposureSettings (const unsigned int nCameraIndex, bool *autoExposureEnabled, float *autoExposureCompensation) const
 
bool GetCameraAutoWhiteBalance (const unsigned int nCameraIndex, bool *autoWhiteBalanceEnabled) const
 
unsigned int GetCameraCount () const
 
bool GetCameraFOV (unsigned int nCameraIndex, unsigned int &nMarkerLeft, unsigned int &nMarkerTop, unsigned int &nMarkerRight, unsigned int &nMarkerBottom, unsigned int &nVideoLeft, unsigned int &nVideoTop, unsigned int &nVideoRight, unsigned int &nVideoBottom) const
 
bool GetCameraLensControlSettings (const unsigned int nCameraIndex, float *focus, float *aperture) const
 
bool GetCameraMarkerSettings (unsigned int nCameraIndex, unsigned int &nCurrentExposure, unsigned int &nMinExposure, unsigned int &nMaxExposure, unsigned int &nCurrentThreshold, unsigned int &nMinThreshold, unsigned int &nMaxThreshold) const
 
bool GetCameraOrientation (unsigned int nCameraIndex, int &nOrientation) const
 
bool GetCameraPosition (unsigned int nCameraIndex, SPoint &sPoint, float fvRotationMatrix[3][3]) const
 
bool GetCameraResolution (unsigned int nCameraIndex, unsigned int &nMarkerWidth, unsigned int &nMarkerHeight, unsigned int &nVideoWidth, unsigned int &nVideoHeight) const
 
bool GetCameraSettings (unsigned int nCameraIndex, unsigned int &nID, ECameraModel &eModel, bool &bUnderwater, bool &bSupportsHwSync, unsigned int &nSerial, ECameraMode &eMode) const
 
bool GetCameraSyncOutSettings (unsigned int nCameraIndex, unsigned int portNumber, ESyncOutFreqMode &eSyncOutMode, unsigned int &nSyncOutValue, float &fSyncOutDutyCycle, bool &bSyncOutNegativePolarity) const
 
ECameraSystemType GetCameraSystemType () const
 
bool GetCameraVideoSettings (unsigned int nCameraIndex, EVideoResolution &eVideoResolution, EVideoAspectRatio &eVideoAspectRatio, unsigned int &nVideoFrequency, unsigned int &nCurrentExposure, unsigned int &nMinExposure, unsigned int &nMaxExposure, unsigned int &nCurrentFlashTime, unsigned int &nMinFlashTime, unsigned int &nMaxFlashTime) const
 
bool GetCapture (const char *pFileName, bool bC3D)
 
bool GetCurrentFrame (unsigned int nComponentType, const SComponentOptions &componentOptions={ })
 
bool GetDiscoverResponse (unsigned int nIndex, unsigned int &nAddr, unsigned short &nBasePort, std::string &message)
 
char * GetErrorString ()
 
void GetExtTimeBaseSettings (bool &bEnabled, ESignalSource &eSignalSource, bool &bSignalModePeriodic, unsigned int &nFreqMultiplier, unsigned int &nFreqDivisor, unsigned int &nFreqTolerance, float &fNominalFrequency, bool &bNegativeEdge, unsigned int &nSignalShutterDelay, float &fNonPeriodicTimeout) const
 
bool GetForcePlate (unsigned int nPlateIndex, unsigned int &nID, unsigned int &nAnalogDeviceID, unsigned int &nFrequency, char *&pType, char *&pName, float &fLength, float &fWidth) const
 
bool GetForcePlateCalibrationMatrix (unsigned int nPlateIndex, float fvCalMatrix[12][12], unsigned int *rows, unsigned int *columns) const
 
bool GetForcePlateChannel (unsigned int nPlateIndex, unsigned int nChannelIndex, unsigned int &nChannelNumber, float &fConversionFactor) const
 
unsigned int GetForcePlateChannelCount (unsigned int nPlateIndex) const
 
unsigned int GetForcePlateCount () const
 
bool GetForcePlateLocation (unsigned int nPlateIndex, SPoint sCorner[4]) const
 
bool GetForcePlateOrigin (unsigned int nPlateIndex, SPoint &sOrigin) const
 
void GetForceUnits (char *&pLength, char *&pForce) const
 
unsigned int GetGazeVectorCount () const
 
float GetGazeVectorFrequency (unsigned int nGazeVectorIndex) const
 
const char * GetGazeVectorName (unsigned int nGazeVectorIndex) const
 
bool GetImageCamera (unsigned int nCameraIndex, unsigned int &nCameraID, bool &bEnabled, CRTPacket::EImageFormat &eFormat, unsigned int &nWidth, unsigned int &nHeight, float &fCropLeft, float &fCropTop, float &fCropRight, float &fCropBottom) const
 
unsigned int GetImageCameraCount () const
 
int GetNumberOfDiscoverResponses ()
 
bool GetQTMVersion (char *pVersion, unsigned int nVersionLen)
 
CRTPacketGetRTPacket ()
 
bool GetSkeleton (unsigned int skeletonIndex, SSettingsSkeleton *skeleton)
 
unsigned int GetSkeletonCount () const
 
const char * GetSkeletonName (unsigned int skeletonIndex)
 
bool GetSkeletonSegment (unsigned int skeletonIndex, unsigned int segmentIndex, SSettingsSkeletonSegment *segment)
 
unsigned int GetSkeletonSegmentCount (unsigned int skeletonIndex)
 
bool GetState (CRTPacket::EEvent &eEvent, bool bUpdate=true, int nTimeout=WAIT_FOR_DATA_TIMEOUT)
 
void GetSystemSettings (unsigned int &nCaptureFrequency, float &fCaptureTime, bool &bStartOnExtTrig, bool &trigNO, bool &trigNC, bool &trigSoftware, EProcessingActions &eProcessingActions, EProcessingActions &eRtProcessingActions, EProcessingActions &eReprocessingActions) const
 
unsigned short GetUdpServerPort ()
 
bool GetVersion (unsigned int &nMajorVersion, unsigned int &nMinorVersion)
 
bool IsControlling ()
 
bool LoadCapture (const char *pFileName)
 
bool LoadProject (const char *pFileName)
 
bool NewMeasurement ()
 
bool Read3DSettings (bool &bDataAvailable)
 
bool Read6DOFSettings (bool &bDataAvailable)
 
bool ReadAnalogSettings (bool &bDataAvailable)
 
bool ReadCameraSystemSettings ()
 
bool ReadForceSettings (bool &bDataAvailable)
 
bool ReadGazeVectorSettings (bool &bDataAvailable)
 
bool ReadImageSettings (bool &bDataAvailable)
 
bool ReadSkeletonSettings (bool &bDataAvailable, bool skeletonGlobalData=false)
 
bool ReadXmlBool (CMarkup *xml, const std::string &element, bool &value) const
 
int ReceiveRTPacket (CRTPacket::EPacketType &eType, bool bSkipEvents=true, int nTimeout=WAIT_FOR_DATA_TIMEOUT)
 
bool ReleaseControl ()
 
bool Reprocess ()
 
bool SaveCapture (const char *pFileName, bool bOverwrite, char *pNewFileName=nullptr, int nSizeOfNewFileName=0)
 
bool SendTrig ()
 
bool SetCameraAutoExposureSettings (const unsigned int nCameraID, const bool autoExposure, const float compensation)
 
bool SetCameraAutoWhiteBalance (const unsigned int nCameraID, const bool enable)
 
bool SetCameraLensControlSettings (const unsigned int nCameraID, const float focus, const float aperture)
 
bool SetCameraSettings (const unsigned int nCameraID, const ECameraMode *peMode, const float *pfMarkerExposure, const float *pfMarkerThreshold, const int *pnOrientation)
 
bool SetCameraSyncOutSettings (const unsigned int nCameraID, const unsigned int portNumber, const ESyncOutFreqMode *peSyncOutMode, const unsigned int *pnSyncOutValue, const float *pfSyncOutDutyCycle, const bool *pbSyncOutNegativePolarity)
 
bool SetCameraVideoSettings (const unsigned int nCameraID, const EVideoResolution *eVideoResolution, const EVideoAspectRatio *eVideoAspectRatio, const unsigned int *pnVideoFrequency, const float *pfVideoExposure, const float *pfVideoFlashTime)
 
bool SetExtTimeBaseSettings (const bool *pbEnabled, const ESignalSource *peSignalSource, const bool *pbSignalModePeriodic, const unsigned int *pnFreqMultiplier, const unsigned int *pnFreqDivisor, const unsigned int *pnFreqTolerance, const float *pfNominalFrequency, const bool *pbNegativeEdge, const unsigned int *pnSignalShutterDelay, const float *pfNonPeriodicTimeout)
 
bool SetForceSettings (const unsigned int nPlateID, const SPoint *psCorner1, const SPoint *psCorner2, const SPoint *psCorner3, const SPoint *psCorner4)
 
bool SetImageSettings (const unsigned int nCameraID, const bool *pbEnable, const CRTPacket::EImageFormat *peFormat, const unsigned int *pnWidth, const unsigned int *pnHeight, const float *pfLeftCrop, const float *pfTopCrop, const float *pfRightCrop, const float *pfBottomCrop)
 
bool SetQTMEvent (const char *pLabel)
 
bool SetSystemSettings (const unsigned int *pnCaptureFrequency, const float *pfCaptureTime, const bool *pbStartOnExtTrig, const bool *trigNO, const bool *trigNC, const bool *trigSoftware, const EProcessingActions *peProcessingActions, const EProcessingActions *peRtProcessingActions, const EProcessingActions *peReprocessingActions)
 
bool SetVersion (int nMajorVersion, int nMinorVersion)
 
bool StartCapture ()
 
bool StartRTOnFile ()
 
bool StopCapture ()
 
bool StreamFrames (EStreamRate eRate, unsigned int nRateArg, unsigned short nUDPPort, const char *pUDPAddr, unsigned int nComponentType, const SComponentOptions &componentOptions={ })
 
bool StreamFramesStop ()
 
bool TakeControl (const char *pPassword=nullptr)
 

Static Public Member Functions

static unsigned int ConvertComponentString (const char *pComponentType)
 
static bool ConvertRateString (const char *pRate, EStreamRate &eRate, unsigned int &nRateArg)
 
static bool GetComponentString (char *pComponentStr, unsigned int nComponentType, const SComponentOptions &options=SComponentOptions())
 
static bool GetEventString (CRTPacket::EEvent eEvent, char *pStr)
 

Static Public Attributes

static const unsigned int cComponent2d = 0x000040
 
static const unsigned int cComponent2dLin = 0x000080
 
static const unsigned int cComponent3d = 0x000001
 
static const unsigned int cComponent3dNoLabels = 0x000002
 
static const unsigned int cComponent3dNoLabelsRes = 0x000200
 
static const unsigned int cComponent3dRes = 0x000100
 
static const unsigned int cComponent6d = 0x000010
 
static const unsigned int cComponent6dEuler = 0x000020
 
static const unsigned int cComponent6dEulerRes = 0x000800
 
static const unsigned int cComponent6dRes = 0x000400
 
static const unsigned int cComponentAnalog = 0x000004
 
static const unsigned int cComponentAnalogSingle = 0x001000
 
static const unsigned int cComponentForce = 0x000008
 
static const unsigned int cComponentForceSingle = 0x004000
 
static const unsigned int cComponentGazeVector = 0x008000
 
static const unsigned int cComponentImage = 0x002000
 
static const unsigned int cComponentSkeleton = 0x020000
 
static const unsigned int cComponentTimecode = 0x010000
 

Detailed Description

Definition at line 28 of file RTProtocol.h.

Member Enumeration Documentation

◆ EAxis

enum EAxis
Enumerator
XPos 
XNeg 
YPos 
YNeg 
ZPos 
ZNeg 

Definition at line 144 of file RTProtocol.h.

◆ ECameraMode

Enumerator
ModeMarker 
ModeMarkerIntensity 
ModeVideo 

Definition at line 101 of file RTProtocol.h.

◆ ECameraModel

Enumerator
ModelMacReflex 
ModelProReflex120 
ModelProReflex240 
ModelProReflex500 
ModelProReflex1000 
ModelOqus100 
ModelOqus300 
ModelOqus300Plus 
ModelOqus400 
ModelOqus500 
ModelOqus200C 
ModelOqus500Plus 
ModelOqus700 
ModelOqus700Plus 
ModelOqus600Plus 
ModelMiqusM1 
ModelMiqusM3 
ModelMiqusM5 
ModelMiqusSyncUnit 
ModelMiqusVideo 
ModelMiqusVideoColor 

Definition at line 69 of file RTProtocol.h.

◆ ECameraSystemType

Enumerator
Unknown 
Oqus 
Miqus 

Definition at line 94 of file RTProtocol.h.

◆ EProcessingActions

Enumerator
ProcessingNone 
ProcessingTracking2D 
ProcessingTracking3D 
ProcessingTwinSystemMerge 
ProcessingSplineFill 
ProcessingAIM 
Processing6DOFTracking 
ProcessingForceData 
ProcessingGazeVector 
ProcessingExportTSV 
ProcessingExportC3D 
ProcessingExportMatlabFile 
ProcessingExportAviFile 
ProcessingPreProcess2D 

Definition at line 154 of file RTProtocol.h.

◆ ESignalSource

Enumerator
SourceControlPort 
SourceIRReceiver 
SourceSMPTE 
SourceVideoSync 
SourceIRIG 

Definition at line 135 of file RTProtocol.h.

◆ EStreamRate

Enumerator
RateNone 
RateAllFrames 
RateFrequency 
RateFrequencyDivisor 

Definition at line 61 of file RTProtocol.h.

◆ ESyncOutFreqMode

Enumerator
ModeShutterOut 
ModeMultiplier 
ModeDivisor 
ModeActualFreq 
ModeMeasurementTime 
ModeFixed100Hz 

Definition at line 125 of file RTProtocol.h.

◆ EVideoAspectRatio

Enumerator
VideoAspectRatio16x9 
VideoAspectRatio4x3 
VideoAspectRatio1x1 
VideoAspectRatioNone 

Definition at line 117 of file RTProtocol.h.

◆ EVideoResolution

Enumerator
VideoResolution1080p 
VideoResolution720p 
VideoResolution540p 
VideoResolution480p 
VideoResolutionNone 

Definition at line 108 of file RTProtocol.h.

Constructor & Destructor Documentation

◆ CRTProtocol()

Definition at line 49 of file RTProtocol.cpp.

References CRTPacket::EventCaptureStopped.

◆ ~CRTProtocol()

Definition at line 67 of file RTProtocol.cpp.

Member Function Documentation

◆ CheckLicense()

bool CheckLicense ( const char *  pLicenseCode)

Definition at line 307 of file RTProtocol.cpp.

◆ CloseMeasurement()

bool CloseMeasurement ( )

Definition at line 778 of file RTProtocol.cpp.

◆ Connect()

bool Connect ( const char *  pServerAddr,
unsigned short  nPort,
unsigned short *  pnUDPServerPort = nullptr,
int  nMajorVersion = MAJOR_VERSION,
int  nMinorVersion = MINOR_VERSION,
bool  bBigEndian = false 
)

◆ Connected()

bool Connected ( ) const

Definition at line 225 of file RTProtocol.cpp.

References CNetwork::Connected().

Referenced by GetVersion(), and QualisysClient::manageNetworkFrame().

◆ ConvertComponentString()

◆ ConvertRateString()

bool ConvertRateString ( const char *  pRate,
EStreamRate eRate,
unsigned int &  nRateArg 
)
static

Definition at line 1057 of file RTProtocol.cpp.

References RateAllFrames, RateFrequency, RateFrequencyDivisor, and RateNone.

◆ Disconnect()

void Disconnect ( )

Definition at line 212 of file RTProtocol.cpp.

References CNetwork::Disconnect().

Referenced by Connect(), and QualisysClient::manageNetworkFrame().

◆ DiscoverRTServer()

◆ Get3DBoneCount()

unsigned int Get3DBoneCount ( ) const

Definition at line 4007 of file RTProtocol.cpp.

◆ Get3DBoneFromName()

const char * Get3DBoneFromName ( unsigned int  boneIndex) const

Definition at line 4012 of file RTProtocol.cpp.

◆ Get3DBoneToName()

const char * Get3DBoneToName ( unsigned int  boneIndex) const

Definition at line 4021 of file RTProtocol.cpp.

◆ Get3DCalibrated()

const char * Get3DCalibrated ( ) const

Definition at line 3978 of file RTProtocol.cpp.

◆ Get3DLabelColor()

unsigned int Get3DLabelColor ( unsigned int  nMarkerIndex) const

Definition at line 3997 of file RTProtocol.cpp.

◆ Get3DLabeledMarkerCount()

unsigned int Get3DLabeledMarkerCount ( ) const

Definition at line 3983 of file RTProtocol.cpp.

◆ Get3DLabelName()

const char * Get3DLabelName ( unsigned int  nMarkerIndex) const

Definition at line 3988 of file RTProtocol.cpp.

◆ Get3DUpwardAxis()

CRTProtocol::EAxis Get3DUpwardAxis ( ) const

Definition at line 3973 of file RTProtocol.cpp.

◆ Get6DOFBodyColor()

unsigned int Get6DOFBodyColor ( unsigned int  nBodyIndex) const

Definition at line 4054 of file RTProtocol.cpp.

◆ Get6DOFBodyCount()

unsigned int Get6DOFBodyCount ( ) const

Definition at line 4038 of file RTProtocol.cpp.

◆ Get6DOFBodyName()

const char * Get6DOFBodyName ( unsigned int  nBodyIndex) const

Definition at line 4044 of file RTProtocol.cpp.

Referenced by QualisysClient::manageNetworkFrame().

◆ Get6DOFBodyPoint()

bool Get6DOFBodyPoint ( unsigned int  nBodyIndex,
unsigned int  nMarkerIndex,
SPoint sPoint 
) const

◆ Get6DOFBodyPointCount()

unsigned int Get6DOFBodyPointCount ( unsigned int  nBodyIndex) const

Definition at line 4064 of file RTProtocol.cpp.

◆ Get6DOFEulerNames()

void Get6DOFEulerNames ( std::string &  first,
std::string &  second,
std::string &  third 
) const

Definition at line 4030 of file RTProtocol.cpp.

◆ GetAnalogDevice()

bool GetAnalogDevice ( unsigned int  nDeviceIndex,
unsigned int &  nDeviceID,
unsigned int &  nChannels,
char *&  pName,
unsigned int &  nFrequency,
char *&  pUnit,
float &  fMinRange,
float &  fMaxRange 
) const

Definition at line 4121 of file RTProtocol.cpp.

◆ GetAnalogDeviceCount()

unsigned int GetAnalogDeviceCount ( ) const

Definition at line 4115 of file RTProtocol.cpp.

◆ GetAnalogLabel()

const char * GetAnalogLabel ( unsigned int  nDeviceIndex,
unsigned int  nChannelIndex 
) const

Definition at line 4141 of file RTProtocol.cpp.

◆ GetAnalogUnit()

const char * GetAnalogUnit ( unsigned int  nDeviceIndex,
unsigned int  nChannelIndex 
) const

Definition at line 4154 of file RTProtocol.cpp.

◆ GetByteOrder()

bool GetByteOrder ( bool &  bBigEndian)

Definition at line 293 of file RTProtocol.cpp.

◆ GetCameraAutoExposureSettings()

bool GetCameraAutoExposureSettings ( const unsigned int  nCameraIndex,
bool *  autoExposureEnabled,
float *  autoExposureCompensation 
) const

Definition at line 3950 of file RTProtocol.cpp.

◆ GetCameraAutoWhiteBalance()

bool GetCameraAutoWhiteBalance ( const unsigned int  nCameraIndex,
bool *  autoWhiteBalanceEnabled 
) const

Definition at line 3963 of file RTProtocol.cpp.

◆ GetCameraCount()

unsigned int GetCameraCount ( ) const

Definition at line 3781 of file RTProtocol.cpp.

◆ GetCameraFOV()

bool GetCameraFOV ( unsigned int  nCameraIndex,
unsigned int &  nMarkerLeft,
unsigned int &  nMarkerTop,
unsigned int &  nMarkerRight,
unsigned int &  nMarkerBottom,
unsigned int &  nVideoLeft,
unsigned int &  nVideoTop,
unsigned int &  nVideoRight,
unsigned int &  nVideoBottom 
) const

Definition at line 3916 of file RTProtocol.cpp.

◆ GetCameraLensControlSettings()

bool GetCameraLensControlSettings ( const unsigned int  nCameraIndex,
float *  focus,
float *  aperture 
) const

Definition at line 3937 of file RTProtocol.cpp.

◆ GetCameraMarkerSettings()

bool GetCameraMarkerSettings ( unsigned int  nCameraIndex,
unsigned int &  nCurrentExposure,
unsigned int &  nMinExposure,
unsigned int &  nMaxExposure,
unsigned int &  nCurrentThreshold,
unsigned int &  nMinThreshold,
unsigned int &  nMaxThreshold 
) const

Definition at line 3805 of file RTProtocol.cpp.

◆ GetCameraOrientation()

bool GetCameraOrientation ( unsigned int  nCameraIndex,
int &  nOrientation 
) const

Definition at line 3890 of file RTProtocol.cpp.

◆ GetCameraPosition()

bool GetCameraPosition ( unsigned int  nCameraIndex,
SPoint sPoint,
float  fvRotationMatrix[3][3] 
) const

◆ GetCameraResolution()

bool GetCameraResolution ( unsigned int  nCameraIndex,
unsigned int &  nMarkerWidth,
unsigned int &  nMarkerHeight,
unsigned int &  nVideoWidth,
unsigned int &  nVideoHeight 
) const

Definition at line 3901 of file RTProtocol.cpp.

◆ GetCameraSettings()

bool GetCameraSettings ( unsigned int  nCameraIndex,
unsigned int &  nID,
ECameraModel eModel,
bool &  bUnderwater,
bool &  bSupportsHwSync,
unsigned int &  nSerial,
ECameraMode eMode 
) const

Definition at line 3787 of file RTProtocol.cpp.

◆ GetCameraSyncOutSettings()

bool GetCameraSyncOutSettings ( unsigned int  nCameraIndex,
unsigned int  portNumber,
ESyncOutFreqMode eSyncOutMode,
unsigned int &  nSyncOutValue,
float &  fSyncOutDutyCycle,
bool &  bSyncOutNegativePolarity 
) const

Definition at line 3848 of file RTProtocol.cpp.

◆ GetCameraSystemType()

CRTProtocol::ECameraSystemType GetCameraSystemType ( ) const

Definition at line 4346 of file RTProtocol.cpp.

◆ GetCameraVideoSettings()

bool GetCameraVideoSettings ( unsigned int  nCameraIndex,
EVideoResolution eVideoResolution,
EVideoAspectRatio eVideoAspectRatio,
unsigned int &  nVideoFrequency,
unsigned int &  nCurrentExposure,
unsigned int &  nMinExposure,
unsigned int &  nMaxExposure,
unsigned int &  nCurrentFlashTime,
unsigned int &  nMinFlashTime,
unsigned int &  nMaxFlashTime 
) const

Definition at line 3824 of file RTProtocol.cpp.

◆ GetCapture()

bool GetCapture ( const char *  pFileName,
bool  bC3D 
)

◆ GetComponentString()

◆ GetCurrentFrame()

bool GetCurrentFrame ( unsigned int  nComponentType,
const SComponentOptions componentOptions = { } 
)

Definition at line 412 of file RTProtocol.cpp.

References GetComponentString().

◆ GetDiscoverResponse()

bool GetDiscoverResponse ( unsigned int  nIndex,
unsigned int &  nAddr,
unsigned short &  nBasePort,
std::string &  message 
)

Definition at line 399 of file RTProtocol.cpp.

◆ GetErrorString()

◆ GetEventString()

◆ GetExtTimeBaseSettings()

void GetExtTimeBaseSettings ( bool &  bEnabled,
ESignalSource eSignalSource,
bool &  bSignalModePeriodic,
unsigned int &  nFreqMultiplier,
unsigned int &  nFreqDivisor,
unsigned int &  nFreqTolerance,
float &  fNominalFrequency,
bool &  bNegativeEdge,
unsigned int &  nSignalShutterDelay,
float &  fNonPeriodicTimeout 
) const

Definition at line 3761 of file RTProtocol.cpp.

◆ GetForcePlate()

bool GetForcePlate ( unsigned int  nPlateIndex,
unsigned int &  nID,
unsigned int &  nAnalogDeviceID,
unsigned int &  nFrequency,
char *&  pType,
char *&  pName,
float &  fLength,
float &  fWidth 
) const

Definition at line 4180 of file RTProtocol.cpp.

◆ GetForcePlateCalibrationMatrix()

bool GetForcePlateCalibrationMatrix ( unsigned int  nPlateIndex,
float  fvCalMatrix[12][12],
unsigned int *  rows,
unsigned int *  columns 
) const

Definition at line 4246 of file RTProtocol.cpp.

◆ GetForcePlateChannel()

bool GetForcePlateChannel ( unsigned int  nPlateIndex,
unsigned int  nChannelIndex,
unsigned int &  nChannelNumber,
float &  fConversionFactor 
) const

Definition at line 4230 of file RTProtocol.cpp.

◆ GetForcePlateChannelCount()

unsigned int GetForcePlateChannelCount ( unsigned int  nPlateIndex) const

Definition at line 4220 of file RTProtocol.cpp.

◆ GetForcePlateCount()

unsigned int GetForcePlateCount ( ) const

Definition at line 4174 of file RTProtocol.cpp.

◆ GetForcePlateLocation()

bool GetForcePlateLocation ( unsigned int  nPlateIndex,
SPoint  sCorner[4] 
) const

Definition at line 4198 of file RTProtocol.cpp.

◆ GetForcePlateOrigin()

bool GetForcePlateOrigin ( unsigned int  nPlateIndex,
SPoint sOrigin 
) const

Definition at line 4209 of file RTProtocol.cpp.

◆ GetForceUnits()

void GetForceUnits ( char *&  pLength,
char *&  pForce 
) const

Definition at line 4167 of file RTProtocol.cpp.

◆ GetGazeVectorCount()

unsigned int GetGazeVectorCount ( ) const

Definition at line 4090 of file RTProtocol.cpp.

◆ GetGazeVectorFrequency()

float GetGazeVectorFrequency ( unsigned int  nGazeVectorIndex) const

Definition at line 4105 of file RTProtocol.cpp.

◆ GetGazeVectorName()

const char * GetGazeVectorName ( unsigned int  nGazeVectorIndex) const

Definition at line 4096 of file RTProtocol.cpp.

◆ GetImageCamera()

bool GetImageCamera ( unsigned int  nCameraIndex,
unsigned int &  nCameraID,
bool &  bEnabled,
CRTPacket::EImageFormat eFormat,
unsigned int &  nWidth,
unsigned int &  nHeight,
float &  fCropLeft,
float &  fCropTop,
float &  fCropRight,
float &  fCropBottom 
) const

Definition at line 4271 of file RTProtocol.cpp.

◆ GetImageCameraCount()

unsigned int GetImageCameraCount ( ) const

Definition at line 4265 of file RTProtocol.cpp.

◆ GetNumberOfDiscoverResponses()

int GetNumberOfDiscoverResponses ( )

Definition at line 393 of file RTProtocol.cpp.

◆ GetQTMVersion()

bool GetQTMVersion ( char *  pVersion,
unsigned int  nVersionLen 
)

Definition at line 282 of file RTProtocol.cpp.

◆ GetRTPacket()

CRTPacket * GetRTPacket ( )

Definition at line 1415 of file RTProtocol.cpp.

Referenced by QualisysClient::manageNetworkFrame().

◆ GetSkeleton()

bool GetSkeleton ( unsigned int  skeletonIndex,
SSettingsSkeleton skeleton 
)

Definition at line 4316 of file RTProtocol.cpp.

◆ GetSkeletonCount()

unsigned int GetSkeletonCount ( ) const

Definition at line 4291 of file RTProtocol.cpp.

◆ GetSkeletonName()

const char * GetSkeletonName ( unsigned int  skeletonIndex)

Definition at line 4297 of file RTProtocol.cpp.

◆ GetSkeletonSegment()

bool GetSkeletonSegment ( unsigned int  skeletonIndex,
unsigned int  segmentIndex,
SSettingsSkeletonSegment segment 
)

Definition at line 4329 of file RTProtocol.cpp.

◆ GetSkeletonSegmentCount()

unsigned int GetSkeletonSegmentCount ( unsigned int  skeletonIndex)

Definition at line 4307 of file RTProtocol.cpp.

◆ GetState()

bool GetState ( CRTPacket::EEvent eEvent,
bool  bUpdate = true,
int  nTimeout = WAIT_FOR_DATA_TIMEOUT 
)

Definition at line 496 of file RTProtocol.cpp.

References CRTPacket::GetEvent(), and ReceiveRTPacket().

Referenced by Connect().

◆ GetSystemSettings()

void GetSystemSettings ( unsigned int &  nCaptureFrequency,
float &  fCaptureTime,
bool &  bStartOnExtTrig,
bool &  trigNO,
bool &  trigNC,
bool &  trigSoftware,
EProcessingActions eProcessingActions,
EProcessingActions eRtProcessingActions,
EProcessingActions eReprocessingActions 
) const

Definition at line 3743 of file RTProtocol.cpp.

◆ GetUdpServerPort()

unsigned short GetUdpServerPort ( )

Definition at line 202 of file RTProtocol.cpp.

References CNetwork::GetUdpServerPort().

◆ GetVersion()

bool GetVersion ( unsigned int &  nMajorVersion,
unsigned int &  nMinorVersion 
)

Definition at line 268 of file RTProtocol.cpp.

References Connected().

◆ IsControlling()

bool IsControlling ( )

Definition at line 749 of file RTProtocol.cpp.

◆ LoadCapture()

bool LoadCapture ( const char *  pFileName)

Definition at line 877 of file RTProtocol.cpp.

◆ LoadProject()

bool LoadProject ( const char *  pFileName)

Definition at line 958 of file RTProtocol.cpp.

◆ NewMeasurement()

bool NewMeasurement ( )

Definition at line 755 of file RTProtocol.cpp.

◆ Read3DSettings()

◆ Read6DOFSettings()

◆ ReadAnalogSettings()

◆ ReadCameraSystemSettings()

◆ ReadForceSettings()

◆ ReadGazeVectorSettings()

◆ ReadImageSettings()

◆ ReadSkeletonSettings()

◆ ReadXmlBool()

bool ReadXmlBool ( CMarkup xml,
const std::string &  element,
bool &  value 
) const

Definition at line 1421 of file RTProtocol.cpp.

References CMarkup::FindChildElem(), and CMarkup::GetChildData().

Referenced by ReadCameraSystemSettings().

◆ ReceiveRTPacket()

◆ ReleaseControl()

bool ReleaseControl ( )

Definition at line 724 of file RTProtocol.cpp.

◆ Reprocess()

bool Reprocess ( )

Definition at line 991 of file RTProtocol.cpp.

◆ SaveCapture()

bool SaveCapture ( const char *  pFileName,
bool  bOverwrite,
char *  pNewFileName = nullptr,
int  nSizeOfNewFileName = 0 
)

Definition at line 910 of file RTProtocol.cpp.

◆ SendTrig()

bool SendTrig ( )

Definition at line 631 of file RTProtocol.cpp.

◆ SetCameraAutoExposureSettings()

bool SetCameraAutoExposureSettings ( const unsigned int  nCameraID,
const bool  autoExposure,
const float  compensation 
)

◆ SetCameraAutoWhiteBalance()

bool SetCameraAutoWhiteBalance ( const unsigned int  nCameraID,
const bool  enable 
)

◆ SetCameraLensControlSettings()

bool SetCameraLensControlSettings ( const unsigned int  nCameraID,
const float  focus,
const float  aperture 
)

◆ SetCameraSettings()

bool SetCameraSettings ( const unsigned int  nCameraID,
const ECameraMode peMode,
const float *  pfMarkerExposure,
const float *  pfMarkerThreshold,
const int *  pnOrientation 
)

◆ SetCameraSyncOutSettings()

bool SetCameraSyncOutSettings ( const unsigned int  nCameraID,
const unsigned int  portNumber,
const ESyncOutFreqMode peSyncOutMode,
const unsigned int *  pnSyncOutValue,
const float *  pfSyncOutDutyCycle,
const bool *  pbSyncOutNegativePolarity 
)

◆ SetCameraVideoSettings()

bool SetCameraVideoSettings ( const unsigned int  nCameraID,
const EVideoResolution eVideoResolution,
const EVideoAspectRatio eVideoAspectRatio,
const unsigned int *  pnVideoFrequency,
const float *  pfVideoExposure,
const float *  pfVideoFlashTime 
)

◆ SetExtTimeBaseSettings()

bool SetExtTimeBaseSettings ( const bool *  pbEnabled,
const ESignalSource peSignalSource,
const bool *  pbSignalModePeriodic,
const unsigned int *  pnFreqMultiplier,
const unsigned int *  pnFreqDivisor,
const unsigned int *  pnFreqTolerance,
const float *  pfNominalFrequency,
const bool *  pbNegativeEdge,
const unsigned int *  pnSignalShutterDelay,
const float *  pfNonPeriodicTimeout 
)

◆ SetForceSettings()

bool SetForceSettings ( const unsigned int  nPlateID,
const SPoint psCorner1,
const SPoint psCorner2,
const SPoint psCorner3,
const SPoint psCorner4 
)

◆ SetImageSettings()

bool SetImageSettings ( const unsigned int  nCameraID,
const bool *  pbEnable,
const CRTPacket::EImageFormat peFormat,
const unsigned int *  pnWidth,
const unsigned int *  pnHeight,
const float *  pfLeftCrop,
const float *  pfTopCrop,
const float *  pfRightCrop,
const float *  pfBottomCrop 
)

◆ SetQTMEvent()

bool SetQTMEvent ( const char *  pLabel)

Definition at line 654 of file RTProtocol.cpp.

◆ SetSystemSettings()

bool SetSystemSettings ( const unsigned int *  pnCaptureFrequency,
const float *  pfCaptureTime,
const bool *  pbStartOnExtTrig,
const bool *  trigNO,
const bool *  trigNC,
const bool *  trigSoftware,
const EProcessingActions peProcessingActions,
const EProcessingActions peRtProcessingActions,
const EProcessingActions peReprocessingActions 
)

◆ SetVersion()

bool SetVersion ( int  nMajorVersion,
int  nMinorVersion 
)

Definition at line 231 of file RTProtocol.cpp.

References CRTPacket::SetVersion().

Referenced by Connect().

◆ StartCapture()

bool StartCapture ( )

Definition at line 804 of file RTProtocol.cpp.

◆ StartRTOnFile()

bool StartRTOnFile ( )

Definition at line 827 of file RTProtocol.cpp.

◆ StopCapture()

bool StopCapture ( )

Definition at line 854 of file RTProtocol.cpp.

Referenced by QualisysClient::manageNetworkFrame().

◆ StreamFrames()

bool StreamFrames ( EStreamRate  eRate,
unsigned int  nRateArg,
unsigned short  nUDPPort,
const char *  pUDPAddr,
unsigned int  nComponentType,
const SComponentOptions componentOptions = { } 
)

◆ StreamFramesStop()

bool StreamFramesStop ( )

Definition at line 485 of file RTProtocol.cpp.

◆ TakeControl()

bool TakeControl ( const char *  pPassword = nullptr)

Definition at line 687 of file RTProtocol.cpp.

Member Data Documentation

◆ cComponent2d

const unsigned int cComponent2d = 0x000040
static

Definition at line 37 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent2dLin

const unsigned int cComponent2dLin = 0x000080
static

Definition at line 38 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent3d

const unsigned int cComponent3d = 0x000001
static

Definition at line 31 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent3dNoLabels

const unsigned int cComponent3dNoLabels = 0x000002
static

Definition at line 32 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent3dNoLabelsRes

const unsigned int cComponent3dNoLabelsRes = 0x000200
static

Definition at line 40 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent3dRes

const unsigned int cComponent3dRes = 0x000100
static

Definition at line 39 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent6d

const unsigned int cComponent6d = 0x000010
static

◆ cComponent6dEuler

const unsigned int cComponent6dEuler = 0x000020
static

Definition at line 36 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent6dEulerRes

const unsigned int cComponent6dEulerRes = 0x000800
static

Definition at line 42 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponent6dRes

const unsigned int cComponent6dRes = 0x000400
static

Definition at line 41 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentAnalog

const unsigned int cComponentAnalog = 0x000004
static

Definition at line 33 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentAnalogSingle

const unsigned int cComponentAnalogSingle = 0x001000
static

Definition at line 43 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentForce

const unsigned int cComponentForce = 0x000008
static

Definition at line 34 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentForceSingle

const unsigned int cComponentForceSingle = 0x004000
static

Definition at line 45 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentGazeVector

const unsigned int cComponentGazeVector = 0x008000
static

Definition at line 46 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentImage

const unsigned int cComponentImage = 0x002000
static

Definition at line 44 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentSkeleton

const unsigned int cComponentSkeleton = 0x020000
static

Definition at line 48 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().

◆ cComponentTimecode

const unsigned int cComponentTimecode = 0x010000
static

Definition at line 47 of file RTProtocol.h.

Referenced by ConvertComponentString(), and GetComponentString().


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