Files
OCCT/src/Visual3d/Visual3d_PickPath.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

139 lines
4.1 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Created on: 1991-11-25
-- Created by: NW,JPB,CAL
-- Copyright (c) 1991-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.
class PickPath from Visual3d
---Version:
---Purpose: PickPath is a vector ( pick_id, struct_id, elem_num ).
-- It's one of the constituents of a PickDescriptor.
-- There are many PickPaths in a PickDescriptor.
-- Each PickPath describes a structure or a sub-structure.
-- The pick_id is set by SetPickId method from Group.
---Keywords: Pick Path, PickId
---Warning:
---References:
uses
Structure from Graphic3d
raises
PickError from Visual3d
is
Create
returns PickPath from Visual3d;
---Level: Public
---Purpose: Creates an undefined PickPath.
Create ( AElemNumber : Integer from Standard;
APickId : Integer from Standard;
AStructure : Structure from Graphic3d)
returns PickPath from Visual3d;
---Level: Public
---Purpose: Creates a PickPath :
-- <AElemNumber> : Element number of the structure picked.
-- <APickId> : Pick identifier of the structure picked.
-- <AStructure> : The picked structure.
---------------------------------------------------
-- Category: Methods to modify the class definition
---------------------------------------------------
SetElementNumber ( me : in out;
AElemNumber : Integer from Standard )
is static;
---Level: Public
---Purpose: Modifies the PickPath <me>.
-- <AElemNumber> : Element number of the structure picked.
---Category: Methods to modify the class definition
SetPickIdentifier ( me : in out;
APickId : Integer from Standard )
is static;
---Level: Public
---Purpose: Modifies the PickPath <me>.
-- <APickId> : Pick identifier of the structure picked.
---Category: Methods to modify the class definition
SetStructIdentifier ( me : in out;
AStructure : Structure from Graphic3d )
is static;
---Level: Public
---Purpose: Modifies the PickPath <me>.
-- <AStructure> : Identifier of the structure picked.
---Category: Methods to modify the class definition
----------------------------
-- Category: Inquire methods
----------------------------
ElementNumber ( me )
returns Integer from Standard
---Level: Public
---Purpose: Returns the element number stocked in the PickPath <me>.
-- Category: Inquire methods
-- Warning: Raises PickError if PickPath is empty (no picked structure).
raises PickError from Visual3d is static;
PickIdentifier ( me )
returns Integer from Standard
---Level: Public
---Purpose: Returns the pick identifier stocked in the PickPath <me>.
-- Category: Inquire methods
-- Warning: Raises PickError if PickPath is empty (no picked structure).
raises PickError from Visual3d is static;
StructIdentifier ( me )
returns Structure from Graphic3d
---Level: Public
---Purpose: Returns the structure stocked in the PickPath <me>.
-- Category: Inquire methods
-- Warning: Raises PickError if PickPath is empty (no picked structure).
raises PickError from Visual3d is static;
--
fields
--
-- Class : Visual3d_PickPath
--
-- Purpose : Declaration of variables specific to the class
-- describing a picking.
--
-- Reminders : A pick is defined by :
-- - a vector (Elem_Num, Pick_Id, Structure)
--
--
-- the pick vector
MyElementNumber : Integer from Standard;
MyPickId : Integer from Standard;
MyStructure : Structure from Graphic3d;
-- the flag for definition
MyElementNumberIsDef : Boolean from Standard;
MyPickIdIsDef : Boolean from Standard;
MyStructureIsDef : Boolean from Standard;
end PickPath;