Package libnoiseforjava.exception

Examples of libnoiseforjava.exception.ExceptionInvalidParam


   public void setSize (int width, int height) throws ExceptionInvalidParam
   {
      if (width < 1 || height < 1)
         // Invalid width or height.
         throw new ExceptionInvalidParam ("Invalid parameter in NoiseMap");
      else
      {
         this.width  = width;
         this.height = height;
      }
View Full Code Here


            || upperZBound <= lowerZBound
            || destWidth <= 0
            || destHeight <= 0
            || sourceModule == null
            || destNoiseMap == null)
         throw new ExceptionInvalidParam ("Invalid parameter in NoiseMapBuilderPlane");

      // Resize the destination noise map so that it can store the new output
      // values from the source model.
      destNoiseMap.setSize (destWidth, destHeight);
View Full Code Here

   /// @throw ExceptionInvalidParam See the preconditions.
   public void setBounds (double lowerXBound, double upperXBound,
         double lowerZBound, double upperZBound) throws ExceptionInvalidParam
   {
      if (lowerXBound >= upperXBound || lowerZBound >= upperZBound)
         throw new ExceptionInvalidParam ("Invalid parameter in NoiseMapBuilderPlane");

      this.lowerXBound = lowerXBound;
      this.upperXBound = upperXBound;
      this.lowerZBound = lowerZBound;
      this.upperZBound = upperZBound;
View Full Code Here

   /// @throw ExceptionInvalidParam See the preconditions.
   public void setSize (int width, int height) throws ExceptionInvalidParam
   {
      if (width < 0 || height < 0)
         // Invalid width or height.
         throw new ExceptionInvalidParam ("Invalid Parameter in ImageCafe");
      else
      {
         this.width  = width;
         this.height = height;
      }
View Full Code Here

   throws ExceptionInvalidParam
   {
      if (sourceModules != null)
      {
         if (index >= getSourceModuleCount () || index < 0)
            throw new ExceptionInvalidParam ("Invalid Parameter in ModuleBase");
      }
      this.sourceModules[index] = sourceModule;
   }
View Full Code Here

            || upperHeightBound <= lowerHeightBound
            || destWidth <= 0
            || destHeight <= 0
            || sourceModule == null
            || destNoiseMap == null)
         throw  new ExceptionInvalidParam ("Invalid Parameter in NoiseMapBuilderCylinder");


      // Resize the destination noise map so that it can store the new output
      // values from the source model.
      destNoiseMap.setSize (destWidth, destHeight);
View Full Code Here

   public void setBounds (double lowerAngleBound, double upperAngleBound,
         double lowerHeightBound, double upperHeightBound) throws ExceptionInvalidParam
   {
      if (lowerAngleBound >= upperAngleBound
            || lowerHeightBound >= upperHeightBound)
         throw new ExceptionInvalidParam ("Invalid Parameter in NoiseMapBuilder Cylinder");

      this.lowerAngleBound  = lowerAngleBound ;
      this.upperAngleBound  = upperAngleBound ;
      this.lowerHeightBound = lowerHeightBound;
      this.upperHeightBound = upperHeightBound;
View Full Code Here

   {
      if ( sourceNoiseMap == null
            || destImageCafe == null
            || sourceNoiseMap.getWidth  () <= 0
            || sourceNoiseMap.getHeight () <= 0)
         throw new ExceptionInvalidParam ("Invalid Parameter in RendererNormalMap");


      int width  = sourceNoiseMap.getWidth  ();
      int height = sourceNoiseMap.getHeight ();
View Full Code Here

            // Exit now.
            break;
         else if (inputValue == controlPoints[insertionPos].inputValue)
            // Each control point is required to contain a unique input value, so
            // throw an exception.
            throw new ExceptionInvalidParam("Invalid Parameter in Curve");
      }
      return insertionPos;
   }
View Full Code Here

            || northLatBound <= southLatBound
            || destWidth <= 0
            || destHeight <= 0
            || sourceModule == null
            || destNoiseMap == null)
         throw new ExceptionInvalidParam ("Invalid Parameter in NoiseMapBuilderSphere");


      // Resize the destination noise map so that it can store the new output
      // values from the source model.
      destNoiseMap.setSize (destWidth, destHeight);
View Full Code Here

TOP

Related Classes of libnoiseforjava.exception.ExceptionInvalidParam

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.