Package libshapedraw.primitive

Examples of libshapedraw.primitive.LineStyle


        .verifyInitialized()
        .addEventListener(this)
        .setVisible(false)
        .setVisibleWhenHidingGui(true);

        lineStyle = new LineStyle(Color.WHITE.copy(), 5.0F, true);
        shapeRotate = new ShapeRotate(0, 0, 1, 0);

        origin = Vector3.ZEROS.copy();
        for (int[] pairs : LINE_DATA) {
            ArrayList<ReadonlyVector3> vec = new ArrayList<ReadonlyVector3>(pairs.length / 2);
View Full Code Here


     * Convenience method.
     * @see LineStyle#set
     */
    public WireframeLinesBlendIterable setBlendToLineStyle(Color color, float width, boolean visibleThroughTerrain) {
        if (blendToLineStyle == null) {
            blendToLineStyle = new LineStyle(color, width, visibleThroughTerrain);
        } else {
            blendToLineStyle.set(color, width, visibleThroughTerrain);
        }
        return this;
    }
View Full Code Here

    private LineStyle lineStyle;
    private Quadric gluQuadric;

    public GLUShape(Vector3 origin, Color mainColor, Color secondaryColor) {
        super(origin);
        lineStyle = new LineStyle(mainColor, 1.0F, secondaryColor, 1.0F);
    }
View Full Code Here

        assertNotNull(shape.getBlendToLineStyle());
        assertEquals("(0x00ffffff,3.0)", shape.getBlendToLineStyle().toString());

        assertNotSame(shape.getBlendToLineStyle(), shape.getLineStyle());

        shape.setBlendToLineStyle(new LineStyle(Color.RED.copy(), 2.5F, false));
        assertNotNull(shape.getBlendToLineStyle());
        assertEquals("(0xff0000ff,2.5)", shape.getBlendToLineStyle().toString());

        shape.setBlendToLineStyle(null);
        assertNull(shape.getBlendToLineStyle());
View Full Code Here

     * Convenience method.
     * @see LineStyle#set
     */
    public WireframeShape setLineStyle(Color color, float width, boolean visibleThroughTerrain) {
        if (lineStyle == null) {
            lineStyle = new LineStyle(color, width, visibleThroughTerrain);
        } else {
            lineStyle.set(color, width, visibleThroughTerrain);
        }
        return this;
    }
View Full Code Here

        return ReadonlyLineStyle.class;
    }

    @Override
    public ReadonlyLineStyle interpolate(ReadonlyLineStyle from, ReadonlyLineStyle to, float timelinePosition) {
        LineStyle result = from.copy();
        result.getMainColor().blend(to.getMainReadonlyColor(), timelinePosition);
        if (result.hasSecondaryColor()) {
            result.getSecondaryColor().blend(to.getSecondaryReadonlyColor(), timelinePosition);
        }
        result.setMainWidth(blend(from.getMainWidth(), to.getMainWidth(), timelinePosition));
        result.setSecondaryWidth(blend(from.getSecondaryWidth(), to.getSecondaryWidth(), timelinePosition));
        return result;
    }
View Full Code Here

TOP

Related Classes of libshapedraw.primitive.LineStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.