Problems subclassing from SoBase

Problems subclassing from SoBase

Post by Michael A. Log » Wed, 20 Sep 1995 04:00:00

 I'm sure this is just a simple problem, but I'm feeling particularly
 stupid today. 8(

 I have a class that I'm subclassing from SoBase, like

        class NvProfile : public SoBase {

 and I define the 2 pure virtuals in SoBase:

    virtual SoType      getTypeId() {return SoBase::getClassTypeId();}
    virtual SbBool      readInstance(SoInput*) {return 1;}

 I know getTypeId() isn't correct, but I don't use it.  Nevertheless
 I STILL get a compile error when I create an object of type NvProfile:

"rBSsurfaceKit.C", line 1060: error(3403): object of abstract class type is
          not allowed
                    NvProfile *nvpro = new NvProfile (bsurf,curve);

  Any clues?   This used to work for me in OpenInv 2.0, but not in 2.0.1
  but I didn't have these virtuals even defined in my subclass when
  I was using 2.0.  

 Any help would be greatly appreciated.  Thanks,


 +                                                                        +
 + Michael Logan                        NASA/Ames Research Center         +
 + MCAT, Inc.                           MS 227-2                          +


1. Open Inventor subclassing problem

I have an Open Inventor Question:

I have defined my own viewer that is subclassed from an SoXtExaminerViewer.
In this viewer I override the buildPopupMenu function so I can have my
own popup--No problem.

Now, I want to add an additional view button (collection of buttons on
right side of viewer) and am attempting to override the createViewerButton
virtually function to do this.  I am having no success even though I am
doing everything the same way as I did to override the buildPopupMenu
function.  Basically, my routine never gets called.

Anyone have any ideas??


2. Interactive Tools in Modeler - Still no option in 6.1 ?

3. Inventor Node Subclassing Problem

4. Antone have some 3D Stereo samples?

5. Inventor SoCustomNode subclassing problem


7. Problem with window subclassing...

8. liquid pour

9. Attaching user data to SoBase/SoNode ?

10. SoBase::setName() question

11. Inventor SoShape subclassing : details needed

12. Inventor Subclassing, What is wrong ???

13. Subclassing VkPrefItem for XmScrolledList