zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef BRMESH2DFILTER_H_INCLUDED
#define BRMESH2DFILTER_H_INCLUDED
 
#include "Br/BrEntity.h"
#include "Br/BrMesh2dControl.h"
#include "Br/BrExport.h"
 
/** \details
  This interface class represents 2D mesh filters.
 
  \remarks 
  This class is implemented only for Spatial modeler.
 
  \sa
  TD_Br
 
  <group OdBr_Classes>
*/
class ODBR_TOOLKIT_EXPORT OdBrMesh2dFilter
{
  const OdBrEntity* m_BrEntity;
  OdBrMesh2dControl m_meshControl;
public:
  /** \details
    Default constructor.
  */
  OdBrMesh2dFilter();
 
  /** \details
    Destructor.
  */
  ~OdBrMesh2dFilter();
 
  /** \details
    This function associates a 2D mesh control with a topology object.
 
    \param brEntity [in] Topology object.
    \param meshControl [in] 2D mesh control object.
 
    \returns Returns odbrOK if successful, or an appropriate error code if not.
  */
  OdBrErrorStatus set(const OdBrEntity& brEntity, const OdBrMesh2dControl &meshControl);
 
  /** \details
    Returns the topology object associated with the 2D mesh control.
  */
  const OdBrEntity* getBrEntity() const;
  
  /** \details
    Returns the 2D mesh control, used as a filter in 2D mesh generation.
  */
  const OdBrMesh2dControl& getMeshControl() const;
 
private:
  OdBrMesh2dFilter(const OdBrMesh2dFilter& src);
  OdBrMesh2dFilter& operator = (const OdBrMesh2dFilter& src);
};
 
inline
OdBrMesh2dFilter::OdBrMesh2dFilter() : m_BrEntity(0) {}
 
inline
OdBrMesh2dFilter::~OdBrMesh2dFilter() {}
 
inline
OdBrErrorStatus OdBrMesh2dFilter::set(const OdBrEntity& brEntity, const OdBrMesh2dControl &meshControl)
{
  m_BrEntity = &brEntity;
  m_meshControl = meshControl;
  return odbrOK;
}
 
inline
const OdBrEntity* OdBrMesh2dFilter::getBrEntity() const
{
  return m_BrEntity;
}
 
inline
const OdBrMesh2dControl& OdBrMesh2dFilter::getMeshControl() const
{
  return m_meshControl;
}
 
 
#endif