From 05d8966917aac218a6f48c6b17659fd763477d6e Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 27 Apr 2018 17:02:12 +0200 Subject: [PATCH] Add omp::getSelectedVertex() --- src/ofxPiMapper.cpp | 4 ++++ src/ofxPiMapper.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index 84a2987..5645204 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -218,6 +218,10 @@ int ofxPiMapper::getSelectedSurface(){ return _application.getSurfaceManager()->getSelectedSurfaceIndex(); } +int ofxPiMapper::getSelectedVertex(){ + return _application.getSurfaceManager()->getSelectedVertexIndex(); +} + void ofxPiMapper::setInfoText(std::string text){ _application.setInfoText(text); } diff --git a/src/ofxPiMapper.h b/src/ofxPiMapper.h index 74e4470..fec4a2f 100644 --- a/src/ofxPiMapper.h +++ b/src/ofxPiMapper.h @@ -56,6 +56,7 @@ class ofxPiMapper { // Surfaces, active preset unsigned int getNumSurfaces(); int getSelectedSurface(); + int getSelectedVertex(); void selectSurface(int i); void togglePerspective(); void selectNextSurface();