C# Класс HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementDefinition

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
HalfDims Vector3
PlacementParam_Float_0 float
PlacementParam_Float_1 float
PlacementParam_Float_2 float
PlacementParam_Float_3 float
PlacementParam_Int_0 int
PlacementParam_Str_0 System.IntPtr
Type PlacementType
WallFlags int

Открытые методы

Метод Описание
Create_InMidAir ( Vector3 halfDims ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed floating in space, within the playspace. This query requires that other objects do not collide with the placement volume.

Create_OnCeiling ( Vector3 halfDims ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be place on the ceiling.

Create_OnEdge ( Vector3 halfDims, Vector3 halfDimsBottom ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed on the edge of a platform.

Create_OnFloor ( Vector3 halfDims ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed on the floor.

Create_OnFloorAndCeiling ( Vector3 halfDims, Vector3 halfDimsBottom ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be have space on the floor and ceiling within the same vertical space.

Create_OnShape ( Vector3 halfDims, string shapeName, int componentIndex ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed on top of another object placed object.

Create_OnWall ( Vector3 halfDims, float heightMin, float heightMax, WallTypeFlags wallTypes = WallTypeFlags.External|WallTypeFlags.Normal, float marginLeft = 0.0f, float marginRight = 0.0f ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed on a wall.

Create_RandomInAir ( Vector3 halfDims ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be placed floating in space, within the playspace. Spaces visible from the center of the playspace are favored.

Create_UnderPlatformEdge ( Vector3 halfDims ) : ObjectPlacementDefinition

Constructs an object placement query definition requiring the object to be place under a platform edge.

Описание методов

Create_InMidAir() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed floating in space, within the playspace. This query requires that other objects do not collide with the placement volume.
public static Create_InMidAir ( Vector3 halfDims ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
Результат ObjectPlacementDefinition

Create_OnCeiling() публичный статический Метод

Constructs an object placement query definition requiring the object to be place on the ceiling.
public static Create_OnCeiling ( Vector3 halfDims ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
Результат ObjectPlacementDefinition

Create_OnEdge() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed on the edge of a platform.
public static Create_OnEdge ( Vector3 halfDims, Vector3 halfDimsBottom ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
halfDimsBottom Vector3 Half size of the bottom part of the placement volume
Результат ObjectPlacementDefinition

Create_OnFloor() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed on the floor.
public static Create_OnFloor ( Vector3 halfDims ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
Результат ObjectPlacementDefinition

Create_OnFloorAndCeiling() публичный статический Метод

Constructs an object placement query definition requiring the object to be have space on the floor and ceiling within the same vertical space.
public static Create_OnFloorAndCeiling ( Vector3 halfDims, Vector3 halfDimsBottom ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
halfDimsBottom Vector3 Half size of the bottom part of the placement volume
Результат ObjectPlacementDefinition

Create_OnShape() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed on top of another object placed object.
public static Create_OnShape ( Vector3 halfDims, string shapeName, int componentIndex ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
shapeName string Name of the placed object
componentIndex int Index of the component within shapeName
Результат ObjectPlacementDefinition

Create_OnWall() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed on a wall.
public static Create_OnWall ( Vector3 halfDims, float heightMin, float heightMax, WallTypeFlags wallTypes = WallTypeFlags.External|WallTypeFlags.Normal, float marginLeft = 0.0f, float marginRight = 0.0f ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
heightMin float Minimum height of the requested volume above the floor
heightMax float Maximum height of the requested volume above the floor
wallTypes WallTypeFlags Bit mask of possible walls to consider, defined by WallTypeFlags
marginLeft float Required empty wall space to the left of the volume, as defined by facing the wall
marginRight float Required empty wall space to the right of the volume, as defined by facing the wall
Результат ObjectPlacementDefinition

Create_RandomInAir() публичный статический Метод

Constructs an object placement query definition requiring the object to be placed floating in space, within the playspace. Spaces visible from the center of the playspace are favored.
public static Create_RandomInAir ( Vector3 halfDims ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
Результат ObjectPlacementDefinition

Create_UnderPlatformEdge() публичный статический Метод

Constructs an object placement query definition requiring the object to be place under a platform edge.
public static Create_UnderPlatformEdge ( Vector3 halfDims ) : ObjectPlacementDefinition
halfDims Vector3 Required half size of the requested bounding volume
Результат ObjectPlacementDefinition

Описание свойств

HalfDims публичное свойство

public Vector3 HalfDims
Результат Vector3

PlacementParam_Float_0 публичное свойство

public float PlacementParam_Float_0
Результат float

PlacementParam_Float_1 публичное свойство

public float PlacementParam_Float_1
Результат float

PlacementParam_Float_2 публичное свойство

public float PlacementParam_Float_2
Результат float

PlacementParam_Float_3 публичное свойство

public float PlacementParam_Float_3
Результат float

PlacementParam_Int_0 публичное свойство

public int PlacementParam_Int_0
Результат int

PlacementParam_Str_0 публичное свойство

public IntPtr,System PlacementParam_Str_0
Результат System.IntPtr

Type публичное свойство

public PlacementType Type
Результат PlacementType

WallFlags публичное свойство

public int WallFlags
Результат int