MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #32183 All Revisions ] Back to Issue ]
Summary 0032183: Visualization - implement AIS_LightSource::ProcessDragging() for rotating directional light
Revision 2021-03-01 10:23 by kgv
Description It is proposed implementing AIS_LightSource::ProcessDragging() interface for rotating directional light source.

This could be done like this:
- Add sphere sensitive for a light (0032182).
- Dynamically draw a point (cross of two lines on sphere) via HilightWithColor() method implemented for a custom Owner object. Implement IsForcedHilight() to ensure cross is updated on mouse move.
- Calculate AIS_LightSource::ProcessDragging() interface to apply rotation as a delta between points on a sensitive sphere.
Revision 2021-03-01 10:22 by kgv
Description It is proposed implementing AIS_LightSource::ProcessDragging() interface for rotating directional light source.

This could be done like this:
- Add sphere sensitive for a light.
- Dynamically draw a point (cross of two lines on sphere) via HilightWithColor() method implemented for a custom Owner object. Implement IsForcedHilight() to ensure cross is updated on mouse move.
- Calculate AIS_LightSource::ProcessDragging() interface to apply rotation as a delta between points on a sensitive sphere.


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker