How to change view orientation using AIS_ViewCube?

I am using the V3d_View::SetProj to change view orientation but i dont't know how to use AIS_ViewCube to do it.Should i use this method?
aViewCube->HandleClick (aDetectedOwner);

Kirill Gavrilov's picture

AIS_ViewCube is an interactive object, it is supposed to handle clicks on its own as long as you pass mouse events to AIS_ViewController or to AIS_InteractiveContext (MoveTo() + SelectDetected() in case of a legacy application). It is preferred to set camera animation object from AIS_ViewController to AIS_ViewCube for smooth animation.