Points: for E57 reader move from float to double

This commit is contained in:
wmayer
2023-08-22 12:43:50 +02:00
committed by wwmayer
parent 43ec243292
commit 5d585de259
3 changed files with 8 additions and 8 deletions

View File

@@ -60,13 +60,13 @@ public:
}
private:
std::tuple<bool, bool, float> readE57Settings() const
std::tuple<bool, bool, double> readE57Settings() const
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/Points/E57");
bool useColor = hGrp->GetBool("UseColor", true);
bool checkState = hGrp->GetBool("CheckInvalidState", true);
float minDistance = hGrp->GetFloat("MinDistance", -1.);
double minDistance = hGrp->GetFloat("MinDistance", -1.);
return std::make_tuple(useColor, checkState, minDistance);
}

View File

@@ -1726,11 +1726,11 @@ private:
};
}
E57Reader::E57Reader(const bool& Color, const bool& State, const float& Distance)
E57Reader::E57Reader(bool Color, bool State, double Distance)
: useColor{Color}
, checkState{State}
, minDistance{Distance}
{
useColor = Color;
checkState = State;
minDistance = Distance;
}
void E57Reader::read(const std::string& filename)

View File

@@ -116,11 +116,11 @@ private:
class E57Reader : public Reader
{
public:
E57Reader(const bool& Color, const bool& State, const float& Distance);
E57Reader(bool Color, bool State, double Distance);
void read(const std::string& filename) override;
protected:
bool useColor, checkState;
float minDistance;
double minDistance;
};
class Writer