C# Class HoloToolkit.Unity.SpatialUnderstandingDllShapes.ShapeComponentConstraint

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

Public Properties

Property Type Description
Param_Float_0 float
Param_Float_1 float
Param_Float_2 float
Param_Float_3 float
Param_Int_0 int
Param_Int_1 int
Param_Str_0 System.IntPtr
Type ShapeComponentConstraintType

Public Methods

Method Description
Create_CircleRadius_Between ( float minRadius, float maxRadius ) : ShapeComponentConstraint

Constructs a constraint requiring the circle shaped component to have a radius between the given range

Create_CircleRadius_Is ( float radius ) : ShapeComponentConstraint

Constructs a constraint requiring the circle shaped component to have a specific radius

Create_CircleRadius_Max ( float maxRadius ) : ShapeComponentConstraint

Constructs a constraint requiring the circle shaped component to have a maximum radius

Create_CircleRadius_Min ( float minRadius ) : ShapeComponentConstraint

Constructs a constraint requiring the circle shaped component to have a minimum radius

Create_IsCircle ( float similarityMin = 0.5f ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be shaped like a circle The squares similarity is the percent of the surface that matches the containing circular component shape

Create_IsRectangle ( float similarityMin = 0.5f ) : ShapeComponentConstraint

Constructs a constraint requiring the component to shaped like a rectangle. The rectangles similarity is the percent of the surface that matches the containing rectangular component shape.

Create_IsSquare ( float similarityMin = 0.5f ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be shaped like a square The squares similarity is the percent of the surface that matches the containing square component shape.

Create_RectangleLength_Between ( float minLength, float maxLength ) : ShapeComponentConstraint

Constructs a constraint requiring the surface length to be between the given range. Length is the longer of the two bounding edges.

Create_RectangleLength_Is ( float length ) : ShapeComponentConstraint

Constructs a constraint requiring a specific surface length. Length is the longer of the two bounding edges.

Create_RectangleLength_Max ( float maxLength ) : ShapeComponentConstraint

Constructs a constraint requiring a maximum length. Length is the longer of the two bounding edges.

Create_RectangleLength_Min ( float minLength ) : ShapeComponentConstraint

Constructs a constraint requiring a minimum length. Length is the longer of the two bounding edges.

Create_RectangleSize_Between ( float minLength, float minWidth, float maxLength, float maxWidth ) : ShapeComponentConstraint

Constructs a constraint requiring a the length and width of the surface rectangle to be within a specified range. Length is the longer of the two bounding edges and width the shorter edge.

Create_RectangleSize_Is ( float length, float width ) : ShapeComponentConstraint

Constructs a constraint requiring a specified length and width. Length is the longer of the two bounding edges and width the shorter edge.

Create_RectangleSize_Max ( float maxLength, float maxWidth ) : ShapeComponentConstraint

Constructs a constraint requiring a maximum length and width of the surface rectangle. Length is the longer of the two bounding edges and width the shorter edge.

Create_RectangleSize_Min ( float minLength, float minWidth ) : ShapeComponentConstraint

Constructs a constraint requiring a minimum length and width of the surface rectangle. Length is the longer of the two bounding edges and width the shorter edge.

Create_RectangleWidth_Between ( float minWidth, float maxWidth ) : ShapeComponentConstraint

Constructs a constraint requiring the surface width to be between the given range. Width is the shorter of the two bounding edges.

Create_RectangleWidth_Is ( float width ) : ShapeComponentConstraint

Constructs a constraint requiring a specific surface width. Width is the shorter of the two bounding edges.

Create_RectangleWidth_Max ( float maxWidth ) : ShapeComponentConstraint

Constructs a constraint requiring a maximum width. Width is the shorter of the two bounding edges.

Create_RectangleWidth_Min ( float minWidth ) : ShapeComponentConstraint

Constructs a constraint requiring a minimum width. Width is the shorter of the two bounding edges.

Create_SquareSize_Between ( float minSize, float maxSize ) : ShapeComponentConstraint

Constructs a constraint requiring the component to have a surface area between the given range

Create_SquareSize_Is ( float size ) : ShapeComponentConstraint

Constructs a constraint requiring the component to have a specific surface area

Create_SquareSize_Max ( float maxSize ) : ShapeComponentConstraint

Constructs a constraint requiring the component to have a maximum area

Create_SquareSize_Min ( float minSize ) : ShapeComponentConstraint

Constructs a constraint requiring the component to have a minimum area

Create_SurfaceArea_Between ( float minArea, float maxArea ) : ShapeComponentConstraint

Constructs a constraint requiring the component to contain a surface area between the range specified

Create_SurfaceArea_Is ( float area ) : ShapeComponentConstraint

Constructs a constraint requiring the component to contain a specific surface area

Create_SurfaceArea_Max ( float maxArea ) : ShapeComponentConstraint

Constructs a constraint requiring the component to contain a maximum surface area

Create_SurfaceArea_Min ( float minArea ) : ShapeComponentConstraint

Constructs a constraint requiring the component to contain a minimum surface area

Create_SurfaceCount_Between ( int minCount, int maxCount ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a composed of a number of discrete flat surfaces between a specified range

Create_SurfaceCount_Is ( int count ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a composed of a number of discrete flat surfaces of the count specified

Create_SurfaceCount_Max ( int maxCount ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a maximum number of discrete flat surfaces

Create_SurfaceCount_Min ( int minCount ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a minimum number of discrete flat surfaces

Create_SurfaceHeight_Between ( float minHeight, float maxHeight ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be within a height range above the floor

Create_SurfaceHeight_Is ( float height ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a specific height above the floor

Create_SurfaceHeight_Max ( float maxHeight ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a maximum height above the floor

Create_SurfaceHeight_Min ( float minHeight ) : ShapeComponentConstraint

Constructs a constraint requiring the component to be a minimum height above the floor

Create_SurfaceNotPartOfShape ( string shapeName ) : ShapeComponentConstraint

Constructs a constraint requiring the component to not be a part of a specified shape

Method Details

Create_CircleRadius_Between() public static method

Constructs a constraint requiring the circle shaped component to have a radius between the given range
public static Create_CircleRadius_Between ( float minRadius, float maxRadius ) : ShapeComponentConstraint
minRadius float Minimum radius in meters
maxRadius float Maximum radius in meters
return ShapeComponentConstraint

Create_CircleRadius_Is() public static method

Constructs a constraint requiring the circle shaped component to have a specific radius
public static Create_CircleRadius_Is ( float radius ) : ShapeComponentConstraint
radius float Required radius in meters
return ShapeComponentConstraint

Create_CircleRadius_Max() public static method

Constructs a constraint requiring the circle shaped component to have a maximum radius
public static Create_CircleRadius_Max ( float maxRadius ) : ShapeComponentConstraint
maxRadius float Maximum radius in meters
return ShapeComponentConstraint

Create_CircleRadius_Min() public static method

Constructs a constraint requiring the circle shaped component to have a minimum radius
public static Create_CircleRadius_Min ( float minRadius ) : ShapeComponentConstraint
minRadius float Minimum radius in meters
return ShapeComponentConstraint

Create_IsCircle() public static method

Constructs a constraint requiring the component to be shaped like a circle The squares similarity is the percent of the surface that matches the containing circular component shape
public static Create_IsCircle ( float similarityMin = 0.5f ) : ShapeComponentConstraint
similarityMin float Minimum similarity to a circle
return ShapeComponentConstraint

Create_IsRectangle() public static method

Constructs a constraint requiring the component to shaped like a rectangle. The rectangles similarity is the percent of the surface that matches the containing rectangular component shape.
public static Create_IsRectangle ( float similarityMin = 0.5f ) : ShapeComponentConstraint
similarityMin float Minimum similarity to a rectangle
return ShapeComponentConstraint

Create_IsSquare() public static method

Constructs a constraint requiring the component to be shaped like a square The squares similarity is the percent of the surface that matches the containing square component shape.
public static Create_IsSquare ( float similarityMin = 0.5f ) : ShapeComponentConstraint
similarityMin float Minimum similarity to a square
return ShapeComponentConstraint

Create_RectangleLength_Between() public static method

Constructs a constraint requiring the surface length to be between the given range. Length is the longer of the two bounding edges.
public static Create_RectangleLength_Between ( float minLength, float maxLength ) : ShapeComponentConstraint
minLength float Minimum surface length
maxLength float Maximum surface length
return ShapeComponentConstraint

Create_RectangleLength_Is() public static method

Constructs a constraint requiring a specific surface length. Length is the longer of the two bounding edges.
public static Create_RectangleLength_Is ( float length ) : ShapeComponentConstraint
length float Required surface length
return ShapeComponentConstraint

Create_RectangleLength_Max() public static method

Constructs a constraint requiring a maximum length. Length is the longer of the two bounding edges.
public static Create_RectangleLength_Max ( float maxLength ) : ShapeComponentConstraint
maxLength float Maximum surface length
return ShapeComponentConstraint

Create_RectangleLength_Min() public static method

Constructs a constraint requiring a minimum length. Length is the longer of the two bounding edges.
public static Create_RectangleLength_Min ( float minLength ) : ShapeComponentConstraint
minLength float Minimum surface length
return ShapeComponentConstraint

Create_RectangleSize_Between() public static method

Constructs a constraint requiring a the length and width of the surface rectangle to be within a specified range. Length is the longer of the two bounding edges and width the shorter edge.
public static Create_RectangleSize_Between ( float minLength, float minWidth, float maxLength, float maxWidth ) : ShapeComponentConstraint
minLength float Minimum length
minWidth float Minimum width
maxLength float Maximum length
maxWidth float Maximum width
return ShapeComponentConstraint

Create_RectangleSize_Is() public static method

Constructs a constraint requiring a specified length and width. Length is the longer of the two bounding edges and width the shorter edge.
public static Create_RectangleSize_Is ( float length, float width ) : ShapeComponentConstraint
length float Required surface length
width float Required surface width
return ShapeComponentConstraint

Create_RectangleSize_Max() public static method

Constructs a constraint requiring a maximum length and width of the surface rectangle. Length is the longer of the two bounding edges and width the shorter edge.
public static Create_RectangleSize_Max ( float maxLength, float maxWidth ) : ShapeComponentConstraint
maxLength float Maximum length
maxWidth float Maximum width
return ShapeComponentConstraint

Create_RectangleSize_Min() public static method

Constructs a constraint requiring a minimum length and width of the surface rectangle. Length is the longer of the two bounding edges and width the shorter edge.
public static Create_RectangleSize_Min ( float minLength, float minWidth ) : ShapeComponentConstraint
minLength float Minimum length
minWidth float Minimum width
return ShapeComponentConstraint

Create_RectangleWidth_Between() public static method

Constructs a constraint requiring the surface width to be between the given range. Width is the shorter of the two bounding edges.
public static Create_RectangleWidth_Between ( float minWidth, float maxWidth ) : ShapeComponentConstraint
minWidth float Minimum surface width
maxWidth float Maximum surface width
return ShapeComponentConstraint

Create_RectangleWidth_Is() public static method

Constructs a constraint requiring a specific surface width. Width is the shorter of the two bounding edges.
public static Create_RectangleWidth_Is ( float width ) : ShapeComponentConstraint
width float Required surface width
return ShapeComponentConstraint

Create_RectangleWidth_Max() public static method

Constructs a constraint requiring a maximum width. Width is the shorter of the two bounding edges.
public static Create_RectangleWidth_Max ( float maxWidth ) : ShapeComponentConstraint
maxWidth float Maximum surface width
return ShapeComponentConstraint

Create_RectangleWidth_Min() public static method

Constructs a constraint requiring a minimum width. Width is the shorter of the two bounding edges.
public static Create_RectangleWidth_Min ( float minWidth ) : ShapeComponentConstraint
minWidth float Minimum surface width
return ShapeComponentConstraint

Create_SquareSize_Between() public static method

Constructs a constraint requiring the component to have a surface area between the given range
public static Create_SquareSize_Between ( float minSize, float maxSize ) : ShapeComponentConstraint
minSize float Minimum size in meters squared
maxSize float Maximum size in meters squared
return ShapeComponentConstraint

Create_SquareSize_Is() public static method

Constructs a constraint requiring the component to have a specific surface area
public static Create_SquareSize_Is ( float size ) : ShapeComponentConstraint
size float Required size in meters squared
return ShapeComponentConstraint

Create_SquareSize_Max() public static method

Constructs a constraint requiring the component to have a maximum area
public static Create_SquareSize_Max ( float maxSize ) : ShapeComponentConstraint
maxSize float Maximum size in meters squared
return ShapeComponentConstraint

Create_SquareSize_Min() public static method

Constructs a constraint requiring the component to have a minimum area
public static Create_SquareSize_Min ( float minSize ) : ShapeComponentConstraint
minSize float Minimum size in meters squared
return ShapeComponentConstraint

Create_SurfaceArea_Between() public static method

Constructs a constraint requiring the component to contain a surface area between the range specified
public static Create_SurfaceArea_Between ( float minArea, float maxArea ) : ShapeComponentConstraint
minArea float Minimum surface area
maxArea float Maximum surface area
return ShapeComponentConstraint

Create_SurfaceArea_Is() public static method

Constructs a constraint requiring the component to contain a specific surface area
public static Create_SurfaceArea_Is ( float area ) : ShapeComponentConstraint
area float Required surface area
return ShapeComponentConstraint

Create_SurfaceArea_Max() public static method

Constructs a constraint requiring the component to contain a maximum surface area
public static Create_SurfaceArea_Max ( float maxArea ) : ShapeComponentConstraint
maxArea float Maximum surface area
return ShapeComponentConstraint

Create_SurfaceArea_Min() public static method

Constructs a constraint requiring the component to contain a minimum surface area
public static Create_SurfaceArea_Min ( float minArea ) : ShapeComponentConstraint
minArea float Minimum surface area
return ShapeComponentConstraint

Create_SurfaceCount_Between() public static method

Constructs a constraint requiring the component to be a composed of a number of discrete flat surfaces between a specified range
public static Create_SurfaceCount_Between ( int minCount, int maxCount ) : ShapeComponentConstraint
minCount int Minimum number of discrete surfaces
maxCount int Maximum number of discrete surfaces
return ShapeComponentConstraint

Create_SurfaceCount_Is() public static method

Constructs a constraint requiring the component to be a composed of a number of discrete flat surfaces of the count specified
public static Create_SurfaceCount_Is ( int count ) : ShapeComponentConstraint
count int Number of discrete surfaces
return ShapeComponentConstraint

Create_SurfaceCount_Max() public static method

Constructs a constraint requiring the component to be a maximum number of discrete flat surfaces
public static Create_SurfaceCount_Max ( int maxCount ) : ShapeComponentConstraint
maxCount int Maximum number of discrete surfaces
return ShapeComponentConstraint

Create_SurfaceCount_Min() public static method

Constructs a constraint requiring the component to be a minimum number of discrete flat surfaces
public static Create_SurfaceCount_Min ( int minCount ) : ShapeComponentConstraint
minCount int Minimum number of discrete surfaces
return ShapeComponentConstraint

Create_SurfaceHeight_Between() public static method

Constructs a constraint requiring the component to be within a height range above the floor
public static Create_SurfaceHeight_Between ( float minHeight, float maxHeight ) : ShapeComponentConstraint
minHeight float Minimum height above the floor
maxHeight float Maximum height above the floor
return ShapeComponentConstraint

Create_SurfaceHeight_Is() public static method

Constructs a constraint requiring the component to be a specific height above the floor
public static Create_SurfaceHeight_Is ( float height ) : ShapeComponentConstraint
height float Required height above the floor
return ShapeComponentConstraint

Create_SurfaceHeight_Max() public static method

Constructs a constraint requiring the component to be a maximum height above the floor
public static Create_SurfaceHeight_Max ( float maxHeight ) : ShapeComponentConstraint
maxHeight float Maximum height above the floor
return ShapeComponentConstraint

Create_SurfaceHeight_Min() public static method

Constructs a constraint requiring the component to be a minimum height above the floor
public static Create_SurfaceHeight_Min ( float minHeight ) : ShapeComponentConstraint
minHeight float Minimum height above the floor
return ShapeComponentConstraint

Create_SurfaceNotPartOfShape() public static method

Constructs a constraint requiring the component to not be a part of a specified shape
public static Create_SurfaceNotPartOfShape ( string shapeName ) : ShapeComponentConstraint
shapeName string
return ShapeComponentConstraint

Property Details

Param_Float_0 public_oe property

public float Param_Float_0
return float

Param_Float_1 public_oe property

public float Param_Float_1
return float

Param_Float_2 public_oe property

public float Param_Float_2
return float

Param_Float_3 public_oe property

public float Param_Float_3
return float

Param_Int_0 public_oe property

public int Param_Int_0
return int

Param_Int_1 public_oe property

public int Param_Int_1
return int

Param_Str_0 public_oe property

public IntPtr,System Param_Str_0
return System.IntPtr

Type public_oe property

public ShapeComponentConstraintType Type
return ShapeComponentConstraintType