Skip to content

Commit

Permalink
Commit Inicial
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieltavaresmelo committed Sep 14, 2013
1 parent 66908d9 commit c4e9739
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/br/com/translate/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

import br.com.translate.view.MainWindow;

/**
*
* @author Gabriel Tavares
*
*/
public class Main {

public static void main(String[] args) {
Expand Down
7 changes: 7 additions & 0 deletions src/br/com/translate/business/ListenerEarthTranslate.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

import java.awt.Rectangle;

/**
* Listener responsavel por fazer a comunicacao
* da Thread com a TelaPrincipal
*
* @author Gabriel Tavares
*
*/
public interface ListenerEarthTranslate {

public void update(Rectangle r);
Expand Down
7 changes: 7 additions & 0 deletions src/br/com/translate/business/ThreadEarthTranslate.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import java.awt.Rectangle;
import java.util.Random;

/**
* Thread responsavel por fazer a Terra girar em
* torno do Sol.
*
* @author Gabriel Tavares
*
*/
public class ThreadEarthTranslate implements Runnable{

private boolean isRunning = false;
Expand Down
6 changes: 6 additions & 0 deletions src/br/com/translate/util/Histogram1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

/**
* Cria o Histograma de uma Imagem
*
* @author Gabriel Tavares
*
*/
public class Histogram1D {

int numberOfBins = 256;
Expand Down
6 changes: 6 additions & 0 deletions src/br/com/translate/util/OpenCvUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
import static com.googlecode.javacv.cpp.opencv_legacy.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;

/**
* Classe utilitaria com as funcoes do OpenCV
*
* @author Gabriel Tavares
*
*/
public class OpenCvUtil {

public static IplImage grayToBinaryImage(IplImage grayImage, boolean isCopy) {
Expand Down
4 changes: 2 additions & 2 deletions src/br/com/translate/view/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.googlecode.javacv.cpp.opencv_core.IplImage;

/**
* Classe de EVENTOS da TelaPrincipal para iteracao com o usuario
* Classe de eventos da TelaPrincipal para iteracao com o usuario
*
* @author: Gabriel Tavares
*
Expand All @@ -30,7 +30,7 @@ public class MainWindow extends MainWindowView implements ListenerEarthTranslate

private static final long serialVersionUID = 1L;

// Unica instancia da tela
// Singleton
private static MainWindow instance = null;

private ThreadEarthTranslate threadEarthTranslate;
Expand Down
2 changes: 1 addition & 1 deletion src/br/com/translate/view/MainWindowView.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import br.com.translate.util.OpenCvUtil;

/**
* Classe de LAYOUT da TelaPrincipal
* Classe de layout da TelaPrincipal
*
* @author: Gabriel Tavares
*
Expand Down

0 comments on commit c4e9739

Please sign in to comment.