summaryrefslogtreecommitdiff
path: root/inc/Visual3d_ClipPlane.hxx
blob: eea92e403a29576704fcfe9002c6f8438ff5ac8c (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
// 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 _Visual3d_ClipPlane_HeaderFile
#define _Visual3d_ClipPlane_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Visual3d_ClipPlane_HeaderFile
#include <Handle_Visual3d_ClipPlane.hxx>
#endif

#ifndef _Graphic3d_CPlane_HeaderFile
#include <Graphic3d_CPlane.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Visual3d_View;


//! This class allows the definition and update <br>
//!	    of clipping planes in the space model. <br>
class Visual3d_ClipPlane : public MMgt_TShared {

public:

  //! Creates a clipping plane from the equation : <br>
//!	    <ACoefA>*X + <ACoefB>*Y + <ACoefC>*Z + <ACoefD> = 0.0 <br>
  Standard_EXPORT   Visual3d_ClipPlane(const Standard_Real ACoefA,const Standard_Real ACoefB,const Standard_Real ACoefC,const Standard_Real ACoefD);
  //! Modifies the plane equation. <br>
  Standard_EXPORT     void SetPlane(const Standard_Real ACoefA,const Standard_Real ACoefB,const Standard_Real ACoefC,const Standard_Real ACoefD) ;
  //! Maximum number of activatable clipping planes. <br>
  Standard_EXPORT   static  Standard_Integer Limit() ;
  //! Returns the values of the clipping plane <me>. <br>
  Standard_EXPORT     void Plane(Standard_Real& ACoefA,Standard_Real& ACoefB,Standard_Real& ACoefC,Standard_Real& ACoefD) const;


friend class Visual3d_View;


  DEFINE_STANDARD_RTTI(Visual3d_ClipPlane)

protected:




private: 

  //! Returns the plane identification. <br>
  Standard_EXPORT     Standard_Integer Identification() const;

Graphic3d_CPlane MyCPlane;


};





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


#endif