Documentation ¶
Index ¶
- type Show
- func (s *Show) AddDevice(device common.Device) error
- func (s *Show) Allocate(vibe common.Vibe)
- func (s *Show) Clean(t time.Time)
- func (s *Show) DeleteNode(parentID, childID uuid.UUID) error
- func (s *Show) DispatchRenders(t time.Time)
- func (s *Show) GetDeviceInfo(deviceID uuid.UUID) (common.DeviceInfo, error)
- func (s *Show) GetDeviceInfoAll() []common.DeviceInfo
- func (s *Show) GetNodeInfo(nodeID uuid.UUID) (common.NodeInfo, error)
- func (s Show) GetRootNodeInfo() common.NodeInfo
- func (s *Show) InsertNode(parentID, childID uuid.UUID) error
- func (s *Show) MarshalJSON() ([]byte, error)
- func (s *Show) MoveDevice(deviceID uuid.UUID, bearing space.Object) error
- func (s *Show) NewNode(parentID uuid.UUID, nodeType string) (uuid.UUID, error)
- func (s *Show) UnmarshalJSON(data []byte) error
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 (*Show) AddDevice ¶
AddDevice add a device to the list of devices which is used for dispatching renders
func (*Show) Allocate ¶
Allocate passes a vibe into the tree where it will be allocated to sub devices as it is Stabilized
func (*Show) DeleteNode ¶
DeleteNode removes a device from the tree underneath the device with parentID
func (*Show) DispatchRenders ¶
DispatchRenders dispatches renders to all connected subs
func (*Show) GetDeviceInfo ¶
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 ¶
GetNodeInfo returns the info about a node, if found in the tree
func (Show) GetRootNodeInfo ¶
Returns the info of the root node
func (*Show) InsertNode ¶
InsertNode places a node, found from existing devices, into the tree underneath the node with parentID
func (*Show) MarshalJSON ¶
func (*Show) MoveDevice ¶
MoveDevice changes a devices location and orientation (rotation implicitly also)
func (*Show) NewNode ¶
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