Class CustomHudImage

java.lang.Object
java.util.Observable
org.schema.schine.graphicsengine.forms.AbstractSceneNode
org.schema.schine.graphicsengine.forms.gui.GUIElement
me.iron.WarpSpace.Mod.HUD.client.CustomHudImage
All Implemented Interfaces:
org.schema.schine.graphicsengine.core.Drawable, org.schema.schine.graphicsengine.forms.Positionable, org.schema.schine.graphicsengine.forms.Scalable

class CustomHudImage
extends org.schema.schine.graphicsengine.forms.gui.GUIElement
this class draws an image onto screen. it is a worker class for HUD_element. dont use it without HUD_element.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private HUD_element el
    the HUD element (basically image wrapper) for which this HUDImage was created
    javax.vecmath.Vector3f position
    position on screen in pixels
    javax.vecmath.Vector3f scale  
    org.schema.schine.graphicsengine.forms.Sprite sprite  

    Fields inherited from class org.schema.schine.graphicsengine.forms.gui.GUIElement

    callback, coord, deactivateCallbacks, debug, ORIENTATION_BOTTOM, ORIENTATION_HORIZONTAL_MIDDLE, ORIENTATION_LEFT, ORIENTATION_NONE, ORIENTATION_RIGHT, ORIENTATION_TOP, ORIENTATION_VERTICAL_MIDDLE, RENDER_MODE_NORMAL, RENDER_MODE_SHADOW, renderMode, renderModeSet, textOverlay, translateOnlyMode, x16, x32

    Fields inherited from class org.schema.schine.graphicsengine.forms.AbstractSceneNode

    animation, animations, childs, initionPos, material, quatRot, rotTmp, VISIBILITY_HIDDEN, VISIBILITY_TREE_HIDDEN, VISIBILITY_TREE_VISIBLE, VISIBILITY_VISIBLE
  • Constructor Summary

    Constructors 
    Constructor Description
    CustomHudImage​(org.schema.schine.input.InputState inputState, HUD_element el)  
  • Method Summary

    Modifier and Type Method Description
    void cleanUp()  
    void draw()  
    float getHeight()  
    javax.vecmath.Vector3f getPos()
    position in pixels on current screen.
    org.schema.schine.graphicsengine.forms.Sprite getSprite()  
    float getWidth()  
    void onInit()  
    void setSprite​(org.schema.schine.graphicsengine.forms.Sprite sprite)  

    Methods inherited from class org.schema.schine.graphicsengine.forms.gui.GUIElement

    addObserver, attach, attach, attach, checkBlockingOnly, checkMouseInside, checkMouseInsideWithTransform, clone, detach, detachAll, disableOrthogonal, disableScreenProjection, doOrientation, drawAttached, drawClipped, drawClipped, drawInfo, enableOrthogonal, enableOrthogonal3d, enableOrthogonal3d, enableScreenProjection, endStandardDraw, generateToolTip, getCallback, getCurrentAbsolutePos, getRelMousePos, getState, getUserPointer, isActive, isChanged, isCoordsInside, isInside, isMouseUpdateEnabled, isNewHud, isOnScreen, isPositionCenter, isRenderable, needsReOrientation, orientate, orientate, orientateInsideFrame, resetToolTip, setCallback, setChanged, setInside, setMouseUpdateEnabled, setUserPointer, startStandardDraw, transform, transformTranslation, wasInside

    Methods inherited from class org.schema.schine.graphicsengine.forms.AbstractSceneNode

    activateCulling, attach, deactivateCulling, detach, getAnimation, getAnimation, getAnimations, getBillboardSphericalBeginMatrix, getBoundingBox, getBoundingSphereRadius, getChilds, getInitialQuadRot, getInitialScale, getInitionPos, getMaterial, getName, getParent, getRot4, getScale, getTransform, getTreeString, getVisibility, getWorldTranslation, isAnimated, isFlipCulling, isInvisible, isLoaded, isMirrorMode, isTransformRotScaleIdentity, isVisibleInFrustum, makeBiggestBoundingBox, makeBoundingSphere, move, rotateBy, selectAnimation, setAnimated, setAnimation, setAnimations, setBoundingBox, setBoundingSphereRadius, setBufferedTransformation, setFlipCulling, setInitialQuadRot, setInitialScale, setInitionPos, setLoaded, setMaterial, setMirrorMode, setName, setParent, setPos, setPos, setQuatRot, setRot, setRot, setScale, setScale, setTransform, setVisibility, toString, transform, transformPlane, translate, translateBack, update

    Methods inherited from class java.util.Observable

    clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.schema.schine.graphicsengine.core.Drawable

    isInvisible

    Methods inherited from interface org.schema.schine.graphicsengine.forms.Scalable

    getScale, setScale
  • Field Details

    • sprite

      public org.schema.schine.graphicsengine.forms.Sprite sprite
    • position

      public javax.vecmath.Vector3f position
      position on screen in pixels
    • scale

      public javax.vecmath.Vector3f scale
    • el

      private HUD_element el
      the HUD element (basically image wrapper) for which this HUDImage was created
  • Constructor Details

  • Method Details

    • cleanUp

      public void cleanUp()
    • draw

      public void draw()
    • onInit

      public void onInit()
    • getSprite

      public org.schema.schine.graphicsengine.forms.Sprite getSprite()
    • setSprite

      public void setSprite​(org.schema.schine.graphicsengine.forms.Sprite sprite)
    • getWidth

      public float getWidth()
      Specified by:
      getWidth in class org.schema.schine.graphicsengine.forms.gui.GUIElement
    • getPos

      public javax.vecmath.Vector3f getPos()
      position in pixels on current screen.
      Specified by:
      getPos in interface org.schema.schine.graphicsengine.forms.Positionable
      Overrides:
      getPos in class org.schema.schine.graphicsengine.forms.AbstractSceneNode
      Returns:
      Vector (x,y,z)
    • getHeight

      public float getHeight()
      Specified by:
      getHeight in class org.schema.schine.graphicsengine.forms.gui.GUIElement