summaryrefslogtreecommitdiff
path: root/inc/DBRep_HideData.hxx
blob: 942cc28f0b7f3e1cde928cb92faf9d1d791fd8b2 (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _DBRep_HideData_HeaderFile
#define _DBRep_HideData_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _gp_Trsf_HeaderFile
#include <gp_Trsf.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _HLRBRep_ListOfBPoint_HeaderFile
#include <HLRBRep_ListOfBPoint.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class gp_Trsf;
class TopoDS_Shape;
class Draw_Display;
class Draw_Color;


//! This  class stores all the informations concerning <br>
//!          hidden lines on a view. <br>
//! <br>
//!          * View number <br>
//!          * Matrix of projection <br>
//!          * Type of projection, focal <br>
//!          * Arrays of 3d points <br>
//! <br>
//!          A drawable shape contains a  list of such  objects <br>
//!          to store  the  hidden lines  for  each view.   The <br>
//!          IsSame method is  used  to check if   hidden lines <br>
//!          must be recompiled. <br>
class DBRep_HideData  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   DBRep_HideData();
  //! ViewId is the view number <br>
//!          TProj the projection <br>
//!          Focal <= 0 means parallel projection <br>
//!          Alg : the hidden lines <br>
  Standard_EXPORT     void Set(const Standard_Integer ViewId,const gp_Trsf& TProj,const Standard_Real Focal,const TopoDS_Shape& S,const Standard_Real ang) ;
  
        Standard_Integer ViewId() const;
  
        Standard_Real Angle() const;
  //! Returns True if the projection is the same <br>
  Standard_EXPORT     Standard_Boolean IsSame(const gp_Trsf& TProj,const Standard_Real Focla) const;
  
  Standard_EXPORT     void DrawOn(Draw_Display& D,const Standard_Boolean withRg1,const Standard_Boolean withRgN,const Standard_Boolean withHid,const Draw_Color& VisCol,const Draw_Color& HidCol) ;
  //! Returns the subshape touched by the last pick. <br>
  Standard_EXPORT    const TopoDS_Shape& LastPick() const;





protected:





private:



Standard_Integer myView;
gp_Trsf myTrsf;
Standard_Real myFocal;
HLRBRep_ListOfBPoint myBiPntVis;
HLRBRep_ListOfBPoint myBiPntHid;
TopoDS_Shape myPickShap;
Standard_Real myAngle;


};


#include <DBRep_HideData.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif