Files
OCCT/src/ModelingData/TKBRep/BRep/BRep_GCurve.hxx
T
Pasukhin Dmitry c020fc2fad Coding - Clang-Tidy apply with refactoring (#965)
- Replacing empty constructor/destructor implementations with `= default`
- Removing redundant `virtual` keywords from override methods
- Replacing `NULL` and `0` with `nullptr`
- Replacing C headers with C++ equivalents (`<cstdio>`, `<cstring>`, etc.)
- Marking copy constructors/assignment operators as `= delete` for non-copyable classes
- Converting `void` parameter lists to empty parameter lists
- Replacing integer literals with appropriate boolean values
2025-12-29 11:55:04 +00:00

69 lines
2.0 KiB
C++

// Created on: 1995-03-09
// Created by: Laurent PAINNOT
// Copyright (c) 1995-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 _BRep_GCurve_HeaderFile
#define _BRep_GCurve_HeaderFile
#include <Standard.hxx>
#include <Standard_Real.hxx>
#include <BRep_CurveRepresentation.hxx>
class TopLoc_Location;
class gp_Pnt;
//! Root class for the geometric curves
//! representation. Contains a range.
//! Contains a first and a last parameter.
class BRep_GCurve : public BRep_CurveRepresentation
{
public:
void SetRange(const double First, const double Last);
void Range(double& First, double& Last) const;
double First() const;
double Last() const;
void First(const double F);
void Last(const double L);
//! Computes the point at parameter U.
Standard_EXPORT virtual void D0(const double U, gp_Pnt& P) const = 0;
//! Recomputes any derived data after a modification.
//! This is called when the range is modified.
Standard_EXPORT virtual void Update();
//! Dumps the content of me into the stream
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
DEFINE_STANDARD_RTTIEXT(BRep_GCurve, BRep_CurveRepresentation)
protected:
Standard_EXPORT BRep_GCurve(const TopLoc_Location& L, const double First, const double Last);
private:
double myFirst;
double myLast;
};
#include <BRep_GCurve.lxx>
#endif // _BRep_GCurve_HeaderFile