NEURON
grglyph.h
Go to the documentation of this file.
1 #ifndef grglyph_h
2 #define grglyph_h
3 
4 #include <InterViews/transformer.h>
5 #include "graph.h"
6 
7 struct Object;
8 class GrGlyph;
9 
10 class GrGlyphItem : public GraphItem {
11 public:
12  GrGlyphItem(Glyph* g, float scalex, float scaley, float rot);
13  virtual ~GrGlyphItem();
14  virtual void allocate(Canvas*, const Allocation&, Extension&);
15  virtual void draw(Canvas*, const Allocation&) const;
16  virtual void print(Printer*, const Allocation&) const;
17 private:
19 };
20 
21 class GrGlyph : public Glyph {
22 public:
23  GrGlyph(Object*);
24  virtual ~GrGlyph();
25 
26  virtual void request(Requisition&) const;
27  virtual void draw(Canvas*, const Allocation&) const;
28 
29  void new_path();
30  void move_to(Coord, Coord);
31  void line_to(Coord, Coord);
32  void control_point(Coord, Coord);
33  void curve_to(Coord, Coord, Coord, Coord, Coord, Coord);
34  void close_path();
35  void circle(Coord x, Coord y, Coord r);
36  void stroke(int color, int brush);
37  void fill(int color);
38  void erase();
39  void gif(const char*);
40 
41  Object** temp_objvar();
42 private:
46  Object* obj_;
48 };
49 
50 #endif
virtual void draw(Canvas *, const Allocation &) const
virtual void print(Printer *, const Allocation &) const
DataVec * x_
Definition: grglyph.h:44
#define g
Definition: passive0.cpp:23
#define Glyph
Definition: _defines.h:132
#define Coord
Definition: _defines.h:19
Definition: graph.h:163
DataVec * type_
Definition: grglyph.h:43
#define color
Definition: rbtqueue.cpp:50
#define Printer
Definition: _defines.h:211
Transformer t_
Definition: grglyph.h:18
#define Canvas
Definition: _defines.h:65
GrGlyphItem(Glyph *g, float scalex, float scaley, float rot)
#define Transformer
Definition: _defines.h:316
Definition: hocdec.h:226
static Object ** temp_objvar(const char *name, void *v, Object **obp)
Definition: kschan.cpp:328
Glyph * gif_
Definition: grglyph.h:47
virtual void erase(Scene *, GlyphIndex, int erase_type)
DataVec * y_
Definition: grglyph.h:45
virtual void allocate(Canvas *, const Allocation &, Extension &)
virtual ~GrGlyphItem()