Equalizer  1.2.1
include/eq/client/view.h
00001 
00002 /* Copyright (c) 2008-2011, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQ_VIEW_H
00019 #define EQ_VIEW_H
00020 
00021 #include <eq/client/api.h>
00022 #include <eq/client/types.h>          // member
00023 #include <eq/client/visitorResult.h>  // enum
00024 
00025 #include <eq/fabric/view.h>           // base class
00026 #include <eq/fabric/viewport.h>       // member
00027 
00028 namespace eq
00029 {
00040     class View : public fabric::View< Layout, View, Observer >
00041     {
00042     public:
00044         EQ_API View( Layout* parent );
00045 
00047         EQ_API virtual ~View();
00048 
00055         Pipe* getPipe() { return _pipe; }
00056 
00061         EQ_API const Pipe* getPipe() const { return _pipe; }
00062 
00064         EQ_API Config* getConfig();
00065 
00067         EQ_API const Config* getConfig() const;
00068 
00070         EQ_API ServerPtr getServer();
00072 
00086         EQ_API virtual bool handleEvent( const Event& event );
00087 
00089         EQ_API void freezeLoadBalancing( const bool onOff );
00091 
00092     protected:
00094         EQ_API virtual void deserialize( co::DataIStream& is, 
00095                                          const uint64_t dirtyBits );
00096 
00098         const Frustum& getBaseFrustum() const { return _baseFrustum; }
00099 
00101         EQ_API virtual void detach();
00102 
00103     private:
00104         Pipe* _pipe; // for render-client views
00105         friend class Pipe;
00106 
00108         Frustum _baseFrustum;
00109 
00110         struct Private;
00111         Private* _private; // placeholder for binary-compatible changes
00112     };
00113 }
00114 
00115 #endif //EQ_VIEW_H
Generated on Fri Jun 8 2012 15:44:33 for Equalizer 1.2.1 by  doxygen 1.8.0