1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-11 10:44:53 +03:00
occt/src/SelectBasics/SelectBasics_EntityOwner.cdl
duv 0717ddc132 0024837: Visualization - revise design and implementation of connected Interactive Objects
0023422: Selection problems when using SetLocation.
0024756: AIS_ConnectedInteractive does not support nested AIS_ConnectedInteractive
0025103: Visualization - Regression in interactive detection

Each PrsMgr_PresentableObject has list of PrsMgr _PresentableObject called myChildren.
Transformation PrsMgr_PresentableObject applied to its children every time when its own transformation affected. This hierarchy does not propagate to Graphic3d level and below.

PrsMgr_PresentableObject send its combined (according to hierarchy) transform down to Graphic3d_Structure.

AIS_ConnectedInteractive and AIS_MultiplyConnectedInteractive are reused but behavior has been changed.

AIS_ConnectedInteractive now is an instance of object. It reuses geometry of connected object but have own transformation, material, visibility flag etc. This connection propagated down to OpenGl level to OpenGl_Structure. For this task old “connected” mechanism has been reused.

AIS_MultiplyConnectedInteractive represents assembly which doesn’t have its own presentation. Assemblies are able to participate is scene hierarchy and intended to handle a grouped set of instanced objects. It behaves as single object in terms of selection. It applies high level transform to all sub-elements since it located above in the hierarchy.

All AIS_MultiplyConnectedInteractive are able to have child assemblies. Deep copy of object instances performed when one assembly attached to another.

Correction test cases for CR24837

Test cases for issue CR23422

Test cases for issue CR24756

Test cases for issue CR25103

Viewer3d sample fixed.
2014-08-28 17:38:17 +04:00

74 lines
2.4 KiB
Plaintext

-- Created on: 1995-02-09
-- Created by: Mister rmi
-- Copyright (c) 1995-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
deferred class EntityOwner from SelectBasics inherits TShared from MMgt
---Purpose: defines an abstract owner of sensitive primitives.
-- Owners are typically used to establish a connection
-- between sensitive entities and high-level objects (e.g. presentations).
--
-- Priority : It's possible to give a priority:
-- the scale : [0-9] ; the default priority is 0
-- it allows the predominance of one selected object upon
-- another one if many objects are selected at the same time
--
--
-- example : Selection of shapes : the owners are
-- selectable objects (presentations)
--
-- a user can give vertex priority [3], edges [2] faces [1] shape [0],
-- so that if during selection one vertex one edge and one face are
-- simultaneously detected, the vertex will only be hilighted.
uses
Location from TopLoc
is
Initialize (aPriority: Integer = 0) ;
---Level: Public
Set (me:mutable; aPriority :Integer) is static;
---Level: Public
---Purpose: sets the selectable priority of the owner
---C++: inline
Priority(me) returns Integer is static;
---Level: Public
---C++: inline
-- Deferred methods dealing with locations.
-- Used in Select3D package.
HasLocation(me) returns Boolean from Standard is deferred;
SetLocation(me:mutable; aLoc : Location from TopLoc) is deferred;
ResetLocation(me:mutable) is deferred;
Location(me) returns Location from TopLoc is deferred;
fields
mypriority : Integer is protected;
end EntityOwner;