mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
154 lines
4.4 KiB
Plaintext
Executable File
154 lines
4.4 KiB
Plaintext
Executable File
-- Created on: 1991-11-25
|
||
-- Created by: NW,JPB,CAL
|
||
-- Copyright (c) 1991-1999 Matra Datavision
|
||
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
||
--
|
||
-- The content of this file is subject to the Open CASCADE Technology Public
|
||
-- License Version 6.5 (the "License"). You may not use the content of this file
|
||
-- except in compliance with the License. Please obtain a copy of the License
|
||
-- at http://www.opencascade.org and read it completely before using this file.
|
||
--
|
||
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
||
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
||
--
|
||
-- The Original Code and all software distributed under the License is
|
||
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
||
-- Initial Developer hereby disclaims all such warranties, including without
|
||
-- limitation, any warranties of merchantability, fitness for a particular
|
||
-- purpose or non-infringement. Please see the License for the specific terms
|
||
-- and conditions governing the rights and limitations under the License.
|
||
|
||
|
||
class ContextPick from Visual3d
|
||
|
||
---Version:
|
||
|
||
---Purpose: This class allows the creation and update of
|
||
-- a pick context for one view of the viewer.
|
||
-- A context allows the control of different parameters
|
||
-- before the activation of a pick.
|
||
--
|
||
-- * the pick aperture.
|
||
-- * the depth of pick, the number of sub-structures selected.
|
||
-- * the order of picking, the possibility to traverse
|
||
-- the pick structures starting from the root
|
||
-- or the leaves.
|
||
|
||
---Keywords: Pick, Context, Aperture, Depth, Order, Structure
|
||
|
||
---Warning:
|
||
---References:
|
||
|
||
uses
|
||
|
||
TypeOfOrder from Visual3d
|
||
|
||
raises
|
||
|
||
ContextPickDefinitionError from Visual3d
|
||
|
||
is
|
||
|
||
Create
|
||
returns ContextPick from Visual3d;
|
||
---Level: Public
|
||
---Purpose: Creates a context from default values
|
||
--
|
||
-- Aperture : 4.0
|
||
-- Depth : 10
|
||
-- Order : TOO_TOPFIRST
|
||
|
||
Create ( Aperture : Real from Standard;
|
||
Depth : Integer from Standard;
|
||
Order : TypeOfOrder from Visual3d )
|
||
returns ContextPick from Visual3d
|
||
---Level: Public
|
||
---Purpose: Creates a context with the values defined
|
||
-- Warning: Raises ContextPickDefinitionError if <Depth> or
|
||
-- <Aperture> is a negative value.
|
||
raises ContextPickDefinitionError;
|
||
|
||
-----------------------------------------------------
|
||
-- Category: Methods to modifies the class definition
|
||
-----------------------------------------------------
|
||
|
||
SetAperture ( me : in out;
|
||
Aperture : Real from Standard )
|
||
---Level: Public
|
||
---Purpose: Modifies the size of the pick window.
|
||
-- Category: Methods to modifies the class definition
|
||
-- Warning: Raises ContextPickDefinitionError if <Aperture> is
|
||
-- a negative value.
|
||
raises ContextPickDefinitionError is static;
|
||
|
||
SetDepth ( me : in out;
|
||
Depth : Integer from Standard )
|
||
---Level: Public
|
||
---Purpose: Modifies the pick depth a priori.
|
||
-- Category: Methods to modifies the class definition
|
||
-- Warning: Raises ContextPickDefinitionError if <Depth> is
|
||
-- a negative value.
|
||
raises ContextPickDefinitionError is static;
|
||
|
||
SetOrder ( me : in out;
|
||
Order : TypeOfOrder from Visual3d ) is static;
|
||
---Level: Public
|
||
---Purpose: Modifies the order of picking.
|
||
--
|
||
-- TypeOfOrder : TOO_TOPFIRST
|
||
-- TOO_BOTTOMFIRST
|
||
--
|
||
---Category: Methods to modifies the class definition
|
||
|
||
----------------------------
|
||
-- Category: Inquire methods
|
||
----------------------------
|
||
|
||
Aperture ( me )
|
||
returns Real from Standard is static;
|
||
---Level: Public
|
||
---Purpose: Returns the size of the pick window <me>.
|
||
---Category: Inquire methods
|
||
|
||
Depth ( me )
|
||
returns Integer from Standard is static;
|
||
---Level: Public
|
||
---Purpose: Returns the effective pick depth of <me>.
|
||
---Category: Inquire methods
|
||
|
||
Order ( me )
|
||
returns TypeOfOrder from Visual3d is static;
|
||
---Level: Public
|
||
---Purpose: Returns the order of picking of <me>.
|
||
--
|
||
-- TypeOfOrder : TOO_TOPFIRST
|
||
-- TOO_BOTTOMFIRST
|
||
--
|
||
---Category: Inquire methods
|
||
|
||
--
|
||
|
||
fields
|
||
|
||
--
|
||
-- Class : Visual3d_ContextPick
|
||
--
|
||
-- Purpose : Declaration of variables specific to
|
||
-- pick contexts
|
||
--
|
||
-- Reminders : A pick context is defined by:
|
||
-- - the pick aperture
|
||
-- - the depth demanded
|
||
-- - the order of traversing the structure
|
||
|
||
-- aperture of pick
|
||
MyAperture : Real from Standard;
|
||
|
||
-- depth of pick
|
||
MyDepth : Integer from Standard;
|
||
|
||
-- order of traversing pick structures
|
||
MyOrder : TypeOfOrder from Visual3d;
|
||
|
||
end ContextPick;
|