0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / IGESSolid / IGESSolid_SelectedComponent.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-01-09
2// Created by: CKY / Contract Toubro-Larsen ( SIVA )
3// Copyright (c) 1993-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 _IGESSolid_SelectedComponent_HeaderFile
18#define _IGESSolid_SelectedComponent_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <gp_XYZ.hxx>
24#include <IGESData_IGESEntity.hxx>
25class IGESSolid_BooleanTree;
26class gp_XYZ;
27class gp_Pnt;
28
29
30class IGESSolid_SelectedComponent;
31DEFINE_STANDARD_HANDLE(IGESSolid_SelectedComponent, IGESData_IGESEntity)
32
33//! defines SelectedComponent, Type <182> Form Number <0>
34//! in package IGESSolid
35//! The Selected Component entity provides a means of
36//! selecting one component of a disjoint CSG solid
37class IGESSolid_SelectedComponent : public IGESData_IGESEntity
38{
39
40public:
41
42
43 Standard_EXPORT IGESSolid_SelectedComponent();
44
45 //! This method is used to set the fields of the class
46 //! SelectedComponent
47 //! - anEntity : the Boolean tree entity
48 //! - selectPnt : Point in or on the desired component
49 Standard_EXPORT void Init (const Handle(IGESSolid_BooleanTree)& anEntity, const gp_XYZ& selectPnt);
50
51 //! returns the Boolean tree entity
52 Standard_EXPORT Handle(IGESSolid_BooleanTree) Component() const;
53
54 //! returns the point on/in the selected component
55 Standard_EXPORT gp_Pnt SelectPoint() const;
56
57 //! returns the point on/in the selected component
58 //! after applying TransformationMatrix
59 Standard_EXPORT gp_Pnt TransformedSelectPoint() const;
60
61
62
63
92efcf78 64 DEFINE_STANDARD_RTTIEXT(IGESSolid_SelectedComponent,IGESData_IGESEntity)
42cf5bc1 65
66protected:
67
68
69
70
71private:
72
73
74 Handle(IGESSolid_BooleanTree) theEntity;
75 gp_XYZ theSelectPoint;
76
77
78};
79
80
81
82
83
84
85
86#endif // _IGESSolid_SelectedComponent_HeaderFile