Re: Channel and Draw Callbacks

New Message Reply Date view Thread view Subject view Author view

Luc Leblanc (leblanc++at++AdacelCanada.com)
Tue, 22 Jun 1999 17:01:33 -0400


Kevin Kronmiller wrote:

> Hi,
>
> I have another question for the group.
>
> Overview:
>
> I have two pfChans in the same window. Each pfChan (not a channel group) has a different view into the same pfScene. Many of the pfNodes in the pfScene have draw callbacks that render a text label identifying the pfNode.
>
> Now to my question.
>
> I need the text identifying each pfNode to be different depending on which pfChan the scene is viewed from. I know how to pass use pass through data but don't know how to tell a pfNode which pfChan it is viewed from. How can I do this?
>
> For example:
>
> pfNode #1 in pfChan #1 should have a label "ABC"
>
> and
>
> pfNode #1 in pfChan #2 should have a label "XYZ"
>
> Thanks in advance for your help

Use to different labels, the first one being "ABC" and the second one being "XYZ". Then configure the "ABC" label to only be drawn in the first channel and the "XYZ" label to only be drawn in the second one. To configure it, use the
pfNodeTravMask and the pfChanTravMask functions (Refer to the man page for more details about how these functions can be used).

--
Luc Leblanc
Intermediate Software Developer
Adacel Technologies Canada Ltee
EMail: leblanc++at++adacelcanada.com
Tel: 450-672-1114 #270
Fax: 450-672-4434

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Jun 22 1999 - 13:58:31 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.