Documentation ¶
Index ¶
- Constants
- type Fixture
- type MegaParProfile
- func (f *MegaParProfile) Copy() Fixture
- func (f *MegaParProfile) DMXValues() []byte
- func (f *MegaParProfile) ID() string
- func (f *MegaParProfile) Offset() int
- func (f *MegaParProfile) SetHeader(h *deviceregistrydef.DeviceHeader) error
- func (f *MegaParProfile) SetProperties(state map[string]interface{}) (bool, error)
- func (f *MegaParProfile) ToDef() *devicedef.Device
Constants ¶
View Source
const (
FixtureTypeMegaParProfile = "mega_par_profile"
)
Fixture types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture interface { SetHeader(*deviceregistrydef.DeviceHeader) error ID() string ToDef() *devicedef.Device DMXValues() []byte Offset() int SetProperties(map[string]interface{}) (bool, error) Copy() Fixture }
Fixture is an addressable device
func NewFixtureFromDeviceHeader ¶
func NewFixtureFromDeviceHeader(h *deviceregistrydef.DeviceHeader) (Fixture, error)
NewFixtureFromDeviceHeader returns a Fixture based on the device's fixture type attribute
type MegaParProfile ¶
type MegaParProfile struct {
// contains filtered or unexported fields
}
MegaParProfile is a light by ADJ
func (*MegaParProfile) Copy ¶
func (f *MegaParProfile) Copy() Fixture
Copy returns a copy of the fixture
func (*MegaParProfile) DMXValues ¶
func (f *MegaParProfile) DMXValues() []byte
DMXValues returns the DMX values for this fixture only
func (*MegaParProfile) Offset ¶
func (f *MegaParProfile) Offset() int
Offset returns the fixture's offset into the channel space
func (*MegaParProfile) SetHeader ¶
func (f *MegaParProfile) SetHeader(h *deviceregistrydef.DeviceHeader) error
SetHeader sets the fixture's header and pulls the offset out of the attributes
func (*MegaParProfile) SetProperties ¶
func (f *MegaParProfile) SetProperties(state map[string]interface{}) (bool, error)
SetProperties sets any properties that exist in the state map
func (*MegaParProfile) ToDef ¶
func (f *MegaParProfile) ToDef() *devicedef.Device
ToDef returns a standard Device type for a MegaParProfile
Click to show internal directories.
Click to hide internal directories.