Modifier and Type | Method and Description |
---|---|
private static java.util.ArrayList<Vector2D> |
CreateTenons.createTenons(Edge edge,
float lengthOfATenon,
float tenonHeight,
float tenonDepth,
int numberOfTenons,
boolean beginWithExtrusion) |
Modifier and Type | Field and Description |
---|---|
private Vector2D |
Statusbar.mousePosition |
Modifier and Type | Method and Description |
---|---|
void |
CutCADApplet.displayMousePosition(Vector2D position)
Sets the mouse position to be displayed on the statusbar
|
void |
Tool.mouseButtonPressed(Vector2D position,
int button)
Will be called by the application when a mouse button was pressed.
|
void |
Tool.mouseButtonReleased(Vector2D position,
int button)
Will be called by the application when a mouse button was released.
|
void |
Tool.mouseMoved(Vector2D position)
Will be called by the application when the mouse was moved.
|
void |
Statusbar.setMousePosition(Vector2D mouse)
Sets the mouse position to be displayed on the statusbar.
|
Modifier and Type | Field and Description |
---|---|
private Vector2D |
PolygonTool.lastKnownMousePositon |
(package private) Vector2D |
TrapeziumTool.startCoord |
(package private) Vector2D |
SymmetricPolygonTool.startCoord |
(package private) Vector2D |
RectangleTool.startCoord |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Vector2D> |
PolygonTool.vertices |
Modifier and Type | Method and Description |
---|---|
void |
TrapeziumTool.mouseButtonPressed(Vector2D position,
int button) |
void |
SymmetricPolygonTool.mouseButtonPressed(Vector2D position,
int button) |
void |
RectangleTool.mouseButtonPressed(Vector2D position,
int button) |
void |
TrapeziumTool.mouseButtonReleased(Vector2D position,
int button) |
void |
SymmetricPolygonTool.mouseButtonReleased(Vector2D position,
int button) |
void |
RectangleTool.mouseButtonReleased(Vector2D position,
int button) |
void |
PolygonTool.mouseButtonReleased(Vector2D position,
int button) |
void |
TrapeziumTool.mouseMoved(Vector2D position) |
void |
SymmetricPolygonTool.mouseMoved(Vector2D position) |
void |
RectangleTool.mouseMoved(Vector2D position) |
void |
PolygonTool.mouseMoved(Vector2D position) |
Modifier and Type | Field and Description |
---|---|
private Vector2D |
ImportSVGTool.originalMousePosition |
Modifier and Type | Method and Description |
---|---|
void |
ImportSVGTool.mouseButtonPressed(Vector2D position,
int button) |
void |
ImportSVGTool.mouseMoved(Vector2D position) |
Modifier and Type | Field and Description |
---|---|
(package private) Vector2D |
CopyTool.lastMousePosition |
(package private) Vector2D |
ConnectTool.lastMousePosition |
(package private) Vector2D |
SelectTool.originalMousePosition |
(package private) Vector2D |
DeleteTool.originalMousePosition |
(package private) Vector2D |
CutoutTool.originalMousePosition |
(package private) Vector2D |
CutoutTool.relativePosition |
Modifier and Type | Method and Description |
---|---|
void |
SelectTool.mouseButtonPressed(Vector2D position,
int button)
If the mouse pointer is above a shape, connection etc.
|
void |
DeleteTool.mouseButtonPressed(Vector2D position,
int button) |
void |
CutoutTool.mouseButtonPressed(Vector2D position,
int button) |
void |
CopyTool.mouseButtonPressed(Vector2D position,
int button) |
void |
ConnectTool.mouseButtonPressed(Vector2D position,
int button) |
void |
SelectTool.mouseButtonReleased(Vector2D position,
int button) |
void |
CutoutTool.mouseButtonReleased(Vector2D position,
int button) |
void |
SelectTool.mouseMoved(Vector2D position)
Checks (and set true) if the mouse pointer is above a shape, cutout edge etc
and - if a button is additionally pressed - translates object positions corresponding
to a basic drag and drop functionality
|
void |
DeleteTool.mouseMoved(Vector2D position) |
void |
CutoutTool.mouseMoved(Vector2D position) |
void |
CopyTool.mouseMoved(Vector2D position) |
void |
ConnectTool.mouseMoved(Vector2D position) |
boolean |
Selectable.mouseOver(Vector2D mousePosition) |
Modifier and Type | Method and Description |
---|---|
boolean |
Connection.mouseOver(Vector2D mousePosition)
Creates a rectangle around the representation of the connection and checks if the given mousePosition is within this rectangle
|
Modifier and Type | Field and Description |
---|---|
private Vector2D |
Cutout.position |
private Vector2D |
GShape.position2D |
private Vector2D |
Edge.v1 |
private Vector2D |
Edge.v2 |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Vector2D> |
Edge.tenons |
private java.util.List<Vector2D> |
GShape.vertices |
Modifier and Type | Method and Description |
---|---|
Vector2D |
Vector2D.add(float a,
float b) |
Vector2D |
Vector2D.add(Vector2D vec) |
Vector2D |
Vector2D.addSelf(Vector2D vector2d) |
Vector2D |
Vector2D.copy() |
private Vector2D |
GShape.correctIntersection(Edge edge) |
Vector2D |
Cutout.findCenter(GShape shape)
find the (mass)center of a shape
|
Vector2D |
GShape.get2Dperpendicular(Vector2D v1,
Vector2D v2)
Calculates the perpendicular vector between two points in the 2D space
(the "inwards" direction of the form)
|
Vector2D |
Edge.getMid() |
Vector2D |
Vector2D.getNormalized() |
Vector2D |
Vector2D.getNormalizedTo(float len) |
Vector2D |
GShape.getPosition2D() |
Vector2D |
Vector2D.getRotated(float angle) |
Vector2D |
Edge.getV1() |
Vector2D |
Edge.getV2() |
Vector2D |
Vector2D.normalizeTo(float len) |
Vector2D |
Vector2D.perpendicular() |
Vector2D |
Vector2D.rotate(float angle) |
Vector2D |
Vector2D.scale(float a) |
Vector2D |
Vector2D.sub(toxi.geom.Vec2D vec) |
Vector2D |
Vector2D.sub(Vector2D vec) |
Vector2D |
Vector2D.subSelf(float a,
float b) |
Vector2D |
Vector2D.subSelf(Vector2D vec) |
Vector2D |
Vector3D.to2DXY() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Vector2D> |
GShape.getTenons() |
java.util.ArrayList<Vector2D> |
Edge.getTenons() |
java.util.ArrayList<Vector2D> |
Cutout.getVectors() |
java.util.List<Vector2D> |
GShape.getVertices() |
Modifier and Type | Method and Description |
---|---|
Vector2D |
Vector2D.add(Vector2D vec) |
Vector2D |
Vector2D.addSelf(Vector2D vector2d) |
private void |
GShape.createCover2D(processing.core.PGraphics p,
java.util.ArrayList<Vector2D> vectors,
Vector2D position) |
float |
Vector2D.distanceTo(Vector2D vec) |
boolean |
Vector2D.equalsWithTolerance(Vector2D v,
float f) |
Vector2D |
GShape.get2Dperpendicular(Vector2D v1,
Vector2D v2)
Calculates the perpendicular vector between two points in the 2D space
(the "inwards" direction of the form)
|
boolean |
GShape.mouseOver(Vector2D mousePosition)
check if mouse is over cut-out or the corresponding connecting line
|
boolean |
Edge.mouseOver(Vector2D mousePosition)
Checks, if the mouse pointer is within a certain area around the edge
|
boolean |
Cutout.mouseOver(Vector2D mousePosition)
check if mouse is over cut-out or the corresponding connecting line
|
void |
Vector2D.set(Vector2D vec) |
void |
GShape.setPosition2D(Vector2D position)
Change the position of the object in 2D space
|
void |
Edge.setV1(Vector2D v) |
void |
Edge.setV2(Vector2D v) |
Vector2D |
Vector2D.sub(Vector2D vec) |
Vector2D |
Vector2D.subSelf(Vector2D vec) |
void |
GShape.translate2D(Vector2D direction) |
void |
Cutout.translate2D(Vector2D direction)
Move the cut-out at another position
|
Modifier and Type | Method and Description |
---|---|
private void |
GShape.createCover2D(processing.core.PGraphics p,
java.util.ArrayList<Vector2D> vectors,
Vector2D position) |
private void |
GShape.createSides(processing.core.PGraphics p,
java.util.ArrayList<Vector2D> vectors) |
void |
GShape.recalculate(java.util.List<Vector2D> basicShape)
Recalculate form (edges) of the shape, if the form of its parent shape is modified
|
void |
Edge.setTenons(java.util.ArrayList<Vector2D> tenons)
Set outline of the edge
|
private java.util.ArrayList<Vector3D> |
GShape.transformTo3D(boolean isTop,
java.util.ArrayList<Vector2D> vectors2D) |
Constructor and Description |
---|
Edge(GShape gShape,
Vector3D p3D1,
Vector3D p3D2,
Vector2D v1,
Vector2D v2)
Create a edge - the outline (Arraylist of Vector2D) is automatically
build (at the beginning just the start- and end-point in 2D)
|
Vector2D(Vector2D vector) |
Constructor and Description |
---|
GShape(java.util.List<Vector2D> initVertices,
Vector3D position,
Shape shape)
Creates edges with the 3D and 2D representation of this form (one edge between each pair of vertices)
Uses a standard material.
|
Modifier and Type | Field and Description |
---|---|
private Vector2D |
CopyShape.position |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Vector2D> |
Trapezium.basicShape |
private java.util.ArrayList<Vector2D> |
SymmetricPolygon.basicShape |
private java.util.ArrayList<Vector2D> |
Rectangle.basicShape |
private java.util.List<Vector2D> |
CopyShape.basicShape |
Modifier and Type | Method and Description |
---|---|
boolean |
Trapezium.mouseOver(Vector2D mousePosition)
Delegates check, if mouse is over this shape to the corresponding GShape
|
boolean |
SymmetricPolygon.mouseOver(Vector2D mousePosition)
Delegates check, if mouse is over this shape to the corresponding GShape
|
boolean |
Rectangle.mouseOver(Vector2D mousePosition)
Delegates check, if mouse is over this shape to the corresponding GShape
|
void |
Trapezium.setSize(Vector2D newSize)
Changes sizes of the trapezium to a basic rectangle form with
|
void |
SymmetricPolygon.setSize(Vector2D newSize)
Changes sizes of the symmetric polygon to a basic form (can't really
translate the mouse-dragged rectangle to a symmetric form - here we just
use the average of the x and y size as length of a side)
|
void |
Rectangle.setSize(Vector2D newSize)
Changes sizes of the rectangle
|
Constructor and Description |
---|
CopyShape(java.util.List<Vector2D> list,
Vector2D position,
java.lang.String name)
Creates a copy of an existing shape - Set parameter corresponding
to the original shape
|
Constructor and Description |
---|
CopyShape(java.util.List<Vector2D> list,
Vector2D position,
java.lang.String name)
Creates a copy of an existing shape - Set parameter corresponding
to the original shape
|
PolygonShape(java.util.List<Vector2D> vectors,
Vector3D position) |
Modifier and Type | Field and Description |
---|---|
private Vector2D |
PrintDialogWindow.originalMousePosition |
Modifier and Type | Method and Description |
---|---|
private Vector2D |
PrintDialogWindow.positionRelativeToView(Vector2D inPosition) |
Modifier and Type | Method and Description |
---|---|
private Vector2D |
PrintDialogWindow.positionRelativeToView(Vector2D inPosition) |
Modifier and Type | Method and Description |
---|---|
void |
LaserJobCreator.addVerticesToVectorPart(java.util.List<Vector2D> newVertices)
Adds the vertices to the cut through vector part of the laser job.
|
Modifier and Type | Field and Description |
---|---|
Vector2D |
DrawingViewFrame.origin |
Vector2D |
DrawingViewFrame.size |
protected Vector2D |
Transformation.translation |
Modifier and Type | Method and Description |
---|---|
Vector2D |
DrawingView2D.getOrigin() |
Vector2D |
Transformation.getTranslation() |
Vector2D |
DrawingView2D.positionRelativeToView(Vector2D inPosition) |
Modifier and Type | Method and Description |
---|---|
boolean |
DrawingViewFrame.containsPoint(Vector2D point) |
boolean |
DrawingView2D.containsPoint(Vector2D point) |
boolean |
DrawingView3D.mouseOver(Vector2D mousePosition) |
boolean |
DrawingView2D.mouseOver(Vector2D mousePosition) |
Vector2D |
DrawingView2D.positionRelativeToView(Vector2D inPosition) |
void |
Transformation.translate(Vector2D v) |
Constructor and Description |
---|
Transformation(float scale,
Vector2D translation) |