Java Doc for TransfertRectIter.java in  » GIS » GeoTools-2.4.1 » org » geotools » image » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.image 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.image.TransfertRectIter

TransfertRectIter
final public class TransfertRectIter implements WritableRectIter(Code)
A that read pixel values from an image, and write pixel values to a different image. All get methods read values from the source image specified at . All set methods write values to the destination image specified at , which may or may not be the same than the source image. This is different than the usual WritableRectIter contract, which read and write values in the same image. This TransfertRectIter is convenient for the implementation of some image operations.
since:
   2.3
version:
   $Id: TransfertRectIter.java 20970 2006-08-11 07:53:22Z jgarnett $
author:
   Martin Desruisseaux




Method Summary
public static  WritableRectItercreate(RectIter src, WritableRectIter dst)
     Creates a WritableRectIter for the specified source and destination iterator. The two iterators must iterate over a rectangle of the same size, otherwise a RasterFormatException may be thrown during the iteration.
Parameters:
  src - The source iterator.
Parameters:
  dst - The destination iterator.
public  booleanfinishedBands()
     Returns true if the max band in the image has been exceeded.
public  booleanfinishedLines()
     Returns true if the bottom row of the bounding rectangle has been passed.
public  booleanfinishedPixels()
     Returns true if the right edge of the bounding rectangle has been passed.
public  int[]getPixel(int[] array)
     Returns the samples of the current pixel from the image in an array of int.
public  float[]getPixel(float[] array)
     Returns the samples of the current pixel from the image in an array of float.
public  double[]getPixel(double[] array)
     Returns the samples of the current pixel from the image in an array of double.
public  intgetSample()
     Returns the current sample as an integer.
public  intgetSample(int b)
     Returns the specified sample of the current pixel as an integer.
public  doublegetSampleDouble()
     Returns the current sample as a double.
public  doublegetSampleDouble(int b)
     Returns the specified sample of the current pixel as a double.
public  floatgetSampleFloat()
     Returns the current sample as a float.
public  floatgetSampleFloat(int b)
     Returns the specified sample of the current pixel as a float.
public  voidjumpLines(int num)
     Jumps downward num lines from the current position.
public  voidjumpPixels(int num)
     Jumps rightward num pixels from the current position.
public  voidnextBand()
     Sets the iterator to the next band in the image.
public  booleannextBandDone()
     Sets the iterator to the next band in the image, and returns true if the max band has been exceeded.
public  voidnextLine()
     Sets the iterator to the next line of the image.
public  booleannextLineDone()
     Sets the iterator to the next line in the image, and returns true if the bottom row of the bounding rectangle has been passed.
public  voidnextPixel()
     Sets the iterator to the next pixel in image (that is, move rightward).
public  booleannextPixelDone()
     Sets the iterator to the next pixel in the image (that is, move rightward).
public  voidsetPixel(int[] array)
     Sets all samples of the current pixel to a set of int values.
public  voidsetPixel(float[] array)
     Sets all samples of the current pixel to a set of float values.
public  voidsetPixel(double[] array)
     Sets all samples of the current pixel to a set of double values.
public  voidsetSample(int s)
     Sets the current sample to an integral value.
public  voidsetSample(float s)
     Sets the current sample to a float value.
public  voidsetSample(double s)
     Sets the current sample to a double value.
public  voidsetSample(int b, int s)
     Sets the specified sample of the current pixel to an integral value.
public  voidsetSample(int b, float s)
     Sets the specified sample of the current pixel to a float value.
public  voidsetSample(int b, double s)
     Sets the specified sample of the current pixel to a double value.
public  voidstartBands()
     Sets the iterator to the first band of the image.
public  voidstartLines()
     Sets the iterator to the first line of its bounding rectangle.
public  voidstartPixels()
     Sets the iterator to the leftmost pixel of its bounding rectangle.



Method Detail
create
public static WritableRectIter create(RectIter src, WritableRectIter dst)(Code)
Creates a WritableRectIter for the specified source and destination iterator. The two iterators must iterate over a rectangle of the same size, otherwise a RasterFormatException may be thrown during the iteration.
Parameters:
  src - The source iterator.
Parameters:
  dst - The destination iterator. An iterator that read sample from src and write sampleto dst . If src == dst , then the destinationiterator itself is returned.



finishedBands
public boolean finishedBands()(Code)
Returns true if the max band in the image has been exceeded.



finishedLines
public boolean finishedLines()(Code)
Returns true if the bottom row of the bounding rectangle has been passed.



finishedPixels
public boolean finishedPixels()(Code)
Returns true if the right edge of the bounding rectangle has been passed.



getPixel
public int[] getPixel(int[] array)(Code)
Returns the samples of the current pixel from the image in an array of int.



getPixel
public float[] getPixel(float[] array)(Code)
Returns the samples of the current pixel from the image in an array of float.



getPixel
public double[] getPixel(double[] array)(Code)
Returns the samples of the current pixel from the image in an array of double.



getSample
public int getSample()(Code)
Returns the current sample as an integer.



getSample
public int getSample(int b)(Code)
Returns the specified sample of the current pixel as an integer.



getSampleDouble
public double getSampleDouble()(Code)
Returns the current sample as a double.



getSampleDouble
public double getSampleDouble(int b)(Code)
Returns the specified sample of the current pixel as a double.



getSampleFloat
public float getSampleFloat()(Code)
Returns the current sample as a float.



getSampleFloat
public float getSampleFloat(int b)(Code)
Returns the specified sample of the current pixel as a float.



jumpLines
public void jumpLines(int num)(Code)
Jumps downward num lines from the current position.



jumpPixels
public void jumpPixels(int num)(Code)
Jumps rightward num pixels from the current position.



nextBand
public void nextBand()(Code)
Sets the iterator to the next band in the image.



nextBandDone
public boolean nextBandDone()(Code)
Sets the iterator to the next band in the image, and returns true if the max band has been exceeded.



nextLine
public void nextLine()(Code)
Sets the iterator to the next line of the image.



nextLineDone
public boolean nextLineDone()(Code)
Sets the iterator to the next line in the image, and returns true if the bottom row of the bounding rectangle has been passed.



nextPixel
public void nextPixel()(Code)
Sets the iterator to the next pixel in image (that is, move rightward).



nextPixelDone
public boolean nextPixelDone()(Code)
Sets the iterator to the next pixel in the image (that is, move rightward).



setPixel
public void setPixel(int[] array)(Code)
Sets all samples of the current pixel to a set of int values.



setPixel
public void setPixel(float[] array)(Code)
Sets all samples of the current pixel to a set of float values.



setPixel
public void setPixel(double[] array)(Code)
Sets all samples of the current pixel to a set of double values.



setSample
public void setSample(int s)(Code)
Sets the current sample to an integral value.



setSample
public void setSample(float s)(Code)
Sets the current sample to a float value.



setSample
public void setSample(double s)(Code)
Sets the current sample to a double value.



setSample
public void setSample(int b, int s)(Code)
Sets the specified sample of the current pixel to an integral value.



setSample
public void setSample(int b, float s)(Code)
Sets the specified sample of the current pixel to a float value.



setSample
public void setSample(int b, double s)(Code)
Sets the specified sample of the current pixel to a double value.



startBands
public void startBands()(Code)
Sets the iterator to the first band of the image.



startLines
public void startLines()(Code)
Sets the iterator to the first line of its bounding rectangle.



startPixels
public void startPixels()(Code)
Sets the iterator to the leftmost pixel of its bounding rectangle.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.