|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphics3d.Polyline3
Implements a 3D (closed)polyline, made up out of points. The point vectors are publicly accessible.
Field Summary | |
int |
marker
|
Color |
markerColor
|
int |
markerSize
|
Vector3[] |
p
points |
boolean |
showMarkers
|
Constructor Summary | |
Polyline3()
creates a default (100 points) polyline |
|
Polyline3(int n)
creates a polyline with n unfilled points |
|
Polyline3(Vector3[] points)
creates a polyline from an array of points |
Method Summary | |
Polyline3 |
add(double[] p)
adds array p to polyline |
Polyline3 |
add(double x,
double y,
double z)
adds point x,y,z to polyline |
Polyline3 |
add(Polyline3 line)
adds polyline line to this polyline; closed status is unchanged. |
Polyline3 |
add(Vector3 v)
adds vector v to polyline |
static Polyline3 |
arc(double rx,
double ry,
double start,
double end,
double x,
double y,
double z,
double phi,
double theta,
double omega,
Polyline3 p)
|
static Polyline3 |
arc(double r,
double start,
double end,
double x,
double y,
double z,
double phi,
double theta,
Polyline3 p)
|
static Polyline3 |
arc(double rx,
double ry,
double start,
double end,
double x,
double y,
double z,
Polyline3 p)
|
static Polyline3 |
arc(double r,
double start,
double end,
double x,
double y,
double z,
Polyline3 p)
|
static Polyline3 |
arc(double rx,
double ry,
double start,
double end,
Polyline3 p)
|
static Polyline3 |
arc(double r,
double start,
double end,
Polyline3 p)
|
static Polyline3 |
circle(double r,
double x,
double y,
double z,
double phi,
double theta,
Polyline3 p)
|
static Polyline3 |
circle(double r,
double x,
double y,
double z,
Polyline3 p)
|
static Polyline3 |
circle(double r,
Polyline3 p)
|
int |
clear()
Sets size to 0, all allocated points are still part of the polyline. |
static Polyline3 |
ellipse(double rx,
double ry,
double x,
double y,
double z,
double phi,
double theta,
double omega,
Polyline3 p)
|
static Polyline3 |
ellipse(double rx,
double ry,
double x,
double y,
double z,
Polyline3 p)
|
static Polyline3 |
ellipse(double rx,
double ry,
Polyline3 p)
|
Color |
getFillColor()
color for fill FIXME ToBeRemoved, when graphics3d is updated. |
int |
getMarker()
number showing the symbol to be used (as defined in VectorGraphicsConstants) FIXME ToBeRemoved, when graphics3d is updated. |
Color |
getMarkerColor()
color of the Mark FIXME ToBeRemoved, when graphics3d is updated. |
int |
getMarkerSize()
size of the marker FIXME ToBeRemoved, when graphics3d is updated. |
boolean |
isClosed()
true if this is a polygon |
boolean |
isFilled()
true if this polygon is filled FIXME ToBeRemoved, when graphics3d is updated. |
static Polyline3[] |
linesOnArcs(double r1x,
double r1y,
double x1,
double y1,
double z1,
double phi1,
double theta1,
double omega1,
double r2x,
double r2y,
double x2,
double y2,
double z2,
double phi2,
double theta2,
double omega2,
double start,
double end,
int numberOfLines,
Polyline3[] poly)
|
static Polyline3[] |
linesOnArcs(double r1,
double x1,
double y1,
double z1,
double phi1,
double theta1,
double r2,
double x2,
double y2,
double z2,
double phi2,
double theta2,
double start,
double end,
int numberOfLines,
Polyline3[] poly)
|
void |
setClosed(boolean closed)
closes the polyline (no points are added) |
void |
setFillColor(Color fillColor)
FIXME ToBeRemoved, when graphics3d is updated. |
void |
setFilled(boolean filled)
sets the polygon to be filled FIXME ToBeRemoved, when graphics3d is updated. |
void |
setMarker(int marker)
FIXME ToBeRemoved, when graphics3d is updated. |
void |
setMarkerColor(Color markerColor)
FIXME ToBeRemoved, when graphics3d is updated. |
void |
setMarkerSize(int markerSize)
FIXME ToBeRemoved, when graphics3d is updated. |
void |
setShowLine(boolean showLine)
true if line or polygon is to be shown FIXME ToBeRemoved, when graphics3d is updated. |
void |
setShowMarkers(boolean showMarkers)
FIXME ToBeRemoved, when graphics3d is updated. |
boolean |
showLine()
true if line or polygon is to be shown FIXME ToBeRemoved, when graphics3d is updated. |
boolean |
showMarkers()
true if markers are to be shown FIXME ToBeRemoved, when graphics3d is updated. |
int |
size()
returns the number of points in this polyline |
String |
toString()
returns a string representation of this polyline |
void |
translate(double tx,
double ty,
double tz)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean showMarkers
public int marker
public Color markerColor
public int markerSize
public Vector3[] p
Constructor Detail |
public Polyline3(int n)
public Polyline3(Vector3[] points)
public Polyline3()
Method Detail |
public boolean isClosed()
public void setClosed(boolean closed)
public boolean showLine()
public void setShowLine(boolean showLine)
public boolean isFilled()
public void setFilled(boolean filled)
public Color getFillColor()
public void setFillColor(Color fillColor)
public boolean showMarkers()
public void setShowMarkers(boolean showMarkers)
public int getMarker()
public void setMarker(int marker)
public Color getMarkerColor()
public void setMarkerColor(Color markerColor)
public int getMarkerSize()
public void setMarkerSize(int markerSize)
public int clear()
public Polyline3 add(double x, double y, double z)
public Polyline3 add(Vector3 v)
public Polyline3 add(double[] p)
public Polyline3 add(Polyline3 line)
public int size()
public void translate(double tx, double ty, double tz)
public String toString()
public static Polyline3 circle(double r, Polyline3 p)
public static Polyline3 circle(double r, double x, double y, double z, Polyline3 p)
public static Polyline3 circle(double r, double x, double y, double z, double phi, double theta, Polyline3 p)
public static Polyline3 ellipse(double rx, double ry, Polyline3 p)
public static Polyline3 ellipse(double rx, double ry, double x, double y, double z, Polyline3 p)
public static Polyline3 ellipse(double rx, double ry, double x, double y, double z, double phi, double theta, double omega, Polyline3 p)
public static Polyline3 arc(double r, double start, double end, Polyline3 p)
public static Polyline3 arc(double r, double start, double end, double x, double y, double z, Polyline3 p)
public static Polyline3 arc(double r, double start, double end, double x, double y, double z, double phi, double theta, Polyline3 p)
public static Polyline3 arc(double rx, double ry, double start, double end, Polyline3 p)
public static Polyline3 arc(double rx, double ry, double start, double end, double x, double y, double z, Polyline3 p)
public static Polyline3 arc(double rx, double ry, double start, double end, double x, double y, double z, double phi, double theta, double omega, Polyline3 p)
public static Polyline3[] linesOnArcs(double r1, double x1, double y1, double z1, double phi1, double theta1, double r2, double x2, double y2, double z2, double phi2, double theta2, double start, double end, int numberOfLines, Polyline3[] poly)
public static Polyline3[] linesOnArcs(double r1x, double r1y, double x1, double y1, double z1, double phi1, double theta1, double omega1, double r2x, double r2y, double x2, double y2, double z2, double phi2, double theta2, double omega2, double start, double end, int numberOfLines, Polyline3[] poly)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |