1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/src/MeshVS/MeshVS_TextPrsBuilder.cdl
abv 6e33d3ced2 0024830: Remove redundant keyword 'mutable' in CDL declarations
Redundant keyword 'mutable' removed in CDL files.
In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed.
Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
2014-05-29 14:58:25 +04:00

84 lines
3.2 KiB
Plaintext

-- Created on: 2003-10-13
-- Created by: Alexander SOLOVYOV
-- Copyright (c) 2003-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 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 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;