R
richard
I'd like to use the seekToPoint function from the following excerpt of
the OpenInventor SoXtViewer header file:
class SoXtViewer : public SoXtRenderArea {
protected:
SbBool seekToPoint(const SbVec2s &mouseLocation);
}
When I try to invoke the function directly in my code, eg:
viewer->seekToPoint(SbVec2s(1,3));
gcc complains that the function is protected. Google searching has
indicated that I need to use a subclass, but I can't seem to find how to
do this.
Thanks!
the OpenInventor SoXtViewer header file:
class SoXtViewer : public SoXtRenderArea {
protected:
SbBool seekToPoint(const SbVec2s &mouseLocation);
}
When I try to invoke the function directly in my code, eg:
viewer->seekToPoint(SbVec2s(1,3));
gcc complains that the function is protected. Google searching has
indicated that I need to use a subclass, but I can't seem to find how to
do this.
Thanks!