MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / moveRotateGroup

Method moveRotateGroup

src/ch/hsr/ogv/view/Arrow.java:328–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 }
327
328 protected void moveRotateGroup() {
329 this.rotateYAngle = GeometryUtil.rotateYAngle(this.startPoint, this.endPoint);
330 this.rotateXAngle = -GeometryUtil.rotateXAngle(this.startPoint, this.endPoint);
331
332 Point3D midPoint = this.startPoint.midpoint(this.endPoint);
333 setTranslateXYZ(midPoint);
334 addRotateYAxis(this.rotateYAngle);
335 addRotateXAxis(this.rotateXAngle);
336
337 this.labelStartLeft.setRotateYAxis(-this.rotateYAngle);
338 this.labelStartRight.setRotateYAxis(-this.rotateYAngle);
339 this.labelEndLeft.setRotateYAxis(-this.rotateYAngle);
340 this.labelEndRight.setRotateYAxis(-this.rotateYAngle);
341
342 this.selection.setStartEndXYZ(this.startPoint, this.endPoint);
343 }
344
345 private Point2D lineBoxIntersection(Point3D internalPoint, PaneBox box, Point3D externalPoint) {
346 return lineRectangleIntersection(internalPoint, externalPoint, box.getCenterPoint(), box.getWidth(), box.getHeight());

Callers 1

drawArrowMethod · 0.95

Calls 7

rotateYAngleMethod · 0.95
rotateXAngleMethod · 0.95
setTranslateXYZMethod · 0.95
addRotateYAxisMethod · 0.95
addRotateXAxisMethod · 0.95
setStartEndXYZMethod · 0.80
setRotateYAxisMethod · 0.45

Tested by

no test coverage detected