Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

axisbox.h

Go to the documentation of this file.
00001 /*
00002  *  Part of rvglue source code,
00003  *  Copyright (C) 2000 Alexander Kroeller (alilein@gmx.de)
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 /*
00021  * $Id$
00022  *
00023  * $Log$
00024  */
00025 #ifndef __AXIS_BOX_H
00026 #define __AXIS_BOX_H
00027 
00028 #include "rvbasetypes.h"
00029 #include "vector.h"
00030 
00032 
00038 class AxisBox
00039 {
00040 public:
00044   AxisBox();
00045 
00049   bool is_valid(void);
00050 
00051   void fit_into(Vector &);
00052 
00053   void be_empty(void);
00054 
00058   void add_safety(void);
00059 
00060   rvfloat  xlo, xhi;
00061   rvfloat  ylo, yhi;
00062   rvfloat  zlo, zhi;
00063 };
00064 
00065 #define AXISBOX_SIZE sizeof(AxisBox)
00066 #define AXISBOX_STORAGE_SIZE_OKAY (sizeof(AxisBox) == 6*sizeof(rvfloat))
00067 
00068 
00069 #endif

Generated at Mon Jul 2 16:54:57 2001 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000