Avionics
Dropship Simulator
Devices::Spatial Class Reference

#include <Spatial.h>

Collaboration diagram for Devices::Spatial:
[legend]

Public Member Functions

void Destroy () const
 
void Initialize (Logger *logger, SpatialConfig *config, Bus *prmBus)
 
void FrameMove (float fElapsed)
 

Private Member Functions

int display_properties (CPhidgetHandle phid) const
 

Static Private Member Functions

static int CCONV AttachHandler (CPhidgetHandle IFK, void *userptr)
 
static int CCONV DetachHandler (CPhidgetHandle IFK, void *userptr)
 
static int CCONV ErrorHandler (CPhidgetHandle IFK, void *userptr, int ErrorCode, const char *unknown)
 
static int CCONV SpatialDataHandler (CPhidgetSpatialHandle spatial, void *userptr, CPhidgetSpatial_SpatialEventDataHandle *data, int count)
 

Private Attributes

Loggerlogger = nullptr
 
SpatialConfigconfig = nullptr
 
Busbus = nullptr
 
CPhidgetSpatialHandle spatial = nullptr
 
int xyzMapping [3]
 
D3DXVECTOR3 cumulativeAcceleration
 
float cumulativeAccelTime = 0.0f
 
int cumulativeAccelSamples = 0
 

Detailed Description

Definition at line 23 of file Spatial.h.

Member Function Documentation

◆ AttachHandler()

int CCONV Devices::Spatial::AttachHandler ( CPhidgetHandle  IFK,
void *  userptr 
)
staticprivate

Definition at line 5 of file Spatial.cpp.

Here is the caller graph for this function:

◆ Destroy()

void Devices::Spatial::Destroy ( ) const

Definition at line 173 of file Spatial.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DetachHandler()

int CCONV Devices::Spatial::DetachHandler ( CPhidgetHandle  IFK,
void *  userptr 
)
staticprivate

Definition at line 24 of file Spatial.cpp.

Here is the caller graph for this function:

◆ display_properties()

int Devices::Spatial::display_properties ( CPhidgetHandle  phid) const
private

Definition at line 72 of file Spatial.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ErrorHandler()

int CCONV Devices::Spatial::ErrorHandler ( CPhidgetHandle  IFK,
void *  userptr,
int  ErrorCode,
const char *  unknown 
)
staticprivate

Definition at line 41 of file Spatial.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Devices::Spatial::FrameMove ( float  fElapsed)

this should be a fault if it was hooked up to a component, etc...

Definition at line 180 of file Spatial.cpp.

Here is the caller graph for this function:

◆ Initialize()

void Devices::Spatial::Initialize ( Logger logger,
SpatialConfig config,
Bus prmBus 
)

create the spatial object

Definition at line 108 of file Spatial.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SpatialDataHandler()

int CCONV Devices::Spatial::SpatialDataHandler ( CPhidgetSpatialHandle  IFK,
void *  usrptr,
CPhidgetSpatial_SpatialEventDataHandle *  data,
int  count 
)
staticprivate

callback that will run at datarate data - array of spatial event data structures that holds the spatial data packets that were sent in this event count - the number of spatial data event packets included in this event

Definition at line 53 of file Spatial.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bus

Bus* Devices::Spatial::bus = nullptr
private

Definition at line 28 of file Spatial.h.

◆ config

SpatialConfig* Devices::Spatial::config = nullptr
private

Definition at line 27 of file Spatial.h.

◆ cumulativeAcceleration

D3DXVECTOR3 Devices::Spatial::cumulativeAcceleration
private

Definition at line 33 of file Spatial.h.

◆ cumulativeAccelSamples

int Devices::Spatial::cumulativeAccelSamples = 0
private

Definition at line 35 of file Spatial.h.

◆ cumulativeAccelTime

float Devices::Spatial::cumulativeAccelTime = 0.0f
private

Definition at line 34 of file Spatial.h.

◆ logger

Logger* Devices::Spatial::logger = nullptr
private

Definition at line 26 of file Spatial.h.

◆ spatial

CPhidgetSpatialHandle Devices::Spatial::spatial = nullptr
private

Definition at line 30 of file Spatial.h.

◆ xyzMapping

int Devices::Spatial::xyzMapping[3]
private

Definition at line 32 of file Spatial.h.


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