PtRaw and drawing

Hey all,

I need a bit of advice here as to where to proceed. I’m not yet in need of
specifics, just in general.

The need:

I need to create a static picture (manually plotting pixels). The data may
need to be changed, but not very often (on user command).

I need a variety of lines/text and overlay objects to work on top of that
picture…

I’ve read a vit about PtRaw and all the others. Any advice on where to
start with all this. I don’t want to start something one way, then have to
switch strategies. I’m thinking of using the PtPixel widget to draw on a
PtRaw parent. I avoid touching PtRaw onDraw function this way right?

Thanx all,


Yamin

How many of these pixel thingies do you need? A widget (i.e. PtPixel) has a
fair amount of overhead to it. If you need to plot thousands of these you
may be better off just drawing pixels with PgDrawPixel() or
PgDrawPixelArray() or Arraymx().

There are other draw primitives (i.e. PgDraw*() functions) that you can also
use.

To me, a widget is called for when you need to interface with an object but
not for just plotting points on a screen.

You’ll have to decide.

“Yamin” <y2bismil@uwaterloo.ca> wrote in message
news:afg09j$nu2$1@inn.qnx.com

Hey all,

I need a bit of advice here as to where to proceed. I’m not yet in need
of
specifics, just in general.

The need:

I need to create a static picture (manually plotting pixels). The data
may
need to be changed, but not very often (on user command).

I need a variety of lines/text and overlay objects to work on top of that
picture…

I’ve read a vit about PtRaw and all the others. Any advice on where to
start with all this. I don’t want to start something one way, then have
to
switch strategies. I’m thinking of using the PtPixel widget to draw on a
PtRaw parent. I avoid touching PtRaw onDraw function this way right?

Thanx all,


Yamin

“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:afg4h6$qk8$1@inn.qnx.com

How many of these pixel thingies do you need? A widget (i.e. PtPixel) has
a
fair amount of overhead to it. If you need to plot thousands of these you
may be better off just drawing pixels with PgDrawPixel() or
PgDrawPixelArray() or Arraymx().

There are other draw primitives (i.e. PgDraw*() functions) that you can
also
use.

To me, a widget is called for when you need to interface with an object
but
not for just plotting points on a screen.

You’ll have to decide.

“Yamin” <> y2bismil@uwaterloo.ca> > wrote in message
news:afg09j$nu2$> 1@inn.qnx.com> …
Hey all,

I need a bit of advice here as to where to proceed. I’m not yet in need
of
specifics, just in general.

The need:

I need to create a static picture (manually plotting pixels). The data
may
need to be changed, but not very often (on user command).

I need a variety of lines/text and overlay objects to work on top of
that
picture…

I’ve read a vit about PtRaw and all the others. Any advice on where to
start with all this. I don’t want to start something one way, then have
to
switch strategies. I’m thinking of using the PtPixel widget to draw on
a
PtRaw parent. I avoid touching PtRaw onDraw function this way right?

Thanx all,


Yamin

\

Well, I think I found what I’m looking for. PtPixel does the job extremely
well. You can set an array of points to one PtPixel, and it will draw them
all. It maintains redraws…

Yamin