moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / layer_bitmap.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file layer_bitmap.h
3 **      \brief Template Header
4 **
5 **      $Id: layer_bitmap.h,v 1.2 2005/01/24 03:08:18 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_LAYER_BITMAP_H
25 #define __SYNFIG_LAYER_BITMAP_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "layer_composite.h"
30 #include "surface.h"
31
32 /* === M A C R O S ========================================================= */
33
34 /* === T Y P E D E F S ===================================================== */
35
36 /* === C L A S S E S & S T R U C T S ======================================= */
37
38 namespace synfig {
39
40 /*!     \class Layer_Bitmap
41 **      \todo writeme
42 */
43 class Layer_Bitmap : public Layer_Composite, public Layer_NoDeform
44 {
45         const Color& filter(const Color& c)const;
46 public:
47         typedef etl::handle<Layer_Bitmap> Handle;       
48
49         Point tl;
50         Point br;
51         int c;
52         mutable Surface surface;
53         
54         Real gamma_adjust;
55         
56         Layer_Bitmap();
57         
58         virtual bool set_param(const String & param, ValueBase value);
59
60         virtual ValueBase get_param(const String & param)const;
61
62         virtual Color get_color(Context context, const Point &pos)const;
63         
64         virtual Vocab get_param_vocab()const;
65
66         virtual Rect get_bounding_rect()const;
67
68         virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &rend_desc, ProgressCallback *callback)const;
69
70         virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;
71 }; // END of class Layer_Bitmap
72
73 }; // END of namespace synfig
74
75 /* === E N D =============================================================== */
76
77 #endif