LCOV - code coverage report
Current view: top level - seq/detail - channel.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 1 4 25.0 %
Date: 2017-12-16 05:07:20 Functions: 1 4 25.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2011-2015, Stefan Eilemann <eile@eyescale.ch>
       3             :  *
       4             :  * This library is free software; you can redistribute it and/or modify it under
       5             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       6             :  * by the Free Software Foundation.
       7             :  *
       8             :  * This library is distributed in the hope that it will be useful, but WITHOUT
       9             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      10             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      11             :  * details.
      12             :  *
      13             :  * You should have received a copy of the GNU Lesser General Public License
      14             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      15             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      16             :  */
      17             : 
      18             : #ifndef EQSEQUEL_DETAIL_CHANNEL_H
      19             : #define EQSEQUEL_DETAIL_CHANNEL_H
      20             : 
      21             : #include <eq/channel.h> // base class
      22             : #include <seq/types.h>
      23             : 
      24             : namespace seq
      25             : {
      26             : namespace detail
      27             : {
      28             : class Channel : public eq::Channel
      29             : {
      30             : public:
      31             :     explicit Channel(eq::Window* parent);
      32             : 
      33             :     /** @name Data Access. */
      34             :     //@{
      35             :     Pipe* getPipe();
      36             :     const View* getView() const;
      37             :     const ViewData* getViewData() const;
      38             :     seq::Renderer* getRenderer();
      39             :     detail::Renderer* getRendererImpl();
      40             : 
      41           0 :     const Matrix4f& getViewMatrix() const { return getHeadTransform(); }
      42             :     const Matrix4f& getModelMatrix() const;
      43             : 
      44             :     virtual bool useOrtho() const;
      45           0 :     const RenderContext& getRenderContext() const { return getContext(); }
      46             :     //@}
      47             : 
      48             :     /** @name Operations. */
      49             :     //@{
      50           0 :     void applyRenderContext() { eq::Channel::frameDraw(uint128_t()); }
      51             :     void applyModelMatrix();
      52             : 
      53           3 :     void clear() { return eq::Channel::frameClear(uint128_t()); }
      54             :     //@}
      55             : 
      56             : protected:
      57             :     virtual ~Channel();
      58             : 
      59             :     virtual void frameStart(const uint128_t& frameID,
      60             :                             const uint32_t frameNumber);
      61             :     virtual void frameFinish(const uint128_t& frameID,
      62             :                              const uint32_t frameNumber);
      63             :     virtual void frameClear(const uint128_t& frameID);
      64             :     virtual void frameDraw(const uint128_t& frameID);
      65             :     virtual void frameViewFinish(const uint128_t& frameID);
      66             : 
      67             : private:
      68             : };
      69             : }
      70             : }
      71             : 
      72             : #endif // EQSEQUEL_DETAIL_CHANNEL_H

Generated by: LCOV version 1.11