Documentation
¶
Index ¶
- Constants
- Variables
- func CompleteMeshTasks(meshTasks *MeshTasks, config MVRParserConfig) *MeshTypes.Mesh
- func CreateGeometryReferencePointers[T GeometryReferenceCreation](refPointers *ReferencePointers, source *[]T, parentPrefix string)
- func CreateMeshTasks[T MeshTaskCreator](objects []T, meshTasks *MeshTasks, modelConfig ModelConfig, ...)
- func CreateReferencePointers[T ReferenceCreation](refPointers *ReferencePointers, source *[]T)
- func CreateReferencePointersMap[T ReferenceCreation](refPointers *ReferencePointers, source *map[string]T)
- func ReadMeshes[T MeshReader](src []T, fileMap map[string]*zip.File) error
- func ResolveReferences[T ReferenceResolver](refPointers *ReferencePointers, source *[]T)
- func ResolveReferencesMap[T ReferenceResolver](refPointers *ReferencePointers, source *map[string]T)
- type Address
- type Addresses
- type Alignment
- type AuxData
- type ChildList
- type Class
- type ColorCIE
- type Connection
- type CustomCommand
- type DMXAddress
- type Data
- type Fixture
- type FocusPoint
- func (obj *FocusPoint) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, ...)
- func (a *FocusPoint) CreateReferencePointer(refPointers *ReferencePointers)
- func (a *FocusPoint) ReadMesh(fileMap map[string]*zip.File) error
- func (a *FocusPoint) ResolveReference(refPointers *ReferencePointers)
- type GDTF
- type GeneralSceneDescription
- type Geometries
- type Geometry3D
- type GeometryReferenceCreation
- type GlobalModelConfig
- type Gobo
- type GroupObject
- func (obj *GroupObject) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, ...)
- func (a *GroupObject) CreateReferencePointer(refPointers *ReferencePointers)
- func (a *GroupObject) ReadMesh(fileMap map[string]*zip.File) error
- func (a *GroupObject) ResolveReference(refPointers *ReferencePointers)
- type IPv4
- type IPv6
- type Layer
- type MVRParserConfig
- type Mapping
- type MappingDefinition
- type Matrix
- type MeshReader
- type MeshTaskCreator
- type MeshTasks
- type MeshTransformationTask
- type ModelConfig
- type ModelNodeConfig
- type Network
- type NodeReference
- type Overwrite
- type ParentMeshConfig
- type Position
- type Projection
- type Projector
- type Protocol
- type ReferenceCreation
- type ReferencePointers
- type ReferenceResolver
- type Scene
- type SceneObject
- func (obj *SceneObject) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, ...)
- func (a *SceneObject) CreateReferencePointer(refPointers *ReferencePointers)
- func (a *SceneObject) ReadMesh(fileMap map[string]*zip.File) error
- func (a *SceneObject) ResolveReference(refPointers *ReferencePointers)
- type Source
- type Support
- type SymDef
- type Symbol
- type Truss
- type UserData
- type Vector
- type VideoScreen
- func (obj *VideoScreen) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, ...)
- func (a *VideoScreen) CreateReferencePointer(refPointers *ReferencePointers)
- func (a *VideoScreen) ReadMesh(fileMap map[string]*zip.File) error
- func (a *VideoScreen) ResolveReference(refPointers *ReferencePointers)
Constants ¶
View Source
const ( IgnoreMeshes = 0 // ignore meshes entirely (leave nil) ReadMeshesIntoModels = 1 // generate individual model part meshes BuildFixtureModels = 2 // assemble single mesh with correct rotations per fixture type BuildStageModel = 3 // assemble )
Variables ¶
View Source
var FalsePtr = false
View Source
var TruePtr = true
Functions ¶
func CompleteMeshTasks ¶
func CompleteMeshTasks(meshTasks *MeshTasks, config MVRParserConfig) *MeshTypes.Mesh
func CreateGeometryReferencePointers ¶
func CreateGeometryReferencePointers[T GeometryReferenceCreation](refPointers *ReferencePointers, source *[]T, parentPrefix string)
func CreateMeshTasks ¶
func CreateMeshTasks[T MeshTaskCreator](objects []T, meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func CreateReferencePointers ¶
func CreateReferencePointers[T ReferenceCreation](refPointers *ReferencePointers, source *[]T)
func CreateReferencePointersMap ¶
func CreateReferencePointersMap[T ReferenceCreation](refPointers *ReferencePointers, source *map[string]T)
func ReadMeshes ¶
func ReadMeshes[T MeshReader](src []T, fileMap map[string]*zip.File) error
func ResolveReferences ¶
func ResolveReferences[T ReferenceResolver](refPointers *ReferencePointers, source *[]T)
func ResolveReferencesMap ¶
func ResolveReferencesMap[T ReferenceResolver](refPointers *ReferencePointers, source *map[string]T)
Types ¶
type Address ¶
type Address struct {
Break int
Value DMXAddress
}
type AuxData ¶
type AuxData struct {
SymDefs []*SymDef
Positions []*Position
MappingDefinitions []*MappingDefinition
Classes []*Class
}
auxiliary data for the scene node
func (*AuxData) CreateReferencePointer ¶
func (a *AuxData) CreateReferencePointer(refPointers *ReferencePointers)
type ChildList ¶
type ChildList struct {
SceneObjects []*SceneObject
GroupObjects []*GroupObject
FocusPoints []*FocusPoint
Fixtures []*Fixture
Supports []*Support
Trusses []*Truss
VideoScreens []*VideoScreen
Projectors []*Projector
}
func (*ChildList) CreateMeshTask ¶
func (a *ChildList) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*ChildList) CreateReferencePointer ¶
func (c *ChildList) CreateReferencePointer(refPointers *ReferencePointers)
func (*ChildList) ResolveReference ¶
func (c *ChildList) ResolveReference(refPointers *ReferencePointers)
type Class ¶
logical grouping across different layers
func (*Class) CreateReferencePointer ¶
func (a *Class) CreateReferencePointer(refPointers *ReferencePointers)
type Connection ¶
type Connection struct {
Own string // Node Link to the Geometry with DIN SPEC 15800 Type Wiring Object . Starting point is the Geometry Collect of the linked GDTF.
Other string // 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 NodeReference[any] // UUID of an other object in the scene.
}
type CustomCommand ¶
type DMXAddress ¶
NOTE: values are 0 indexed
func GetDMXAddress ¶
func GetDMXAddress(value string) (*DMXAddress, error)
type Fixture ¶
type Fixture struct {
UUID string
Name string
Multipatch *string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
GDTFSpec NodeReference[GDTF]
GDTFMode string
Focus NodeReference[FocusPoint]
CastShadow bool
DMXInvertPan bool
DMXInvertTilt bool
Position NodeReference[Position]
Function *string
FixtureID string
FixtureIDNumeric int
UnitNumber int
ChildPosition string // Node link to the geometry. Starting point is the Geometry Collect of the linked parent GDTF of this object.
Addresses *Addresses
Protocols []*Protocol
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
Color *ColorCIE
CustomId int
CustomIdType int
Mappings []*Mapping
Gobo *Gobo
ChildList
}
func (*Fixture) CreateMeshTask ¶
func (obj *Fixture) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Fixture) CreateReferencePointer ¶
func (a *Fixture) CreateReferencePointer(refPointers *ReferencePointers)
func (*Fixture) ResolveReference ¶
func (a *Fixture) ResolveReference(refPointers *ReferencePointers)
type FocusPoint ¶
type FocusPoint struct {
UUID string
Name string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Geometries *Geometries
}
func (*FocusPoint) CreateMeshTask ¶
func (obj *FocusPoint) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*FocusPoint) CreateReferencePointer ¶
func (a *FocusPoint) CreateReferencePointer(refPointers *ReferencePointers)
func (*FocusPoint) ResolveReference ¶
func (a *FocusPoint) ResolveReference(refPointers *ReferencePointers)
type GeneralSceneDescription ¶
type GeneralSceneDescription struct {
VersionMajor int
VersionMinor int
Provider string
ProviderVersion string
UserData *UserData
Scene *Scene
StageModel *MeshTypes.Mesh
}
func (*GeneralSceneDescription) CreateMeshTasks ¶
func (a *GeneralSceneDescription) CreateMeshTasks(meshTasks *MeshTasks, modelConfig ModelConfig)
func (*GeneralSceneDescription) CreateReferencePointer ¶
func (a *GeneralSceneDescription) CreateReferencePointer(refPointers *ReferencePointers)
func (*GeneralSceneDescription) ResolveReference ¶
func (a *GeneralSceneDescription) ResolveReference(refPointers *ReferencePointers)
type Geometries ¶
type Geometries struct {
Geometry3D []*Geometry3D
Symbol []*Symbol
}
func (*Geometries) CreateMeshTask ¶
func (obj *Geometries) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Geometries) ResolveReference ¶
func (a *Geometries) ResolveReference(refPointers *ReferencePointers)
type Geometry3D ¶
type GeometryReferenceCreation ¶
type GeometryReferenceCreation interface {
CreateGeometryReferencePointer(refPointers *ReferencePointers, parentPrefix string)
}
type GlobalModelConfig ¶
type GlobalModelConfig struct {
RenderOnlyAddressedFixture bool
}
type GroupObject ¶
type GroupObject struct {
UUID string
Name string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
ChildList
}
func (*GroupObject) CreateMeshTask ¶
func (obj *GroupObject) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*GroupObject) CreateReferencePointer ¶
func (a *GroupObject) CreateReferencePointer(refPointers *ReferencePointers)
func (*GroupObject) ResolveReference ¶
func (a *GroupObject) ResolveReference(refPointers *ReferencePointers)
type Layer ¶
spatial representation of a geometric container
func (*Layer) CreateReferencePointer ¶
func (a *Layer) CreateReferencePointer(refPointers *ReferencePointers)
func (*Layer) ResolveReference ¶
func (a *Layer) ResolveReference(refPointers *ReferencePointers)
type MVRParserConfig ¶
type MVRParserConfig struct {
MeshHandling int
ReadThumbnail bool
GDTFParserWorkers int
StageMeshWorkers int
ModelConfig ModelConfig
}
type Mapping ¶
type Mapping struct {
LinkedDef NodeReference[MappingDefinition]
Ux int
Uy int
Ox int
Oy int
Rz float32
}
func (*Mapping) ResolveReference ¶
func (a *Mapping) ResolveReference(refPointers *ReferencePointers)
type MappingDefinition ¶
type MappingDefinition struct {
UUID string
Name string
SizeX int
SizeY int
Source Source
ScaleHandeling *string // ScaleKeepRatio or ScaleIgnoreRatio or KeepSizeCenter
}
input source for fixture color mapping applications
func (*MappingDefinition) CreateReferencePointer ¶
func (a *MappingDefinition) CreateReferencePointer(refPointers *ReferencePointers)
type MeshTaskCreator ¶
type MeshTaskCreator interface {
CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
}
type MeshTasks ¶
type MeshTasks = []MeshTransformationTask
type MeshTransformationTask ¶
type ModelConfig ¶
type ModelConfig struct {
Global GlobalModelConfig
Individual map[string]ModelNodeConfig // configure by Node (fixture, ...) UUID (also applies to children)
}
type ModelNodeConfig ¶
type NodeReference ¶
type Overwrite ¶
type Overwrite struct {
Universal string // Node Link to the Wheel, Emitter or Filter. Starting point is the the collect of the Universal GDTF.
Target string // 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 ParentMeshConfig ¶
type ParentMeshConfig struct {
Transformation MeshTypes.Matrix
ModelConfig ModelNodeConfig
}
type Position ¶
logical grouping of lighting devices and trusses
func (*Position) CreateReferencePointer ¶
func (a *Position) CreateReferencePointer(refPointers *ReferencePointers)
type Projection ¶
type Projector ¶
type Projector struct {
UUID string
Name string
Multipatch string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Geometries *Geometries
Projections []*Projection
Function *string
GDTFSpec NodeReference[GDTF]
GDTFMode string
CastShadow bool
Addresses *Addresses
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
FixtureID string
FixtureIDNumeric int
UnitNumber int
CustomId int
CustomIdType int
ChildList
}
func (*Projector) CreateMeshTask ¶
func (obj *Projector) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Projector) CreateReferencePointer ¶
func (a *Projector) CreateReferencePointer(refPointers *ReferencePointers)
func (*Projector) ResolveReference ¶
func (a *Projector) ResolveReference(refPointers *ReferencePointers)
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 ReferenceCreation ¶
type ReferenceCreation interface {
CreateReferencePointer(refPointers *ReferencePointers)
}
type ReferencePointers ¶
type ReferencePointers struct {
GDTFSpecs map[string]*GDTF // handled seperately
Classes map[string]*Class
Positions map[string]*Position
SymDefs map[string]*SymDef
MappingDefinitions map[string]*MappingDefinition
FoucsPoints map[string]*FocusPoint
Object map[string]*any
}
func CreateRefPointersMap ¶
func CreateRefPointersMap() *ReferencePointers
type ReferenceResolver ¶
type ReferenceResolver interface {
ResolveReference(refPointers *ReferencePointers)
}
type Scene ¶
func (*Scene) CreateReferencePointer ¶
func (a *Scene) CreateReferencePointer(refPointers *ReferencePointers)
func (*Scene) ResolveReference ¶
func (a *Scene) ResolveReference(refPointers *ReferencePointers)
type SceneObject ¶
type SceneObject struct {
UUID string
Name string
Multipatch string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Geometries *Geometries
GDTFSpec NodeReference[GDTF]
GDTFMode string
CastShadow bool
Addresses *Addresses
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
FixtureID string
FixtureIDNumeric int
UnitNumber int
CustomId int
CustomIdType int
ChildList
}
func (*SceneObject) CreateMeshTask ¶
func (obj *SceneObject) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*SceneObject) CreateReferencePointer ¶
func (a *SceneObject) CreateReferencePointer(refPointers *ReferencePointers)
func (*SceneObject) ResolveReference ¶
func (a *SceneObject) ResolveReference(refPointers *ReferencePointers)
type Support ¶
type Support struct {
UUID string
Name string
Multipatch string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Position NodeReference[Position]
Geometries *Geometries
Function *string
ChainLength float32
GDTFSpec NodeReference[GDTF]
GDTFMode string
CastShadow bool
Addresses *Addresses
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
FixtureID string
FixtureIDNumeric int
UnitNumber int
CustomId int
CustomIdType int
ChildList
}
func (*Support) CreateMeshTask ¶
func (obj *Support) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Support) CreateReferencePointer ¶
func (a *Support) CreateReferencePointer(refPointers *ReferencePointers)
func (*Support) ResolveReference ¶
func (a *Support) ResolveReference(refPointers *ReferencePointers)
type SymDef ¶
type SymDef struct {
UUID string
Name string
Geometries *Geometries
}
contains the graphics so the scene can refer to this, thus optimizing repetition of the geometry
func (*SymDef) CreateReferencePointer ¶
func (a *SymDef) CreateReferencePointer(refPointers *ReferencePointers)
func (*SymDef) ResolveReference ¶
func (a *SymDef) ResolveReference(refPointers *ReferencePointers)
type Symbol ¶
type Symbol struct {
UUID string
SymDef NodeReference[SymDef]
Matrix MeshTypes.Matrix
}
func (*Symbol) CreateMeshTask ¶
func (a *Symbol) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Symbol) ResolveReference ¶
func (a *Symbol) ResolveReference(refPointers *ReferencePointers)
type Truss ¶
type Truss struct {
UUID string
Name string
Multipatch string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Position NodeReference[Position]
Geometries *Geometries
Function *string
GDTFSpec NodeReference[GDTF]
GDTFMode string
CastShadow bool
Addresses *Addresses
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
ChildPosition *string // Node link to the geometry. Starting point is the Geometry Collect of the linked parent GDTF of this object.
FixtureID string
FixtureIDNumeric int // v1.6 only, MA exports 1.5
UnitNumber int
CustomId int
CustomIdType int
ChildList
}
func (*Truss) CreateMeshTask ¶
func (obj *Truss) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*Truss) CreateReferencePointer ¶
func (a *Truss) CreateReferencePointer(refPointers *ReferencePointers)
func (*Truss) ResolveReference ¶
func (a *Truss) ResolveReference(refPointers *ReferencePointers)
type VideoScreen ¶
type VideoScreen struct {
UUID string
Name string
Multipatch string
Matrix MeshTypes.Matrix
Class NodeReference[Class]
Geometries *Geometries
Sources []*Source
Function *string
GDTFSpec NodeReference[GDTF]
GDTFMode string
CastShadow bool
Addresses *Addresses
Alignments []*Alignment
CustomCommands []*CustomCommand
Overwrites []*Overwrite
Connections []*Connection
FixtureID string
FixtureIDNumeric int
UnitNumber int
CustomId int
CustomIdType int
ChildList
}
func (*VideoScreen) CreateMeshTask ¶
func (obj *VideoScreen) CreateMeshTask(meshTasks *MeshTasks, modelConfig ModelConfig, parentMeshConfig ParentMeshConfig)
func (*VideoScreen) CreateReferencePointer ¶
func (a *VideoScreen) CreateReferencePointer(refPointers *ReferencePointers)
func (*VideoScreen) ResolveReference ¶
func (a *VideoScreen) ResolveReference(refPointers *ReferencePointers)
Click to show internal directories.
Click to hide internal directories.