0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / TopoDS / TopoDS_Builder.lxx
CommitLineData
b311480e 1// Created on: 1991-04-09
2// Created by: Remi LEQUETTE
3// Copyright (c) 1991-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include <TopoDS_TWire.hxx>
18#include <TopoDS_TShell.hxx>
19#include <TopoDS_TSolid.hxx>
20#include <TopoDS_TCompSolid.hxx>
21#include <TopoDS_TCompound.hxx>
22#include <TopoDS_Wire.hxx>
23#include <TopoDS_Shell.hxx>
24#include <TopoDS_Solid.hxx>
25#include <TopoDS_CompSolid.hxx>
26#include <TopoDS_Compound.hxx>
27
28
29//=======================================================================
30//function : MakeWire
31//purpose : Make an empty wire
32//=======================================================================
33
34inline void TopoDS_Builder::MakeWire (TopoDS_Wire& W) const
35{
36 Handle(TopoDS_TWire) TW = new TopoDS_TWire();
37 MakeShape(W,TW);
38}
39
40
41//=======================================================================
42//function : MakeShell
43//purpose : Make an empty Shell
44//=======================================================================
45
46inline void TopoDS_Builder::MakeShell (TopoDS_Shell& S) const
47{
48 Handle(TopoDS_TShell) TS = new TopoDS_TShell();
49 MakeShape(S,TS);
50}
51
52//=======================================================================
53//function : MakeSolid
54//purpose : Make an empty Solid
55//=======================================================================
56
57inline void TopoDS_Builder::MakeSolid (TopoDS_Solid& S) const
58{
59 Handle(TopoDS_TSolid) TS = new TopoDS_TSolid();
60 MakeShape(S,TS);
61}
62
63//=======================================================================
64//function : MakeCompSolid
65//purpose : Make an empty CompSolid
66//=======================================================================
67
68inline void TopoDS_Builder::MakeCompSolid (TopoDS_CompSolid& C) const
69{
70 Handle(TopoDS_TCompSolid) TC = new TopoDS_TCompSolid();
71 MakeShape(C,TC);
72}
73
74
75//=======================================================================
76//function : MakeCompound
77//purpose : Make an empty Compound
78//=======================================================================
79
80inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const
81{
82 Handle(TopoDS_TCompound) TC = new TopoDS_TCompound();
83 MakeShape(C,TC);
84}