7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-22 09:45:01 +00:00
kicad/thirdparty/3dxware_sdk/inc/SpaceMouse/IState.hpp
markus-bonk c99a4f4d85 Include the required third party code for the SpaceMouse implementation
The commit only adds the headers and code required by the SpaceMouse
implementation to compile and link. This extract from the 3Dconnexion
SDK is added to the third party directory to allow developers to build without
needing to acquire a cmake enabled version.
2022-01-28 12:21:42 +00:00

54 lines
1.9 KiB
C++

#ifndef IState_HPP_INCLUDED
#define IState_HPP_INCLUDED
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (c) 2018-2021 3Dconnexion.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file IState.hpp
* @brief Interface to access the navigation state.
*/
#include <navlib/navlib_types.h>
namespace TDx {
namespace SpaceMouse {
namespace Navigation3D {
/// <summary>
/// Interface to access the navigation state.
/// </summary>
class IState {
public:
/// <summary>
/// Is called when the navigation library starts or stops a navigation transaction.
/// </summary>
/// <param name="transaction">The transaction number: >0 begin, ==0 end.</param>
/// <returns>0 = no error, otherwise &lt;0.</returns>
virtual long SetTransaction(long transaction) = 0;
/// <summary>
/// Is called when the navigation instance starts or stops a sequence of motion frames.
/// </summary>
/// <param name="motion">The motion flag: true = start, false = end.</param>
/// <returns>0 = no error, otherwise &lt;0.</returns>
/// <remarks>This can be used to start an animation loop.</remarks>
virtual long SetMotionFlag(bool motion) = 0;
};
} // namespace Navigation3D
} // namespace SpaceMouse
} // namespace TDx
#endif // IState_HPP_INCLUDED