1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/src/Bisector/Bisector_PointOnBis.cxx
mkrylova d533dafb56 0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
Added initialization of fields that had not initialization
Added default constructors to classes without constructors
2020-07-23 16:08:20 +03:00

171 lines
5.3 KiB
C++

// Created on: 1994-01-10
// Created by: Yves FRICAUD
// 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.
#include <Bisector_PointOnBis.hxx>
#include <gp_Pnt2d.hxx>
//=============================================================================
//function :
// purpose :
//=============================================================================
Bisector_PointOnBis::Bisector_PointOnBis()
: param1(0.0),
param2(0.0),
paramBis(0.0),
distance(0.0),
infinite(Standard_False)
{
}
//=============================================================================
//function :
// purpose :
//=============================================================================
Bisector_PointOnBis::Bisector_PointOnBis(const Standard_Real Param1,
const Standard_Real Param2,
const Standard_Real ParamBis,
const Standard_Real Distance,
const gp_Pnt2d& P)
: param1 (Param1),
param2 (Param2),
paramBis (ParamBis),
distance (Distance),
point (P)
{
infinite = Standard_False;
}
//=============================================================================
//function : ParamOnC1
// purpose :
//=============================================================================
void Bisector_PointOnBis::ParamOnC1(const Standard_Real Param)
{
param1 = Param;
}
//=============================================================================
//function : ParamOnC2
// purpose :
//=============================================================================
void Bisector_PointOnBis::ParamOnC2(const Standard_Real Param)
{
param2 = Param;
}
//=============================================================================
//function : ParamOnBis
// purpose :
//=============================================================================
void Bisector_PointOnBis::ParamOnBis(const Standard_Real Param)
{
paramBis = Param;
}
//=============================================================================
//function : Distance
// purpose :
//=============================================================================
void Bisector_PointOnBis::Distance(const Standard_Real Distance)
{
distance = Distance;
}
//=============================================================================
//function : Point
// purpose :
//=============================================================================
void Bisector_PointOnBis::Point (const gp_Pnt2d& P)
{
point = P;
}
//=============================================================================
//function : IsInfinite
// purpose :
//=============================================================================
void Bisector_PointOnBis::IsInfinite(const Standard_Boolean Infinite)
{
infinite = Infinite;
}
//=============================================================================
//function : ParamOnC1
// purpose :
//=============================================================================
Standard_Real Bisector_PointOnBis::ParamOnC1()const
{
return param1;
}
//=============================================================================
//function : ParamOnC2
// purpose :
//=============================================================================
Standard_Real Bisector_PointOnBis::ParamOnC2()const
{
return param2;
}
//=============================================================================
//function : ParamOnBis
// purpose :
//=============================================================================
Standard_Real Bisector_PointOnBis::ParamOnBis()const
{
return paramBis;
}
//=============================================================================
//function : Distance
// purpose :
//=============================================================================
Standard_Real Bisector_PointOnBis::Distance()const
{
return distance;
}
//=============================================================================
//function : Point
// purpose :
//=============================================================================
gp_Pnt2d Bisector_PointOnBis::Point ()const
{
return point;
}
//=============================================================================
//function : IsInfinite
// purpose :
//=============================================================================
Standard_Boolean Bisector_PointOnBis::IsInfinite() const
{
return infinite;
}
//=============================================================================
//function : Dump
// purpose :
//=============================================================================
void Bisector_PointOnBis::Dump() const
{
std::cout <<"Param1 :"<<param1<<std::endl;
std::cout <<"Param2 :"<<param2<<std::endl;
std::cout <<"Param Bis :"<<paramBis<<std::endl;
std::cout <<"Distance :"<<distance<<std::endl;
}