Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Draw.hpp

Go to the documentation of this file.
00001 /* ImLib3D
00002  * Copyright (c) 2001, ULP-IPB Strasbourg.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or (at
00007  * your option) any later version.
00008  * 
00009  * This program 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.  See the GNU
00012  * General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  */
00021 #ifndef _Draw_hpp
00022 #define _Draw_hpp
00023 #include<ImLib3D/Geometry3D.hpp>
00024 #include<ImLib3D/ImageProcessor.hpp>
00025 
00027 template <class Im3DValue>
00028 class Pen
00029 {
00030     Im3DValue color;
00031     bool antialias;
00032     float thickness; 
00033 public:
00034     const Im3DValue& Color() const { return color;}
00035     bool Antialias() const { return antialias;}
00036 
00037     Pen(const Im3DValue &_color, bool _antialias=false,float _thickness = 1) : 
00038         color(_color), 
00039         antialias(_antialias),
00040         thickness(_thickness)
00041     {
00042         ;
00043     }
00044 };
00045 
00046 
00047 
00048 namespace IP3D
00049 {
00051     template <class ImageType>
00052     void DrawSegment3D(const ImageType& src, const Segment3D& segment , const Pen<typename ImageType::value_type> &pen,ImageType& res);
00053 };
00054 
00055 #include<ImLib3D/Draw.hxx>
00056 
00057 #endif //_Draw_hpp

Generated on Fri Jun 17 13:36:00 2005 for ImLib3D by  doxygen 1.4.2