|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IServer
public class IServer
A class of server to contain and manage instances of IObject. Drawing function is separated to IGraphicServer.
IGraphicServer
Field Summary | |
---|---|
IDynamicServer |
dynamicServer
|
IGraphicServer |
graphicServer
|
IG |
ig
|
java.util.ArrayList<ILayer> |
layers
|
java.util.ArrayList<IObject> |
objects
|
int |
stateCount
|
IUnit |
unit
|
Constructor Summary | |
---|---|
IServer(IG ig)
|
|
IServer(IG ig,
IPanel panel)
|
Method Summary | |
---|---|
void |
add(IObject e)
|
java.util.ArrayList<IObject> |
allObjects()
|
void |
background(java.awt.Color c1,
java.awt.Color c2,
java.awt.Color c3,
java.awt.Color c4)
|
void |
bg(java.awt.Color c1,
java.awt.Color c2,
java.awt.Color c3,
java.awt.Color c4)
|
IBrep |
brep(int i)
Returns i-th IBrep object contained in objects or null if not found. |
int |
brepNum()
number of IBrep in objects |
IBrep[] |
breps()
Returns all meshe objects contained in objects. |
void |
clear()
|
ICurve |
curve(int i)
Returns i-th ICurve object contained in objects or null if not found. |
int |
curveNum()
number of ICurve in objects |
ICurve[] |
curves()
Returns all curve objects contained in objects. |
void |
deleteLayer(ILayer l)
|
void |
deleteLayer(int i)
|
void |
deleteLayer(java.lang.String layerName)
|
int |
duration()
|
void |
duration(int dur)
|
IDynamicServer |
dynamicServer()
|
IGeometry[] |
geometries()
Returns all geometry objects contained in objects. |
IGeometry |
geometry(int i)
Returns i-th IGeometry object contained in objects or null if not found. |
int |
geometryNum()
number of the IGeometry in objects |
ILayer[] |
getAllLayers()
|
java.util.ArrayList<IObject> |
getAllObjects()
|
IBrep |
getBrep(int i)
alias of brep(int) |
int |
getBrepNum()
alias of brepNum() |
IBrep[] |
getBreps()
alias of breps |
ICurve |
getCurve(int i)
alias of curve(int) |
int |
getCurveNum()
alias of curveNum() |
ICurve[] |
getCurves()
alias of curves() |
IGeometry[] |
getGeometries()
alias of breps |
IGeometry |
getGeometry(int i)
alias of geometry(int) |
int |
getGeometryNum()
alias of geometryNum() |
ILayer |
getLayer(int i)
|
ILayer |
getLayer(java.lang.String layerName)
|
IMesh |
getMesh(int i)
alias of mesh(int) |
IMesh[] |
getMeshes()
alias of meshes() |
int |
getMeshNum()
alias of meshNum() |
IObject |
getObject(java.lang.Class cls,
int i)
alias of object(Class,int) |
IObject |
getObject(int i)
|
int |
getObjectNum()
alias of objectNum() |
int |
getObjectNum(java.lang.Class cls)
alias of objectNum(Class) |
IObject[] |
getObjects()
|
IObject[] |
getObjects(java.lang.Class cls)
alias of objects(Class) |
IPoint |
getPoint(int i)
alias of point(int) |
int |
getPointNum()
alias of pointsNum() |
IPoint[] |
getPoints()
alias of points() |
ISurface |
getSurface(int i)
alias of surface(int) |
int |
getSurfaceNum()
alias of surfaceNum() |
ISurface[] |
getSurfaces()
alias of surfaces() |
IGraphicServer |
graphicServer()
|
boolean |
isGraphicMode()
|
ILayer |
layer(int i)
|
ILayer |
layer(java.lang.String layerName)
|
int |
layerNum()
|
ILayer[] |
layers()
|
IMesh |
mesh(int i)
Returns i-th IMesh object contained in objects or null if not found. |
IMesh[] |
meshes()
Returns all meshe objects contained in objects. |
int |
meshNum()
number of IMesh in objects |
IObject |
object(java.lang.Class cls,
int i)
Returns i-th object contained in objects or null if not found. |
IObject |
object(int i)
|
int |
objectNum()
|
int |
objectNum(java.lang.Class cls)
number of the specified class in objects |
IObject[] |
objects()
Returns all objects contained in objects. |
IObject[] |
objects(java.lang.Class cls)
Returns all objects of specified class contained in objects. |
void |
pause()
|
IPoint |
point(int i)
Returns i-th IPoint object contained in objects or null if not found. |
int |
pointNum()
number of IPoint in objects |
IPoint[] |
points()
Returns all point objects contained in objects. |
void |
remove(int i)
|
void |
remove(IObject e)
|
void |
resume()
|
IServer |
server()
|
void |
setGraphicMode(IGraphicMode mode)
|
void |
start()
|
int |
stateCount()
|
void |
stop()
|
ISurface |
surface(int i)
Returns i-th ISurface object contained in objects or null if not found. |
int |
surfaceNum()
number of ISurface in objects |
ISurface[] |
surfaces()
Returns all surface objects contained in objects. |
int |
time()
|
void |
time(int tm)
|
IUnit |
unit()
|
void |
unit(IUnit u)
|
void |
unit(java.lang.String unitName)
|
void |
updateState()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<IObject> objects
public java.util.ArrayList<ILayer> layers
public IGraphicServer graphicServer
public IDynamicServer dynamicServer
public IG ig
public int stateCount
public IUnit unit
Constructor Detail |
---|
public IServer(IG ig)
public IServer(IG ig, IPanel panel)
Method Detail |
---|
public IServer server()
server
in interface IServerI
public IDynamicServer dynamicServer()
public IGraphicServer graphicServer()
public IUnit unit()
public void unit(IUnit u)
public void unit(java.lang.String unitName)
public void add(IObject e)
public boolean isGraphicMode()
public void setGraphicMode(IGraphicMode mode)
public void bg(java.awt.Color c1, java.awt.Color c2, java.awt.Color c3, java.awt.Color c4)
public void background(java.awt.Color c1, java.awt.Color c2, java.awt.Color c3, java.awt.Color c4)
public java.util.ArrayList<IObject> getAllObjects()
public java.util.ArrayList<IObject> allObjects()
public IObject getObject(int i)
public IObject object(int i)
public int objectNum()
public int getObjectNum()
public void remove(int i)
public void remove(IObject e)
public void clear()
public int stateCount()
public void updateState()
public void duration(int dur)
public int duration()
public void time(int tm)
public int time()
public void pause()
public void resume()
public void start()
public void stop()
public IPoint[] points()
public IPoint[] getPoints()
public ICurve[] curves()
public ICurve[] getCurves()
public ISurface[] surfaces()
public ISurface[] getSurfaces()
public IMesh[] meshes()
public IMesh[] getMeshes()
public IBrep[] breps()
public IBrep[] getBreps()
public IGeometry[] geometries()
public IGeometry[] getGeometries()
public IObject[] objects(java.lang.Class cls)
public IObject[] getObjects(java.lang.Class cls)
public IObject[] objects()
public IObject[] getObjects()
public IPoint point(int i)
public IPoint getPoint(int i)
public ICurve curve(int i)
public ICurve getCurve(int i)
public ISurface surface(int i)
public ISurface getSurface(int i)
public IMesh mesh(int i)
public IMesh getMesh(int i)
public IBrep brep(int i)
public IBrep getBrep(int i)
public IGeometry geometry(int i)
public IGeometry getGeometry(int i)
public IObject object(java.lang.Class cls, int i)
public IObject getObject(java.lang.Class cls, int i)
public int pointNum()
public int getPointNum()
public int curveNum()
public int getCurveNum()
public int surfaceNum()
public int getSurfaceNum()
public int meshNum()
public int getMeshNum()
public int brepNum()
public int getBrepNum()
public int geometryNum()
public int getGeometryNum()
public int objectNum(java.lang.Class cls)
public int getObjectNum(java.lang.Class cls)
public int layerNum()
public ILayer layer(int i)
public ILayer getLayer(int i)
public ILayer[] layers()
public ILayer[] getAllLayers()
public ILayer getLayer(java.lang.String layerName)
public ILayer layer(java.lang.String layerName)
public void deleteLayer(java.lang.String layerName)
public void deleteLayer(int i)
public void deleteLayer(ILayer l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |