1 -- Created on: 2000-08-11
2 -- Created by: Andrey BETENEV
3 -- Copyright (c) 2000-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.
18 ---Purpose: Presentation (visualiation, selection etc.) tools for
44 class DataMapOfShapeStyle instantiates
45 DataMap from TCollection(Shape from TopoDS,
47 ShapeMapHasher from TopTools);
49 class DataMapOfStyleShape instantiates
50 DataMap from TCollection(Style from XCAFPrs,
54 class DataMapOfStyleTransient instantiates
55 DataMap from TCollection(Style from XCAFPrs,
56 Transient from Standard,
59 ---Methods: Work with styles of the document
61 CollectStyleSettings (L: Label from TDF;
62 loc: Location from TopLoc;
63 settings: in out DataMapOfShapeStyle from XCAFPrs);
64 ---Purpose: Collect styles defined for shape on label L
65 -- and its components and subshapes and fills a map of
66 -- shape - style correspondence
67 -- The location <loc> is for internal use, it
68 -- should be Null location for external call
70 DispatchStyles (shape: Shape from TopoDS;
71 settings: DataMapOfShapeStyle from XCAFPrs;
72 items: in out DataMapOfStyleShape from XCAFPrs;
73 DefStyle: Style from XCAFPrs;
74 force: Boolean = Standard_True;
75 context: ShapeEnum from TopAbs = TopAbs_SHAPE)
77 ---Purpose: Iterates on shape (recursively) and splits it
78 -- on parts each of which has its own style
79 -- (basing on settings collected by CollectStyleSettings())
80 -- The DefStyle is default style applied to a shape if
81 -- no specific style assignment is applied to it
82 -- If force is True, the <shape> is added to a map
83 -- even if no styles are redefined for it or its
85 -- The context is for internal use, it indicates
86 -- the type of the shape to which <shape> belongs
88 SetViewNameMode ( viewNameMode: Boolean from Standard);
90 ---Purpose: Set ViewNameMode for indicate display names or not.
92 GetViewNameMode returns Boolean;