Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Static Public Member Functions | List of all members
Dimenco::Weaver Class Reference

#include <Weaver.h>

Static Public Member Functions

static void SetGlobalParameters (FLOAT3 userPos)
 Set global shader parameters needed for weaving. More...
 
static void SetGlobalParameters (const char *configPath, FLOAT3 userPos)
 Set global shader parameters needed for weaving, using a different .ini file. More...
 
static void ReconfigureWeaver ()
 Reconfigures global weaver parameters. More...
 
static void SetDeviceSerialNumbers (const std::vector< std::string > &deviceSerialNumbers)
 Sets the device serial numbers of attached devices to be used when loading calibration data. More...
 
static void SetInstallPath (const std::string &installPath)
 Sets the install path for Simulated Reality to be used when configuring the weaver. More...
 
static void FillAttributes (const FLOAT2 &TextureRes, const FLOAT4 &Position, FLOAT4 &phases, FLOAT4 &dxy, FLOAT2 &ScreenPos, FLOAT2 &WeaverVars)
 Fill the vertex attributes needed for weaving. More...
 
static WeaverErrorCode LoadTexture (WeaverTextureType type, unsigned char **out_pTexture, int *out_width, int *out_height, int *out_channels, int *out_bitsPerPixel)
 Load a weaver texture. More...
 
static void UnLoadCorrectionTexture (unsigned char **in_pTexture)
 Unloads a texture. More...
 
static float GetPattern ()
 
static float GetXTalkFactor ()
 
static float GetFilterWidth ()
 
static float GetFilterSlope ()
 
static float GetSlant ()
 Returns slant as a coëfficiënt. More...
 
static float GetPx ()
 Returns pitch in x direction in pixels. More...
 
static float GetN ()
 Returns the refractive index N. More...
 
static float GetDoN ()
 Returns D over N in millimeters. More...
 

Member Function Documentation

◆ FillAttributes()

static void Dimenco::Weaver::FillAttributes ( const FLOAT2 TextureRes,
const FLOAT4 Position,
FLOAT4 phases,
FLOAT4 dxy,
FLOAT2 ScreenPos,
FLOAT2 WeaverVars 
)
static

Fill the vertex attributes needed for weaving.

Parameters
[in]TextureResSize of the back buffer.
[in]PositionVertex position.
[out]phases
[out]dxy
[out]ScreenPos
[out]WeaverVars

◆ GetDoN()

static float Dimenco::Weaver::GetDoN ( )
static

Returns D over N in millimeters.

◆ GetFilterSlope()

static float Dimenco::Weaver::GetFilterSlope ( )
static

◆ GetFilterWidth()

static float Dimenco::Weaver::GetFilterWidth ( )
static

◆ GetN()

static float Dimenco::Weaver::GetN ( )
static

Returns the refractive index N.

◆ GetPattern()

static float Dimenco::Weaver::GetPattern ( )
static

◆ GetPx()

static float Dimenco::Weaver::GetPx ( )
static

Returns pitch in x direction in pixels.

◆ GetSlant()

static float Dimenco::Weaver::GetSlant ( )
static

Returns slant as a coëfficiënt.

◆ GetXTalkFactor()

static float Dimenco::Weaver::GetXTalkFactor ( )
static

◆ LoadTexture()

static WeaverErrorCode Dimenco::Weaver::LoadTexture ( WeaverTextureType  type,
unsigned char **  out_pTexture,
int *  out_width,
int *  out_height,
int *  out_channels,
int *  out_bitsPerPixel 
)
static

Load a weaver texture.

Parameters
[in]typeWeaver texture type.
[out]out_pTexturePointer to a texture.
[out]out_widthWidth in pixels.
[out]out_heightHeight in pixels.
[out]out_channelsAmount of channels.
[out]out_bitsPerPixelBits per pixel.
Returns
Error code

◆ ReconfigureWeaver()

static void Dimenco::Weaver::ReconfigureWeaver ( )
static

Reconfigures global weaver parameters.

◆ SetDeviceSerialNumbers()

static void Dimenco::Weaver::SetDeviceSerialNumbers ( const std::vector< std::string > &  deviceSerialNumbers)
static

Sets the device serial numbers of attached devices to be used when loading calibration data.

◆ SetGlobalParameters() [1/2]

static void Dimenco::Weaver::SetGlobalParameters ( const char *  configPath,
FLOAT3  userPos 
)
static

Set global shader parameters needed for weaving, using a different .ini file.

Parameters
configPathCustom path for loading shader parameters.
userPosCentered location between the left-and right eye.

◆ SetGlobalParameters() [2/2]

static void Dimenco::Weaver::SetGlobalParameters ( FLOAT3  userPos)
static

Set global shader parameters needed for weaving.

Parameters
userPosCentered location between the left-and right eye.

◆ SetInstallPath()

static void Dimenco::Weaver::SetInstallPath ( const std::string &  installPath)
static

Sets the install path for Simulated Reality to be used when configuring the weaver.

◆ UnLoadCorrectionTexture()

static void Dimenco::Weaver::UnLoadCorrectionTexture ( unsigned char **  in_pTexture)
static

Unloads a texture.

Parameters
in_pTexturePointer to a texture.

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