ToolSquareTest.cpp File Reference
`#include <memory>`
`#include <GL/glut.h>`
`#include "SurgSim/Input/DeviceInterface.h"`
`#include "SurgSim/Framework/Assert.h"`
`#include "SurgSim/Testing/VisualTestCommon/MovingSquareForce.h"`
`#include "SurgSim/Testing/VisualTestCommon/MovingSquareGlutWindow.h"`

## Macros

#define | GLUT_NO_LIB_PRAGMA 1

## Functions

void | runToolSquareTest (std::shared_ptr< DeviceInterface > toolDevice, std::shared_ptr< DeviceInterface > squareDevice, const char *testDescriptionMessage)
| Creates a GLUT window containing a sphere and a square each controlled by a device, with interaction forces. More...

## Macro Definition Documentation

## GLUT_NO_LIB_PRAGMA

#define GLUT_NO_LIB_PRAGMA 1

## Function Documentation

## runToolSquareTest()

void runToolSquareTest | ( | std::shared_ptr< SurgSim::Input::DeviceInterface > | toolDevice,
|  | std::shared_ptr< SurgSim::Input::DeviceInterface > | squareDevice,
|  | const char * | testDescriptionMessage
| ) |  |

Creates a GLUT window containing a sphere and a square each controlled by a device, with interaction forces.

Warning
  Does not return, instead calls exit(0). Therefore, will not destruct the device or its scaffold.

See also
  MovingSquareForce, MovingSquareGlutWindow

Parameters

  toolDevice | The device providing an input pose to control the sphere.
  squareDevice | The device providing an input pose to control the square.
  testDescriptionMessage | A message to be printed to the screen, e.g., instructions for operation.