public abstract class RectangularShape extends Shape implements IAreaShape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
protected float |
mHeight |
protected float |
mWidth |
mBlendFunctionDestination, mBlendFunctionSource, mBlendingEnabled, mShaderProgrammChildren, mChildrenIgnoreUpdate, mChildrenSortPending, mChildrenVisible, mColor, mCullingEnabled, mDisposed, mIgnoreUpdate, mRotation, mRotationCenterX, mRotationCenterY, mScaleCenterX, mScaleCenterY, mScaleX, mScaleY, mSkewCenterX, mSkewCenterY, mSkewX, mSkewY, mTag, mVisible, mX, mY, mZIndexBLENDFUNCTION_DESTINATION_DEFAULT, BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT, BLENDFUNCTION_SOURCE_DEFAULT, BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULTTAG_INVALID| Constructor and Description |
|---|
RectangularShape(float pX,
float pY,
float pWidth,
float pHeight,
ShaderProgram pShaderProgram) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collidesWith(IShape pOtherShape) |
boolean |
contains(float pX,
float pY) |
float |
getHeight() |
float |
getHeightScaled() |
float[] |
getSceneCenterCoordinates() |
float[] |
getSceneCenterCoordinates(float[] pReuse) |
float |
getWidth() |
float |
getWidthScaled() |
boolean |
isCulled(Camera pCamera)
Will only be performed if
IEntity.isCullingEnabled() is true. |
void |
reset() |
void |
resetRotationCenter() |
void |
resetScaleCenter() |
void |
resetSkewCenter() |
void |
setHeight(float pHeight) |
void |
setSize(float pWidth,
float pHeight) |
void |
setWidth(float pWidth) |
dispose, getBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, initBlendFunction, initBlendFunction, initBlendFunction, isBlendingEnabled, onAreaTouched, onUpdateVertices, postDraw, preDraw, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramapplyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, draw, finalize, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isDisposed, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onApplyTransformations, onAttached, onDetached, onDraw, onManagedDraw, onManagedUpdate, onUpdate, onUpdateColor, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObject, getVertexBufferObjectManager, isBlendingEnabled, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramattachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onAttached, onDetached, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersonDrawonUpdatedispose, isDisposedconvertLocalToSceneCoordinates, convertSceneToLocalCoordinates, onAreaTouchedpublic RectangularShape(float pX,
float pY,
float pWidth,
float pHeight,
ShaderProgram pShaderProgram)
public float getWidth()
getWidth in interface IAreaShapepublic float getHeight()
getHeight in interface IAreaShapepublic void setWidth(float pWidth)
setWidth in interface IAreaShapepublic void setHeight(float pHeight)
setHeight in interface IAreaShapepublic void setSize(float pWidth,
float pHeight)
setSize in interface IAreaShapepublic float getWidthScaled()
getWidthScaled in interface IAreaShapepublic float getHeightScaled()
getHeightScaled in interface IAreaShapepublic boolean isCulled(Camera pCamera)
IEntityIEntity.isCullingEnabled() is true.public void reset()
reset in interface IUpdateHandlerreset in class Shapepublic boolean contains(float pX,
float pY)
contains in interface ITouchAreapublic float[] getSceneCenterCoordinates()
getSceneCenterCoordinates in interface IEntitygetSceneCenterCoordinates in class Entitypublic float[] getSceneCenterCoordinates(float[] pReuse)
getSceneCenterCoordinates in interface IEntitygetSceneCenterCoordinates in class EntitypReuse - must be of length 2.pReuse as a convenience.public boolean collidesWith(IShape pOtherShape)
collidesWith in interface IShapepublic void resetRotationCenter()
public void resetScaleCenter()
public void resetSkewCenter()