Re: Deriving new C++ classes from pfUpdatable?

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Thu, 11 Jan 96 17:33:01 -0800


> Would it be "possible" to derive a new class from pfUpdable and have access
> to this mechanism? If so, I would be interested to know how, even if it
> requires having to set up tricky things in the derived class.

As noted in the C++ section of the programmers guide, 2.0 does not
let you add new frame-accurate data fields when you subclass from
any pfUpdatable class, e.g. pfNode. In fact, the data fields that
you do add, only exist in the APP process' copy. In the CULL or
DRAW processes, the corresponding node is actually an instance of
the parent class(!), so you need to index back to the APP copy to
look at your data subclassed fields. Yes, this really sucks.
The C++ stuff will get a major overhaul in the next major release
to fix this sort of thing.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/933-1151


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:15 PDT

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