Ejemplo n.º 1
0
 public virtual void PreVisit(ITransformNode transform)
 {
     System.Console.WriteLine(currentIndentation
     + "A Drawable of type "
     + transform.GetType().ToString()
     + " with name: " + transform.Name);
     currentIndentation += indentIncrement;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="template"></param>
 /// <param name="root"></param>
 /// <param name="childIsRoot">
 /// Whether child elements should be constructed as the root mirror element, so that they
 /// incorporate the template's parent transform into their own transform
 /// </param>
 /// <param name="parent"></param>
 public MirrorArraySource(IArraySource <T> template, bool root, bool childIsRoot, ITransformNode parent)
 {
     _template = template;
     _template.AddMonitor(this);
     _parent      = parent;
     _root        = root;
     _childIsRoot = childIsRoot;
 }
Ejemplo n.º 3
0
 public virtual void PreVisit(ITransformNode transform)
 {
     System.Console.WriteLine(currentIndentation
     + "Drawable Name: " + transform.Name);
     currentIndentation += indentIncrement;
 }
Ejemplo n.º 4
0
 public virtual void PostVisit(ITransformNode transform)
 {
     currentIndentation = currentIndentation.Substring(0,
         currentIndentation.Length - indentIncrement.Length);
 }
Ejemplo n.º 5
0
 public MirrorAa(IAa template, bool root, ITransformNode parent)
     : base(template, root, false, parent)
 {
     _template = template;
 }
Ejemplo n.º 6
0
 public IChain GetMirroredElement(bool root, ITransformNode parent)
 {
     return(new MirrorChain(this, root, parent));
 }
Ejemplo n.º 7
0
 public MirrorStructure(IStructure template, bool root, ITransformNode parent)
     : base(template, root, false, parent)
 {
     _template = template;
 }
Ejemplo n.º 8
0
 public MirrorAtom(IAtom template, bool root, ITransformNode parent)
 {
     _template = template;
     _root     = root;
     Parent    = parent;
 }
Ejemplo n.º 9
0
 public void PreVisit(ITransformNode transform)
 {
     System.Console.WriteLine(currentIndentation + "A Transform node of type " + transform.GetType().ToString() + " with name: " + transform.Name);
     currentIndentation += indentIncrement;
 }
Ejemplo n.º 10
0
 public void PostVisit(ITransformNode transform)
 {
     currentIndentation = currentIndentation.Substring(0, currentIndentation.Length - indentIncrement.Length);
 }