Package org.jmol.g3d
Class HermiteRenderer
java.lang.Object
org.jmol.g3d.HermiteRenderer
- All Implemented Interfaces:
G3DRenderer
Implementation of hermite curves for drawing smoothed curves that pass through specified points.
Examples of usage in Jmol include the commands: trace,
ribbons and cartoons
.
for some useful background info about hermite curves check out http://www.cubic.org/docs/hermite.htm Technically, Jmol implements a Cardinal spline varient of the Hermitian spline
- Author:
- Miguel, miguel@jmol.org
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderHermiteRibbon
(boolean fill, boolean border, int tension, P3 p0, P3 p1, P3 p2, P3 p3, P3 p4, P3 p5, P3 p6, P3 p7, int aspectRatio, int fillType) void
renderHermiteRope
(boolean fill, int tension, int diameterBeg, int diameterMid, int diameterEnd, P3 p0, P3 p1, P3 p2, P3 p3) set
(JmolRendererInterface g3d, GData gdata)
-
Constructor Details
-
HermiteRenderer
public HermiteRenderer()
-
-
Method Details
-
set
- Specified by:
set
in interfaceG3DRenderer
-
renderHermiteRope
-
renderHermiteRibbon
public void renderHermiteRibbon(boolean fill, boolean border, int tension, P3 p0, P3 p1, P3 p2, P3 p3, P3 p4, P3 p5, P3 p6, P3 p7, int aspectRatio, int fillType) - Parameters:
fill
-border
-tension
-p0
-p1
-p2
-p3
-p4
-p5
-p6
-p7
-aspectRatio
-fillType
- 1 front; -1 back; 0 both
-