Exemple #1
0
 /// <summary>
 /// Activate this postprocessing effect
 /// </summary>
 public void Activate()
 {
     ActivatedPostProcessingEffect = this;
     if (EnginePostProcessing != null)
     {
         EnginePostProcessing.Activate();
     }
 }
Exemple #2
0
 /// <summary>
 /// Deactivate this postprocessing effect
 /// </summary>
 public void DeActivate()
 {
     if (ActivatedPostProcessingEffect == this)
     {
         ActivatedPostProcessingEffect = null;
     }
     if (EnginePostProcessing != null)
     {
         EnginePostProcessing.Deactivate();
     }
 }
Exemple #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);
        }
Exemple #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();
 }
            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;
            }