Re: pfHighlight

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.asd.sgi.com)
Sat, 7 Dec 1996 12:27:50 -0800


+>---- On Dec 2, 6:27pm, Ran Yakir wrote:
> Subject: Re: pfHighlight
->

->pfdLoadFile() returns a pfNode*, which is a higher level object than a
->pfGeoSet. If you want to get down to geoset level and change geoset attributes,
->you'll have to traverse the graph returned from pfdLoadFile(), all the way down
->to the geosets. Right now you are trying to call pfGSetHlight() with a pfGroup
->or a pfGeode as an argument. I suppose that performer doesn't like it.
->

Exactly. However, for exactly this purpose we have the pfuTravNodeHlight()
traversal that will traverse a subtree under the provided node and place
a provided hlight structure (or NULL to turn off highlighting) on all of the
pfGeoSets in the subtree. This is what perfly uses to highlight the scene
graph when you select pieces of it thorugh the hierarchy display (h-key).

As a final note, be sure to allocate your highlight structures from the
shared arena (pfGetSharedArena()) if you want to be able to run MP.

Good Luck!
src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:06 PDT

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