apps.dissection
Class SolutionFinder

java.lang.Object
  extended by apps.dissection.SolutionFinder
All Implemented Interfaces:
ItemListener

public class SolutionFinder
extends java.lang.Object
implements ItemListener

The Class SolutionFinder.


Constructor Summary
SolutionFinder(java.lang.String logName)
          Instantiates a new solution finder.
 
Method Summary
 void calculateQuadrilateralVertices()
          Calculate quadrilateral vertices.
 void calculateTriangleVertices()
          Calculate triangle vertices.
 void checkForShapes()
          Check for shapes.
 void checkForSolution()
          Check for solution.
 boolean checkIfAllSolutionsAreFound()
          Check if all solutions are found.
 void checkTheShape(int id)
          Check the shape.
 void cursorChanged(ContentItem item, long id, float x, float y, float pressure)
          Cursor changed.
 void cursorClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor clicked.
 void cursorDoubleClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor double clicked.
 void cursorLongHeld(ContentItem item, long id, float x, float y, float pressure)
          Cursor long held.
 void cursorPressed(ContentItem item, long id, float x, float y, float pressure)
          Cursor pressed.
 void cursorReleased(ContentItem item, long id, float x, float y, float pressure)
          Cursor released.
 void cursorRightClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor right clicked.
 java.lang.String[] getShapeNames()
          Gets the shape names.
 com.jme.scene.TriMesh getTt()
          Gets the tt.
 void setQuadrilVertices(com.jme.math.Vector3f[] quadrilVertices, com.jme.math.Vector3f vert3)
          Sets the quadril vertices.
 void setSolutions(DissectionSolution[] sol)
          Sets the solutions.
 void setTq(com.jme.scene.TriMesh tq)
          Sets the tq.
 void setTriangleVertices(com.jme.math.Vector3f[] triangleVertices)
          Sets the triangle vertices.
 void setTt(com.jme.scene.TriMesh tt)
          Sets the tt.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolutionFinder

public SolutionFinder(java.lang.String logName)
Instantiates a new solution finder.

Parameters:
logName - the log name
Method Detail

calculateQuadrilateralVertices

public void calculateQuadrilateralVertices()
Calculate quadrilateral vertices.


calculateTriangleVertices

public void calculateTriangleVertices()
Calculate triangle vertices.


checkForShapes

public void checkForShapes()
Check for shapes.


checkForSolution

public void checkForSolution()
Check for solution.


checkIfAllSolutionsAreFound

public boolean checkIfAllSolutionsAreFound()
Check if all solutions are found.

Returns:
true, if successful

checkTheShape

public void checkTheShape(int id)
Check the shape.

Parameters:
id - the id

cursorChanged

public void cursorChanged(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor changed.

Specified by:
cursorChanged in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorClicked

public void cursorClicked(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor clicked.

Specified by:
cursorClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorDoubleClicked

public void cursorDoubleClicked(ContentItem item,
                                long id,
                                float x,
                                float y,
                                float pressure)
Description copied from interface: ItemListener
Cursor double clicked.

Specified by:
cursorDoubleClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorLongHeld

public void cursorLongHeld(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor long held.

Specified by:
cursorLongHeld in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorPressed

public void cursorPressed(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor pressed.

Specified by:
cursorPressed in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorReleased

public void cursorReleased(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor released.

Specified by:
cursorReleased in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorRightClicked

public void cursorRightClicked(ContentItem item,
                               long id,
                               float x,
                               float y,
                               float pressure)
Description copied from interface: ItemListener
Cursor right clicked.

Specified by:
cursorRightClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

getShapeNames

public java.lang.String[] getShapeNames()
Gets the shape names.

Returns:
the shape names

getTt

public com.jme.scene.TriMesh getTt()
Gets the tt.

Returns:
the tt

setQuadrilVertices

public void setQuadrilVertices(com.jme.math.Vector3f[] quadrilVertices,
                               com.jme.math.Vector3f vert3)
Sets the quadril vertices.

Parameters:
quadrilVertices - the quadril vertices
vert3 - the vert3

setSolutions

public void setSolutions(DissectionSolution[] sol)
Sets the solutions.

Parameters:
sol - the new solutions

setTq

public void setTq(com.jme.scene.TriMesh tq)
Sets the tq.

Parameters:
tq - the new tq

setTriangleVertices

public void setTriangleVertices(com.jme.math.Vector3f[] triangleVertices)
Sets the triangle vertices.

Parameters:
triangleVertices - the new triangle vertices

setTt

public void setTt(com.jme.scene.TriMesh tt)
Sets the tt.

Parameters:
tt - the new tt