Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::Touch Class Reference

The Touch class represents the state of a single touch on a multi-touch device. More...

#include <hps.h>

Collaboration diagram for HPS::Touch:

Public Member Functions

 Touch ()
 The default constructor creates a Touch object with a null TouchID, location at the window origin, and a down state of false. More...
 
 Touch (TouchID in_id, WindowPoint const &in_location, size_t in_tap_count=1)
 This constructor creates a Touch object with a specified TouchID, location and down state. More...
 
bool operator== (Touch const &in_that) const
 Check if the source Touch is equivalent to this Touch. More...
 
bool operator!= (Touch const &in_that) const
 Check if the source Touch is not equivalent to this Touch. More...
 

Public Attributes

TouchID ID
 TouchID for this Touch. More...
 
WindowPoint Location
 Location in window space for this Touch. More...
 
size_t TapCount
 Number of taps for this Touch. More...
 

Detailed Description

The Touch class represents the state of a single touch on a multi-touch device.

Constructor & Destructor Documentation

◆ Touch() [1/2]

HPS::Touch::Touch ( )
inline

The default constructor creates a Touch object with a null TouchID, location at the window origin, and a down state of false.

◆ Touch() [2/2]

HPS::Touch::Touch ( TouchID  in_id,
WindowPoint const &  in_location,
size_t  in_tap_count = 1 
)
inline

This constructor creates a Touch object with a specified TouchID, location and down state.

Parameters
in_idTouchID for this Touch.
in_locationLocation for this Touch.
in_tap_countNumber of taps for this Touch. Defaults to 1

Member Function Documentation

◆ operator!=()

bool HPS::Touch::operator!= ( Touch const &  in_that) const
inline

Check if the source Touch is not equivalent to this Touch.

Parameters
in_thatThe source Touch to compare to this Touch.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator==()

bool HPS::Touch::operator== ( Touch const &  in_that) const
inline

Check if the source Touch is equivalent to this Touch.

Parameters
in_thatThe source Touch to compare to this Touch.
Returns
true if the objects are equivalent, false otherwise.

Member Data Documentation

◆ ID

TouchID HPS::Touch::ID

TouchID for this Touch.

◆ Location

WindowPoint HPS::Touch::Location

Location in window space for this Touch.

◆ TapCount

size_t HPS::Touch::TapCount

Number of taps for this Touch.


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