Class Text2D

    • Constructor Detail

      • Text2D

        public Text2D()
    • Method Detail

      • updateLocal

        public void updateLocal​(ITimeFrameProvider time,
                                ICamera camera)
        Description copied from class: SceneGraphNode
        Updates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.
        Overrides:
        updateLocal in class FadeNode
      • setParentOpacity

        protected void setParentOpacity()
      • addToRenderLists

        protected void addToRenderLists​(ICamera camera)
        Description copied from class: SceneGraphNode
        Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.
        Overrides:
        addToRenderLists in class FadeNode
      • renderText

        public boolean renderText()
        Description copied from interface: I3DTextRenderable
        Tells whether the text must be rendered or not for this entity
        Specified by:
        renderText in interface I3DTextRenderable
        Returns:
        True if text must be rendered
      • textColour

        public float[] textColour()
        Description copied from interface: I3DTextRenderable
        Returns an array with the text colour in the fashion [r, g, b, a]
        Specified by:
        textColour in interface I3DTextRenderable
        Returns:
        Array with the colour
      • textScale

        public float textScale()
        Description copied from interface: I3DTextRenderable
        Returns the text scale for the scale varying in the shader
        Specified by:
        textScale in interface I3DTextRenderable
        Returns:
        The scale
      • isLabel

        public boolean isLabel()
        Description copied from interface: I3DTextRenderable
        Is it a label or another kind of text?
        Specified by:
        isLabel in interface I3DTextRenderable
        Returns:
        Whether this is a label
      • updateLocalValues

        public void updateLocalValues​(ITimeFrameProvider time,
                                      ICamera camera)
        Description copied from class: SceneGraphNode
        This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.
        Overrides:
        updateLocalValues in class FadeNode
      • setScale

        public void setScale​(java.lang.Double scale)
      • setAlign

        public void setAlign​(java.lang.Long align)
      • setLines

        public void setLines​(java.lang.String linesText)
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver