#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 . */ /** * @file IState.hpp * @brief Interface to access the navigation state. */ #include namespace TDx { namespace SpaceMouse { namespace Navigation3D { /// /// Interface to access the navigation state. /// class IState { public: /// /// Is called when the navigation library starts or stops a navigation transaction. /// /// The transaction number: >0 begin, ==0 end. /// 0 = no error, otherwise <0. virtual long SetTransaction(long transaction) = 0; /// /// Is called when the navigation instance starts or stops a sequence of motion frames. /// /// The motion flag: true = start, false = end. /// 0 = no error, otherwise <0. /// This can be used to start an animation loop. virtual long SetMotionFlag(bool motion) = 0; }; } // namespace Navigation3D } // namespace SpaceMouse } // namespace TDx #endif // IState_HPP_INCLUDED