1 #include <../../nrnconf.h> 2 #if HAVE_IV // to end of file 5 #include <InterViews/color.h> 6 #include <InterViews/brush.h> 12 class HocMarkP :
public HocMark {
14 HocMarkP(
char,
float,
const Color*,
const Brush*);
51 for (
long i = count() - 1;
i >= 0; --
i) {
61 HocMark* m = search(style, size, c, b);
66 m =
new HocMarkP(style, size, c, b);
70 m =
new HocMark(style, size, c, b);
71 m->append(
new Circle(size/2,
false, c, b));
75 m =
new HocMark(style, size, c, b);
76 m->append(
new Rectangle(size, size,
false, c, b));
80 m =
new HocMark(style, size, c, b);
81 m->append(
new Triangle(size,
false, c, b));
85 m =
new HocMark(style, size, c, b);
86 m->append(
new Circle(size/2,
true, c, b));
90 m =
new HocMark(style, size, c, b);
91 m->append(
new Rectangle(size, size,
true, c, b));
95 m =
new HocMark(style, size, c, b);
96 m->append(
new Triangle(size,
true, c, b));
100 m =
new HocMark(style, size, c, b);
101 m->append(
new Line(0, size, .5, .5, c, b));
105 m =
new HocMark(style, size, c, b);
106 m->append(
new Line(size, 0, .5, .5, c, b));
109 hoc_execerror(
"implemented styles are + o t s O T S | -; waiting on x *", 0);
120 mark_list_->append(m);
131 m =
check(style, size, c, b);
135 for (
long i = mark_list_->count() - 1;
i >= 0; --
i) {
136 most_recent_ = (
HocMark*)mark_list_->component(
i);
137 m =
check(style, size, c, b);
149 most_recent_->style_ == style
150 && most_recent_->size_ == size
151 && most_recent_->c_ == c
152 && most_recent_->b_ == b
163 HocMarkP::HocMarkP(
char style,
float size,
const Color* c,
const Brush* b)
170 HocMarkP::~HocMarkP(){};
static HocMark * instance(char style, float size, const Color *, const Brush *)
void set(Canvas *, const Allocation &)
static HocMark * search(char style, float size, const Color *, const Brush *)
static HocMark * check(char style, float size, const Color *, const Brush *)
virtual void request(Requisition &) const
virtual void draw(Canvas *, const Allocation &) const
void append(Item *ql, Item *q)
static double check(double t, Daspk *ida)
void hoc_execerror(const char *, const char *)
static PolyGlyph * mark_list_
void require_y(const Requirement &)
virtual void unref() const
static HocMark * most_recent_
void require_x(const Requirement &)
static int component(PyHocObject *po)
HocMark(char style, float size, const Color *, const Brush *)
static void add(HocMark *)
virtual void allocate(Canvas *, const Allocation &, Extension &)