| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 **********************************************************************/ 00017 00018 #ifndef VRS_FARPLANECULLINGATTRIBUTE_H 00019 #define VRS_FARPLANECULLINGATTRIBUTE_H 00020 00021 #include <vrs/cullingattribute.h> 00022 00023 namespace VRS { 00024 00028 class VRS_CORE_API FarPlaneCullingAttribute : public CullingAttribute { 00029 public: 00030 FarPlaneCullingAttribute (double maxEyeDistance = 0.); 00031 00032 virtual ViewInfo::CullingPos cull(const Bounds& bounds, const SO<ViewInfo const>& viewInfo) const; 00033 00034 VRS_TYPEINFO(FarPlaneCullingAttribute, CullingAttribute); 00035 VRS_SERIALIZABLE(FarPlaneCullingAttribute); 00036 00037 private: 00038 double m_maxEyeDistance; 00039 }; 00040 00041 } // namespace VRS 00042 00043 #endif // VRS_FARPLANECULLINGATTRIBUTE_H