Discussion and Support for the OptiTrack, SmartNav and TrackIR brands by NaturalPoint

creating a callback method in C++

by asuteau » Tue Apr 27, 2010 2:08 am


In fact I have on more question about creating callbacks for OptiTrack cameras. In my project, I have 2 main classes :
  • the first one handles a list of cameras and inherits from INPCameraCollectionEvents.
  • the second one handles a single camera from the list and inherits from INPCameraEvents.

It works very fine in that way.

Now, I'd like to define just one class (handling both a single camera and a list of cameras). So my new class inherits both from INPCameraCollectionEvents and INPCameraEvents.
But whereas collection events work fine, camera events don't work at all.
Do you have any idea about how to create a class which inherits both from INPCameraCollectionEvents and INPCameraEvents classes ?

Thanks for your answer.

Best regards,
Posts: 20
Joined: Tue Jan 05, 2010 8:01 am
Location: Angers, FRANCE


Return to OptiTrack SDK