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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations