Interface SceneContextType

interface SceneContextType {
    addObject: ((object) => void);
    getAnimations: (() => string[]);
    getMaterialNames: (() => string[]);
    getObjectNames: (() => string[]);
    graph: SceneGraph;
    playAnimation: ((name) => void);
    setColor: ((name, color) => void);
    setMapURL: ((name, mapURL) => void);
    setMorphTargetInfluence: ((name, morphTarget, influence) => void);
    setPosition: ((name, position) => void);
    setRotation: ((name, rotation) => void);
    setScale: ((name, scale) => void);
    setVisible: ((name, visible) => void);
    settings: {
        environmentIntensity: number;
    };
    state: {
        configurationLoaded: boolean;
        modelLoaded: boolean;
        shouldLoad: boolean;
        staged: boolean;
    };
    stopAllAnimations: (() => void);
    updateMaterial: ((name, config) => void);
    updatePosition: ((name, position) => void);
    updateRotation: ((name, rotation) => void);
    updateScale: ((name, scale) => void);
}

Properties

addObject: ((object) => void)

Type declaration

    • (object): void
    • Parameters

      • object: Object3D<Object3DEventMap>

      Returns void

getAnimations: (() => string[])

Type declaration

    • (): string[]
    • Returns string[]

getMaterialNames: (() => string[])

Type declaration

    • (): string[]
    • Returns string[]

getObjectNames: (() => string[])

Type declaration

    • (): string[]
    • Returns string[]

graph: SceneGraph
playAnimation: ((name) => void)

Type declaration

    • (name): void
    • Parameters

      • name: string

      Returns void

setColor: ((name, color) => void)

Type declaration

    • (name, color): void
    • Parameters

      • name: string
      • color: string

      Returns void

setMapURL: ((name, mapURL) => void)

Type declaration

    • (name, mapURL): void
    • Parameters

      • name: string
      • mapURL: string

      Returns void

setMorphTargetInfluence: ((name, morphTarget, influence) => void)

Type declaration

    • (name, morphTarget, influence): void
    • Parameters

      • name: string
      • morphTarget: string
      • influence: number

      Returns void

setPosition: ((name, position) => void)

Type declaration

    • (name, position): void
    • Parameters

      • name: string
      • position: Vector3Tuple

      Returns void

setRotation: ((name, rotation) => void)

Type declaration

    • (name, rotation): void
    • Parameters

      • name: string
      • rotation: Vector3Tuple

      Returns void

setScale: ((name, scale) => void)

Type declaration

    • (name, scale): void
    • Parameters

      • name: string
      • scale: Vector3Tuple

      Returns void

setVisible: ((name, visible) => void)

Type declaration

    • (name, visible): void
    • Parameters

      • name: string
      • visible: boolean

      Returns void

settings: {
    environmentIntensity: number;
}

Type declaration

  • environmentIntensity: number
state: {
    configurationLoaded: boolean;
    modelLoaded: boolean;
    shouldLoad: boolean;
    staged: boolean;
}

Type declaration

  • configurationLoaded: boolean
  • modelLoaded: boolean
  • shouldLoad: boolean
  • staged: boolean
stopAllAnimations: (() => void)

Type declaration

    • (): void
    • Returns void

updateMaterial: ((name, config) => void)

Type declaration

    • (name, config): void
    • Parameters

      Returns void

updatePosition: ((name, position) => void)

Type declaration

    • (name, position): void
    • Parameters

      • name: string
      • position: {
            x?: number;
            y?: number;
            z?: number;
        }
        • Optional x?: number
        • Optional y?: number
        • Optional z?: number

      Returns void

updateRotation: ((name, rotation) => void)

Type declaration

    • (name, rotation): void
    • Parameters

      • name: string
      • rotation: {
            x?: number;
            y?: number;
            z?: number;
        }
        • Optional x?: number
        • Optional y?: number
        • Optional z?: number

      Returns void

updateScale: ((name, scale) => void)

Type declaration

    • (name, scale): void
    • Parameters

      • name: string
      • scale: {
            x?: number;
            y?: number;
            z?: number;
        }
        • Optional x?: number
        • Optional y?: number
        • Optional z?: number

      Returns void

Generated using TypeDoc