42cf5bc1 |
1 | // Created on: 1992-12-15 |
2 | // Created by: Jean Louis FRENKEL |
3 | // Copyright (c) 1992-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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 |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _Prs3d_Root_HeaderFile |
18 | #define _Prs3d_Root_HeaderFile |
19 | |
4ad142d9 |
20 | #include <Graphic3d_Group.hxx> |
21 | #include <Prs3d_Presentation.hxx> |
42cf5bc1 |
22 | #include <Standard.hxx> |
23 | #include <Standard_DefineAlloc.hxx> |
24 | #include <Standard_Handle.hxx> |
25 | |
4ad142d9 |
26 | //! A root class for the standard presentation algorithms of the StdPrs package. |
42cf5bc1 |
27 | class Prs3d_Root |
28 | { |
29 | public: |
30 | |
31 | DEFINE_STANDARD_ALLOC |
32 | |
4ad142d9 |
33 | //! Returns the current (last created) group of primititves inside graphic objects in the display. |
42cf5bc1 |
34 | //! A group also contains the attributes whose ranges are limited to the primitives in it. |
4ad142d9 |
35 | static Handle(Graphic3d_Group) CurrentGroup (const Handle(Prs3d_Presentation)& thePrs3d) |
36 | { |
37 | return thePrs3d->CurrentGroup(); |
38 | } |
42cf5bc1 |
39 | |
4ad142d9 |
40 | //! Returns the new group of primitives inside graphic objects in the display. |
41 | //! A group also contains the attributes whose ranges are limited to the primitives in it. |
42 | static Handle(Graphic3d_Group) NewGroup (const Handle(Prs3d_Presentation)& thePrs3d) |
43 | { |
44 | return thePrs3d->NewGroup(); |
45 | } |
42cf5bc1 |
46 | |
47 | }; |
48 | |
42cf5bc1 |
49 | #endif // _Prs3d_Root_HeaderFile |