Skip to content
Snippets Groups Projects
Commit 452de280 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Javadoc

parent bcc53f2c
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ package cz.fidentis.analyst.core;
import cz.fidentis.analyst.canvas.Canvas;
import cz.fidentis.analyst.toolbar.FaceToFaceToolBar;
import cz.fidentis.analyst.toolbar.RenderingToolBar;
import cz.fidentis.analyst.toolbar.SingleFaceToolBar;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle;
import org.netbeans.api.settings.ConvertAsProperties;
......
package cz.fidentis.analyst.curvature;
import cz.fidentis.analyst.canvas.Canvas;
import static cz.fidentis.analyst.curvature.CurvaturePanel.GAUSSIAN_CURVATURE;
import cz.fidentis.analyst.mesh.core.MeshFacet;
import cz.fidentis.analyst.visitors.mesh.Curvature;
import java.awt.event.ActionEvent;
import java.util.List;
import java.util.Map;
import javax.swing.AbstractAction;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JToggleButton;
......
......@@ -20,8 +20,10 @@ public class CurvaturePanel extends javax.swing.JPanel {
public static final String MIN_CURVATURE = "Min";
public static final String MAX_CURVATURE = "Max";
//private final JCheckBox showCurvature;
/**
* Constructor.
* @param curvAction Action listener
*/
public CurvaturePanel(CurvatureAction curvAction) {
ControlPanelBuilder builder = new ControlPanelBuilder(this);
......
......@@ -18,6 +18,10 @@ public class DistancePanel extends javax.swing.JPanel {
public static final String STRATEGY_POINT_TO_POINT= "Point to point";
public static final String STRATEGY_POINT_TO_TRIANGLE= "Point to triangle";
/**
* Constructor.
* @param action Action listener
*/
public DistancePanel(DistanceAction action) {
ControlPanelBuilder builder = new ControlPanelBuilder(this);
......
......@@ -10,7 +10,8 @@ import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
/**
*
* Heatmap rendering.
*
* @author Daniel Sokol
*/
public class HeatmapRenderer {
......@@ -26,6 +27,12 @@ public class HeatmapRenderer {
maxColor = color;
}
/**
* Maps distances of mesh model vertices to colors and renders the taken heatmap.
* @param gl OpenGL context
* @param model Mesh model to be rendered
* @param distances Distances in mesh model vertices
*/
public void drawMeshModel(GL2 gl, MeshModel model, Map<MeshFacet, List<Double>> distances) {
Double minDistance = Double.POSITIVE_INFINITY;
Double maxDistance = Double.NEGATIVE_INFINITY;
......@@ -45,6 +52,14 @@ public class HeatmapRenderer {
}
}
/**
* Maps distances of mesh facet to colors and renders the taken heatmap.
* @param gl OpenGL context
* @param facet Mesh facet
* @param distancesList Distances in the mesh facet vertices
* @param minDistance Minimal distance threshold (smaller distances are cut-off)
* @param maxDistance Maxim distance threshold (bigger distances are cut-off)
*/
public void renderMeshFacet(GL2 gl, MeshFacet facet, List<Double> distancesList, Double minDistance, Double maxDistance) {
gl.glBegin(GL2.GL_TRIANGLES); //vertices are rendered as triangles
......
......@@ -106,7 +106,12 @@ public final class SymmetryPanel extends javax.swing.JPanel {
});
builder.addLine();
averaging = builder.addCheckBoxOptionLine((ActionEvent e) -> { showAveragingHelp(); }, "Averaging", config.isAveraging(),
averaging = builder.addCheckBoxOptionLine(
(ActionEvent e) -> {
showAveragingHelp();
},
"Averaging",
config.isAveraging(),
(ActionEvent e) -> {
tempConfig.setAveraging(((JToggleButton) e.getSource()).isSelected());
});
......
......@@ -3,7 +3,6 @@ package cz.fidentis.analyst.toolbar;
import cz.fidentis.analyst.canvas.Canvas;
import cz.fidentis.analyst.distance.DistanceAction;
import cz.fidentis.analyst.distance.DistancePanel;
import javax.swing.ImageIcon;
import javax.swing.JTabbedPane;
import javax.swing.JToggleButton;
import org.openide.util.NbBundle;
......
......@@ -4,8 +4,6 @@ import cz.fidentis.analyst.canvas.Canvas;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JMenuItem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment