move constant to class definition

This commit is contained in:
luiscuenca 2017-11-10 11:54:53 -07:00
parent 255a40ce31
commit bf576e63fe
2 changed files with 4 additions and 4 deletions

View file

@ -16,9 +16,11 @@
#include "AbstractViewStateInterface.h"
QString const Line3DOverlay::TYPE = "line3d";
static const float DEFAULT_LINE_WIDTH = 0.02f;
Line3DOverlay::Line3DOverlay() :
_geometryCacheID(DependencyManager::get<GeometryCache>()->allocateID())
_geometryCacheID(DependencyManager::get<GeometryCache>()->allocateID()),
_lineWidth(DEFAULT_LINE_WIDTH)
{
}

View file

@ -13,8 +13,6 @@
#include "Base3DOverlay.h"
static const float DEFAULT_LINE_WIDTH = 0.02f;
class Line3DOverlay : public Base3DOverlay {
Q_OBJECT
using Parent = Base3DOverlay;
@ -72,7 +70,7 @@ private:
glm::vec3 _direction; // in parent frame
float _length { 1.0 }; // in parent frame
float _lineWidth { DEFAULT_LINE_WIDTH };
float _lineWidth { 0.0 };
float _glow { 0.0 };
int _geometryCacheID;
};