Class Primitive3d

    • Field Detail

      • PRIMITIVE_TYPE_CYLINDER

        public static final int PRIMITIVE_TYPE_CYLINDER
        See Also:
        Constant Field Values
      • PRIMITIVE_TYPE_OBJECT3D

        public static final int PRIMITIVE_TYPE_OBJECT3D
        See Also:
        Constant Field Values
      • PRIMITIVE_TYPE_POINTLIGHT

        public static final int PRIMITIVE_TYPE_POINTLIGHT
        See Also:
        Constant Field Values
      • PRIMITIVE_TYPE_DIRECTIONALLIGHT

        public static final int PRIMITIVE_TYPE_DIRECTIONALLIGHT
        See Also:
        Constant Field Values
      • enableDCPos

        protected boolean enableDCPos
        Enable DrawableCombiner position
      • enableDCSize

        protected boolean enableDCSize
        Enable DrawableCombiner position
      • enableDCRot

        protected boolean enableDCRot
        Enable DrawableCombiner position
      • color_

        protected java.lang.Object color_
        Color or Color binding of the primitive.
      • texturePath_

        protected java.lang.String texturePath_
        Path to the Texture
      • materialPath_

        protected java.lang.String materialPath_
        Path to the Material
      • drawcondition

        protected IParsedExpression drawcondition
        The condition deciding if the drawable should be drawn.
      • renderinfos

        protected java.lang.Object[] renderinfos
        Cached render information
      • type

        protected int type
        Primitive type
      • shadowtype

        protected java.lang.String shadowtype
        Primitive shadow
    • Constructor Detail

      • Primitive3d

        public Primitive3d()
      • Primitive3d

        public Primitive3d​(int type)
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           IParsedExpression drawcondition)
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           java.lang.Object c,
                           IParsedExpression drawcondition)
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           java.lang.Object rotation,
                           java.lang.Object size,
                           IParsedExpression drawcondition)
        Initializes the drawable.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        c - the drawable's color or color binding
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           java.lang.Object rotation,
                           java.lang.Object size,
                           java.lang.Object c)
        Initializes the drawable.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        c - the drawable's color or color binding
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           java.lang.Object rotation,
                           java.lang.Object size,
                           java.lang.Object c,
                           IParsedExpression drawcondition,
                           java.lang.String shadowtype)
        Initializes the drawable.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        c - the drawable's color or color binding
      • Primitive3d

        public Primitive3d​(int type,
                           java.lang.Object position,
                           java.lang.Object rotation,
                           java.lang.Object size,
                           int absFlags,
                           java.lang.Object c,
                           java.lang.String materialPath,
                           java.lang.String texturePath,
                           IParsedExpression drawcondition,
                           java.lang.String shadowtype,
                           java.util.ArrayList<SpatialControl> controler)
        Initializes the drawable.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        absFlags - flags for setting position, size and rotation as absolutes
        c - the drawable's color or color binding
    • Method Detail

      • getType

        public int getType()
        Get the primitive type.
        Returns:
        The type.
      • setType

        public void setType​(int type)
        Set the primitive type.
        Parameters:
        type - The type to set.
      • enableAbsolutePosition

        public void enableAbsolutePosition​(boolean enable)
        Enables using absolute positioning.
        Parameters:
        enable - true, to use the drawable's value as an absolute.
      • enableAbsoluteSize

        public void enableAbsoluteSize​(boolean enable)
        Enables using absolute scaling.
        Parameters:
        enable - true, to use the drawable's value as an absolute.
      • enableAbsoluteRotation

        public void enableAbsoluteRotation​(boolean enable)
        Enables using absolute rotation.
        Parameters:
        enable - true, to use the drawable's value as an absolute.
      • isRelativePosition

        public boolean isRelativePosition()
        Tests if primitive is using relative positioning.
        Returns:
        true, if the drawable's value is an absolute.
      • isRelativeSize

        public boolean isRelativeSize()
        Tests if primitive is using relative scaling.
        Returns:
        true, if the drawable's value is an absolute.
      • isRelativeRotation

        public boolean isRelativeRotation()
        Tests if primitive is using relative rotation.
        Returns:
        true, if the drawable's value is an absolute.
      • setDrawCondition

        public void setDrawCondition​(IParsedExpression drawcondition)
        Sets the draw condition.
        Parameters:
        drawcondition - the draw condition
      • getDrawCondition

        public IParsedExpression getDrawCondition()
        Gets the draw condition.
        Returns:
        the draw condition
      • getColor

        public java.lang.Object getColor()
        Gets the color or color binding of the drawable
        Returns:
        color or color binding of the drawable
      • setColor

        public void setColor​(java.lang.Object c)
        Sets a new color or binding for the drawable
        Parameters:
        c - new color or binding
      • setTexturePath

        public void setTexturePath​(java.lang.String texturepath)
        Set the texture path.
      • getTexturePath

        public java.lang.String getTexturePath()
        Returns the texture path.
        Returns:
        The texture path.
      • getShadowtype

        public java.lang.String getShadowtype()
        Returns:
        the shadowtype
      • setShadowtype

        public void setShadowtype​(java.lang.String shadowtype)
        Parameters:
        shadowtype - the shadowtype to set
      • getMaterialPath

        public java.lang.String getMaterialPath()
      • setMaterialPath

        public void setMaterialPath​(java.lang.String materialPath_)
      • getControler

        public java.util.ArrayList<SpatialControl> getControler()
        Returns:
        the controler
      • setControler

        public void setControler​(java.util.ArrayList<SpatialControl> controler)
        Parameters:
        controler - the controler to set