LCOV - code coverage report
Current view: top level - eq/server - compoundUpdateInputVisitor.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 1 1 100.0 %
Date: 2014-06-18 Functions: 1 2 50.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2007-2011, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2011, Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *
       5             :  * This library is free software; you can redistribute it and/or modify it under
       6             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       7             :  * by the Free Software Foundation.
       8             :  *  
       9             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      10             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      11             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      12             :  * details.
      13             :  * 
      14             :  * You should have received a copy of the GNU Lesser General Public License
      15             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      16             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      17             :  */
      18             : 
      19             : #ifndef EQSERVER_COMPOUNDUPDATEINPUTVISITOR_H
      20             : #define EQSERVER_COMPOUNDUPDATEINPUTVISITOR_H
      21             : 
      22             : #include "compoundVisitor.h" // base class
      23             : #include "compound.h"        // nested type
      24             : 
      25             : namespace eq
      26             : {
      27             : namespace server
      28             : {
      29             :     /** The compound visitor updating the inherit input of a compound tree. */
      30             :     class CompoundUpdateInputVisitor : public CompoundVisitor
      31             :     {
      32             :     public:
      33             :         CompoundUpdateInputVisitor( const Compound::FrameMap& outputFrames,
      34             :                                    const Compound::TileQueueMap& outputQueues );
      35          72 :         virtual ~CompoundUpdateInputVisitor() {}
      36             : 
      37             :         /** Visit all compounds. */
      38             :         virtual VisitorResult visit( Compound* compound );
      39             : 
      40             :     private:
      41             :         const Compound::FrameMap& _outputFrames;
      42             :         const Compound::TileQueueMap& _outputQueues;
      43             : 
      44             :         void _updateQueues( const Compound* compound );
      45             :         void _updateFrames( Compound* compound );
      46             :         void _updateZoom( const Compound* compound, Frame* frame, 
      47             :                           const Frame* outputFrame );
      48             :     };
      49             : }
      50             : }
      51             : #endif // EQSERVER_CONSTCOMPOUNDVISITOR_H

Generated by: LCOV version 1.10