Documentation
¶
Index ¶
- func ParseList[Source ConvertToDestinationStruct[Destination], Destination any](config ParseConfigData, source *[]Source) []Destination
- func ParseMap[Source ConvertToDestinationMapStruct[Destination], Destination any](config ParseConfigData, source *[]Source) map[string]*Destination
- type Address
- type Addresses
- type Alignment
- type AuxData
- type ChildList
- type Class
- type ColorCIE
- type Connection
- type ConvertToDestinationMapStruct
- type ConvertToDestinationStruct
- type CustomCommand
- type Data
- type Fixture
- type FocusPoint
- type GeneralSceneDescription
- type Geometries
- type Geometry3D
- type Gobo
- type GroupObject
- type IPv4
- type IPv6
- type Layer
- type Mapping
- type MappingDefinition
- type Matrix
- type Network
- type Overwrite
- type ParseConfigData
- type Position
- type Projection
- type Projector
- type Protocol
- type Scene
- type SceneObject
- type Source
- type Support
- type SymDef
- type Symbol
- type Truss
- type UserData
- type Vector
- type VideoScreen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseList ¶
func ParseList[Source ConvertToDestinationStruct[Destination], Destination any](config ParseConfigData, source *[]Source) []Destination
func ParseMap ¶
func ParseMap[Source ConvertToDestinationMapStruct[Destination], Destination any](config ParseConfigData, source *[]Source) map[string]*Destination
Types ¶
type Address ¶
type Alignment ¶
type AuxData ¶
type AuxData struct {
SymDefs []*SymDef `xml:"Symdef"`
Positions []*Position `xml:"Position"`
MappingDefinitions []*MappingDefinition `xml:"MappingDefinition"`
Classes []*Class `xml:"Class"`
}
type ChildList ¶
type ChildList struct {
SceneObjects []*SceneObject `xml:"ChildList>SceneObject,omitempty"`
GroupObjects []*GroupObject `xml:"ChildList>GroupObject,omitempty"`
FocusPoints []*FocusPoint `xml:"ChildList>FocusPoint,omitempty"`
Fixtures []*Fixture `xml:"ChildList>Fixture,omitempty"`
Supports []*Support `xml:"ChildList>Support,omitempty"`
Trusses []*Truss `xml:"ChildList>Truss,omitempty"`
VideoScreens []*VideoScreen `xml:"ChildList>VideoScreen,omitempty"`
Projectors []*Projector `xml:"ChildList>Projector,omitempty"`
}
type Connection ¶
type Connection struct {
Own string `xml:"own,attr"` // Node Link to the Geometry with DIN SPEC 15800 Type Wiring Object . Starting point is the Geometry Collect of the linked GDTF.
Other string `xml:"other,attr"` // Node Link to the Geometry with DIN SPEC 15800 Type Wiring Object . Starting point is the Geometry Collect of the linked GDTF of the object defined in toObject.
ToObject string `xml:"toObject,attr"` // UUID of an other object in the scene.
}
func (*Connection) Parse ¶
func (a *Connection) Parse(config ParseConfigData) *MVRTypes.Connection
type ConvertToDestinationMapStruct ¶
type ConvertToDestinationMapStruct[T any] interface { ConvertToDestinationStruct[T] ParseKey() string }
type ConvertToDestinationStruct ¶
type ConvertToDestinationStruct[T any] interface { Parse(config ParseConfigData) T }
type CustomCommand ¶
type CustomCommand string
func (*CustomCommand) Parse ¶
func (a *CustomCommand) Parse(config ParseConfigData) *MVRTypes.CustomCommand
type Fixture ¶
type Fixture struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch *string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
Focus string `xml:"Foces"`
CastShadow bool `xml:"CastShadow"`
DMXInvertPan bool `xml:"DMXInvertPan"`
DMXInvertTilt bool `xml:"DMXInvertTilt"`
Position *string `xml:"Position,omitempty"`
Function *string `xml:"Function,omitempty"`
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"`
UnitNumber int `xml:"UnitNumber"`
ChildPosition string `xml:"ChildPosition"`
Addresses *Addresses `xml:"Addresses"`
Protocols []*Protocol `xml:"Protocols>Protocol"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
Color *ColorCIE `xml:"Color"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
Mappings []*Mapping `xml:"Mappings>Mapping"`
Gobo *Gobo `xml:"Gobo,omitempty"`
ChildList
}
type FocusPoint ¶
type FocusPoint struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Geometries Geometries `xml:"Geometries"`
}
func (*FocusPoint) Parse ¶
func (a *FocusPoint) Parse(config ParseConfigData) *MVRTypes.FocusPoint
type GeneralSceneDescription ¶
type GeneralSceneDescription struct {
VersionMajor int `xml:"verMajor,attr"`
VersionMinor int `xml:"verMinor,attr"`
Provider string `xml:"provider,attr"`
ProviderVersion string `xml:"providerVersion,attr"`
UserData *UserData `xml:"UserData"`
Scene Scene `xml:"Scene"`
}
func (*GeneralSceneDescription) Parse ¶
func (obj *GeneralSceneDescription) Parse(config ParseConfigData) *MVRTypes.GeneralSceneDescription
type Geometries ¶
type Geometries struct {
Geometry3D []*Geometry3D `xml:"Geometry3D"`
Symbol []*Symbol `xml:"Symbol"`
}
func (*Geometries) Parse ¶
func (a *Geometries) Parse(config ParseConfigData) *MVRTypes.Geometries
type Geometry3D ¶
type Geometry3D struct {
FileName fileName `xml:"fileName,attr"`
Matrix *Matrix `xml:"Matrix,omitempty"`
}
func (*Geometry3D) Parse ¶
func (a *Geometry3D) Parse(config ParseConfigData) *MVRTypes.Geometry3D
type GroupObject ¶
type GroupObject struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Matrix *Matrix `xml:"Matrix"`
Class *string `xml:"Classing"`
ChildList
}
func (*GroupObject) Parse ¶
func (a *GroupObject) Parse(config ParseConfigData) *MVRTypes.GroupObject
type Layer ¶
type MappingDefinition ¶
type MappingDefinition struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
SizeX int `xml:"SizeX"`
SizeY int `xml:"SizeY"`
Source Source `xml:"Source"`
ScaleHandeling *string `xml:"ScaleHandeling"` // ScaleKeepRatio or ScaleIgnoreRatio or KeepSizeCenter
}
func (*MappingDefinition) Parse ¶
func (a *MappingDefinition) Parse(config ParseConfigData) *MVRTypes.MappingDefinition
type Network ¶
type Overwrite ¶
type Overwrite struct {
Universal string `xml:"universal,attr"` // Node Link to the Wheel, Emitter or Filter. Starting point is the the collect of the Universal GDTF.
Target string `xml:"target,attr"` // Node Link to the Wheel, Emitter or Filter. Starting point is the the collect of the linked GDTF of the fixture. When no target is given, it will be like a static gobo or filter that you attach in front of all beams
}
This node defines an overwrite with the Universal.gdtt GDTF template inside the MVR to overwrite Wheel Slots, Emitters and Filters for the fixture
type ParseConfigData ¶
type ParseConfigData struct {
GDTFTaskMap *map[string]*GDTFReader.GDTFTask
}
type Projection ¶
type Projection struct {
Source Source `xml:"Source"`
ScaleHandeling string `xml:"ScaleHandeling"`
}
func (*Projection) Parse ¶
func (a *Projection) Parse(config ParseConfigData) *MVRTypes.Projection
type Projector ¶
type Projector struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Geometries Geometries `xml:"Geometries"`
Projections []*Projection `xml:"Projections>Projection"`
Function *string `xml:"Function,omitempty"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
CastShadow bool `xml:"CastShadow"`
Addresses *Addresses `xml:"Addresses"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"`
UnitNumber int `xml:"UnitNumber"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
ChildList
}
type Protocol ¶
type Protocol struct {
Geometry string // defaults to NetworkInOut_1
Name string // Custom Name of the protocol to identify the protocol. Needs to be unique for this instance of object.
Type string // Name of the protocol.
Version string // This is the protocol version if available.
Transmission string // Unicast, Multicast, Broadcast, Anycast
}
type SceneObject ¶
type SceneObject struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Geometries Geometries `xml:"Geometries"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
CastShadow bool `xml:"CastShadow"`
Addresses *Addresses `xml:"Addresses"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"`
UnitNumber int `xml:"UnitNumber"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
ChildList
}
func (*SceneObject) Parse ¶
func (a *SceneObject) Parse(config ParseConfigData) *MVRTypes.SceneObject
type Source ¶
type Support ¶
type Support struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Position *string `xml:"Position,omitempty"`
Geometries Geometries `xml:"Geometries"`
Function *string `xml:"Function,omitempty"`
ChainLength float32 `xml:"ChainLength"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
CastShadow bool `xml:"CastShadow"`
Addresses *Addresses `xml:"Addresses"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"`
UnitNumber int `xml:"UnitNumber"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
ChildList
}
type SymDef ¶
type SymDef struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Geometries Geometries `xml:"ChildList"`
}
type Symbol ¶
type Truss ¶
type Truss struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Position *string `xml:"Position,omitempty"`
Geometries Geometries `xml:"Geometries"`
Function *string `xml:"Function,omitempty"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
CastShadow bool `xml:"CastShadow"`
Addresses *Addresses `xml:"Addresses"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
ChildPosition *string `xml:"ChildPosition,omitempty"` // Node link to the geometry. Starting point is the Geometry Collect of the linked parent GDTF of this object.
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"` // v1.6 only, MA exports 1.5
UnitNumber int `xml:"UnitNumber"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
ChildList
}
type VideoScreen ¶
type VideoScreen struct {
UUID string `xml:"uuid,attr"`
Name string `xml:"name,attr"`
Multipatch string `xml:"multipatch,attr,omitempty"`
Matrix *Matrix `xml:"Matrix,omitempty"`
Class *string `xml:"Classing,omitempty"`
Geometries Geometries `xml:"Geometries"`
Sources []*Source `xml:"Sources>Source"`
Function *string `xml:"Function,omitempty"`
GDTFSpec fileName `xml:"GDTFSpec"`
GDTFMode string `xml:"GDTFMode"`
CastShadow bool `xml:"CastShadow"`
Addresses *Addresses `xml:"Addresses"`
Alignments []*Alignment `xml:"Alignments>Alignment"`
CustomCommands []*CustomCommand `xml:"CustomCommands>CustomCommand"`
Overwrites []*Overwrite `xml:"Overwrites>Overwrite"`
Connections []*Connection `xml:"Connections>Connection"`
FixtureID string `xml:"FixtureID"`
FixtureIDNumeric int `xml:"FixtureIDNumeric"`
UnitNumber int `xml:"UnitNumber"`
CustomId int `xml:"CustomId"`
CustomIdType int `xml:"CustomIdType"`
ChildList
}
func (*VideoScreen) Parse ¶
func (a *VideoScreen) Parse(config ParseConfigData) *MVRTypes.VideoScreen
Click to show internal directories.
Click to hide internal directories.