GL Studio C++ Runtime API
EyePointCalcViewCallback< T > Class Template Reference

The EyePointCalcViewCallback class. More...

#include <gls_eyepoint.h>

Inheritance diagram for EyePointCalcViewCallback< T >:
EyePointCalcViewCallbackBase

Public Types

typedef void(T::* MethodType) (int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2)
 Typedef for the callback function pointer.
 

Public Member Functions

 EyePointCalcViewCallback (T *container, MethodType method)
 
void Call (int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2) override
 
virtual void Call (int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2)=0
 

Public Attributes

T * _container
 The object which contains the method to call.
 
MethodType _method
 The callback method function pointer.
 

Detailed Description

template<class T>
class disti::EyePointCalcViewCallback< T >

The EyePointCalcViewCallback class.

Constructor & Destructor Documentation

◆ EyePointCalcViewCallback()

EyePointCalcViewCallback ( T *  container,
MethodType  method 
)
inline

Construct a new EyePointCalcViewCallback object.

Parameters
containerThe object containing the callback method.
methodThe callback function pointer to call.

Member Function Documentation

◆ Call()

void Call ( int  viewWidth,
int  viewHeight,
GlsEyePoint thisEye,
double &  rval1,
double &  rval2 
)
inlineoverridevirtual

The callback method interface, used for custom user callbacks to configure the eyepoint's view.

Parameters
viewWidthThe view width in pixels.
viewHeightThe view height in pixels.
thisEyeThe GlsEyePoint associated with this callback.
rval1Returned user defined value.
rval2Another returned user defined value.

Implements EyePointCalcViewCallbackBase.


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