show

package module
v0.0.0-...-17ca05c Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: GPL-3.0 Imports: 8 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) 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) GetParentNodeID

func (s Show) GetParentNodeID() uuid.UUID

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) 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

Jump to

Keyboard shortcuts

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