scalation

scala3d

package scala3d

The scala3d package contains classes, traits and objects for for simple 3D graphics in scala, based upon javafx.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scala3d
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class AppHelper() extends Application with Product with Serializable

    AppHelper is a convenience class for Application.

  2. case class Arrow(p1: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), len: Int = 10) extends Double with Product with Serializable

    The Arrow class uses Java's Path2D class to create a line with an arrowhead on the far end.

    The Arrow class uses Java's Path2D class to create a line with an arrowhead on the far end. The main line is defined by points 'p1' and 'p2'. Points 'p3' and 'p4' are the corners of the triangular arrowhead.

    p1

    the starting point for the line/arrow

    p2

    the ending point for the line/arrow

    len

    the length of the arrowhead on the line/arrow

  3. class BorderPane extends javafx.scene.layout.BorderPane

    BorderPane is a convenience class for BorderPane.

  4. case class Box(width: Double, height: Double, depth: Double) extends javafx.scene.shape.Box with Product with Serializable

  5. trait CurvilinearShape extends Shape with Error

    The CurvilinearShape trait provides a general type for line and curves.

    The CurvilinearShape trait provides a general type for line and curves. It is analogous to RectangularShape.

  6. case class Cylinder(radius: Double, height: Double) extends javafx.scene.shape.Cylinder with Product with Serializable

  7. case class MeshView() extends javafx.scene.shape.MeshView with Product with Serializable

  8. case class Point3D(xx: Double, yy: Double, zz: Double) extends javafx.geometry.Point3D with Product with Serializable

  9. case class QCurve(p1: R2 = R2 (0.0, 0.0), pc: R2 = R2 (0.0, 0.0), p2: R2 = R2 (0.0, 0.0), straight: Boolean = true) extends QuadCurve with CurvilinearShape with Product with Serializable

    The QCurve class enhances the QuadCurve.Double class (from the java.awt.geom package) by allowing entities to move along such quadratic curves as well as lines.

    The QCurve class enhances the QuadCurve.Double class (from the java.awt.geom package) by allowing entities to move along such quadratic curves as well as lines. Although the curve could be developed as a quadratic function where 'y = ax2 + bx + c'. The following quadratic bezier formulation is used: p(t) = (x(t), y(t)) = [(1-t)2 * p1] + [2 * (1-t) * t * pc] + [t^2 * p2].

    p1

    the starting point for the quad curve

    pc

    the control point for the quad curve

    p2

    the ending point for the quad curve

    straight

    whether the quad curve is straight (i.e., a line)

  10. class Scene extends javafx.scene.Scene

    Scene is a convenience class for Scene.

  11. case class Sphere(radius: Double) extends javafx.scene.shape.Sphere with Product with Serializable

  12. class Stage extends javafx.stage.Stage

    Stage is a convenience class for Stage.

  13. trait Transform3D extends AnyRef

    The Transform3D trait provides a simple technique for transforming (translation, scaling and rotation) rectangular shapes.

  14. class VizFrame extends AppHelper

    The VizFrame class puts the canvas in the visualization/drawing frame.

Value Members

  1. object AppTest

    The AppTest is used to test the AppHelper class.

  2. object Colors

    The Colors convenience object defines numerous common colors.

    The Colors convenience object defines numerous common colors. Source of colors: http://www.webmoments.com/colorchart.htm

  3. object ColorsTest extends App

    The ColorsTest object is used to test the Colors object.

  4. object QCurve extends Serializable

    The QCurve companion object provides formulas used by the QCurve class.

  5. object Shapes3D

    The Shapes object Scala provides type aliases for basic Java2D types.

Inherited from AnyRef

Inherited from Any

Ungrouped