Lugdunum  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ndk_helper::PinchDetector Class Reference

#include <gestureDetector.hpp>

Inheritance diagram for ndk_helper::PinchDetector:
[legend]
Collaboration diagram for ndk_helper::PinchDetector:
[legend]

Public Member Functions

 PinchDetector ()
 
virtual ~PinchDetector ()
 
virtual GESTURE_STATE Detect (const AInputEvent *event)
 
bool GetPointers (lug::Math::Vec2f &v1, lug::Math::Vec2f &v2)
 
- Public Member Functions inherited from ndk_helper::GestureDetector
 GestureDetector ()
 
virtual ~GestureDetector ()
 
virtual void SetConfiguration (AConfiguration *config)
 

Private Member Functions

int32_t FindIndex (const AInputEvent *event, int32_t id)
 

Private Attributes

const AInputEvent * event_
 
std::vector< int32_t > vec_pointers_
 

Additional Inherited Members

- Protected Attributes inherited from ndk_helper::GestureDetector
float dp_factor_
 

Detailed Description

Definition at line 102 of file gestureDetector.hpp.

Constructor & Destructor Documentation

◆ PinchDetector()

ndk_helper::PinchDetector::PinchDetector ( )
inline

Definition at line 109 of file gestureDetector.hpp.

◆ ~PinchDetector()

virtual ndk_helper::PinchDetector::~PinchDetector ( )
inlinevirtual

Definition at line 110 of file gestureDetector.hpp.

Member Function Documentation

◆ FindIndex()

int32_t ndk_helper::PinchDetector::FindIndex ( const AInputEvent *  event,
int32_t  id 
)
private

Definition at line 107 of file gestureDetector.cpp.

◆ Detect()

GESTURE_STATE ndk_helper::PinchDetector::Detect ( const AInputEvent *  event)
virtual

Implements ndk_helper::GestureDetector.

Definition at line 115 of file gestureDetector.cpp.

◆ GetPointers()

bool ndk_helper::PinchDetector::GetPointers ( lug::Math::Vec2f &  v1,
lug::Math::Vec2f &  v2 
)

Definition at line 178 of file gestureDetector.cpp.

Member Data Documentation

◆ event_

const AInputEvent* ndk_helper::PinchDetector::event_
private

Definition at line 105 of file gestureDetector.hpp.

◆ vec_pointers_

std::vector<int32_t> ndk_helper::PinchDetector::vec_pointers_
private

Definition at line 106 of file gestureDetector.hpp.


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