A new render mode. Can't access it from the UI, that dropdown is getting
kind of ugly.
This commit is contained in:
parent
e192462201
commit
67c1a3c553
@ -235,7 +235,7 @@ public class RealisticRenderer extends RocketRenderer {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Appearance getAppearance(RocketComponent c) {
|
protected Appearance getAppearance(RocketComponent c) {
|
||||||
Appearance ret = c.getAppearance();
|
Appearance ret = c.getAppearance();
|
||||||
if (ret == null) {
|
if (ret == null) {
|
||||||
ret = DefaultAppearance.getDefaultAppearance(c);
|
ret = DefaultAppearance.getDefaultAppearance(c);
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
package net.sf.openrocket.gui.figure3d;
|
||||||
|
|
||||||
|
import net.sf.openrocket.appearance.Appearance;
|
||||||
|
import net.sf.openrocket.appearance.defaults.DefaultAppearance;
|
||||||
|
import net.sf.openrocket.document.OpenRocketDocument;
|
||||||
|
import net.sf.openrocket.rocketcomponent.BodyTube;
|
||||||
|
import net.sf.openrocket.rocketcomponent.InnerTube;
|
||||||
|
import net.sf.openrocket.rocketcomponent.RocketComponent;
|
||||||
|
|
||||||
|
public class UnfinishedRenderer extends RealisticRenderer {
|
||||||
|
|
||||||
|
public UnfinishedRenderer(OpenRocketDocument document) {
|
||||||
|
super(document);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDrawnTransparent(RocketComponent c) {
|
||||||
|
return c instanceof BodyTube || c instanceof InnerTube;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Appearance getAppearance(RocketComponent c) {
|
||||||
|
return DefaultAppearance.getDefaultAppearance(c);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user