CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
[occt.git] / src / BRep / BRep_PointRepresentation.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-08-10
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-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 _BRep_PointRepresentation_HeaderFile
18#define _BRep_PointRepresentation_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <TopLoc_Location.hxx>
24#include <Standard_Real.hxx>
25e59720 25#include <Standard_Transient.hxx>
42cf5bc1 26#include <Standard_Boolean.hxx>
42cf5bc1 27class Geom_Curve;
28class Geom2d_Curve;
29class Geom_Surface;
30
31
32class BRep_PointRepresentation;
25e59720 33DEFINE_STANDARD_HANDLE(BRep_PointRepresentation, Standard_Transient)
42cf5bc1 34
35//! Root class for the points representations.
36//! Contains a location and a parameter.
25e59720 37class BRep_PointRepresentation : public Standard_Transient
42cf5bc1 38{
39
40public:
41
42
43 //! A point on a 3d curve.
44 Standard_EXPORT virtual Standard_Boolean IsPointOnCurve() const;
45
46 //! A point on a 2d curve on a surface.
47 Standard_EXPORT virtual Standard_Boolean IsPointOnCurveOnSurface() const;
48
49 //! A point on a surface.
50 Standard_EXPORT virtual Standard_Boolean IsPointOnSurface() const;
51
52 //! A point on the curve <C>.
53 Standard_EXPORT virtual Standard_Boolean IsPointOnCurve (const Handle(Geom_Curve)& C, const TopLoc_Location& L) const;
54
55 //! A point on the 2d curve <PC> on the surface <S>.
56 Standard_EXPORT virtual Standard_Boolean IsPointOnCurveOnSurface (const Handle(Geom2d_Curve)& PC, const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
57
58 //! A point on the surface <S>.
59 Standard_EXPORT virtual Standard_Boolean IsPointOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
60
61 const TopLoc_Location& Location() const;
62
63 void Location (const TopLoc_Location& L);
64
65 Standard_Real Parameter() const;
66
67 void Parameter (const Standard_Real P);
68
69 Standard_EXPORT virtual Standard_Real Parameter2() const;
70
71 Standard_EXPORT virtual void Parameter2 (const Standard_Real P);
72
73 Standard_EXPORT virtual const Handle(Geom_Curve)& Curve() const;
74
75 Standard_EXPORT virtual void Curve (const Handle(Geom_Curve)& C);
76
77 Standard_EXPORT virtual const Handle(Geom2d_Curve)& PCurve() const;
78
79 Standard_EXPORT virtual void PCurve (const Handle(Geom2d_Curve)& C);
80
81 Standard_EXPORT virtual const Handle(Geom_Surface)& Surface() const;
82
83 Standard_EXPORT virtual void Surface (const Handle(Geom_Surface)& S);
84
bc73b006 85 //! Dumps the content of me into the stream
86 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
87
42cf5bc1 88
89
90
25e59720 91 DEFINE_STANDARD_RTTIEXT(BRep_PointRepresentation,Standard_Transient)
42cf5bc1 92
93protected:
94
95
96 Standard_EXPORT BRep_PointRepresentation(const Standard_Real P, const TopLoc_Location& L);
97
98
99
100private:
101
102
103 TopLoc_Location myLocation;
104 Standard_Real myParameter;
105
106
107};
108
109
110#include <BRep_PointRepresentation.lxx>
111
112
113
114
115
116#endif // _BRep_PointRepresentation_HeaderFile