1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
-- File: XCAFPrs.cdl
-- Created: Fri Aug 11 16:28:46 2000
-- Author: Andrey BETENEV
-- <abv@doomox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2000
package XCAFPrs
---Purpose: Presentation (visualiation, selection etc.) tools for
-- DECAF documents
uses
Quantity,
TCollection,
TopAbs,
TopLoc,
TopoDS,
TopTools,
Prs3d,
PrsMgr,
TPrsStd,
AIS,
TDF,
XCAFDoc
is
class Driver;
---Purpose: Implements a presentation driver for DECAF
class AISObject;
---Purpose: Implements an interactive object for DECAF
class Style;
---Purpose: Object representing a set of style settings
class DataMapOfShapeStyle instantiates
DataMap from TCollection(Shape from TopoDS,
Style from XCAFPrs,
ShapeMapHasher from TopTools);
class DataMapOfStyleShape instantiates
DataMap from TCollection(Style from XCAFPrs,
Shape from TopoDS,
Style from XCAFPrs);
class DataMapOfStyleTransient instantiates
DataMap from TCollection(Style from XCAFPrs,
Transient from Standard,
Style from XCAFPrs);
---Methods: Work with styles of the document
CollectStyleSettings (L: Label from TDF;
loc: Location from TopLoc;
settings: in out DataMapOfShapeStyle from XCAFPrs);
---Purpose: Collect styles defined for shape on label L
-- and its components and subshapes and fills a map of
-- shape - style correspondence
-- The location <loc> is for internal use, it
-- should be Null location for external call
DispatchStyles (shape: Shape from TopoDS;
settings: DataMapOfShapeStyle from XCAFPrs;
items: in out DataMapOfStyleShape from XCAFPrs;
DefStyle: Style from XCAFPrs;
force: Boolean = Standard_True;
context: ShapeEnum from TopAbs = TopAbs_SHAPE)
returns Boolean;
---Purpose: Iterates on shape (recursively) and splits it
-- on parts each of which has its own style
-- (basing on settings collected by CollectStyleSettings())
-- The DefStyle is default style applied to a shape if
-- no specific style assignment is applied to it
-- If force is True, the <shape> is added to a map
-- even if no styles are redefined for it or its
-- subshapes
-- The context is for internal use, it indicates
-- the type of the shape to which <shape> belongs
SetViewNameMode ( viewNameMode: Boolean from Standard);
---Purpose: Set ViewNameMode for indicate display names or not.
GetViewNameMode returns Boolean;
end XCAFPrs;
|