text
stringlengths
3
1.18M
package checkers.gui.panels.panel3D; import checkers.common.Pair; import checkers.common.Point; import com.jme3.cinematic.events.CinematicEvent; import com.jme3.cinematic.events.CinematicEventListener; import java.util.Observable; import java.util.concurrent.Semaphore; /** * * @author Cristian */ publ...
package checkers.gui.panels.panel3D; import com.jme3.app.SimpleApplication; import com.jme3.audio.AudioNode; import com.jme3.bounding.BoundingBox; import com.jme3.cinematic.MotionPath; import com.jme3.cinematic.MotionPathListener; import com.jme3.cinematic.events.CinematicEvent; import com.jme3.cinematic.events.Cinem...
package checkers.gui.panels.panel2D; import checkers.common.Sound; import checkers.gui.panels.IBoardPanel; import checkers.common.Sound.Sounds; import checkers.common.Texture; import checkers.common.Texture.Textures; import checkers.model.Player; import checkers.common.Pair; import checkers.common.Point; imp...
package checkers.gui.panels.panel2D; import java.awt.Graphics; import java.awt.Image; import javax.swing.JPanel; /** * Class BackgroundPanel * Implements JPanel with background image * * @author Cristian Tardivo */ public class BackgroundPanel extends JPanel { // Background image private I...
package checkers.gui.panels.panel2D; import java.awt.Component; import java.awt.Graphics; import javax.swing.Icon; import javax.swing.JLabel; import checkers.common.Texture; /** * Calss BoardCell * Implements a table cell like a Icon with multiple textures * * @author Cristian Tardivo */ publi...
package checkers.gui.panels; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.KeyEvent; import java.util.Observer; import java.util.ResourceBundle; import javax.swing.JPanel; import javax.swing.JTextPane; import javax.swing.text.Style; import javax.swing.text.StyleConstants; /** * Class Lat...
package checkers.gui.panels; import checkers.model.Player; import checkers.common.Point; import java.util.Observer; import javax.swing.JPanel; /** * Interface IBoardPanel * Defines Common interface for diferentes Panels (3D-2D) * * @author Cristian Tardivo */ public interface IBoardPanel { /...
package checkers.gui.panels; import checkers.common.Texture; import checkers.common.Settings; import java.awt.Toolkit; import java.util.ResourceBundle; import javax.swing.ImageIcon; /** * Class LoadingPanel * Creates JPanel with loading gif and text * * @author Cristian Tardivo */ public class LoadingPanel ext...
package checkers.gui.dialogs; import checkers.model.Player; import checkers.common.Settings; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JComponent; import javax.swing.KeyStroke; /*...
package checkers.gui.dialogs; import checkers.model.Player; import checkers.model.Player.Color; import checkers.common.Settings; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JComponen...
package checkers.gui.dialogs; import checkers.model.Player; import checkers.common.Cronometer; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JComponent; import javax.swing.KeyStroke; ...
package checkers.gui.dialogs; import checkers.common.Settings; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JComponent; import javax.swing.KeyStroke; /** * Class OptionsDialog * Sh...
package checkers.gui.dialogs; import checkers.ia.iaPlayer; import checkers.model.Player; import checkers.model.Player.Color; import checkers.common.Settings; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action;...
package checkers.gui.dialogs; import checkers.common.Texture; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ResourceBundle; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.ImageIcon; import javax.swing.JComponent; import javax.swing.KeyStroke; /**...
package checkers.ia; import checkers.model.Board; import checkers.model.Model; import checkers.common.Pair; import checkers.common.Point; /*** * Class iaModel * Implement Model for IA Player from standar game model * adds methods for "state" evaluation, min max player, * state clone and creation from d...
package checkers.ia; import checkers.logic.Logic; import checkers.model.Model; import checkers.common.Settings; import java.util.List; import java.util.Observable; /** * Class iaPlayer * Implements artificial player using min max search with alpha-beta pruning * using iaRules and iaModel * * @autho...
package checkers.ia; import checkers.logic.Logic; import checkers.model.Player.Color; import checkers.common.Pair; import checkers.common.Point; import java.util.Collections; import java.util.LinkedList; import java.util.List; /** * Class iaRules * Implemens ia move rules * allows to make moves and ge...
package checkers.main; import checkers.gui.MainView; import checkers.logic.Controller; import checkers.logic.Logic; import checkers.model.Model; /** * Start Checkers Game * * @author Cristian Tardivo */ public class Start { public static void main(String[] args){ Model model = ne...
package checkers.network; import com.jme3.network.Client; import com.jme3.network.ClientStateListener; import com.jme3.network.ConnectionListener; import com.jme3.network.ErrorListener; import com.jme3.network.HostedConnection; import com.jme3.network.Message; import com.jme3.network.MessageListener; import c...
package checkers.network; import com.jme3.network.AbstractMessage; import com.jme3.network.serializing.Serializable; /** * Class DMessage * Implements Checkers networking messages * using jMonkey (SpiderMonkey) network AbstractMessage * Allows to send command and message like chat * message, game movem...
package checkers.logic; import checkers.model.Board.Cells; import checkers.model.Model; import checkers.model.Player; import checkers.model.Player.Color; import checkers.common.Point; import java.util.LinkedList; import java.util.List; /** * Implements Logic for Checkers game * uses Game Model, allows...
package checkers.logic; import checkers.ia.iaPlayer; import checkers.gui.MainView; import checkers.common.Settings; import checkers.model.Model; import checkers.model.Player; import checkers.network.DMessage; import checkers.network.DNetwork; import checkers.common.Cronometer; import checkers.common.Pair; i...
package checkers.common; /** * Class Pair * Implements a Pair of generic objects * @param <A> class of first object * @param <B> class of second object * * @author Cristian Tardivo */ public class Pair<A,B> { private A first; private B second; /** * Specialized constructo...
package checkers.common; import java.util.Observable; /** * Class Cronometer * Implements object runnable and observable * using a Singleton pattern to have unique instance * of this class * Allows to carry the time of current game * * @author Cristian Tardivo */ public class Cronometer exten...
package checkers.common; import checkers.ia.iaPlayer.Difficult; import checkers.model.Player.Color; import checkers.model.Player.Type; import java.awt.Dimension; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.i...
package checkers.common; import java.applet.Applet; import java.applet.AudioClip; /** * Class Sound * Implements sound manager and player * * @author Cristian Tardivo */ public class Sound { // Game Sound enumeration public enum Sounds {move_sound,eat_sound,queen_sound,wrong_sound}; ...
package checkers.common; import java.awt.Image; import java.net.URL; import javax.swing.ImageIcon; /** * Class Texture * Extends java ImageIcon to implements game 2D textures and Gifs * * @author Cristian Tardivo */ public class Texture extends ImageIcon { // Textures and Gifs public enum ...
package checkers.common; /** * Class Point * Implements Integer Point using * generic Pair of Integer * * @author Cristian Tardivo */ public class Point { private Pair<Integer,Integer> point; /** * Empty Constructor * Point (0,0) */ public Point(){ point = ne...
/** Automatically generated file. DO NOT MODIFY */ package com.example.mythreedcube; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.mythreedcube; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import javax.microedition.khronos.opengles.GL10; import javax.microedition.khronos.opengles.GL11; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitm...
package com.example.mythreedcube; import java.nio.FloatBuffer; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.content.Context; import android.opengl.GLSurfaceView.Renderer; public class MyCubeRender implements Renderer { MyCube mCube; ...
package com.example.mythreedcube; import android.opengl.GLSurfaceView; import android.os.Bundle; import android.app.Activity; import android.content.Context; import android.view.Menu; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.view.WindowManager;...
package test.domain; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; public class ModelImage { private String fullImage; private String previewImage; @JsonCreator public ModelImage(@JsonProperty("fullImage") String fullImage, @JsonProperty("...
package test.domain; import java.util.ArrayList; import java.util.List; import com.n1global.acc.json.CouchDbDocument; public class Model3D extends CouchDbDocument { private String title = ""; private String description = ""; private String order = ""; private List<ModelImage> images = new ArrayLis...
package test.controller; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.Enumeration; import java.util.List; import java.util.Map.Entry; import javax.servlet.http.HttpServletRequest; import javax...
package test.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import test.couchd...
package test.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import test.couchd...
package test.controller; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.UUID; import javax.imageio.ImageIO; import net.coobird.thumbnailator.Thumbnails; import net.coobird.thumbnailator.ge...
package test.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springfra...
package test.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import test.couchd...
package test.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping("/contact") public class ContactController { @RequestMapping(method = RequestMethod.GE...
package test.form; import org.springframework.web.multipart.MultipartFile; public class ModelForm { private String docId = ""; private String title; private String description; private String order; private boolean visibleInMain; private boolean visibleInPortfolio; private MultipartF...
package test.couchdb; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import test.domain.Model3D; import com.n1global.acc.CouchDb; import com.n1global.acc.CouchDbConfig; import com.n1global.acc.annotation.JsView; import com.n1global.acc.view.CouchDbMapV...
package test.util.freemarker; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import org.apache.commons.io.IOUtils; import org.springframework.core.io.DefaultResourceLoader; import org.springframework.ui.freemarker.SpringTemplateLoader; public class AutoEscapeFileTemplateLoader extend...
package index; import xxl.core.util.Distance; public class SparseMatrixDistance implements Distance{ @Override public double distance(Object x, Object y) { SparseMatrix m_x=(SparseMatrix)x; SparseMatrix m_y=(SparseMatrix)y; return m_x.distanceTo(m_y); } }
package index; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import xxl.core.io.Convertable; import xxl.core.spatial.points.Point; public class SparseMatrix implements Point, Convertable, Cloneable{ /** * */ private static final long serialVersionUID = 1L; public static fin...
package index; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Comparator; import xxl.core.collections.containers.Container; import xxl.core.collections.containers.io.BufferedContainer; imp...
package algorithm.sphericharmonics; import java.util.Hashtable; import algorithm.fft.Complex; import algorithm.fft.FFT; import edu.emory.mathcs.jtransforms.fft.FloatFFT_1D; public final class VoxelizedSphere { public static final int lmax=17; private int sphereIndex; private float radius; private float delta_...
package algorithm.sphericharmonics; import algorithm.fft.Complex; /* * The scaling of the polynomials is given here: ________ / (l-m)! Q_{l,m} = / -------- P_{l,m} \/ (l+m)! where P_{l,m} are the associated Legendre polynomials and Q_{l,m} are...
package algorithm.sphericharmonics; import algorithm.fft.Complex; public final class LongitudeCircle { private float latAngle; public IntList lngAngles=new IntList(); private float delta_phi=0; private int index; private int numberOfGrid; public static final float TWOPI=(float)(2*Math.PI); public final Sc...
package algorithm.sphericharmonics; public class SphereDescriptor { private int radius_index; private float[] l2Normal; public SphereDescriptor(int radius_index, float[] l2Normal){ this.l2Normal=l2Normal; this.radius_index=radius_index; } public void print(){ System.out.println("=====radius_index:"+this...
package algorithm.sphericharmonics; import index.SparseMatrix; import java.util.ArrayList; import java.util.List; public class ShapeDescriptor { private int min_radiusIndex=Integer.MAX_VALUE; private int max_radiusIndex=Integer.MIN_VALUE; public long objectId; private List<SphereDescriptor> sph=new ArrayList<...
package algorithm.sphericharmonics; import index.MTreeIndex; import index.SparseMatrix; import java.io.BufferedReader; import java.io.File; import java.io.FileFilter; import java.io.FileReader; import java.io.FilenameFilter; import java.util.Hashtable; import viewer.JRoff; import xxl.core.collections.containers.Cont...
package algorithm.sphericharmonics; import algorithm.fft.Complex; public class ComplexSphere { public float radius; public float angle; public ComplexSphere(float r, float a){ radius=r; angle=a; } public float re(){ return radius*(float)Math.cos(angle); } public float im(){ return radius*(float)Mat...
package algorithm.sphericharmonics; import algorithm.fft.Complex; public class SphericalHarmonics extends MathFunct{ static final float TWOPI=2*PI; public static ComplexSphere y0(int m,float theta, float phi){ if (m==0){ return new ComplexSphere(sqrt(1/PI)/2,0); } throw new RuntimeException("illegal para...
package algorithm.sphericharmonics; import algorithm.fft.Complex; public class Util { public static final float PI=3.14159265358979f; public static final float MY_EPSILON=1e-6f; public static final Complex ZERO_COMPLEX=new Complex(0,0); public static void memset(float[] array, int fromIndex, int toIndex, float v...
package algorithm.sphericharmonics; public class MathFunct { public static final float PI=(float)Math.PI; public static float sin(float x){ return (float)Math.sin(x); } public static float cos(float x){ return (float)Math.cos(x); } public static float sqrt(float x){ return (float)Math.sqrt(x); } pub...
package algorithm.sphericharmonics; import algorithm.fft.Complex; public class ScaledAssociatedLegenedrePolynomialFunct extends MathFunct { //private static final float PI=(float)Math.PI; public static void main(String[] args){ System.out.println(k(0)); } public static int k(int m){ if (m==0){ return...
package algorithm.sphericharmonics; /* * In this documentation (and the ccSHT code) standard mathematical spherical * coordinates (theta, phi) are used. We will briefly define these coordinates. * Let us refer to an arbitrary fixed direction as the ``north pole''. * theta is the latitudinal angle measured in ra...
package algorithm.sphericharmonics; public final class IntList{ private int[] data; private int size; private static final int DEFAULT_CAPACITY = 16; protected int modCount; public IntList(){ data=new int[DEFAULT_CAPACITY]; } public final boolean add(int e){ modCount++; if (size == data.length){...
package algorithm.fft; public class FFTNodeFactory implements IFFTNodeFactory { private FFTNode[] stack; private int top; private FFTNode topNode; private Trigonometry trigonometry; private WorkMemory wm; public FFTNodeFactory(int size,int dim,Trigonometry t, WorkMemory wm){ stack=new FFTNode[size]; t...
package algorithm.fft; import java.util.Random; import edu.emory.mathcs.jtransforms.fft.FloatFFT_1D; public class DepthFirstFFT { private static class Control{ public int step_child; public int size_child; public float[] real; public float[] image; public int k; } //trigonometric function //private C...
package algorithm.fft; public class WorkMemory { public float real[]; public float image[]; public WorkMemory(int dim){ real=new float[dim]; image=new float[dim]; } }
package algorithm.fft; /************************************************************************* * Compilation: javac Complex.java * Execution: java Complex * * Data type for complex numbers. * * The data type is "immutable" so once you create and initialize * a Complex object, you cannot change it. T...
package algorithm.fft; public class Trigonometry { private static final float TWO_PI=(float)Math.PI*2; private float[] cos; private float[] sin; private int[] firsts; private int id_quadrant; private Complex buff=new Complex(0,0); public Trigonometry(int size, int log2Size){ // size is pow of 2; System.ou...
package algorithm.fft; public interface IFFTNodeFactory { public FFTNode createRootNode(int from, int to, int order); public FFTNode createFFTNode(); public void create2FFTNodes(FFTNode[] nodes); public FFTNode createFFTNode(int from, int step, int to, int size, short type, int order, FFTNode parent); p...
package algorithm.fft; /* * [0 1 2 3 4 5 6 7] * [0 2 4 6] [1 3 5 7] * [0 4] [2 6] [1 5] [3 7] * [0] [4 1] [2] [6] [1] [5] [3] [7] * * apply bit reversal * * [0 1 2 3 4 5 6 7] * [0 1 2 3] [4 5 6 7] * [0 1] [2 3] [4 5] [6 7] * [0] [1] [2] [3] [...
package algorithm.fft; import java.util.Random; import edu.emory.mathcs.jtransforms.fft.DoubleFFT_1D; import edu.emory.mathcs.jtransforms.fft.FloatFFT_1D; /************************************************************************* * Compilation: javac FFT.java * Execution: java FFT N * Dependencies: Complex...
package algorithm.fft; public class SparseDTF { public Complex[] fft(int[] v,int dim,Complex[] f){ double kth; for (int i=0; i<v.length; i++){ int n=v[i]; for (int k=0; k<dim; k++){ kth = -2 *n*Math.PI/dim; f[k].re+=(float)Math.cos(kth); f[k].im+=(float)Math.sin(kth); } } return f; ...
package algorithm.fft; public class BinaryFFTCache { public final static int WIDTH=8; public static Item[] items; //public static int[] elements=new int[WIDTH]; public BinaryFFTCache(){ } public static void buildCache(){ int upper=(int)(Math.pow(2,WIDTH)+0.5); boolean[] b=new boolean[WIDTH]; items=new I...
package algorithm.fft; public class FastFFTNodeFactory implements IFFTNodeFactory{ private FFTNode topNode; private Trigonometry trigonometry; private WorkMemory wm; public FastFFTNodeFactory(int size,int dim,Trigonometry t, WorkMemory wm){ this.wm=wm; trigonometry=t; topNode=new FFTNode(this,wm); FFTN...
package algorithm.fft; /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://...
package model; public class TrianglePixelization { private IPixelizationListener listener=new DummyPixelizationListener(); public float sizeOfPixelCube=0.1f; // this approach could be too sensitive to presentation of the 3D model; // for the same thing, because of accuracy is different, they are consider not the ...
package model; public class RoffTriangle { private int p1; private int p2; private int p3; private double distance; private RoffVector3D viewVector; private RoffVector3D normal; private RoffVector3D centroid; private RoffVector3D[] pointArray; private double maxX; ...
package model; import java.awt.Color; import java.util.*; public class RoffPolygon3D { RoffVector3D normal; int[] vertexIndices; Color baseColor; public RoffPolygon3D() { baseColor = new Color(150,150,150); } public RoffPolygon3D(String stringVersion) { S...
package model; public class RoffVector3D implements Cloneable { public static final int X=1; public static final int Y=2; public static final int Z=3; public double x; public double y; public double z; public RoffVector3D() { x = 0; y = 0; z = 0; } ...
package model; public class DummyPixelizationListener implements IPixelizationListener{ @Override public void informs(double x, double y, double z,double w) { System.out.println(x+","+y+","+z); } }
package model; public class RoffPolygonEdge { public int startIndex; public int endIndex; public RoffPolygonEdge() { startIndex = 0; endIndex = 0; } public RoffPolygonEdge(int firstIndex, int secondIndex) { if (firstIndex > secondIndex) { startIn...
package model; import java.io.*; import java.util.*; import algorithm.sphericharmonics.VoxelizedSphereManager; import viewer.JRoff; public class GeometryModel3D { public RoffVector3D[] vertices; public RoffPolygon3D[] polygons; public RoffPolygonEdge[] edges; public int numVertice...
package model; public class GeoUtil { public static double max(double a, double b, double c){ return Math.max(c, Math.max(a, b)); } public static double min(double a, double b, double c){ return Math.min(c, Math.min(a, b)); } }
package model; public class RoffLine2D { public int startX; public int startY; public int endX; public int endY; public boolean valid; public RoffLine2D() { startX = 0; startY = 0; endX = 0; endY = 0; valid = false; } public Rof...
package model; public class FineTrianglePixelization { private IPixelizationListener listener=new DummyPixelizationListener(); public float sizeOfPixelCube=0.001f; public void doPixelization2D(RoffTriangle triangle){ int[] order=triangle.getOrder(); /* order[0]=RoffVector3D.X; order[1]=RoffVector3D.Y; ...
package model; public interface IPixelizationListener { public void informs(double x,double y, double z,double weight); }
package model; import java.awt.*; import java.util.*; public class RoffTriangleManager { private RoffVector3D[] pointArray; private int[] pointXArray; private int[] pointYArray; private int[] depthOrder; private RoffTriangle[] triangles; private int numTriangles; public...
package viewer; import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; public class RoffPostScriptPanel extends JPanel { JComboBox selectionList; JRadioButton useBG; JRadioButton noUseBG; JRadioButton grayscaleButton; JRadioButton colorButton; ...
package viewer; import java.awt.*; import model.RoffVector3D; public class RoffPhong { private RoffVector3D lightDirection; private RoffVector3D worldLight; private float objOutsideRed; private float objOutsideGreen; private float objOutsideBlue; private float objInsideRed;...
package viewer; import javax.swing.*; import java.io.*; import java.net.*; import java.util.*; import java.awt.*; import java.awt.event.*; public class JRoffInit extends JApplet implements ActionListener { private JRoff mainFrame; private JButton startButton; private URL[] offFiles; p...
package viewer; import javax.swing.*; import javax.swing.event.*; import model.GeometryModel3D; import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; public class RoffObserverFrame extends JFrame implements ActionListener, ChangeListener { private RoffViewPanel vp; ...
package viewer; import java.util.ArrayList; import java.util.List; import model.RoffVector3D; import model.IPixelizationListener; import model.TrianglePixelization; public class PixelizationListener implements IPixelizationListener { private List<RoffVector3D> points=new ArrayList<RoffVector3D>(); public Pixelizat...
package viewer; import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; public class RoffModelInfoPanel extends JPanel { public RoffModelInfoPanel(int numVerts, int numPolys, int numEdges, ...
package viewer; import java.net.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; public class RoffAppletOpenPanel extends JPanel { JComboBox selectionList; public RoffAppletOpenPanel(URL[] files) { Vector filename...
package viewer; import javax.swing.*; import javax.swing.border.*; import javax.swing.event.*; import model.RoffVector3D; import java.awt.*; import java.awt.event.*; public class RoffLightingPanel extends JPanel implements ChangeListener, MouseListener { private RoffPhong illuminator; p...
package viewer; import javax.swing.*; import javax.swing.border.*; import model.RoffVector3D; import java.awt.*; import java.awt.event.*; public class RoffViewParameterPanel extends JPanel { private JTextField atX; private JTextField atY; private JTextField atZ; private JTextField ...
package viewer; import javax.swing.*; import javax.swing.event.*; import model.RoffVector3D; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.awt.geom.*; public class RoffSpherePanel extends JPanel { private int squareSize; private int upperLeftX; priva...
package viewer; import javax.swing.*; import javax.swing.event.*; import model.GeometryModel3D; import model.RoffLine2D; import model.RoffTriangle; import model.RoffTriangleManager; import model.RoffVector3D; import model.TrianglePixelization; import java.awt.*; import java.awt.event.*; import java.awt...
package viewer; import javax.swing.*; import model.GeometryModel3D; import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; public class JRoff extends JFrame implements ActionListener { GeometryModel3D offFile; private final JFileChooser fc; private JFileChooser ...
package viewer; import javax.swing.event.*; import model.RoffLine2D; import model.RoffVector3D; public class RoffPerspective { private RoffVector3D fromPoint; private RoffVector3D atPoint; private RoffVector3D upVector; private double viewAngle; private double tanHalfAngle; ...
package j3d; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Frame; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.event.KeyEvent; import java.util.Enumeration; import javax.media.j3d.Behavi...
/* XXL: The eXtensible and fleXible Library for data processing Copyright (C) 2000-2004 Prof. Dr. Bernhard Seeger Head of the Database Research Group Department of Mathematics and Computer Science University of Marburg Germ...
package game; /* Copyright (C) 2012 Johan Ceuppens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed...