Пример #1
0
 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);
 }