| 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_CULLINGATTRIBUTE_H 00019 #define VRS_CULLINGATTRIBUTE_H 00020 00021 #include <vrs/polyattribute.h> 00022 #include <vrs/polyattributepainter.h> 00023 #include <vrs/viewinfo.h> 00024 00025 namespace VRS { 00026 class Bounds; 00027 00031 class VRS_CORE_API CullingAttribute : public PolyAttribute { 00032 public: 00035 virtual ViewInfo::CullingPos cull(const Bounds& bounds, const SO<ViewInfo const>& viewInfo) const = 0; 00037 ViewInfo::CullingPos cull(const Vector& pos, const SO<ViewInfo const>& viewInfo) const; 00039 virtual ID category() const; 00040 00041 VRS_TYPEINFO(CullingAttribute, PolyAttribute); 00042 }; 00043 00044 00045 00046 } // namespace VRS 00047 00048 #endif // VRS_CULLINGATTRIBUTE_H