|
|||||||||
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 |
getFirstChild()
Gets the first child of this object. |
IScene3DObject |
getInstanceCopy()
Gets an instance copy for 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). |
IScene3DObjectAnimator |
getScene3DObjectAnimator()
Gets Scene3DObjectAnimator. |
double |
getSphereBox()
Gets object spherebox radius. |
ISolidSphere3DResult |
moveAsSolidSphere(double x,
double y,
double z,
double radius,
int maxLoop)
Translate this object as a solid object in its parent object space by performing physic collisions. |
void |
pauseScene3DObjectAnimator()
Call this Scene3DObjectAnimator start 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 |
setParent(IScene3DObject parent)
Sets parent object. |
void |
setScene3DObjectAnimator(IScene3DObjectAnimator animator)
Sets Scene3DObjectAnimator. |
void |
setSphereBox(double radius)
Sets object spherebox radius. |
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 dzzd.ISceneObject |
getId, getName, getScene3D, setId, setName |
Methods inherited from interface dzzd.IProgress |
getCurrentState, getNextState, getProgress, isStateReached, setProgress |
Method Detail |
public IScene3DObject getInstanceCopy()
public IPoint3D getPosition()
public IPoint3D getRotation()
public IPoint3D getPivot()
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 ISolidSphere3DResult moveAsSolidSphere(double x, double y, double z, double radius, int maxLoop)
x
- x translation vector componenty
- y translation vector componentz
- z translation vector componentradius
- sphere radius to use for collision tests (you may use this object sphereBox)maxLoop
- collision is a recursive process (rebounds) you can limit recursive depth with this parameter (you may use 4)
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |