Search in sources :

Example 21 with FresnelReflector

use of org.concord.energy3d.model.FresnelReflector in project energy3d by concord-consortium.

the class Scene method setModuleWidthForAllFresnelReflectors.

public void setModuleWidthForAllFresnelReflectors(final double moduleWidth) {
    for (final HousePart p : parts) {
        if (p instanceof FresnelReflector) {
            final FresnelReflector r = (FresnelReflector) p;
            r.setModuleWidth(moduleWidth);
            r.ensureFullModules(false);
            r.draw();
        }
    }
    SceneManager.getInstance().refresh();
}
Also used : FresnelReflector(org.concord.energy3d.model.FresnelReflector) HousePart(org.concord.energy3d.model.HousePart)

Example 22 with FresnelReflector

use of org.concord.energy3d.model.FresnelReflector in project energy3d by concord-consortium.

the class Scene method setSectionsForAllFresnelReflectors.

public void setSectionsForAllFresnelReflectors(final int nLength, final int nWidth) {
    for (final HousePart p : parts) {
        if (p instanceof FresnelReflector) {
            final FresnelReflector r = (FresnelReflector) p;
            r.setNSectionLength(nLength);
            r.setNSectionWidth(nWidth);
            r.draw();
        }
    }
    SceneManager.getInstance().refresh();
}
Also used : FresnelReflector(org.concord.energy3d.model.FresnelReflector) HousePart(org.concord.energy3d.model.HousePart)

Example 23 with FresnelReflector

use of org.concord.energy3d.model.FresnelReflector in project energy3d by concord-consortium.

the class Scene method setAzimuthForAllFresnelReflectors.

public void setAzimuthForAllFresnelReflectors(final double angle) {
    for (final HousePart p : parts) {
        if (p instanceof FresnelReflector) {
            ((FresnelReflector) p).setRelativeAzimuth(angle);
            p.draw();
        }
    }
    SceneManager.getInstance().refresh();
}
Also used : FresnelReflector(org.concord.energy3d.model.FresnelReflector) HousePart(org.concord.energy3d.model.HousePart)

Example 24 with FresnelReflector

use of org.concord.energy3d.model.FresnelReflector in project energy3d by concord-consortium.

the class Scene method setBaseHeightForAllFresnelReflectors.

public void setBaseHeightForAllFresnelReflectors(final double baseHeight) {
    for (final HousePart p : parts) {
        if (p instanceof FresnelReflector) {
            ((FresnelReflector) p).setBaseHeight(baseHeight);
            p.draw();
        }
    }
    SceneManager.getInstance().refresh();
}
Also used : FresnelReflector(org.concord.energy3d.model.FresnelReflector) HousePart(org.concord.energy3d.model.HousePart)

Example 25 with FresnelReflector

use of org.concord.energy3d.model.FresnelReflector in project energy3d by concord-consortium.

the class Scene method setAbsorberForAllFresnelReflectors.

public void setAbsorberForAllFresnelReflectors(final Foundation target) {
    final List<Foundation> oldTargets = new ArrayList<Foundation>();
    for (final HousePart p : parts) {
        if (p instanceof FresnelReflector) {
            final FresnelReflector r = (FresnelReflector) p;
            final Foundation t = r.getReceiver();
            if (t != null && !oldTargets.contains(t)) {
                oldTargets.add(t);
            }
            r.setReceiver(target);
            r.draw();
        }
    }
    if (target != null) {
        target.drawSolarReceiver();
    }
    if (!oldTargets.isEmpty()) {
        for (final Foundation t : oldTargets) {
            t.drawSolarReceiver();
        }
    }
    SceneManager.getInstance().refresh();
}
Also used : FresnelReflector(org.concord.energy3d.model.FresnelReflector) ArrayList(java.util.ArrayList) Foundation(org.concord.energy3d.model.Foundation) HousePart(org.concord.energy3d.model.HousePart)

Aggregations

FresnelReflector (org.concord.energy3d.model.FresnelReflector)48 HousePart (org.concord.energy3d.model.HousePart)32 Foundation (org.concord.energy3d.model.Foundation)25 Mirror (org.concord.energy3d.model.Mirror)21 ParabolicTrough (org.concord.energy3d.model.ParabolicTrough)18 ParabolicDish (org.concord.energy3d.model.ParabolicDish)17 Rack (org.concord.energy3d.model.Rack)16 SolarPanel (org.concord.energy3d.model.SolarPanel)14 Window (org.concord.energy3d.model.Window)14 Wall (org.concord.energy3d.model.Wall)12 Door (org.concord.energy3d.model.Door)9 Roof (org.concord.energy3d.model.Roof)9 ArrayList (java.util.ArrayList)8 Calendar (java.util.Calendar)5 JDialog (javax.swing.JDialog)5 SolarCollector (org.concord.energy3d.model.SolarCollector)5 List (java.util.List)4 Human (org.concord.energy3d.model.Human)4 Tree (org.concord.energy3d.model.Tree)4 ReadOnlyVector3 (com.ardor3d.math.type.ReadOnlyVector3)3