The cameraChanged event fires immediately after a change in the camera has been made. Camera changes happen when user changes the view by rotating, zooming in or out, panning, changing from parallel to perspective, or when the extents of the viewport changes.
You can add or remove event handlers from the CameraEvent.
-------- Import ---------
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler function definition ---------
|
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler class definition ---------
|
--------- Required include files. ---------
--------- Event handler class definition and global declaration. ---------
class MyCameraChangedEventHandler : public adsk::core::CameraEventHandler { public: void notify(const Ptr<CameraEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyCameraChangedEventHandler event handler."); } } _cameraChanged; --------- Connect the handler to the event. ---------
|