mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 13:09:22 -06:00
windows fix
This commit is contained in:
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
void changeRange(float minValue, float maxValue);
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Histogram& hist);
|
||||
friend void operator<<(std::ostream& os, const Histogram& hist);
|
||||
private:
|
||||
int _numBins;
|
||||
float _minValue;
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
|
||||
#include <modules/onscreengui/include/gui.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
const std::string _loggerCat = "DataSphere";
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2015 *
|
||||
* Copyright (c) 2014-2016 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <openspace/properties/vectorproperty.h>
|
||||
#include <openspace/properties/selectionproperty.h>
|
||||
#include <openspace/properties/stringproperty.h>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
|
||||
namespace openspace{
|
||||
class IswaDataGroup : public IswaBaseGroup{
|
||||
|
||||
@@ -356,7 +356,7 @@ float Histogram::binWidth(){
|
||||
return (_maxValue-_minValue)/float(_numBins);
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const Histogram& hist){
|
||||
void operator<<(std::ostream& os, const Histogram& hist){
|
||||
const float* data = hist.data();
|
||||
float max = hist.maxValue();
|
||||
float min = hist.minValue();
|
||||
|
||||
Reference in New Issue
Block a user