Exemplo n.º 1
0
 /// <summary>
 /// Activate this postprocessing effect
 /// </summary>
 public void Activate()
 {
     ActivatedPostProcessingEffect = this;
     if (EnginePostProcessing != null)
     {
         EnginePostProcessing.Activate();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deactivate this postprocessing effect
 /// </summary>
 public void DeActivate()
 {
     if (ActivatedPostProcessingEffect == this)
     {
         ActivatedPostProcessingEffect = null;
     }
     if (EnginePostProcessing != null)
     {
         EnginePostProcessing.Deactivate();
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Overridden clone function that removes the hotspots again
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            PostProcessingShape copy = base.Clone() as PostProcessingShape;

            // perform deep copy of the dynamic properties
            if (_effectProperties != null)
            {
                copy._effectProperties = (DynamicPropertyCollection)_effectProperties.Clone();
            }

            return(copy);
        }
Exemplo n.º 4
0
        public override ShapeBase CreateShapeInstance()
        {
            PostProcessingShape shape = new PostProcessingShape("Postprocessing");

            return(shape);
        }
 public override ShapeBase CreateShapeInstance()
 {
     PostProcessingShape shape = new PostProcessingShape("Postprocessing");
       return shape;
 }
 /// <summary>
 /// Deactivate this postprocessing effect
 /// </summary>
 public void DeActivate()
 {
     if (ActivatedPostProcessingEffect==this)
     ActivatedPostProcessingEffect = null;
       if (EnginePostProcessing!=null)
     EnginePostProcessing.Deactivate();
 }
 /// <summary>
 /// Activate this postprocessing effect
 /// </summary>
 public void Activate()
 {
     ActivatedPostProcessingEffect = this;
       if (EnginePostProcessing!=null)
     EnginePostProcessing.Activate();
 }
Exemplo n.º 8
0
            public override IShapeVisitor.VisitResult Visit(ShapeBase shape)
            {
                PostProcessingShape pshape = shape as PostProcessingShape;
                if (shape.Modifiable && pshape != null)
                {
                  if (FirstActive == null || pshape.Active)
                FirstActive = pshape;
                  Found.Add(pshape);
                }

                return VisitResult.VisitOk;
            }