Skip to content

feat(viz): predefined camera position adaptor

Description

Create a new camera interactor. Which place the camera to pre-defined (through xml) positions. Smooth transition is computed between each position, cycling through them is also possible.

Closes #1112 (closed)

How to test it?

Replace a trackballInteractor by the SPredefinedCamera like this ( option can be changed to test).

        <service uid="fixedInteractorAdp" type="sight::module::viz::scene3d::adaptor::SPredefinedCamera">
            <config priority="200" mouseRotation="true" />
            <positions>
                <position name="pos1" rx="-30.0" />
                <position name="pos2" rx="-30.0" ry="90.0" />
                <position name="pos3" rx="-30.0" ry="-90.0"/>
            </positions>
        </service>
Edited by Marc SCHWEITZER

Merge request reports