#define __cpExtensions__Interaction__BaseStyle__h__
#include <cpExtensions/Config.h>
-#include <cpExtensions/Utility.h>
#include <vtkInteractorStyle.h>
#include <map>
-/* =========================================================================
- * Double click algorithm inspired from:
- * http://www.autohotkey.com/board/topic/56493-easiest-way-to-detect-double-clicks/
- * =========================================================================
- */
-
// -------------------------------------------------------------------------
#define cpExtensions_BaseStyle_Commands( C ) \
protected: \
}
inline void Release( )
{
- long c = cpExtensions_CHRONO;
- this->m_LastButtonUp = c;
- this->m_LastButtonHeld = c - this->m_LastButtonDown;
- this->m_LastButtonDown = -1;
+ /* TODO
+ long c = cpExtensions_CHRONO;
+ this->m_LastButtonUp = c;
+ this->m_LastButtonHeld = c - this->m_LastButtonDown;
+ this->m_LastButtonDown = -1;
+ */
}
inline unsigned char Clicks( )
{
- unsigned char n = 0;
- long c = cpExtensions_CHRONO;
- if(
- this->m_LastButtonHeld < MaxDoubleClick &&
- ( c - this->m_LastButtonUp ) < MaxDoubleClick
- )
- {
- this->Reset( );
- n = 2;
- }
- else
- n = 1;
- if( this->m_LastButtonDown < 0 )
- this->m_LastButtonDown = c;
- return( n );
+ /* TODO
+ unsigned char n = 0;
+ long c = cpExtensions_CHRONO;
+ if(
+ this->m_LastButtonHeld < MaxDoubleClick &&
+ ( c - this->m_LastButtonUp ) < MaxDoubleClick
+ )
+ {
+ this->Reset( );
+ n = 2;
+ }
+ else
+ n = 1;
+ if( this->m_LastButtonDown < 0 )
+ this->m_LastButtonDown = c;
+ return( n );
+ */
+ return( 1 );
}
};
_TMouseButtonEvent m_LeftButtonEvent;