mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 18:23:57 +02:00
41 lines
930 B
C++
41 lines
930 B
C++
//
|
|
// Line3DOverlay.h
|
|
// interface/src/ui/overlays
|
|
//
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_Line3DOverlay_h
|
|
#define hifi_Line3DOverlay_h
|
|
|
|
#include "Base3DOverlay.h"
|
|
|
|
class Line3DOverlay : public Base3DOverlay {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Line3DOverlay();
|
|
Line3DOverlay(const Line3DOverlay* line3DOverlay);
|
|
~Line3DOverlay();
|
|
virtual void render(RenderArgs* args);
|
|
|
|
// getters
|
|
const glm::vec3& getEnd() const { return _end; }
|
|
|
|
// setters
|
|
void setEnd(const glm::vec3& end) { _end = end; }
|
|
|
|
virtual void setProperties(const QScriptValue& properties);
|
|
virtual QScriptValue getProperty(const QString& property);
|
|
|
|
virtual Line3DOverlay* createClone() const;
|
|
|
|
protected:
|
|
glm::vec3 _end;
|
|
};
|
|
|
|
|
|
#endif // hifi_Line3DOverlay_h
|