public GraphicDeviceProxy(GraphicContext GpCtx)
        {
            m_GraphicContext = GpCtx;
            m_Device = GpCtx.GetGraphicDevice();

            m_WorldToDevice = GpCtx.WorldToDevice;
        }
        public SelectContext()
        {
            //m_dSelTolerance = 5;
            m_RefPoint = new GePoint(0, 0);
            m_bMultiSelect = false;

            m_HittedDLPoints = new FRMultiMap<double, DisplayItem>();
            m_HittedDLItems = new FRMultiMap<double, DisplayItem>();

            m_SelectTolerance = 5;
            m_Device = null;
        }
 public virtual void UnApply(GraphicDevice device)
 {
     device.Pop();
 }
 public virtual void Apply(GraphicDevice device)
 {
     device.Push(m_Type);
 }
 public GraphicAttribute(GraphicDevice.AttributeType type)
 {
     m_Type = type;
 }
 public override void Apply(GraphicDevice device)
 {
     device.Push(GetType());
     device.SetColor(m_Color);
 }
        public DeviceContext(GraphicDevice device)
        {
            Debug.Assert(device != null);

            m_Device = device;
        }
 public override void Apply(GraphicDevice device)
 {
     device.Push(GetType());
     device.SetPointSize(m_Size);
 }
 public override void Apply(GraphicDevice device)
 {
     device.Push(GetType());
     device.SetFont(m_Font);
 }
Exemple #10
0
 private void ApplyAttributes(GraphicDevice device)
 {
     if (m_AttributeStack != null)
         m_AttributeStack.ApplyAttributes(device);
 }