occt: master 2108d9a2
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
bugmaster | master | 2019-07-03 09:37:36 | master e8dec5e1 | |
Affected Issues | 0028954: Visualization - implement interactive object AIS_ViewCube for camera manipulations | |||
Changeset | 0028954: Visualization - implement interactive object for camera manipulations Added new class AIS_ViewCube implementing interactive cube displaying orientation of the main axes of the model space in the viewer. Each side, edge, or corner of the cube corresponds to particular orientation of the camera, and the class provides methods to move the camera to corresponding position (with animation if needed). AIS_InteractiveContext::LastActiveView(), added new property returning the last View processed by MoveTo() event. AIS_InteractiveContext::BoundingBoxOfSelection(), added method returning bounding box of selected objects. SelectMgr_EntityOwner::HandleMouseClick(), added new callback for handling mouse clicks by owner itself without automatic highlighting and clearing previous selection. Called by AIS_InteractiveContext::Select() method. AIS_ViewController::ViewAnimation() has been extened with camera animation propery, which can be bound to AIS_ViewCube for smooth embedding into event loop. Prs3d_ToolDisk has been extended with parameters specifying angle range. Graphic3d_MaterialAspect now initializes all coefficients to 1.0 when Graphic3d_NOM_UserDefined is passed to class constructor. AIS_AnimationCamera::update() now sets the end camera position if animation duration is 0. Prs3d_DatumAspect, added missing setters. New command vviewcube has been added. |
|||
mod - src/AIS/AIS_AnimationCamera.cxx | Diff File | |||
mod - src/AIS/AIS_AnimationCamera.hxx | Diff File | |||
mod - src/AIS/AIS_InteractiveContext.cxx | Diff File | |||
mod - src/AIS/AIS_InteractiveContext.hxx | Diff File | |||
mod - src/AIS/AIS_InteractiveContext_1.cxx | Diff File | |||
mod - src/AIS/AIS_ViewController.cxx | Diff File | |||
mod - src/AIS/AIS_ViewController.hxx | Diff File | |||
add - src/AIS/AIS_ViewCube.cxx | Diff File | |||
add - src/AIS/AIS_ViewCube.hxx | Diff File | |||
mod - src/AIS/FILES | Diff File | |||
mod - src/Graphic3d/Graphic3d_MaterialAspect.cxx | Diff File | |||
mod - src/Prs3d/Prs3d_DatumAspect.hxx | Diff File | |||
mod - src/Prs3d/Prs3d_ToolDisk.cxx | Diff File | |||
mod - src/Prs3d/Prs3d_ToolDisk.hxx | Diff File | |||
mod - src/SelectMgr/SelectMgr_EntityOwner.hxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_EventManager.cxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_EventManager.hxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx | Diff File | |||
mod - tests/v3d/grids.list | Diff File | |||
add - tests/v3d/viewcube/default | Diff File | |||
add - tests/v3d/viewcube/style | Diff File | |||
add - tests/v3d/viewcube/view | Diff File |