5 #include "CatTrimesh.h"
13 typedef void (*CatIPSIButtonStateChangeCallback)(
int nextState);
14 typedef std::map<std::string, int> strint_map;
19 #pragma region Public Methods
39 CAT_RESULT
init(
int maxNumObjects,
double simTimeStep,
double resolution);
96 #pragma region Private Variables
98 unsigned int _selectedBodyId;
99 CatIPSIButtonStateChangeCallback _buttonStateChangeCallback;
100 std::string _ipAddress;
101 strint_map _jtk_ipsi_id_pair;
103 int _prevButtonState;
104 bool _deviceSensitivityConfigured;
108 #pragma region Private Methods
CAT_RESULT addTriMesh(CatTrimesh &tri)
CAT_RESULT pollDeviceTransformation(double *device_transformation)
CAT_RESULT startSimulation()
CAT_RESULT pollBodyTransformation(std::string oid, double *object_location)
CAT_RESULT init(int maxNumObjects, double simTimeStep, double resolution)
CAT_RESULT attachDevice(std::string oid)
CAT_RESULT setButtonStateChangeCallback(CatIPSIButtonStateChangeCallback callback)
CAT_RESULT detachDevice()
Definition: CatTrimesh.h:13
CatIPSI(std::string IPAddr)