Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

VrmlRenderContext.h

00001 //
00002 // OpenVRML
00003 //
00004 // Copyright (C) 2000  Christopher K. St. John
00005 // 
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License, or (at your option) any later version.
00010 // 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 // 
00020 
00021 # ifndef VRMLRENDERCONTEXT_H
00022 #   define VRMLRENDERCONTEXT_H
00023 
00024 #   include "common.h"
00025 #   include "bvolume.h"
00026 #   include "VrmlMatrix.h"
00027 
00028 namespace OpenVRML {
00029 
00030     class OPENVRML_SCOPE VrmlRenderContext {
00031         BVolume::Intersection cull_flag;
00032         VrmlMatrix * modelview;
00033         bool draw_bspheres;
00034 
00035     public:
00036         VrmlRenderContext();
00037         VrmlRenderContext(BVolume::Intersection cull_flag,
00038                           VrmlMatrix & modelview);
00039 
00040         // Use compiler-generated copy-ctor, dtor, operator=.
00041 
00042         BVolume::Intersection getCullFlag() const;
00043         void setCullFlag(BVolume::Intersection intersection);
00044         const VrmlMatrix & getMatrix() const;
00045         void setMatrix(VrmlMatrix & modelview);
00046         void setDrawBSpheres(bool f);
00047         bool getDrawBSpheres() const;
00048     };
00049 }
00050 
00051 # endif