0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / StdSelect / StdSelect_EdgeFilter.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-03-11
2// Created by: Robert COUBLANC
3// Copyright (c) 1996-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 _StdSelect_EdgeFilter_HeaderFile
18#define _StdSelect_EdgeFilter_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <StdSelect_TypeOfEdge.hxx>
24#include <SelectMgr_Filter.hxx>
25#include <Standard_Boolean.hxx>
26#include <TopAbs_ShapeEnum.hxx>
27class SelectMgr_EntityOwner;
28
29
30class StdSelect_EdgeFilter;
31DEFINE_STANDARD_HANDLE(StdSelect_EdgeFilter, SelectMgr_Filter)
32
33//! A framework to define a filter to select a specific type of edge.
34//! The types available include:
35//! - any edge
36//! - a linear edge
37//! - a circular edge.
38class StdSelect_EdgeFilter : public SelectMgr_Filter
39{
40
41public:
42
43
44 //! Constructs an edge filter object defined by the type of edge Edge.
45 Standard_EXPORT StdSelect_EdgeFilter(const StdSelect_TypeOfEdge Edge);
46
47 //! Sets the type of edge aNewType. aNewType is to be highlighted in selection.
48 Standard_EXPORT void SetType (const StdSelect_TypeOfEdge aNewType);
49
50 //! Returns the type of edge to be highlighted in selection.
51 Standard_EXPORT StdSelect_TypeOfEdge Type() const;
52
53 Standard_EXPORT virtual Standard_Boolean IsOk (const Handle(SelectMgr_EntityOwner)& anobj) const Standard_OVERRIDE;
54
55 Standard_EXPORT virtual Standard_Boolean ActsOn (const TopAbs_ShapeEnum aStandardMode) const Standard_OVERRIDE;
56
57
58
59
92efcf78 60 DEFINE_STANDARD_RTTIEXT(StdSelect_EdgeFilter,SelectMgr_Filter)
42cf5bc1 61
62protected:
63
64
65
66
67private:
68
69
70 StdSelect_TypeOfEdge mytype;
71
72
73};
74
75
76
77
78
79
80
81#endif // _StdSelect_EdgeFilter_HeaderFile