Skip to content

Commit

Permalink
restructure project
Browse files Browse the repository at this point in the history
  • Loading branch information
palasjir committed Dec 27, 2017
1 parent 6089398 commit 01da9e9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/main/java/palasjir/viewer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.jogamp.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.FPSAnimator;
import palasjir.viewer.ui.VisualizationPanel;

import java.awt.Dimension;
import java.awt.event.WindowAdapter;
Expand All @@ -25,7 +26,7 @@ public static void main(String[] args) {
final Dimension dimension = new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT);
final GLCanvas canvas = new VisualizationPanel(dimension);

// Create a animator that drives canvas' display() at the specified FPS.
// Create a animator that drives canvas' render() at the specified FPS.
final FPSAnimator animator = new FPSAnimator(canvas, FPS, true);

// Create the top-level container
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.render;

import java.nio.ByteBuffer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.render;

public class UnitCube {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.ui;

import palasjir.viewer.coordinates.Camera;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.ui;

import com.hackoeur.jglm.Mat4;
import com.hackoeur.jglm.Matrices;
Expand All @@ -7,7 +7,11 @@
import com.jogamp.opengl.*;
import com.jogamp.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.glsl.ShaderState;
import palasjir.viewer.utils.ShaderProgramHelper;
import palasjir.viewer.render.TransferFunction;
import palasjir.viewer.utils.VolumeData;
import palasjir.viewer.coordinates.Camera;
import palasjir.viewer.render.UnitCube;

import java.awt.Dimension;
import java.nio.ByteBuffer;
Expand All @@ -17,7 +21,7 @@
import static com.jogamp.opengl.GL.*;
import static com.jogamp.opengl.GL2ES2.*;
import static com.jogamp.opengl.GL2GL3.*;
import static palasjir.viewer.Utils.*;
import static palasjir.viewer.utils.Utils.*;

public class VisualizationPanel extends GLCanvas implements GLEventListener {

Expand Down Expand Up @@ -117,7 +121,7 @@ public void dispose(GLAutoDrawable drawable) {
}

/**
* Initializes screen buffer. Buffer for creating the screen display of rendered texture.
* Initializes screen buffer. Buffer for creating the screen render of rendered texture.
*
* @param gl GL Interface
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.utils;

import com.jogamp.opengl.GL4;
import com.jogamp.opengl.util.glsl.ShaderCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.utils;

import com.hackoeur.jglm.Mat3;
import com.hackoeur.jglm.Mat4;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package palasjir.viewer;
package palasjir.viewer.utils;

import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
Expand Down

0 comments on commit 01da9e9

Please sign in to comment.