Re: subclassing pfNode types and cloning

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Thu, 8 May 1997 10:26:07 -0400


On May 7, 9:12am, Jason Williams wrote:
> Subject: subclassing pfNode types and cloning
> Hi,
>
> I have subclassed the pfDCS node type and I am trying to clone instances
of
> these new class types. On the second attempt to clone such a node, my
process
> segment faults with the call stack stripped. It dies on my overriden
nb_clone
> member function for the new class. This is the clone function for the new
> class OBJM_EntityNode:
>
>-- End of excerpt from Jason Williams

I believe that by trying to override those nb_funcs* you are going through
uncharted territories. To do it correctly would require more knowledge on
Performer internal ways of managing nodes and this is not documented (ie
not encouraged). Because of this Performer's classes can be derived but there
are some limitations on what you can change/override on them. I understand
this comes from the added complexity of dealing with nodes that are
instanced in multiple processes.

-- 
Nicolas Gauvin              CAE Electronics Ltd., 8585 Cote De Liesse
3D Graphics Software        Saint-Laurent, Quebec, Canada, H4L-4X4
nicolas++at++cae.ca              Tel: (514) 341-2000 x2275, Fax: (514) 340-5496 
=======================================================================
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:55:12 PDT

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