Points: for E57 reader move from float to double
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user