|
@@ -16756,6 +16756,8 @@ declare module "babylonjs/Meshes/instancedMesh" {
|
|
_syncSubMeshes(): InstancedMesh;
|
|
_syncSubMeshes(): InstancedMesh;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_generatePointsArray(): boolean;
|
|
_generatePointsArray(): boolean;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _updateBoundingInfo(): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Creates a new InstancedMesh from the current mesh.
|
|
* Creates a new InstancedMesh from the current mesh.
|
|
* - name (string) : the cloned mesh name
|
|
* - name (string) : the cloned mesh name
|
|
@@ -52814,7 +52816,7 @@ declare module "babylonjs/Debug/rayHelper" {
|
|
private _renderLine;
|
|
private _renderLine;
|
|
private _renderFunction;
|
|
private _renderFunction;
|
|
private _scene;
|
|
private _scene;
|
|
- private _updateToMeshFunction;
|
|
|
|
|
|
+ private _onAfterRenderObserver;
|
|
private _onAfterStepObserver;
|
|
private _onAfterStepObserver;
|
|
private _attachedToMesh;
|
|
private _attachedToMesh;
|
|
private _meshSpaceDirection;
|
|
private _meshSpaceDirection;
|
|
@@ -55894,6 +55896,7 @@ declare module "babylonjs/Gizmos/gizmoManager" {
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Scene, IDisposable } from "babylonjs/scene";
|
|
import { Scene, IDisposable } from "babylonjs/scene";
|
|
|
|
+ import { Node } from "babylonjs/node";
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
import { UtilityLayerRenderer } from "babylonjs/Rendering/utilityLayerRenderer";
|
|
import { UtilityLayerRenderer } from "babylonjs/Rendering/utilityLayerRenderer";
|
|
import { SixDofDragBehavior } from "babylonjs/Behaviors/Meshes/sixDofDragBehavior";
|
|
import { SixDofDragBehavior } from "babylonjs/Behaviors/Meshes/sixDofDragBehavior";
|
|
@@ -55902,7 +55905,7 @@ declare module "babylonjs/Gizmos/gizmoManager" {
|
|
import { ScaleGizmo } from "babylonjs/Gizmos/scaleGizmo";
|
|
import { ScaleGizmo } from "babylonjs/Gizmos/scaleGizmo";
|
|
import { BoundingBoxGizmo } from "babylonjs/Gizmos/boundingBoxGizmo";
|
|
import { BoundingBoxGizmo } from "babylonjs/Gizmos/boundingBoxGizmo";
|
|
/**
|
|
/**
|
|
- * Helps setup gizmo's in the scene to rotate/scale/position meshes
|
|
|
|
|
|
+ * Helps setup gizmo's in the scene to rotate/scale/position nodes
|
|
*/
|
|
*/
|
|
export class GizmoManager implements IDisposable {
|
|
export class GizmoManager implements IDisposable {
|
|
private scene;
|
|
private scene;
|
|
@@ -55919,9 +55922,12 @@ declare module "babylonjs/Gizmos/gizmoManager" {
|
|
clearGizmoOnEmptyPointerEvent: boolean;
|
|
clearGizmoOnEmptyPointerEvent: boolean;
|
|
/** Fires an event when the manager is attached to a mesh */
|
|
/** Fires an event when the manager is attached to a mesh */
|
|
onAttachedToMeshObservable: Observable<Nullable<AbstractMesh>>;
|
|
onAttachedToMeshObservable: Observable<Nullable<AbstractMesh>>;
|
|
|
|
+ /** Fires an event when the manager is attached to a node */
|
|
|
|
+ onAttachedToNodeObservable: Observable<Nullable<Node>>;
|
|
private _gizmosEnabled;
|
|
private _gizmosEnabled;
|
|
private _pointerObserver;
|
|
private _pointerObserver;
|
|
private _attachedMesh;
|
|
private _attachedMesh;
|
|
|
|
+ private _attachedNode;
|
|
private _boundingBoxColor;
|
|
private _boundingBoxColor;
|
|
private _defaultUtilityLayer;
|
|
private _defaultUtilityLayer;
|
|
private _defaultKeepDepthUtilityLayer;
|
|
private _defaultKeepDepthUtilityLayer;
|
|
@@ -55935,7 +55941,11 @@ declare module "babylonjs/Gizmos/gizmoManager" {
|
|
*/
|
|
*/
|
|
attachableMeshes: Nullable<Array<AbstractMesh>>;
|
|
attachableMeshes: Nullable<Array<AbstractMesh>>;
|
|
/**
|
|
/**
|
|
- * If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh. (Default: true)
|
|
|
|
|
|
+ * Array of nodes which will have the gizmo attached when a pointer selected them. If null, all nodes are attachable. (Default: null)
|
|
|
|
+ */
|
|
|
|
+ attachableNodes: Nullable<Array<Node>>;
|
|
|
|
+ /**
|
|
|
|
+ * If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh/attachToNode. (Default: true)
|
|
*/
|
|
*/
|
|
usePointerToAttachGizmos: boolean;
|
|
usePointerToAttachGizmos: boolean;
|
|
/**
|
|
/**
|
|
@@ -55958,6 +55968,11 @@ declare module "babylonjs/Gizmos/gizmoManager" {
|
|
*/
|
|
*/
|
|
attachToMesh(mesh: Nullable<AbstractMesh>): void;
|
|
attachToMesh(mesh: Nullable<AbstractMesh>): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Attaches a set of gizmos to the specified node
|
|
|
|
+ * @param node The node the gizmo's should be attached to
|
|
|
|
+ */
|
|
|
|
+ attachToNode(node: Nullable<Node>): void;
|
|
|
|
+ /**
|
|
* If the position gizmo is enabled
|
|
* If the position gizmo is enabled
|
|
*/
|
|
*/
|
|
set positionGizmoEnabled(value: boolean);
|
|
set positionGizmoEnabled(value: boolean);
|
|
@@ -56347,6 +56362,52 @@ declare module "babylonjs/Gizmos/lightGizmo" {
|
|
private static _CreateDirectionalLightMesh;
|
|
private static _CreateDirectionalLightMesh;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Gizmos/cameraGizmo" {
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { Gizmo } from "babylonjs/Gizmos/gizmo";
|
|
|
|
+ import { UtilityLayerRenderer } from "babylonjs/Rendering/utilityLayerRenderer";
|
|
|
|
+ import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
|
|
|
|
+ import { Camera } from "babylonjs/Cameras/camera";
|
|
|
|
+ /**
|
|
|
|
+ * Gizmo that enables viewing a camera
|
|
|
|
+ */
|
|
|
|
+ export class CameraGizmo extends Gizmo {
|
|
|
|
+ private _cameraMesh;
|
|
|
|
+ private _cameraLinesMesh;
|
|
|
|
+ private _material;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a CameraGizmo
|
|
|
|
+ * @param gizmoLayer The utility layer the gizmo will be added to
|
|
|
|
+ */
|
|
|
|
+ constructor(gizmoLayer?: UtilityLayerRenderer);
|
|
|
|
+ private _camera;
|
|
|
|
+ /** Gets or sets a boolean indicating if frustum lines must be rendered (true by default)) */
|
|
|
|
+ get displayFrustum(): boolean;
|
|
|
|
+ set displayFrustum(value: boolean);
|
|
|
|
+ /**
|
|
|
|
+ * The camera that the gizmo is attached to
|
|
|
|
+ */
|
|
|
|
+ set camera(camera: Nullable<Camera>);
|
|
|
|
+ get camera(): Nullable<Camera>;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the material used to render the camera gizmo
|
|
|
|
+ */
|
|
|
|
+ get material(): StandardMaterial;
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * Updates the gizmo to match the attached mesh's position/rotation
|
|
|
|
+ */
|
|
|
|
+ protected _update(): void;
|
|
|
|
+ private static _Scale;
|
|
|
|
+ private _invProjection;
|
|
|
|
+ /**
|
|
|
|
+ * Disposes of the camera gizmo
|
|
|
|
+ */
|
|
|
|
+ dispose(): void;
|
|
|
|
+ private static _CreateCameraMesh;
|
|
|
|
+ private static _CreateCameraFrustum;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Gizmos/index" {
|
|
declare module "babylonjs/Gizmos/index" {
|
|
export * from "babylonjs/Gizmos/axisDragGizmo";
|
|
export * from "babylonjs/Gizmos/axisDragGizmo";
|
|
export * from "babylonjs/Gizmos/axisScaleGizmo";
|
|
export * from "babylonjs/Gizmos/axisScaleGizmo";
|
|
@@ -56358,6 +56419,7 @@ declare module "babylonjs/Gizmos/index" {
|
|
export * from "babylonjs/Gizmos/rotationGizmo";
|
|
export * from "babylonjs/Gizmos/rotationGizmo";
|
|
export * from "babylonjs/Gizmos/scaleGizmo";
|
|
export * from "babylonjs/Gizmos/scaleGizmo";
|
|
export * from "babylonjs/Gizmos/lightGizmo";
|
|
export * from "babylonjs/Gizmos/lightGizmo";
|
|
|
|
+ export * from "babylonjs/Gizmos/cameraGizmo";
|
|
export * from "babylonjs/Gizmos/planeDragGizmo";
|
|
export * from "babylonjs/Gizmos/planeDragGizmo";
|
|
}
|
|
}
|
|
declare module "babylonjs/Shaders/ShadersInclude/backgroundFragmentDeclaration" {
|
|
declare module "babylonjs/Shaders/ShadersInclude/backgroundFragmentDeclaration" {
|
|
@@ -95324,6 +95386,8 @@ declare module BABYLON {
|
|
_syncSubMeshes(): InstancedMesh;
|
|
_syncSubMeshes(): InstancedMesh;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_generatePointsArray(): boolean;
|
|
_generatePointsArray(): boolean;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _updateBoundingInfo(): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Creates a new InstancedMesh from the current mesh.
|
|
* Creates a new InstancedMesh from the current mesh.
|
|
* - name (string) : the cloned mesh name
|
|
* - name (string) : the cloned mesh name
|
|
@@ -129774,7 +129838,7 @@ declare module BABYLON {
|
|
private _renderLine;
|
|
private _renderLine;
|
|
private _renderFunction;
|
|
private _renderFunction;
|
|
private _scene;
|
|
private _scene;
|
|
- private _updateToMeshFunction;
|
|
|
|
|
|
+ private _onAfterRenderObserver;
|
|
private _onAfterStepObserver;
|
|
private _onAfterStepObserver;
|
|
private _attachedToMesh;
|
|
private _attachedToMesh;
|
|
private _meshSpaceDirection;
|
|
private _meshSpaceDirection;
|
|
@@ -132604,7 +132668,7 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
- * Helps setup gizmo's in the scene to rotate/scale/position meshes
|
|
|
|
|
|
+ * Helps setup gizmo's in the scene to rotate/scale/position nodes
|
|
*/
|
|
*/
|
|
export class GizmoManager implements IDisposable {
|
|
export class GizmoManager implements IDisposable {
|
|
private scene;
|
|
private scene;
|
|
@@ -132621,9 +132685,12 @@ declare module BABYLON {
|
|
clearGizmoOnEmptyPointerEvent: boolean;
|
|
clearGizmoOnEmptyPointerEvent: boolean;
|
|
/** Fires an event when the manager is attached to a mesh */
|
|
/** Fires an event when the manager is attached to a mesh */
|
|
onAttachedToMeshObservable: Observable<Nullable<AbstractMesh>>;
|
|
onAttachedToMeshObservable: Observable<Nullable<AbstractMesh>>;
|
|
|
|
+ /** Fires an event when the manager is attached to a node */
|
|
|
|
+ onAttachedToNodeObservable: Observable<Nullable<Node>>;
|
|
private _gizmosEnabled;
|
|
private _gizmosEnabled;
|
|
private _pointerObserver;
|
|
private _pointerObserver;
|
|
private _attachedMesh;
|
|
private _attachedMesh;
|
|
|
|
+ private _attachedNode;
|
|
private _boundingBoxColor;
|
|
private _boundingBoxColor;
|
|
private _defaultUtilityLayer;
|
|
private _defaultUtilityLayer;
|
|
private _defaultKeepDepthUtilityLayer;
|
|
private _defaultKeepDepthUtilityLayer;
|
|
@@ -132637,7 +132704,11 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
attachableMeshes: Nullable<Array<AbstractMesh>>;
|
|
attachableMeshes: Nullable<Array<AbstractMesh>>;
|
|
/**
|
|
/**
|
|
- * If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh. (Default: true)
|
|
|
|
|
|
+ * Array of nodes which will have the gizmo attached when a pointer selected them. If null, all nodes are attachable. (Default: null)
|
|
|
|
+ */
|
|
|
|
+ attachableNodes: Nullable<Array<Node>>;
|
|
|
|
+ /**
|
|
|
|
+ * If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh/attachToNode. (Default: true)
|
|
*/
|
|
*/
|
|
usePointerToAttachGizmos: boolean;
|
|
usePointerToAttachGizmos: boolean;
|
|
/**
|
|
/**
|
|
@@ -132660,6 +132731,11 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
attachToMesh(mesh: Nullable<AbstractMesh>): void;
|
|
attachToMesh(mesh: Nullable<AbstractMesh>): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Attaches a set of gizmos to the specified node
|
|
|
|
+ * @param node The node the gizmo's should be attached to
|
|
|
|
+ */
|
|
|
|
+ attachToNode(node: Nullable<Node>): void;
|
|
|
|
+ /**
|
|
* If the position gizmo is enabled
|
|
* If the position gizmo is enabled
|
|
*/
|
|
*/
|
|
set positionGizmoEnabled(value: boolean);
|
|
set positionGizmoEnabled(value: boolean);
|
|
@@ -133029,6 +133105,47 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ /**
|
|
|
|
+ * Gizmo that enables viewing a camera
|
|
|
|
+ */
|
|
|
|
+ export class CameraGizmo extends Gizmo {
|
|
|
|
+ private _cameraMesh;
|
|
|
|
+ private _cameraLinesMesh;
|
|
|
|
+ private _material;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a CameraGizmo
|
|
|
|
+ * @param gizmoLayer The utility layer the gizmo will be added to
|
|
|
|
+ */
|
|
|
|
+ constructor(gizmoLayer?: UtilityLayerRenderer);
|
|
|
|
+ private _camera;
|
|
|
|
+ /** Gets or sets a boolean indicating if frustum lines must be rendered (true by default)) */
|
|
|
|
+ get displayFrustum(): boolean;
|
|
|
|
+ set displayFrustum(value: boolean);
|
|
|
|
+ /**
|
|
|
|
+ * The camera that the gizmo is attached to
|
|
|
|
+ */
|
|
|
|
+ set camera(camera: Nullable<Camera>);
|
|
|
|
+ get camera(): Nullable<Camera>;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the material used to render the camera gizmo
|
|
|
|
+ */
|
|
|
|
+ get material(): StandardMaterial;
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * Updates the gizmo to match the attached mesh's position/rotation
|
|
|
|
+ */
|
|
|
|
+ protected _update(): void;
|
|
|
|
+ private static _Scale;
|
|
|
|
+ private _invProjection;
|
|
|
|
+ /**
|
|
|
|
+ * Disposes of the camera gizmo
|
|
|
|
+ */
|
|
|
|
+ dispose(): void;
|
|
|
|
+ private static _CreateCameraMesh;
|
|
|
|
+ private static _CreateCameraFrustum;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
export var backgroundFragmentDeclaration: {
|
|
export var backgroundFragmentDeclaration: {
|
|
name: string;
|
|
name: string;
|