text: /**
   * VKTS - VulKan ToolS.
   *
   * The MIT License (MIT)
   *
   * Copyright (c) since 2014 Norbert Nopper
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   */
  
  #ifndef VKTS_ANIMATION_HPP_
  #define VKTS_ANIMATION_HPP_
  
  #include <vkts/scenegraph/vkts_scenegraph.hpp>
  
  namespace vkts
  {
  
  class Animation: public IAnimation
  {
  
  private:
  
      std::string name;
  
      float start;
  
      float stop;
  
      enum AnimationType animationType;
  
      float animationScale;
  
      float currentTime;
  
      SmartPointerVector<IChannelSP> allChannels;
  
  public:
  
      Animation();
      Animation(const Animation& other);
      Animation(Animation&& other) = delete;
      virtual ~Animation();
  
      Animation& operator =(const Animation& other) = delete;
      Animation& operator =(Animation && other) = delete;
  
      //
      // IAnimation
      //
  
      virtual const std::string& getName() const override;
  
      virtual void setName(const std::string& name) override;
  
      virtual float getStart() const override;
  
      virtual void setStart(const float start) override;
  
      virtual float getStop() const override;
  
      virtual void setStop(const float stop) override;
  
      virtual enum AnimationType getAnimationType() const override;
  
      virtual void setAnimationType(const enum AnimationType animationType) override;
  
      virtual float getAnimationScale() const override;
  
      virtual void setAnimationScale(const float animationScale) override;
  
      virtual float getCurrentTime() const override;
  
      virtual void setCurrentTime(const float currentTime) override;
  
      virtual float update(const float deltaTime) override;
  
      virtual void addChannel(const IChannelSP& channel) override;
  
      virtual VkBool32 removeChannel(const IChannelSP& channel) override;
  
      virtual uint32_t getNumberChannels() const override;
  
      virtual const SmartPointerVector<IChannelSP>& getChannels() const override;
  
      //
      // ICloneable
      //
  
      virtual IAnimationSP clone() const override;
  
      //
      // IDestroyable
      //
  
      virtual void destroy() override;
  
  };
  
  } /* namespace vkts */
  
  #endif /* VKTS_ANIMATION_HPP_ */
  