detection

package
Version: v0.0.0-...-bde9636 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package detection provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProject

func DeleteProject(handler gorexos.RequestHandler, urn string) error

Types

type Geometry

type Geometry struct {
	Name           string                 `json:"name"`
	Urn            string                 `json:"urn"`
	Transformation gorexos.Transformation `json:"transformation"`
	FileUrn        string                 `json:"fileUrn"`
}

func CreateRoomGeometry

func CreateRoomGeometry(handler gorexos.RequestHandler, projectUrn, roomUrn string, r io.Reader, transform gorexos.Transformation) (Geometry, error)

CreateRoomGeometery uploads a new REXfile representing the room. Only REXfiles are allowed!

type PhysicalObject

type PhysicalObject struct {
	Name           string                 `json:"name"`
	Category       string                 `json:"category"`
	Authored       string                 `json:"authored"`
	Confidence     float32                `json:"confidence"`
	Transformation gorexos.Transformation `json:"transformation"`
}

type PortalReference

type PortalReference struct {
	RexTagURL           string                 `json:"rexTagUrl,omitempty"`
	LocalTransformation gorexos.Transformation `json:"localTransformation,omitempty"`
}

PortalReference is the entry to a project

type Project

type Project struct {
	ProjectBase

	Type        string `json:"type"`
	LastUpdated string `json:"lastUpdated"`
	Rooms       []Room `json:"rooms"`
}

func GetProjectByUrn

func GetProjectByUrn(handler gorexos.RequestHandler, urn string) (Project, error)

type ProjectBase

type ProjectBase struct {
	Name  string `json:"name"`
	Owner string `json:"owner"`
	Urn   string `json:"urn"`

	PortalReference *PortalReference `json:"portalReference"`
}

func CreateProject

func CreateProject(handler gorexos.RequestHandler, p ProjectBase) (ProjectBase, error)

type Room

type Room struct {
	RoomBase

	Geometries []Geometry `json:"geometries"`
}

type RoomBase

type RoomBase struct {
	Name            string           `json:"name"`
	Urn             string           `json:"urn"`
	PhysicalObjects []PhysicalObject `json:"physicalObjects"`
}

func CreateRoom

func CreateRoom(handler gorexos.RequestHandler, projectUrn string, r RoomBase) (RoomBase, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL