0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / IntTools / IntTools_TopolTool.hxx
CommitLineData
42cf5bc1 1// Created on: 2002-04-18
2// Created by: Michael KLOKOV
3// Copyright (c) 2002-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _IntTools_TopolTool_HeaderFile
17#define _IntTools_TopolTool_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_Type.hxx>
21
22#include <Standard_Integer.hxx>
23#include <Standard_Real.hxx>
24#include <Adaptor3d_TopolTool.hxx>
25class Standard_DomainError;
26class Adaptor3d_HSurface;
27class gp_Pnt2d;
28class gp_Pnt;
29
30
31class IntTools_TopolTool;
32DEFINE_STANDARD_HANDLE(IntTools_TopolTool, Adaptor3d_TopolTool)
33
34//! Class redefine methods of TopolTool from Adaptor3d
35//! concerning sample points
36class IntTools_TopolTool : public Adaptor3d_TopolTool
37{
38
39public:
40
41
42
43 //! Empty constructor
44 Standard_EXPORT IntTools_TopolTool();
45
46
47 //! Initializes me by surface
48 Standard_EXPORT IntTools_TopolTool(const Handle(Adaptor3d_HSurface)& theSurface);
49
50
51 //! Redefined empty initializer
52 //!
53 //! Warning:
54 //! Raises the exception NotImplemented
55 Standard_EXPORT virtual void Initialize() Standard_OVERRIDE;
56
57
58 //! Initializes me by surface
59 Standard_EXPORT virtual void Initialize (const Handle(Adaptor3d_HSurface)& theSurface) Standard_OVERRIDE;
60
61 Standard_EXPORT virtual void ComputeSamplePoints() Standard_OVERRIDE;
62
63
64 //! Computes the sample-points for the intersections algorithms
65 Standard_EXPORT virtual Standard_Integer NbSamplesU() Standard_OVERRIDE;
66
67
68 //! Computes the sample-points for the intersections algorithms
69 Standard_EXPORT virtual Standard_Integer NbSamplesV() Standard_OVERRIDE;
70
71
72 //! Computes the sample-points for the intersections algorithms
73 Standard_EXPORT virtual Standard_Integer NbSamples() Standard_OVERRIDE;
74
75
76 //! Returns a 2d point from surface myS
77 //! and a corresponded 3d point
78 //! for given index.
79 //! The index should be from 1 to NbSamples()
80 Standard_EXPORT virtual void SamplePoint (const Standard_Integer Index, gp_Pnt2d& P2d, gp_Pnt& P3d) Standard_OVERRIDE;
81
82 //! compute the sample-points for the intersections algorithms
83 //! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
84 //! is the same as in method ComputeSamplePoints(), but only fill arrays of U
85 //! and V sample parameters;
86 //! theDefl is a requred deflection
87 //! theNUmin, theNVmin are minimal nb points for U and V.
88 Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE;
89
90
91
92
92efcf78 93 DEFINE_STANDARD_RTTIEXT(IntTools_TopolTool,Adaptor3d_TopolTool)
42cf5bc1 94
95protected:
96
97
98
99
100private:
101
102
103 Standard_Integer myNbSmplU;
104 Standard_Integer myNbSmplV;
105 Standard_Real myU0;
106 Standard_Real myV0;
107 Standard_Real myDU;
108 Standard_Real myDV;
109
110
111};
112
113
114
115
116
117
118
119#endif // _IntTools_TopolTool_HeaderFile