blob: 1cf0e301048c913f72d72a28430d54dab1384a35 (
plain)
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
|
-- File : MeshVS_TextPrsBuilder.cdl
-- Created : 13 October 2003
-- Author : Alexander SOLOVYOV
---Copyright: Open CASCADE 2003
class TextPrsBuilder from MeshVS inherits PrsBuilder from MeshVS
---Purpose: This class provides methods to create text data presentation.
-- It store map of texts assigned with nodes or elements.
uses
Real from Standard,
Presentation from Prs3d,
Boolean from Standard,
Integer from Standard,
Mesh from MeshVS,
MeshPtr from MeshVS,
DisplayModeFlags from MeshVS,
DataSource from MeshVS,
DataMapOfIntegerAsciiString from MeshVS,
BuilderPriority from MeshVS,
Color from Quantity,
AsciiString from TCollection,
PackedMapOfInteger from TColStd
is
Create ( Parent : Mesh from MeshVS;
Height : Real;
Color : Color from Quantity;
Flags : DisplayModeFlags from MeshVS = MeshVS_DMF_TextDataPrs;
DS : DataSource from MeshVS = 0;
Id : Integer = -1;
Priority : BuilderPriority from MeshVS = MeshVS_BP_Text ) returns mutable TextPrsBuilder from MeshVS;
Build ( me; Prs : Presentation from Prs3d;
IDs : PackedMapOfInteger;
IDsToExclude : in out PackedMapOfInteger;
IsElement : Boolean;
theDisplayMode : Integer ) is virtual;
---Purpose: Builds presentation of text data
GetTexts ( me; IsElement : Boolean ) returns DataMapOfIntegerAsciiString from MeshVS;
---C++: return const &
---Purpose: Returns map of text assigned with nodes ( IsElement = False ) or elements ( IsElement = True )
SetTexts ( me : mutable;
IsElement : Boolean;
Map : DataMapOfIntegerAsciiString from MeshVS );
---Purpose: Sets map of text assigned with nodes or elements
HasTexts ( me; IsElement : Boolean ) returns Boolean;
---Purpose: Returns True if map isn't empty
GetText ( me; IsElement : Boolean;
ID : Integer;
Text : out AsciiString from TCollection ) returns Boolean;
---Purpose: Returns text assigned with single node or element
SetText ( me : mutable;
IsElement : Boolean;
ID : Integer;
Text : AsciiString from TCollection );
---Purpose: Sets text assigned with single node or element
fields
myNodeTextMap : DataMapOfIntegerAsciiString from MeshVS;
myElemTextMap : DataMapOfIntegerAsciiString from MeshVS;
end TextPrsBuilder;
|