Ejemplo n.º 1
0
 public Vertex(ICoordinateRadar coordinateRadar,
               ICoordinate coordinate)
 {
     this.Initialize();
     CoordinateRadar = coordinateRadar;
     Position        = coordinate;
 }
Ejemplo n.º 2
0
        public Vertex(ICoordinateRadar coordinateRadar, ICoordinate coordinate) : base()
        {
            float fontSize = VertexSize * TextToSizeRatio;

            Font      = new Font("Times New Roman", fontSize);
            Size      = new Size(VertexSize, VertexSize);
            TextAlign = ContentAlignment.MiddleCenter;
            this.Initialize();
            Position        = coordinate;
            CoordinateRadar = coordinateRadar;
        }
Ejemplo n.º 3
0
 public Vertex(ICoordinateRadar radar,
               ICoordinate coordinate) : base()
 {
     Dispatcher.Invoke(() =>
     {
         Width    = Height = VertexSize;
         FontSize = VertexSize * TextToSizeRatio;
         Template = (ControlTemplate)TryFindResource("vertexTemplate");
     });
     this.Initialize();
     Position        = coordinate;
     CoordinateRadar = radar;
 }
Ejemplo n.º 4
0
 public Vertex3D(ICoordinateRadar radar, ICoordinate coordinate, IModel3DFactory modelFactory)
 {
     this.modelFactory = modelFactory;
     Position          = coordinate;
     CoordinateRadar   = radar;
     Dispatcher.Invoke(() =>
     {
         Size      = InitialVertexSize;
         Material  = new DiffuseMaterial();
         Transform = new TranslateTransform3D();
         Model     = modelFactory.CreateModel3D(Size, Material);
     });
     this.Initialize();
 }
Ejemplo n.º 5
0
 public Vertex(VertexSerializationInfo info, ICoordinateRadar coordinateRadar)
     : this(coordinateRadar, info.Position)
 {
     this.Initialize(info);
 }
Ejemplo n.º 6
0
 public TestVertex(ICoordinateRadar radar, ICoordinate coorndinate)
 {
     this.Initialize();
     Position        = coorndinate;
     CoordinateRadar = radar;
 }
Ejemplo n.º 7
0
 public IVertex CreateVertex(ICoordinateRadar coordinateRadar, ICoordinate coordinate)
 {
     return(new Vertex(coordinateRadar, coordinate));
 }
Ejemplo n.º 8
0
 public IVertex CreateVertex(ICoordinateRadar coordinateRadar, ICoordinate coordinate)
 {
     return(new Vertex3D(coordinateRadar, coordinate, model3Dfactory));
 }
Ejemplo n.º 9
0
 public Vertex3D(VertexSerializationInfo info, ICoordinateRadar radar, IModel3DFactory modelFactory) :
     this(radar, info.Position, modelFactory)
 {
     this.Initialize(info);
 }