Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,84 @@
//
// VROARPlaneAnchor.h
// ViroRenderer
//
// Created by Raj Advani on 6/11/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
#ifndef VROARPlaneAnchor_h
#define VROARPlaneAnchor_h
#include "VROARAnchor.h"
#include "VROVector3f.h"
enum class VROARPlaneAlignment {
Horizontal = 0x1,
HorizontalUpward = 0x11,
HorizontalDownward = 0x101,
Vertical = 0x10,
NonHorizontal = 0x0
};
/*
Anchor representing a planar surface.
*/
class VROARPlaneAnchor : public VROARAnchor {
public:
VROARPlaneAnchor() {}
virtual ~VROARPlaneAnchor() {}
/*
The approximate alignment of the detected plane.
*/
VROARPlaneAlignment getAlignment() const {
return _alignment;
}
void setAlignment(VROARPlaneAlignment alignment) {
_alignment = alignment;
}
/*
The center point of the detected plane. Relative to the parent
anchor position.
*/
VROVector3f getCenter() const {
return _center;
}
void setCenter(VROVector3f center) {
_center = center;
}
/*
The width and length of the detected plane.
*/
VROVector3f getExtent() const {
return _extent;
}
void setExtent(VROVector3f extent) {
_extent = extent;
}
private:
/*
The approximate alignment of the detected plane.
*/
VROARPlaneAlignment _alignment;
/*
The center point of the detected plane. Relative to the parent
anchor position.
*/
VROVector3f _center;
/*
The width and length of the detected plane.
*/
VROVector3f _extent;
};
#endif /* VROARPlaneAnchor_h */