Esempio n. 1
0
        public CoordinateMarkerRenderer(GraphicsContext graphicsContext)
        {
            _vertexRenderer = graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(6);
            _noTexture = graphicsContext.GetTexture("noTexture.png");

            PopululateBuffer();
        }
 public LargeGraphRenderer()
 {
     this.visitedGraph = null;
     this.positions = new VertexPointFDictionary();
     this.edgeVisible = true;
     this.edgeRenderer = new QuickGraph.Algorithms.Layout.EdgeRenderer();
     this.vertexVisible = true;
     this.vertexRenderer = new QuickGraph.Algorithms.Layout.VertexRenderer();
     this.layoutSize = new Size(800, 600);
 }
Esempio n. 3
0
        public GuiRenderer(GraphicsContext graphicsContext, IColourScheme colourScheme)
        {
            ColourScheme = colourScheme;
            _graphicsContext = graphicsContext;
            _primitiveRenderer = _graphicsContext.CreateVertexRenderer<TransformedColouredVertex>(18);
            _textureRenderer = _graphicsContext.CreateVertexRenderer<TransformedColouredTexturedVertex>(9*2*3);

            _font = graphicsContext.GetFont(DefaultFontName, DefautltFontSize, Weight.Bold);

            PrecacheTextures(colourScheme);
        }
 public LargeGraphRenderer(IVertexAndEdgeListGraph visitedGraph)
 {
     this.visitedGraph = null;
     this.positions = new VertexPointFDictionary();
     this.edgeVisible = true;
     this.edgeRenderer = new QuickGraph.Algorithms.Layout.EdgeRenderer();
     this.vertexVisible = true;
     this.vertexRenderer = new QuickGraph.Algorithms.Layout.VertexRenderer();
     this.layoutSize = new Size(800, 600);
     if (visitedGraph == null)
     {
         throw new ArgumentNullException("visitedGraph");
     }
     this.visitedGraph = visitedGraph;
 }
Esempio n. 5
0
 public EpicModelRenderer(GraphicsContext graphicsContext)
 {
     _graphicsContext = graphicsContext;
     _vertexRenderer = _graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(256);
     _anchorCuboid = new VertexCuboid(new Vector3(0.1f));
 }
Esempio n. 6
0
 public Face(IVertexRenderer ic, GeometricPrimitives pr)
 {
     Indices   = ic ?? throw new ArgumentNullException(nameof(ic));
     Primitive = pr;
 }