0c63f2f8 |
1 | // Created on: 2016-11-14 |
2 | // Created by: Irina KRYLOVA |
3 | // Copyright (c) 2016 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #include <StepVisual_CameraModelD3MultiClippingUnionSelect.hxx> |
17 | #include <Interface_Macros.hxx> |
18 | #include <StepGeom_Plane.hxx> |
19 | #include <StepVisual_CameraModelD3MultiClippingIntersection.hxx> |
20 | |
21 | //======================================================================= |
22 | //function : StepVisual_CameraModelD3MultiClippingUnionSelect |
23 | //purpose : |
24 | //======================================================================= |
25 | StepVisual_CameraModelD3MultiClippingUnionSelect::StepVisual_CameraModelD3MultiClippingUnionSelect () { } |
26 | |
27 | //======================================================================= |
28 | //function : CaseNum |
29 | //purpose : |
30 | //======================================================================= |
31 | Standard_Integer StepVisual_CameraModelD3MultiClippingUnionSelect::CaseNum(const Handle(Standard_Transient)& ent) const |
32 | { |
33 | if (ent.IsNull()) return 0; |
34 | if (ent->IsKind(STANDARD_TYPE(StepGeom_Plane))) return 1; |
35 | if (ent->IsInstance(STANDARD_TYPE(StepVisual_CameraModelD3MultiClippingIntersection))) return 2; |
36 | return 0; |
37 | } |
38 | |
39 | Handle(StepGeom_Plane) StepVisual_CameraModelD3MultiClippingUnionSelect::Plane() const |
40 | { |
41 | return GetCasted(StepGeom_Plane, Value()); |
42 | } |
43 | |
44 | Handle(StepVisual_CameraModelD3MultiClippingIntersection) StepVisual_CameraModelD3MultiClippingUnionSelect::CameraModelD3MultiClippingIntersection() const |
45 | { |
46 | return GetCasted(StepVisual_CameraModelD3MultiClippingIntersection, Value()); |
47 | } |