public class IAgentTracker extends IDynamicsBase
Modifier and Type | Field and Description |
---|---|
IPointAgent |
agent |
static IVec |
defaultOrientation |
IGeometry[] |
geometries |
boolean |
orient |
IParticleI |
particle
if agent is particle, it's casted to particle variable
|
IVec |
prevPos |
IVec |
prevVel |
double |
rotAngle |
IVec |
rotAxis |
static boolean |
setAgentAttributes
set agent's attributes to geometry objects
|
parent, targets
Constructor and Description |
---|
IAgentTracker(IPointAgent p,
IGeometry... geometries) |
IAgentTracker(IPointAgent p,
IVecI geometryOrigin,
IGeometry[] geometries) |
IAgentTracker(IPointAgent p,
IVecI geometryOrigin,
IVecI geometryOrientation,
IGeometry[] geometries) |
Modifier and Type | Method and Description |
---|---|
IBrep |
brep()
returns first brep
|
IBrep |
brep(int index)
returns n-th surface
|
int |
brepNum()
returns brep num
|
IBrep[] |
breps()
returns all contained breps
|
IAgentTracker |
clr(double dgray) |
IAgentTracker |
clr(double dgray,
double dalpha) |
IAgentTracker |
clr(double dr,
double dg,
double db) |
IAgentTracker |
clr(double dr,
double dg,
double db,
double da) |
IAgentTracker |
clr(float fgray) |
IAgentTracker |
clr(float fgray,
float falpha) |
IAgentTracker |
clr(float fr,
float fg,
float fb) |
IAgentTracker |
clr(float fr,
float fg,
float fb,
float fa) |
IAgentTracker |
clr(IColor c) |
IAgentTracker |
clr(IColor c,
double alpha) |
IAgentTracker |
clr(IColor c,
float alpha) |
IAgentTracker |
clr(IColor c,
int alpha) |
IAgentTracker |
clr(int gray) |
IAgentTracker |
clr(int gray,
int alpha) |
IAgentTracker |
clr(int r,
int g,
int b) |
IAgentTracker |
clr(int r,
int g,
int b,
int a) |
IAgentTracker |
clr(IObject o) |
ICurve |
curve()
returns first curve
|
ICurve |
curve(int index)
returns n-th curve
|
int |
curveNum()
returns curve num
|
ICurve[] |
curves()
returns all contained curves
|
void |
del()
delete all geometries
|
IGeometry[] |
geometries()
returns all geometries
|
IGeometry |
geometry()
returns first geomery
|
IGeometry |
geometry(int i)
returns n-th geometry
|
int |
geometryNum()
total number of geometries
|
IAgentTracker |
hide() |
IAgentTracker |
hsb(double h,
double s,
double b) |
IAgentTracker |
hsb(double h,
double s,
double b,
double a) |
IAgentTracker |
hsb(float h,
float s,
float b) |
IAgentTracker |
hsb(float h,
float s,
float b,
float a) |
void |
initTracker(IPointAgent p)
move geometries from its center to the current position of the parent agent
|
void |
initTracker(IVecI geometryOrigin,
IPointAgent p) |
void |
initTracker(IVecI geometryOrigin,
IVecI geometryOrientation,
IPointAgent p) |
IMesh |
mesh()
returns first mesh
|
IMesh |
mesh(int index)
returns n-th surface
|
IMesh[] |
meshes()
returns all contained meshes
|
int |
meshNum()
returns mesh num
|
IAgentTracker |
orient(boolean f) |
IPoint |
point()
returns first point
|
IPoint |
point(int index)
returns n-th point
|
int |
pointNum()
returns point num
|
IPoint[] |
points()
returns all contained points
|
IAgentTracker |
show() |
<T extends IGeometry> |
subgeometries(java.lang.Class<T> cls)
returns all contained geometries in a specified type
|
<T extends IGeometry> |
subgeometry(java.lang.Class<T> cls)
returns first geometry in a specified type
|
<T extends IGeometry> |
subgeometry(java.lang.Class<T> cls,
int index)
returns n-th geometry in a specified type
|
int |
subgeometryNum(java.lang.Class<? extends IGeometry> cls)
returns number of geometries in a specified type
|
ISurface |
surface()
returns first surface
|
ISurface |
surface(int index)
returns n-th surface
|
int |
surfaceNum()
returns surface num
|
ISurface[] |
surfaces()
returns all contained surfaces
|
void |
update()
behavior definition of updating dynamics in each time frame
|
initDynamicsBase, initDynamicsBase, initDynamicsBase, interact, localDynamics, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, target, target, targetNum, targets, updateTarget
public static boolean setAgentAttributes
public static IVec defaultOrientation
public IGeometry[] geometries
public IPointAgent agent
public IParticleI particle
public IVec prevPos
public IVec prevVel
public IVec rotAxis
public double rotAngle
public boolean orient
public IAgentTracker(IPointAgent p, IGeometry... geometries)
public IAgentTracker(IPointAgent p, IVecI geometryOrigin, IGeometry[] geometries)
public IAgentTracker(IPointAgent p, IVecI geometryOrigin, IVecI geometryOrientation, IGeometry[] geometries)
public int geometryNum()
public IGeometry geometry()
public IGeometry geometry(int i)
public IGeometry[] geometries()
public <T extends IGeometry> T[] subgeometries(java.lang.Class<T> cls)
public <T extends IGeometry> T subgeometry(java.lang.Class<T> cls)
public <T extends IGeometry> T subgeometry(java.lang.Class<T> cls, int index)
public int subgeometryNum(java.lang.Class<? extends IGeometry> cls)
public IPoint[] points()
public IPoint point()
public IPoint point(int index)
public int pointNum()
public ICurve[] curves()
public ICurve curve()
public ICurve curve(int index)
public int curveNum()
public ISurface[] surfaces()
public ISurface surface()
public ISurface surface(int index)
public int surfaceNum()
public IBrep[] breps()
public IBrep brep()
public IBrep brep(int index)
public int brepNum()
public IMesh[] meshes()
public IMesh mesh()
public IMesh mesh(int index)
public int meshNum()
public IAgentTracker show()
public IAgentTracker hide()
public void del()
public IAgentTracker orient(boolean f)
public IAgentTracker clr(IColor c)
public IAgentTracker clr(IColor c, int alpha)
public IAgentTracker clr(IColor c, float alpha)
public IAgentTracker clr(IColor c, double alpha)
public IAgentTracker clr(IObject o)
public IAgentTracker clr(int gray)
public IAgentTracker clr(float fgray)
public IAgentTracker clr(double dgray)
public IAgentTracker clr(int gray, int alpha)
public IAgentTracker clr(float fgray, float falpha)
public IAgentTracker clr(double dgray, double dalpha)
public IAgentTracker clr(int r, int g, int b)
public IAgentTracker clr(float fr, float fg, float fb)
public IAgentTracker clr(double dr, double dg, double db)
public IAgentTracker clr(int r, int g, int b, int a)
public IAgentTracker clr(float fr, float fg, float fb, float fa)
public IAgentTracker clr(double dr, double dg, double db, double da)
public IAgentTracker hsb(float h, float s, float b, float a)
public IAgentTracker hsb(double h, double s, double b, double a)
public IAgentTracker hsb(float h, float s, float b)
public IAgentTracker hsb(double h, double s, double b)
public void initTracker(IPointAgent p)
public void initTracker(IVecI geometryOrigin, IPointAgent p)
public void initTracker(IVecI geometryOrigin, IVecI geometryOrientation, IPointAgent p)
public void update()
IDynamicsBase
update
in interface IDynamics
update
in class IDynamicsBase