Exemplo n.º 1
0
 public NoiseMapBuilder(uint destinationWidth, uint destinationHeight, double borderValue, Module sourceModule)
 {
     _destinationWidth = destinationWidth;
     _destinationHeight = destinationHeight;
     _borderValue = borderValue;
     _source = sourceModule;
 }
Exemplo n.º 2
0
 public Terrace(Module sourceModule, IEnumerable<double> points)
 {
     controlPoints = new double[0];
     SourceModule = sourceModule;
     foreach(double point in points)
     {
         AddControlPoint(point);
     }
 }
Exemplo n.º 3
0
 public Terrace(Module sourceModule, params double[] points)
 {
     controlPoints = new double[0];
     SourceModule = sourceModule;
     foreach(double point in points)
     {
         AddControlPoint(point);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 ///      Constructor, binds a module, as well as sets the start and end points.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 /// <param name="startX">The x coordinate of the start position.</param>
 /// <param name="startY">The y coordinate of the start position.</param>
 /// <param name="startZ">The z coordinate of the start position.</param>
 /// <param name="endX">The x coordinate of the end position.</param>
 /// <param name="endY">The y coordinate of the end position.</param>
 /// <param name="endZ">The z coordinate of the end position.</param>
 public Line(Module sourceModule, double startX, double startY, double startZ, double endX, double endY, double endZ)
 {
     SourceModule = sourceModule;
     StartX = startX;
     StartY = startY;
     StartZ = startZ;
     EndX = endX;
     EndY = endY;
     EndZ = endZ;
 }
Exemplo n.º 5
0
        public Curve(Module connectedModule, IEnumerable<ControlPoint> points)
        {
            controlPoints = new SortedList<double, double>();
            foreach(ControlPoint point in points)
            {
                AddControlPoint(point);
            }

            ConnectedModule = connectedModule;
        }
Exemplo n.º 6
0
        public Curve(Module connectedModule, params ControlPoint[] points)
        {
            controlPoints = new SortedList<double, double>();
            foreach(ControlPoint point in points)
            {
                AddControlPoint(point);
            }

            ConnectedModule = connectedModule;
        }
Exemplo n.º 7
0
        public PlanarNoiseMapBuilder(uint destinationWidth,
            uint destinationHeight,
            double borderValue,
            Module sourceModule,
            double xLowerBound,
            double xUpperBound,
            double zLowerBound,
            double zUpperBound,
            bool seamless)
            : base(destinationWidth, destinationHeight, borderValue, sourceModule)
        {
            _xLowerBound = xLowerBound;
            _xUpperBound = xUpperBound;

            _zLowerBound = zLowerBound;
            _zUpperBound = zUpperBound;

            _seamless = seamless;
        }
Exemplo n.º 8
0
 public Max(Module sourceModule1, Module sourceModule2)
 {
     SourceModule1 = sourceModule1;
     SourceModule2 = sourceModule2;
 }
Exemplo n.º 9
0
 public Plane(Module source)
 {
     _source = source;
 }
Exemplo n.º 10
0
 /// <summary>
 ///      Constructor, binds a source module.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 public Sphere(Module sourceModule)
 {
     SourceModule = sourceModule;
 }
Exemplo n.º 11
0
 /// <summary>
 ///      Constructor, binds a module to the line.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 public Line(Module sourceModule)
 {
     SourceModule = sourceModule;
 }
Exemplo n.º 12
0
 public RotatePoint(Module connectedModule)
 {
     ConnectedModule = connectedModule;
     SetAngles(DefaultRotateX, DefaultRotateY, DefaultRotateZ);
 }
Exemplo n.º 13
0
 public Exponent(Module connectedModule)
 {
     ConnectedModule = connectedModule;
 }
Exemplo n.º 14
0
 /// <summary>
 ///      Creates a new add module, also setting the NoiseModule1 or NoiseModule2.
 /// </summary>
 /// <param name="noiseModule1">The first module to connect to this add module is connected to.</param>
 /// <param name="noiseModule2">The second module this add module is connected to.</param>
 public Add(Module noiseModule1, Module noiseModule2)
 {
     NoiseModule1 = noiseModule1;
     NoiseModule2 = noiseModule2;
 }
Exemplo n.º 15
0
 /// <summary>
 ///      Constructor, binds a module as well as sets the attenuate flag.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 /// <param name="attenuate">Returns a flag indicating whether the output value is to be attenuated</param>
 public Line(Module sourceModule, bool attenuate)
 {
     Attenuate = attenuate;
     SourceModule = sourceModule;
 }
Exemplo n.º 16
0
 public Terrace(Module sourceModule)
 {
     controlPoints = new double[0];
     SourceModule = sourceModule;
 }
Exemplo n.º 17
0
 /// <summary>
 ///      Constructor, binds a module to the plane.
 /// </summary>
 /// <param name="sourceModule">The module to be encapsulated.</param>
 public Plane(Module sourceModule)
 {
     SourceModule = sourceModule;
 }
Exemplo n.º 18
0
 /// <summary>
 ///      Constructor, does bind a source module.
 /// </summary>
 /// <param name="sourceModule">The module to bind.</param>
 public Cache(Module sourceModule)
 {
     SourceModule = sourceModule;
 }
Exemplo n.º 19
0
 /// <summary>
 ///      Basic constructor, does connect to a module.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 public Cylinder(Module sourceModule)
 {
     SourceModule = sourceModule;
 }
Exemplo n.º 20
0
 public Exponent(Module connectedModule, double expon)
 {
     ConnectedModule = connectedModule;
     Expon = expon;
 }
Exemplo n.º 21
0
 public Clamp(Module sourceModule)
 {
     SourceModule = sourceModule;
     LowerBound = DefaultClampLowerBound;
     UpperBound = DefaultClampUpperBound;
 }
Exemplo n.º 22
0
 public Power(Module sourceModuleBase, Module sourceModuleExponent)
 {
     SourceModuleExponent = sourceModuleExponent;
     SourceModuleBase = sourceModuleBase;
 }
Exemplo n.º 23
0
 public Clamp(Module sourceModule, double lowerBound, double upperBound)
 {
     SourceModule = sourceModule;
     LowerBound = lowerBound;
     UpperBound = upperBound;
 }
Exemplo n.º 24
0
 public Min(Module sourceModule1, Module sourceModule2)
 {
     SourceModule2 = sourceModule2;
     SourceModule1 = sourceModule1;
 }
Exemplo n.º 25
0
 /// <summary>
 ///      Creates a <see cref="Module" />, while also setting the NoiseModule.
 /// </summary>
 /// <param name="noiseModule">The <see cref="Module" /> to connect to this <see cref="Abs" /> noise <see cref="Module" />.</param>
 public Abs(Module noiseModule)
 {
     NoiseModule = noiseModule;
 }
Exemplo n.º 26
0
 public RotatePoint(Module connectedModule, double xAngle, double yAngle, double zAngle)
 {
     ConnectedModule = connectedModule;
     SetAngles(xAngle, yAngle, zAngle);
 }
Exemplo n.º 27
0
 /// <summary>
 ///      Constructor, binds a module as well as setting the start and end points, while also setting the attenuate flag.
 /// </summary>
 /// <param name="sourceModule">The module to encapsulate.</param>
 /// <param name="startX">The x coordinate of the start position.</param>
 /// <param name="startY">The y coordinate of the start position.</param>
 /// <param name="startZ">The z coordinate of the start position.</param>
 /// <param name="endX">The x coordinate of the end position.</param>
 /// <param name="endY">The y coordinate of the end position.</param>
 /// <param name="endZ">The z coordinate of the end position.</param>
 /// <param name="attenuate">Returns a flag indicating whether the output value is to be attenuated</param>
 public Line(Module sourceModule, double startX, double startY, double startZ, double endX, double endY, double endZ, bool attenuate)
 {
     Attenuate = attenuate;
     SourceModule = sourceModule;
     StartX = startX;
     StartY = startY;
     StartZ = startZ;
     EndX = endX;
     EndY = endY;
     EndZ = endZ;
 }