C# Class LineDrawer

Inheritance: MonoBehaviour
Mostrar archivo Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Properties

Property Type Description
MaterialLine Material

Protected Methods

Method Description
Draw_AnimatedBox ( AnimatedBox box ) : bool
Draw_Box ( Vector3 center, Quaternion rotation, Color color, Vector3 halfSize, float lineWidth = DefaultLineWidth ) : bool
Draw_Circle ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth ) : bool
Draw_Circle_Partial ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth, float circleAngleArc = 360.0f ) : bool
Draw_Cube ( Vector3 point, Color color, float halfSize = DefaultLineWidth ) : bool
Draw_Line ( Vector3 start, Vector3 end, Color colorStart, Color colorEnd, float lineWidth = DefaultLineWidth ) : bool
Draw_TransformBasis ( Transform transformToDraw, float basisLength = DefaultBasisLength, float lineWidth = DefaultLineWidth*2.0f ) : bool
LineDraw_Begin ( ) : void
LineDraw_End ( bool needsUpdate ) : void
OnDestroy ( ) : void

Private Methods

Method Description
Lines_LineDataToMesh ( ) : void

Method Details

Draw_AnimatedBox() protected method

protected Draw_AnimatedBox ( AnimatedBox box ) : bool
box AnimatedBox
return bool

Draw_Box() protected method

protected Draw_Box ( Vector3 center, Quaternion rotation, Color color, Vector3 halfSize, float lineWidth = DefaultLineWidth ) : bool
center Vector3
rotation Quaternion
color Color
halfSize Vector3
lineWidth float
return bool

Draw_Circle() protected method

protected Draw_Circle ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth ) : bool
center Vector3
normal Vector3
color Color
radius float
lineWidth float
return bool

Draw_Circle_Partial() protected method

protected Draw_Circle_Partial ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth, float circleAngleArc = 360.0f ) : bool
center Vector3
normal Vector3
color Color
radius float
lineWidth float
circleAngleArc float
return bool

Draw_Cube() protected method

protected Draw_Cube ( Vector3 point, Color color, float halfSize = DefaultLineWidth ) : bool
point Vector3
color Color
halfSize float
return bool

Draw_Line() protected method

protected Draw_Line ( Vector3 start, Vector3 end, Color colorStart, Color colorEnd, float lineWidth = DefaultLineWidth ) : bool
start Vector3
end Vector3
colorStart Color
colorEnd Color
lineWidth float
return bool

Draw_TransformBasis() protected method

protected Draw_TransformBasis ( Transform transformToDraw, float basisLength = DefaultBasisLength, float lineWidth = DefaultLineWidth*2.0f ) : bool
transformToDraw Transform
basisLength float
lineWidth float
return bool

LineDraw_Begin() protected method

protected LineDraw_Begin ( ) : void
return void

LineDraw_End() protected method

protected LineDraw_End ( bool needsUpdate ) : void
needsUpdate bool
return void

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

Property Details

MaterialLine public_oe property

public Material MaterialLine
return Material