| Modifier and Type | Field and Description |
|---|---|
protected static int |
MERGE |
protected static int |
Q_TIP |
protected static int |
SCATTER |
protected static int |
STRIP |
protected static int |
SURFACE |
protected static int |
SURFACE_AND_VOLUME |
| Modifier | Constructor and Description |
|---|---|
|
Annotation3D(Mesh mesh,
ColorRGB color,
String label) |
|
Annotation3D(Mesh mesh,
String label) |
protected |
Annotation3D(Viewer3D viewer,
Collection<? extends SNTPoint> points,
int type) |
protected |
Annotation3D(Viewer3D viewer,
Collection<Annotation3D> annotations) |
protected |
Annotation3D(Viewer3D viewer,
SNTPoint point) |
| Modifier and Type | Method and Description |
|---|---|
SNTPoint |
getBarycentre()
Returns the center of this annotation bounding box.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
getDrawable()
Returns the
AbstractDrawable associated with this annotation. |
String |
getLabel()
Gets the annotation label
|
String |
getType()
Gets the type of this annotation.
|
double |
getVolume() |
static org.jzy3d.plot3d.primitives.AbstractDrawable |
meshToDrawable(Mesh mesh) |
void |
setBoundingBoxColor(ColorRGB boundingBoxColor)
Determines whether the mesh bounding box should be displayed.
|
void |
setColor(ColorRGB color,
double transparencyPercent)
Assigns a color to the annotation.
|
void |
setColor(String color)
Script friendly method to assign a color to the annotation.
|
void |
setColor(String color,
double transparencyPercent)
Script friendly method to assign a color to the annotation.
|
protected void |
setLabel(String label) |
void |
setSize(float size)
Sets the annotation width.
|
protected static final int SCATTER
protected static final int SURFACE
protected static final int STRIP
protected static final int Q_TIP
protected static final int MERGE
protected static final int SURFACE_AND_VOLUME
protected Annotation3D(Viewer3D viewer, Collection<Annotation3D> annotations)
protected Annotation3D(Viewer3D viewer, Collection<? extends SNTPoint> points, int type)
public static org.jzy3d.plot3d.primitives.AbstractDrawable meshToDrawable(Mesh mesh)
public void setSize(float size)
size - the new width. A negative value will set width to
Viewer3D's default.public void setColor(ColorRGB color, double transparencyPercent)
color - the color to render the annotation. (If the
annotation contains a wireframe, the wireframe is
rendered using a "contrast" color computed from
this one.transparencyPercent - the color transparency (in percentage)public void setColor(String color, double transparencyPercent)
color - the color to render the imported file, either a 1)
HTML color codes starting with hash (#), a
color preset ("red", "blue", etc.), or integer
triples of the form r,g,b and range
[0, 255]transparencyPercent - the color transparency (in percentage)public void setColor(String color)
color - the color to render the imported file, either a 1) HTML color
codes starting with hash (#), a color preset ("red",
"blue", etc.), or integer triples of the form r,g,b and
range [0, 255]public void setBoundingBoxColor(ColorRGB boundingBoxColor)
boundingBoxColor - the color of the mesh bounding box. If null, no
bounding box is displayedpublic String getLabel()
public String getType()
cloud (point cloud),
surface, line, or mixed (composite shape).protected void setLabel(String label)
public SNTPoint getBarycentre()
public double getVolume()
public org.jzy3d.plot3d.primitives.AbstractDrawable getDrawable()
AbstractDrawable associated with this annotation.Copyright © 2015–2021 Fiji. All rights reserved.