Re: cannot overload addChild

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++dingbat.clubfed.sgi.com)
Thu, 12 Feb 1998 20:36:35 -0500


It looks like you have to subclass pfGroup and override...

    virtual int nb_addChild(pfNode *child);

...not...

    int addChild(pfNode *child) {
        return PFGROUP->nb_addChild(child);
    }

...which is not virtual.

Brian

On Feb 12, 8:07pm, Liu Xiaoyan wrote:
> Subject: cannot overload addChild
> Hi, all.
>
> I'm in need of overloading the pfGroup::addChild function for a
> class of my own. What I do is just redefine it. However,it seems
> the pfGroup's is always called. Can Performer class be derived?
>
> Thanks for any help.
>
> Liu Xiaoyan
> ***********************************************************************
> Liu Xiaoyan National Supercomputing Research Center
> Data Visualization Group http://www.nsrc.nus.edu.sg Tel:(65)7709267
> ***********************************************************************
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
>-- End of excerpt from Liu Xiaoyan

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) VisSim Technical Consultant 12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293 Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer

======================================================================= 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:56:47 PDT

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