0022627: Change OCCT memory management defaults
[occt.git] / src / Prs3d / Prs3d_Text.cxx
CommitLineData
7fd59977 1// File: Prs3d_Text.cxx
2// Created: Tue Sep 14 14:52:34 1993
3// Author: Jean-Louis FRENKEL
4// <jlf@stylox>
5
6
7#include <Prs3d_Text.ixx>
8#include <Graphic3d_Vertex.hxx>
9#include <Prs3d_TextAspect.hxx>
10#include <TCollection_AsciiString.hxx>
11#include <Graphic3d_Group.hxx>
12
13void Prs3d_Text::Draw (
14 const Handle(Prs3d_Presentation)& aPresentation,
15 const Handle(Prs3d_TextAspect)& anAspect,
16 const TCollection_ExtendedString& aText,
17 const gp_Pnt& AttachmentPoint) {
18
19
20 Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(anAspect->Aspect());
21 Standard_Real x,y,z;
22 AttachmentPoint.Coord(x,y,z);
23
24
25// POP Graphic3d_Grup accepte de l'extended
26 Prs3d_Root::CurrentGroup(aPresentation)->Text(
27// TCollection_AsciiString(aText).ToCString(),
28 aText,
29 Graphic3d_Vertex(x,y,z),
30 anAspect->Height(),
31 anAspect->Angle(),
32 anAspect->Orientation(),
33 anAspect->HorizontalJustification(),
34 anAspect->VerticalJustification());
35}
36
37
38void Prs3d_Text::Draw (
39 const Handle(Prs3d_Presentation)& aPresentation,
40 const Handle(Prs3d_Drawer)& aDrawer,
41 const TCollection_ExtendedString& aText,
42 const gp_Pnt& AttachmentPoint) {
43
44
45 Prs3d_Text::Draw(aPresentation,aDrawer->TextAspect(),aText,AttachmentPoint);
46 }