- java.lang.Object
-
- be.yildizgames.common.util.BaseRegisterable
-
- be.yildizgames.module.graphic.camera.Camera
-
- be.yildizgames.module.graphic.dummy.DummyCamera
-
- All Implemented Interfaces:
be.yildizgames.common.gameobject.Deletable,be.yildizgames.common.gameobject.Movable,be.yildizgames.common.util.Registerable,RayProvider
public class DummyCamera extends Camera
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class be.yildizgames.module.graphic.camera.Camera
Camera.Compositor
-
-
Constructor Summary
Constructors Constructor Description DummyCamera()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(be.yildizgames.common.gameobject.Movable movable)voidaddOptionalChild(be.yildizgames.common.gameobject.Movable movable)voidattachTo(be.yildizgames.common.gameobject.Movable movable)voidattachToOptional(be.yildizgames.common.gameobject.Movable movable)voiddelete()voiddetachFromParent()be.yildizgames.common.geometry.Point3DgetAbsoluteDirection()be.yildizgames.common.geometry.Point3DgetAbsolutePosition()be.yildizgames.common.geometry.Point3DgetDirection()be.yildizgames.common.geometry.Point3DgetPosition()be.yildizgames.common.geometry.Point3DgetTargetPosition()voidinitOrigin()The targetNode will move around the camera.voidinitTarget()The camera will follow the targetNode.voidremoveChild(be.yildizgames.common.gameobject.Movable movable)voidremoveListener(LensFlare listener)Remove a camera listener from this camera.voidrotate(float yaw, float pitch)voidrotateTarget(float yaw, float pitch)voidsetAspectRatio(float ratio)voidsetDirection(float v, float v1, float v2)CamerasetFarClip(int far)An object further than the provided value will not be rendered.CamerasetNearClip(int near)An object closer than the provided value will not be rendered.voidsetPosition(float v, float v1, float v2)voidsetPosition(be.yildizgames.common.geometry.Point3D point3D)voidsetTargetPosition(be.yildizgames.common.geometry.Point3D target)Set the camera targetNode position.-
Methods inherited from class be.yildizgames.module.graphic.camera.Camera
getInternal, getOffset, getRelativePosition, setDirection, setOffset, setRelativePosition, setTargetPosition
-
-
-
-
Method Detail
-
setFarClip
public Camera setFarClip(int far)
Description copied from class:CameraAn object further than the provided value will not be rendered.- Specified by:
setFarClipin classCamera- Parameters:
far- Maximum rendering distance.- Returns:
- This object for chaining.
-
setNearClip
public Camera setNearClip(int near)
Description copied from class:CameraAn object closer than the provided value will not be rendered.- Specified by:
setNearClipin classCamera- Parameters:
near- Minimum rendering distance.- Returns:
- This object for chaining.
-
setTargetPosition
public void setTargetPosition(be.yildizgames.common.geometry.Point3D target)
Description copied from class:CameraSet the camera targetNode position.- Specified by:
setTargetPositionin classCamera- Parameters:
target- Camera targetNode position value.
-
rotateTarget
public void rotateTarget(float yaw, float pitch)- Specified by:
rotateTargetin classCamera
-
removeListener
public void removeListener(LensFlare listener)
Description copied from class:CameraRemove a camera listener from this camera.- Specified by:
removeListenerin classCamera- Parameters:
listener- Listener to remove.
-
setAspectRatio
public void setAspectRatio(float ratio)
- Specified by:
setAspectRatioin classCamera
-
getTargetPosition
public be.yildizgames.common.geometry.Point3D getTargetPosition()
- Specified by:
getTargetPositionin classCamera
-
initOrigin
public void initOrigin()
Description copied from class:CameraThe targetNode will move around the camera.- Specified by:
initOriginin classCamera
-
initTarget
public void initTarget()
Description copied from class:CameraThe camera will follow the targetNode.- Specified by:
initTargetin classCamera
-
attachTo
public void attachTo(be.yildizgames.common.gameobject.Movable movable)
-
attachToOptional
public void attachToOptional(be.yildizgames.common.gameobject.Movable movable)
-
detachFromParent
public void detachFromParent()
-
getPosition
public be.yildizgames.common.geometry.Point3D getPosition()
-
setPosition
public void setPosition(be.yildizgames.common.geometry.Point3D point3D)
-
getAbsolutePosition
public be.yildizgames.common.geometry.Point3D getAbsolutePosition()
-
getDirection
public be.yildizgames.common.geometry.Point3D getDirection()
-
getAbsoluteDirection
public be.yildizgames.common.geometry.Point3D getAbsoluteDirection()
-
setPosition
public void setPosition(float v, float v1, float v2)
-
setDirection
public void setDirection(float v, float v1, float v2)
-
addOptionalChild
public void addOptionalChild(be.yildizgames.common.gameobject.Movable movable)
-
addChild
public void addChild(be.yildizgames.common.gameobject.Movable movable)
-
removeChild
public void removeChild(be.yildizgames.common.gameobject.Movable movable)
-
delete
public void delete()
-
-