show

package module
v0.0.0-...-c730260 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Show

type Show struct {
	// contains filtered or unexported fields
}

func New

func New() *Show

func (*Show) AddDevice

func (s *Show) AddDevice(device common.Device) error

AddDevice add a device to the list of devices which is used for dispatching renders

func (*Show) Allocate

func (s *Show) Allocate(vibe common.Vibe)

Allocate passes a vibe into the tree where it will be allocated to sub devices as it is Stabilized

func (*Show) Clean

func (s *Show) Clean(t time.Time)

Clean removes all stored resources which ended before t

func (*Show) DeleteNode

func (s *Show) DeleteNode(parentID, childID uuid.UUID) error

DeleteNode removes a device from the tree underneath the device with parentID

func (*Show) DispatchRenders

func (s *Show) DispatchRenders(t time.Time)

DispatchRenders dispatches renders to all connected subs

func (*Show) GetDeviceInfo

func (s *Show) GetDeviceInfo(deviceID uuid.UUID) (common.DeviceInfo, error)

GetDeviceInfo returns the info about a device, if found

func (*Show) GetDeviceInfoAll

func (s *Show) GetDeviceInfoAll() []common.DeviceInfo

GetDeviceInfoAll returns the info for all devices

func (*Show) GetNodeInfo

func (s *Show) GetNodeInfo(nodeID uuid.UUID) (common.NodeInfo, error)

GetNodeInfo returns the info about a node, if found in the tree

func (Show) GetRootNodeInfo

func (s Show) GetRootNodeInfo() common.NodeInfo

Returns the info of the root node

func (*Show) InsertNode

func (s *Show) InsertNode(parentID, childID uuid.UUID) error

InsertNode places a node, found from existing devices, into the tree underneath the node with parentID

func (*Show) MarshalJSON

func (s *Show) MarshalJSON() ([]byte, error)

func (*Show) MoveDevice

func (s *Show) MoveDevice(deviceID uuid.UUID, bearing space.Object) error

MoveDevice changes a devices location and orientation (rotation implicitly also)

func (*Show) NewNode

func (s *Show) NewNode(parentID uuid.UUID, nodeType string) (uuid.UUID, error)

NewNode creates a new node of the given type and inserts it into the tree underneath the node with parentID the id of the new node is returned

func (*Show) UnmarshalJSON

func (s *Show) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL