Re: pfiTDFXform

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Wed, 10 Jan 1996 00:16:34 -0800


+>---- On Dec 22, 4:39pm, Fernando D. Mato Mira wrote:
> Subject: pfiTDFXform
->From guest++at++holodeck Fri Dec 22 10:35:11 1995
->Date: Fri, 22 Dec 95 16:39 MET
->From: matomira++at++lig.di.epfl.ch (Fernando D. Mato Mira)
->To: info-performer++at++sgi.sgi.com
->Subject: pfiTDFXform
->Reply-To: matomira++at++epfl.ch
->
->Does the final 2.0 release include a pfiTDFXform that separates
->mouse input from model update?
->
->I need two things:
-> - Define my own button mappings
-> - Do my own X event processing

The pfiTDFXform is a convenience class of the general pfiXformer and
does exactly this.
A pfiXformer has a pfiInput for getting and processing events.
You can hook up libpfutil event streams or set your own callbacks:
        pfiInput::setEventStreamCollector()
        pfiInput::setEventStreamProcessor()
The pfiTDFXform fills in the intput handling callback with a special mouse
handling routine, pfiProcessTDFXformerMouseEvents():
The C-API is rather incomplete for doing custom
Xformers so I recommend using the C++ API.
The documentation is also a bit thin but the source code of relevance is
in /usr/share/Performer/src/lib/libpfui/
        pfiInputXform.[Ch] and pfiXformer.[Ch]

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++

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:52:14 PDT

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