|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing a Scene3DObject.
- 3D scene objects are all positioned objects (visible or not) in the 3d scene.
eg.: Cameras,lights and meshes are all 3d scene object
- 3D scene objects can be hierarchically linked each other.
Positioning 3D scene objects in 3D scene:
each object is positioned in the 3D scene by a pivot,position and rotation vector
relative to its parent space.
IPoint3D
Method Summary | |
void |
addChild(IScene3DObject childToAdd)
Add child to this object. |
IAxis3D |
getAxis3D()
Gets object axis3D. |
IPoint3D |
getCenter()
Gets the center (in object space) for this object. |
IScene3DObject |
getClone(boolean childrens)
Gets a clone copy for this object. |
IScene3DObject |
getFirstChild()
Gets the first child of this object. |
IScene3DObject |
getNextChild()
Gets the next child for this parent object. |
IScene3DObject |
getParent()
Gets parent object. |
IPoint3D |
getPivot()
Gets the current pivot point (in object space) for this object. |
IPoint3D |
getPosition()
Gets the current position => this object pivot 3d coordinates relative to this object parent space. |
IPoint3D |
getRotation()
Gets the current rotation around pivot in the following order (rx,rz,ry). |
IScene3D |
getScene3D()
Gets Scene3D owner, null if object has not been added to a Scene3D. |
IScene3DObjectAnimator |
getScene3DObjectAnimator()
Gets Scene3DObjectAnimator. |
double |
getSphereBox()
Gets object spherebox radius. |
IPoint3D |
getZoom()
Gets the current zoom of this Scene3DObject. |
boolean |
isActive()
Gets the active flag. |
boolean |
isSolid()
Gets the solid flag. |
boolean |
isVisible()
Gets the visible flag. |
void |
loopAtScene3DObjectAnimator(long loop)
Call this Scene3DObjectAnimator loopAt method (also call on chidrens). |
void |
pauseScene3DObjectAnimator()
Call this Scene3DObjectAnimator pause method (also call on chidrens). |
void |
playScene3DObjectAnimator()
Call this Scene3DObjectAnimator play method (also call on chidrens). |
void |
removeChild(IScene3DObject childToRemove)
Remove child from this object. |
void |
resumeScene3DObjectAnimator()
Call this Scene3DObjectAnimator resume method (also call on chidrens). |
void |
setActive(boolean flag)
Sets the active flag. |
IScene3DObject |
setAxis3DToWorld()
Sets this Scene3DObject Axis3D to world space. |
void |
setParent(IScene3DObject parent)
Sets parent object. |
void |
setPoint3DToWorld(IPoint3D point3d)
Sets a Point3D given in this Scene3DObject space to world space. |
void |
setScene3DObjectAnimator(IScene3DObjectAnimator animator)
Sets Scene3DObjectAnimator. |
void |
setSolid(boolean flag)
Sets the solid flag. |
void |
setSphereBox(double radius)
Sets object spherebox radius. |
void |
setVisible(boolean flag)
Sets the visible flag. |
void |
startScene3DObjectAnimator()
Call this Scene3DObjectAnimator start method (also call on chidrens). |
void |
startScene3DObjectAnimator(long start)
Call this Scene3DObjectAnimator start method (also call on chidrens). |
void |
startScene3DObjectAnimator(long start,
long end)
Call this Scene3DObjectAnimator start method (also call on chidrens). |
void |
stopScene3DObjectAnimator()
Call this Scene3DObjectAnimator stop method (also call on chidrens). |
void |
zoom(double x,
double y,
double z)
Zoom that object and all chidrens object by x,y,z factor. |
Methods inherited from interface net.dzzd.access.ISceneObject |
build, clearProperties, copy, getBuild, getId, getName, getProperty, getScene, setBuild, setId, setName, setProperty |
Methods inherited from interface net.dzzd.access.IMonitoredSceneObject |
copy |
Methods inherited from interface net.dzzd.access.IRender3DMode |
disableRender3DMode, enableRender3DMode, getRender3DMode, getRender3DModeFlags, setRender3DModeFlags |
Method Detail |
public IScene3D getScene3D()
public IScene3DObject getClone(boolean childrens)
childrens
- true if chidren must be duplicated
public IPoint3D getPosition()
public IPoint3D getRotation()
public IPoint3D getPivot()
public IPoint3D getZoom()
public void zoom(double x, double y, double z)
x
- x zoom factory
- y zoom factorz
- z zoom factorpublic IAxis3D getAxis3D()
public IScene3DObject getParent()
public void setParent(IScene3DObject parent)
parent
- new parent object for this object (pass null for no parent)public void addChild(IScene3DObject childToAdd)
childToAdd
- new child to add to this objectpublic void removeChild(IScene3DObject childToRemove)
childToRemove
- child to remove from this objectpublic IScene3DObject getFirstChild()
public IScene3DObject getNextChild()
public double getSphereBox()
public void setSphereBox(double radius)
radius
- new sphere box radius in scene unitspublic IPoint3D getCenter()
public IScene3DObjectAnimator getScene3DObjectAnimator()
public void setScene3DObjectAnimator(IScene3DObjectAnimator animator)
animator
- Scene3DObjectAnimator to set for this Scene3DObject or null to remove/disable current Scene3DObjectAnimator.public void playScene3DObjectAnimator()
public void startScene3DObjectAnimator()
public void startScene3DObjectAnimator(long start)
public void startScene3DObjectAnimator(long start, long end)
public void stopScene3DObjectAnimator()
public void pauseScene3DObjectAnimator()
public void resumeScene3DObjectAnimator()
public void loopAtScene3DObjectAnimator(long loop)
public boolean isVisible()
public boolean isActive()
public boolean isSolid()
public void setVisible(boolean flag)
flag
- visible flagpublic void setActive(boolean flag)
flag
- active flagpublic void setSolid(boolean flag)
flag
- solid flagpublic IScene3DObject setAxis3DToWorld()
public void setPoint3DToWorld(IPoint3D point3d)
point3d
- local Point3D to set to world space
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |