T
- the type of object that is managedpublic class AnalyticGeometryManager<T> extends Manager<T>
Modifier and Type | Class and Description |
---|---|
static class |
AnalyticGeometryManager.Geometry
The type of geometry.
|
static class |
AnalyticGeometryManager.WrapMethod
The type of
MultiPointSpring wrap method. |
Manager.Creator<T>, Manager.Updatable
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_CYLINDER_LENGTH |
static double |
DEFAULT_CYLINDER_RADIUS |
static double |
DEFAULT_DENSITY |
static Vector3d |
DEFAULT_ELLIPSOID_RADII |
static AnalyticGeometryManager.Geometry |
DEFAULT_GEOMETRY |
static int |
DEFAULT_RESOLUTION |
static double |
DEFAULT_SCALE |
static double |
DEFAULT_SPHERE_RADIUS |
static Vector2d |
DEFAULT_TORUS_RADII |
static AnalyticGeometryManager.WrapMethod |
DEFAULT_WRAP_METHOD |
static PropertyList |
myProps |
DEFAULT_SUPPORTS_NONE
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Constructor and Description |
---|
AnalyticGeometryManager(Manager.Creator<T> creator,
Manager.Updatable updatable) |
AnalyticGeometryManager(java.lang.String name,
Manager.Creator<T> creator,
Manager.Updatable updatable) |
Modifier and Type | Method and Description |
---|---|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getCylinderLength() |
double |
getCylinderRadius() |
double |
getDensity() |
Vector3d |
getEllipsoidRadii() |
AnalyticGeometryManager.Geometry |
getGeometry() |
int |
getResolution() |
double |
getScale() |
double |
getSphereRadius() |
Vector2d |
getTorusRadii() |
Point3d[] |
getViaPoints()
Returns via points that should be used when initializing a strand
around the object.
|
AnalyticGeometryManager.WrapMethod |
getWrapMethod() |
void |
setCylinderLength(double length) |
void |
setCylinderRadius(double radius) |
void |
setDensity(double density) |
void |
setEllipsoidRadii(Vector3d radii) |
void |
setGeometry(AnalyticGeometryManager.Geometry geometry)
Changes the currently "active" object.
|
void |
setGridRes(RigidBody body,
double gridDensity,
Vector3i explicitRes)
Sets the distance grid resolution of the given
RigidBody using the
given density. |
void |
setResolution(int res)
Changes the currently "active" object.
|
void |
setScale(double scale) |
void |
setSphereRadius(double radius) |
void |
setTorusRadii(Vector2d radii) |
void |
setWrapMethod(AnalyticGeometryManager.WrapMethod wrapMethod)
Changes the currently "active" object.
|
getActive, getSupportsNONE, setSupportsNONE
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, write
public static final double DEFAULT_SPHERE_RADIUS
public static final double DEFAULT_CYLINDER_RADIUS
public static final double DEFAULT_CYLINDER_LENGTH
public static final Vector2d DEFAULT_TORUS_RADII
public static final Vector3d DEFAULT_ELLIPSOID_RADII
public static final double DEFAULT_DENSITY
public static final double DEFAULT_SCALE
public static final AnalyticGeometryManager.Geometry DEFAULT_GEOMETRY
public static final AnalyticGeometryManager.WrapMethod DEFAULT_WRAP_METHOD
public static final int DEFAULT_RESOLUTION
public static PropertyList myProps
public AnalyticGeometryManager(Manager.Creator<T> creator, Manager.Updatable updatable)
public AnalyticGeometryManager(java.lang.String name, Manager.Creator<T> creator, Manager.Updatable updatable)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class Manager<T>
public double getSphereRadius()
public void setSphereRadius(double radius)
public double getCylinderRadius()
public void setCylinderRadius(double radius)
public double getCylinderLength()
public void setCylinderLength(double length)
public Vector2d getTorusRadii()
public void setTorusRadii(Vector2d radii)
public Vector3d getEllipsoidRadii()
public void setEllipsoidRadii(Vector3d radii)
public double getDensity()
public void setDensity(double density)
public double getScale()
public void setScale(double scale)
public AnalyticGeometryManager.Geometry getGeometry()
public void setGeometry(AnalyticGeometryManager.Geometry geometry) throws java.lang.IllegalArgumentException
Sets the new geometry to the given AnalyticGeometryManager.Geometry
.
geometry
- the new Geometry
for this AnalyticGeometryManager
java.lang.IllegalArgumentException
- if geometry == Geometry.NONE &&
!mySupportsNonePpublic AnalyticGeometryManager.WrapMethod getWrapMethod()
public void setWrapMethod(AnalyticGeometryManager.WrapMethod wrapMethod) throws java.lang.IllegalArgumentException
Sets the new wrap method to the given AnalyticGeometryManager.WrapMethod
.
wrapMethod
- the new WrapMethod
for this AnalyticGeometryManager
java.lang.IllegalArgumentException
- if wrapMethod == WrapMethod.NONE &&
!mySupportsNonePpublic int getResolution()
public void setResolution(int res)
Sets the new resolution to the given resolution.
res
- the new resolution for this AnalyticGeometryManager
public void setGridRes(RigidBody body, double gridDensity, Vector3i explicitRes)
RigidBody
using the
given density.body
- the RigidBody
for which the distance grid resolution should be setgridDensity
- the grid density to use to set the distance grid resolutionpublic Point3d[] getViaPoints()