C# Class HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementDefinition

显示文件 Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

Method Description
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.

Method Details

Create_InMidAir() public static method

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
return ObjectPlacementDefinition

Create_OnCeiling() public static method

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
return ObjectPlacementDefinition

Create_OnEdge() public static method

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
return ObjectPlacementDefinition

Create_OnFloor() public static method

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
return ObjectPlacementDefinition

Create_OnFloorAndCeiling() public static method

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
return ObjectPlacementDefinition

Create_OnShape() public static method

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
return ObjectPlacementDefinition

Create_OnWall() public static method

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
return ObjectPlacementDefinition

Create_RandomInAir() public static method

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
return ObjectPlacementDefinition

Create_UnderPlatformEdge() public static method

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
return ObjectPlacementDefinition

Property Details

HalfDims public_oe property

public Vector3 HalfDims
return Vector3

PlacementParam_Float_0 public_oe property

public float PlacementParam_Float_0
return float

PlacementParam_Float_1 public_oe property

public float PlacementParam_Float_1
return float

PlacementParam_Float_2 public_oe property

public float PlacementParam_Float_2
return float

PlacementParam_Float_3 public_oe property

public float PlacementParam_Float_3
return float

PlacementParam_Int_0 public_oe property

public int PlacementParam_Int_0
return int

PlacementParam_Str_0 public_oe property

public IntPtr,System PlacementParam_Str_0
return System.IntPtr

Type public_oe property

public PlacementType Type
return PlacementType

WallFlags public_oe property

public int WallFlags
return int