本文整理汇总了C#中ShapeRenderMode类的典型用法代码示例。如果您正苦于以下问题:C# ShapeRenderMode类的具体用法?C# ShapeRenderMode怎么用?C# ShapeRenderMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ShapeRenderMode类属于命名空间,在下文中一共展示了ShapeRenderMode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderHotSpot
public override void RenderHotSpot(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderHotSpot(view, mode);
if (!OnScreen)
return;
Vector2F center2d = Sprite.CenterPosition;
view.RenderRectangle2D(
center2d.X - 5, center2d.Y - 5,
center2d.X + 5, center2d.Y + 5,
VisionColors.RGBA(0, 255, 0, 255), 1.0f );
}
示例2: RenderShape
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
// Don't draw seed points if "playing the game" or 'Visible' property is false
if (EditorManager.InPlayingMode || FinalVisibleState == false)
return;
if (mode == ShapeRenderMode.Selected || (mode == ShapeRenderMode.Normal && this.ParentLayer == EditorManager.Scene.ActiveLayer))
{
float fSize = 10.0f * EditorManager.Settings.GlobalUnitScaling;
view.EngineManager.RenderSprite(this.RenderPosition, @"textures\pin_green32.dds", VisionColors.White, fSize, fSize);
}
}
示例3: RenderShape
/// <summary>
/// overridden function to render the shape
/// </summary>
/// <param name="view">destination view</param>
/// <param name="mode">render mode</param>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view,mode); // render the bounding box
// render direction vector
if (_engineInstance!=null)
EnginePGroup.RenderShape(view,mode);
}
示例4: RenderShape
/// <summary>
/// overridden function to render the shape
/// </summary>
/// <param name="view">destination view</param>
/// <param name="mode">render mode</param>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if (_engineInstance!=null)
{
if (mode == ShapeRenderMode.Selected || (ParentLayer == ParentLayer.ParentScene.ActiveLayer && _bPreview3D))
{
EngineBox.RenderShape(view, mode, VisionColors.Get(_previewColor));
}
}
}
示例5: RenderShape
/// <summary>
/// Overridden render function: Let the engine instance render itself
/// </summary>
/// <param name="view"></param>
/// <param name="mode"></param>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
}
示例6: RenderShape
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if (HasEngineInstance())
EngineBone.RenderShape(view, mode);
}
示例7: RenderShape
/// <summary>
/// Overridden function
/// </summary>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape (view, mode);
if (Selected) // the ShapeRenderMode does not help here since this shape does not have an engine instance
{
view.RenderLineFrustum(this.Position, this.RotationMatrix, 45.0f, 45.0f, 60.0f * EditorManager.Settings.GlobalUnitScaling, VisionColors.Blue, 1.0f);
}
}
示例8: OnHotSpotRender
public override void OnHotSpotRender(HotSpotBase hotSpot, VisionViewBase view, ShapeRenderMode mode)
{
base.OnHotSpotRender(hotSpot, view, mode);
}
示例9: OnHotSpotRender
/// <summary>
/// Overridden function
/// </summary>
/// <param name="hotSpot"></param>
/// <param name="view"></param>
/// <param name="mode"></param>
public override void OnHotSpotRender(HotSpotBase hotSpot, VisionViewBase view, ShapeRenderMode mode)
{
base.OnHotSpotRender (hotSpot, view, mode);
if (hotSpot==_hotSpotTangentIn)
{
view.RenderLine(Position,Position+_hotSpotTangentIn.CurrentPosition, VisionColors.Grey, 2.0f);
return;
}
if (hotSpot==_hotSpotTangentOut)
{
view.RenderLine(Position,Position+_hotSpotTangentOut.CurrentPosition, VisionColors.Grey, 2.0f);
return;
}
}
示例10: RenderShape
/// <summary>
/// overridden function to render the shape
/// </summary>
/// <param name="view">destination view</param>
/// <param name="mode">render mode</param>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
if (_engineInstance==null)
return;
EnginePath.RenderShape(view,mode);
base.RenderShape(view,mode); // also render bounding box
if (this._fShowPathTimeHelper >= 0.0f)
{
Vector3F showWidget = new Vector3F();
EnginePath.EvaluatePathPositionSmooth(_fShowPathTimeHelper, ref showWidget);
float r = 2.0f*EditorManager.Settings.GlobalUnitScaling;
view.RenderLineBox(showWidget.X - r, showWidget.Y - r, showWidget.Z - r, showWidget.X + r, showWidget.Y + r, showWidget.Z + r, VisionColors.Cyan, 1.0f);
}
}
示例11: OnHotSpotRender
/// <summary>
/// Overridden function
/// </summary>
/// <param name="hotSpot"></param>
/// <param name="view"></param>
/// <param name="mode"></param>
public override void OnHotSpotRender(HotSpotBase hotSpot, VisionViewBase view, ShapeRenderMode mode)
{
base.OnHotSpotRender(hotSpot, view, mode);
if (_hotSpotVolume.Visible)
{
Vector3F vStart = Position;
Vector3F vEnd = _hotSpotVolume.Position;
view.RenderLine(vStart, vEnd, VisionColors.Cyan, 1.0f);
}
}
示例12: RenderShape
public override void RenderShape(CSharpFramework.VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if (mode == ShapeRenderMode.Selected)
_selection.RenderSelection(view, mode);
}
示例13: RenderShape
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if(IsRendering && !CustomStaticMesh && EngineInstance != null)
EngineInstance.RenderShape(view, mode);
}
示例14: RenderShape
/// <summary>
/// Overridden function. This function draws a blue frustum. If the shape is selected the frustum switches to red
/// </summary>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if (this.Selected)
view.RenderLineFrustum(this.Position, this.RotationMatrix, 45.0f, 45.0f, 2000.0f * EditorManager.Settings.GlobalUnitScaling, VisionColors.Red, 2.0f);
else
view.RenderLineFrustum(this.Position, this.RotationMatrix, 45.0f, 45.0f, 2000.0f * EditorManager.Settings.GlobalUnitScaling, VisionColors.Blue, 2.0f);
}
示例15: RenderShape
/// <summary>
/// overridden function to render the shape
/// </summary>
/// <param name="view">destination view</param>
/// <param name="mode">render mode</param>
public override void RenderShape(VisionViewBase view, ShapeRenderMode mode)
{
base.RenderShape(view, mode);
if (_engineInstance != null && mode == ShapeRenderMode.Selected)
EngineBox.RenderShape(view,mode,AbsoluteBoundingBox);
}