コード例 #1
0
ファイル: DrawUtils.cs プロジェクト: ReMinoer/Glyph
 static public bool Displayed(this IDrawTask draw, IDrawer drawer = null, IDrawClient drawClient = null, ISceneNode sceneRoot = null)
 {
     return(draw.Rendered &&
            (drawer == null ||
             (sceneRoot == null || drawer.DrawPredicate(sceneRoot)) &&
             (draw.DrawPredicate == null || draw.DrawPredicate(drawer))) &&
            (drawClient == null || draw.DrawClientFilter == null || draw.DrawClientFilter.Filter(drawClient)));
 }
コード例 #2
0
                public Arguments(TValue initialValue, IVertexBase target, bool raycasting, IDrawClient raycastClient, GraphDirections directions, int depthMax, int viewDepthMax)
                {
                    Value         = initialValue;
                    Target        = target;
                    Raycasting    = raycasting;
                    Directions    = directions;
                    DepthMax      = depthMax;
                    ViewDepthMax  = viewDepthMax;
                    RaycastClient = raycastClient;

                    TransformerPath = new Stack <ITransformer>();
                    ViewDepths      = new Dictionary <ViewVertex, int>();
                }
コード例 #3
0
 IOptionsController <TValue> IRaycastController <TValue> .ForDrawClient(IDrawClient drawClient)
 {
     RaycastClient = drawClient;
     return(this);
 }