示例#1
0
 /// <summary>
 /// Sets up the model and transform.
 /// Call from the 'Before' method in subclasses.
 /// </summary>
 public AbstractGeneratorTest()
 {
     if (model != null)
     {
         return; // things are already set up
     }
     model          = new RendererModel();
     elementUtil    = new ElementUtility();
     sceneGenerator = new BasicSceneGenerator();
 }
示例#2
0
 /// <summary>
 /// Make a basic generator that creates elements for atoms and bonds.
 /// </summary>
 public BasicGenerator()
 {
     this.atomGenerator  = new BasicAtomGenerator();
     this.bondGenerator  = new BasicBondGenerator();
     this.sceneGenerator = new BasicSceneGenerator();
 }
示例#3
0
 public BasicSceneGeneratorTest()
     : base()
 {
     this.generator = new BasicSceneGenerator();
     base.SetTestedGenerator(generator);
 }