mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
84 lines
2.1 KiB
C++
84 lines
2.1 KiB
C++
// Created on: 1994-04-01
|
|
// Created by: Modelistation
|
|
// Copyright (c) 1994-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _BRepTopAdaptor_HVertex_HeaderFile
|
|
#define _BRepTopAdaptor_HVertex_HeaderFile
|
|
|
|
#include <Adaptor3d_HVertex.hxx>
|
|
#include <BRepAdaptor_Curve2d.hxx>
|
|
#include <Standard.hxx>
|
|
#include <Standard_Type.hxx>
|
|
#include <TopAbs_Orientation.hxx>
|
|
#include <TopoDS_Vertex.hxx>
|
|
|
|
class gp_Pnt2d;
|
|
|
|
|
|
class BRepTopAdaptor_HVertex;
|
|
DEFINE_STANDARD_HANDLE(BRepTopAdaptor_HVertex, Adaptor3d_HVertex)
|
|
|
|
|
|
class BRepTopAdaptor_HVertex : public Adaptor3d_HVertex
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
Standard_EXPORT BRepTopAdaptor_HVertex(const TopoDS_Vertex& Vtx, const Handle(BRepAdaptor_Curve2d)& Curve);
|
|
|
|
const TopoDS_Vertex& Vertex() const;
|
|
|
|
TopoDS_Vertex& ChangeVertex();
|
|
|
|
Standard_EXPORT virtual gp_Pnt2d Value() Standard_OVERRIDE;
|
|
|
|
Standard_EXPORT virtual Standard_Real Parameter (const Handle(Adaptor2d_Curve2d)& C) Standard_OVERRIDE;
|
|
|
|
//! Parametric resolution (2d).
|
|
Standard_EXPORT virtual Standard_Real Resolution (const Handle(Adaptor2d_Curve2d)& C) Standard_OVERRIDE;
|
|
|
|
Standard_EXPORT virtual TopAbs_Orientation Orientation() Standard_OVERRIDE;
|
|
|
|
Standard_EXPORT virtual Standard_Boolean IsSame (const Handle(Adaptor3d_HVertex)& Other) Standard_OVERRIDE;
|
|
|
|
|
|
|
|
|
|
DEFINE_STANDARD_RTTIEXT(BRepTopAdaptor_HVertex,Adaptor3d_HVertex)
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
TopoDS_Vertex myVtx;
|
|
Handle(BRepAdaptor_Curve2d) myCurve;
|
|
|
|
|
|
};
|
|
|
|
|
|
#include <BRepTopAdaptor_HVertex.lxx>
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _BRepTopAdaptor_HVertex_HeaderFile
|