1 -- Created on: 2008-07-30
2 -- Created by: Vladislav ROMASHKO
3 -- Copyright (c) 2008-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class Selector from Voxel
18 ---Purpose: Detects voxels in the viewer 3d under the mouse cursor.
30 ---Purpose: An empty constructor.
31 returns Selector from Voxel;
33 Create(view : View from V3d)
34 ---Purpose: A constructor of the selector,
35 -- which initializes the classes
36 -- by a view, where the user selects the voxels.
37 returns Selector from Voxel;
40 view : View from V3d);
41 ---Purpose: Initializes the selector by a view,
42 -- where the user selects the voxels.
44 SetVoxels(me : in out;
45 voxels : BoolDS from Voxel);
46 ---Purpose: Defines the voxels (1bit).
48 SetVoxels(me : in out;
49 voxels : ColorDS from Voxel);
50 ---Purpose: Defines the voxels (4bit).
52 SetVoxels(me : in out;
53 voxels : ROctBoolDS from Voxel);
54 ---Purpose: Defines the voxels (1bit recursive splitting).
57 winx : Integer from Standard;
58 winy : Integer from Standard;
59 ix : out Integer from Standard;
60 iy : out Integer from Standard;
61 iz : out Integer from Standard)
62 ---Purpose: Detects a voxel under the mouse cursor.
63 returns Boolean from Standard;
67 myView : View from V3d;
68 myVoxels : Address from Standard;
69 myIsBool : Integer from Standard; -- 0 - ColorDS, 1 - BoolDS, 2 - ROctBoolDS