Some 3d test junk, to be deleted later
This commit is contained in:
parent
7ee423ba6d
commit
0621c1971d
0
core/3d-Test-Junk/DONT MERGE THIS DIR TO TRUNK
Normal file
0
core/3d-Test-Junk/DONT MERGE THIS DIR TO TRUNK
Normal file
113
core/3d-Test-Junk/net/sf/openrocket/startup/EditTest.java
Normal file
113
core/3d-Test-Junk/net/sf/openrocket/startup/EditTest.java
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
package net.sf.openrocket.startup;
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
|
||||||
|
import net.sf.openrocket.database.ComponentPresetDatabase;
|
||||||
|
import net.sf.openrocket.database.ThrustCurveMotorSetDatabase;
|
||||||
|
import net.sf.openrocket.document.OpenRocketDocument;
|
||||||
|
import net.sf.openrocket.file.DatabaseMotorFinder;
|
||||||
|
import net.sf.openrocket.file.openrocket.importt.OpenRocketLoader;
|
||||||
|
import net.sf.openrocket.gui.configdialog.NoseConeConfig;
|
||||||
|
import net.sf.openrocket.gui.configdialog.RocketComponentConfig;
|
||||||
|
import net.sf.openrocket.gui.util.GUIUtil;
|
||||||
|
import net.sf.openrocket.gui.util.SwingPreferences;
|
||||||
|
import net.sf.openrocket.l10n.ResourceBundleTranslator;
|
||||||
|
import net.sf.openrocket.rocketcomponent.NoseCone;
|
||||||
|
import net.sf.openrocket.rocketcomponent.RocketComponent;
|
||||||
|
import net.sf.openrocket.startup.Application;
|
||||||
|
import net.sf.openrocket.startup.ConcurrentComponentPresetDatabaseLoader;
|
||||||
|
import net.sf.openrocket.startup.ExceptionHandler;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An application for quickly testing 3d figure witout all the OpenRocket user
|
||||||
|
* interface
|
||||||
|
*
|
||||||
|
* @author bkuker
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class EditTest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param args
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
GUIUtil.setBestLAF();
|
||||||
|
Application.setExceptionHandler(new ExceptionHandler() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void uncaughtException(Thread thread, Throwable throwable) {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleErrorCondition(Throwable exception) {
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleErrorCondition(String message, Throwable exception) {
|
||||||
|
exception.printStackTrace();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleErrorCondition(String message) {
|
||||||
|
System.err.println(message);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Application.setBaseTranslator(new ResourceBundleTranslator("l10n.messages"));
|
||||||
|
Application.setMotorSetDatabase(new ThrustCurveMotorSetDatabase(false) {
|
||||||
|
{
|
||||||
|
startLoading();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void loadMotors() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Application.setPreferences(new SwingPreferences());
|
||||||
|
|
||||||
|
// Must be done after localization is initialized
|
||||||
|
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void load() {
|
||||||
|
ConcurrentComponentPresetDatabaseLoader presetLoader = new ConcurrentComponentPresetDatabaseLoader( this );
|
||||||
|
presetLoader.load();
|
||||||
|
try {
|
||||||
|
presetLoader.await();
|
||||||
|
} catch ( InterruptedException iex) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
componentPresetDao.load("datafiles", ".*csv");
|
||||||
|
Application.setComponentPresetDao(componentPresetDao);
|
||||||
|
|
||||||
|
OpenRocketDocument doc = new OpenRocketLoader().loadFromStream(
|
||||||
|
EditTest.class.getResourceAsStream("/datafiles/examples/Clustered rocket design.ork"),
|
||||||
|
new DatabaseMotorFinder());
|
||||||
|
|
||||||
|
JFrame ff = new JFrame();
|
||||||
|
ff.setSize(1200, 400);
|
||||||
|
ff.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
|
NoseCone nc = null;
|
||||||
|
for (RocketComponent c : doc.getDefaultConfiguration()) {
|
||||||
|
if (c instanceof NoseCone) {
|
||||||
|
nc = (NoseCone) c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
RocketComponentConfig ncc = new RocketComponentConfig(doc, nc);
|
||||||
|
|
||||||
|
JFrame jf = new JFrame();
|
||||||
|
jf.setSize(600, 400);
|
||||||
|
jf.setContentPane(ncc);
|
||||||
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
jf.setVisible(true);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
84
core/3d-Test-Junk/net/sf/openrocket/startup/Quick3dMain.java
Normal file
84
core/3d-Test-Junk/net/sf/openrocket/startup/Quick3dMain.java
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
package net.sf.openrocket.startup;
|
||||||
|
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
import net.sf.openrocket.database.ComponentPresetDatabase;
|
||||||
|
import net.sf.openrocket.database.ThrustCurveMotorSetDatabase;
|
||||||
|
import net.sf.openrocket.document.OpenRocketDocument;
|
||||||
|
import net.sf.openrocket.file.DatabaseMotorFinder;
|
||||||
|
import net.sf.openrocket.file.openrocket.importt.OpenRocketLoader;
|
||||||
|
import net.sf.openrocket.gui.main.componenttree.ComponentTree;
|
||||||
|
import net.sf.openrocket.gui.scalefigure.RocketPanel;
|
||||||
|
import net.sf.openrocket.gui.util.SwingPreferences;
|
||||||
|
import net.sf.openrocket.l10n.ResourceBundleTranslator;
|
||||||
|
import net.sf.openrocket.startup.Application;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An application for quickly testing 3d figure witout all the OpenRocket user interface
|
||||||
|
*
|
||||||
|
* @author bkuker
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class Quick3dMain {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param args
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
Application.setBaseTranslator(new ResourceBundleTranslator(
|
||||||
|
"l10n.messages"));
|
||||||
|
Application.setMotorSetDatabase(new ThrustCurveMotorSetDatabase(false) {
|
||||||
|
{
|
||||||
|
startLoading();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void loadMotors() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Application.setPreferences(new SwingPreferences());
|
||||||
|
|
||||||
|
// Must be done after localization is initialized
|
||||||
|
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void load() {
|
||||||
|
ConcurrentComponentPresetDatabaseLoader presetLoader = new ConcurrentComponentPresetDatabaseLoader( this );
|
||||||
|
presetLoader.load();
|
||||||
|
try {
|
||||||
|
presetLoader.await();
|
||||||
|
} catch ( InterruptedException iex) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
componentPresetDao.load("datafiles", ".*csv");
|
||||||
|
Application.setComponentPresetDao( componentPresetDao );
|
||||||
|
|
||||||
|
OpenRocketDocument doc = new OpenRocketLoader().loadFromStream(
|
||||||
|
Quick3dMain.class.getResourceAsStream("/datafiles/examples/Clustered rocket design.ork"),
|
||||||
|
new DatabaseMotorFinder());
|
||||||
|
|
||||||
|
JFrame ff = new JFrame();
|
||||||
|
ff.setSize(1200, 400);
|
||||||
|
ff.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
|
RocketPanel panel;
|
||||||
|
|
||||||
|
panel = new RocketPanel(doc);
|
||||||
|
|
||||||
|
ComponentTree ct = new ComponentTree(doc);
|
||||||
|
panel.setSelectionModel(ct.getSelectionModel());
|
||||||
|
|
||||||
|
JPanel p = new JPanel();
|
||||||
|
p.setLayout(new BorderLayout());
|
||||||
|
p.add(ct, BorderLayout.WEST);
|
||||||
|
p.add(panel, BorderLayout.CENTER);
|
||||||
|
ff.setContentPane(p);
|
||||||
|
ff.setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,483 @@
|
|||||||
|
<RockSimDocument>
|
||||||
|
<FileVersion>4</FileVersion>
|
||||||
|
<DesignInformation>
|
||||||
|
<RocketDesign>
|
||||||
|
<CalculateCD>1</CalculateCD>
|
||||||
|
<ProCalculateCD>1</ProCalculateCD>
|
||||||
|
<ProCalculateCN>1</ProCalculateCN>
|
||||||
|
<FixedCd>0.75</FixedCd>
|
||||||
|
<FixedCd2>0.8</FixedCd2>
|
||||||
|
<FixedCd3>0.81</FixedCd3>
|
||||||
|
<FixedCd2Alone>0.95</FixedCd2Alone>
|
||||||
|
<FixedCd3Alone>0.95</FixedCd3Alone>
|
||||||
|
<StageCount>1</StageCount>
|
||||||
|
<Stage3Mass>0.</Stage3Mass>
|
||||||
|
<Stage2Mass>0.</Stage2Mass>
|
||||||
|
<Stage1Mass>0.</Stage1Mass>
|
||||||
|
<Stage321CG>0.</Stage321CG>
|
||||||
|
<Stage32CG>0.</Stage32CG>
|
||||||
|
<Stage3CG>0.</Stage3CG>
|
||||||
|
<Stage2CGAlone>0.</Stage2CGAlone>
|
||||||
|
<Stage1CGAlone>0.</Stage1CGAlone>
|
||||||
|
<CPCalcFlags>1</CPCalcFlags>
|
||||||
|
<LaunchGuideLength>914.4</LaunchGuideLength>
|
||||||
|
<UseKnownMass>0</UseKnownMass>
|
||||||
|
<DefaultFinish>0</DefaultFinish>
|
||||||
|
<FinishMedium>0</FinishMedium>
|
||||||
|
<FinishCoatCount>1</FinishCoatCount>
|
||||||
|
<GlueType>0</GlueType>
|
||||||
|
<CPSimFlags>1</CPSimFlags>
|
||||||
|
<LastSerialNumber>7</LastSerialNumber>
|
||||||
|
<DisplayFlags>1</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<CameraState>CSV1|1|467.042,33.3113,5.96039e-09|467.042,321.423,673.911|0,0.919494,-0.393104|432.283,1113.12|30|2|732.915|0|0|0|0|0
|
||||||
|
</CameraState>
|
||||||
|
<BarromanXN>0,761.441,0,0</BarromanXN>
|
||||||
|
<BarrowmanCNa>0,15.4865,0,0</BarrowmanCNa>
|
||||||
|
<RockSimXN>0,790.166,0,0</RockSimXN>
|
||||||
|
<RockSimCNa>0,21.8425,0,0</RockSimCNa>
|
||||||
|
<RockSimCNa90>0,0,0,0</RockSimCNa90>
|
||||||
|
<RockSimXN90>0,0,0,0</RockSimXN90>
|
||||||
|
<ViewType>2</ViewType>
|
||||||
|
<ViewStageCount>1</ViewStageCount>
|
||||||
|
<ViewTypeEdit>2</ViewTypeEdit>
|
||||||
|
<ViewStageCountEdit>1</ViewStageCountEdit>
|
||||||
|
<ZoomFactor>0.</ZoomFactor>
|
||||||
|
<ZoomFactorEdit>0.</ZoomFactorEdit>
|
||||||
|
<ScrollPosX>0</ScrollPosX>
|
||||||
|
<ScrollPosY>0</ScrollPosY>
|
||||||
|
<ScrollPosXEdit>0</ScrollPosXEdit>
|
||||||
|
<ScrollPosYEdit>0</ScrollPosYEdit>
|
||||||
|
<ThreeDFlags>0</ThreeDFlags>
|
||||||
|
<ThreeDFlagsEdit>0</ThreeDFlagsEdit>
|
||||||
|
<UseModelSprite>0</UseModelSprite>
|
||||||
|
<StaticMarginRef>0</StaticMarginRef>
|
||||||
|
<UserRefDiameter>0.</UserRefDiameter>
|
||||||
|
<SideMarkerHeight>10.</SideMarkerHeight>
|
||||||
|
<SideDimensionHeight>10.</SideDimensionHeight>
|
||||||
|
<BaseMarkerHeight>10.</BaseMarkerHeight>
|
||||||
|
<BaseDimensionHeight>10.</BaseDimensionHeight>
|
||||||
|
<ShowGlideCP>0</ShowGlideCP>
|
||||||
|
<ShowGridTypeSide>0</ShowGridTypeSide>
|
||||||
|
<ShowGridTypeBase>0</ShowGridTypeBase>
|
||||||
|
<GridSpacing>10.</GridSpacing>
|
||||||
|
<GridOpacity>0.15</GridOpacity>
|
||||||
|
<GridColor>black</GridColor>
|
||||||
|
<MaxDiaWithFins>269.24</MaxDiaWithFins>
|
||||||
|
<MaxDiaWithoutFins>66.04</MaxDiaWithoutFins>
|
||||||
|
<MaxLenWithFins>934.085</MaxLenWithFins>
|
||||||
|
<MaxLenWithoutFins>934.085</MaxLenWithoutFins>
|
||||||
|
<MinXExtent>0.</MinXExtent>
|
||||||
|
<MaxXExtent>934.085</MaxXExtent>
|
||||||
|
<CalculatedMaxStageDia>0,66.04,0,0</CalculatedMaxStageDia>
|
||||||
|
<CalculatedStageLen>0,934.085,0,0</CalculatedStageLen>
|
||||||
|
<Cd3>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cd3>
|
||||||
|
<Cd32>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cd32>
|
||||||
|
<Cd321>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cd321>
|
||||||
|
<Cb3>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cb3>
|
||||||
|
<Cb32>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cb32>
|
||||||
|
<Cb321>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</Cb321>
|
||||||
|
<CNa3>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CNa3>
|
||||||
|
<CNa32>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CNa32>
|
||||||
|
<CNa321>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CNa321>
|
||||||
|
<CP3>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CP3>
|
||||||
|
<CP32>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CP32>
|
||||||
|
<CP321>
|
||||||
|
<PolyData useXYOnly="0" useSmoothCurveEvaluation="0" count="0">
|
||||||
|
<X-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</X-data>
|
||||||
|
<A-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</A-data>
|
||||||
|
<B-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</B-data>
|
||||||
|
<C-data>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</C-data>
|
||||||
|
</PolyData>
|
||||||
|
</CP321>
|
||||||
|
<SimulationEventList>
|
||||||
|
</SimulationEventList>
|
||||||
|
<Stage3Parts>
|
||||||
|
<NoseCone>
|
||||||
|
<PartMfg>Estes</PartMfg>
|
||||||
|
<KnownMass>47.6272</KnownMass>
|
||||||
|
<Density>1049.21</Density>
|
||||||
|
<Material>Polystyrene PS</Material>
|
||||||
|
<Name>Nose cone</Name>
|
||||||
|
<KnownCG>116.332</KnownCG>
|
||||||
|
<UseKnownCG>1</UseKnownCG>
|
||||||
|
<Xb>0.</Xb>
|
||||||
|
<CalcMass>114.135</CalcMass>
|
||||||
|
<CalcCG>150.341</CalcCG>
|
||||||
|
<WettedSurface>0.0290239</WettedSurface>
|
||||||
|
<PaintedSurface>0.0290239</PaintedSurface>
|
||||||
|
<GlueJointLength>0.</GlueJointLength>
|
||||||
|
<DensityType>0</DensityType>
|
||||||
|
<PartNo>PNC-80K</PartNo>
|
||||||
|
<RadialLoc>0.</RadialLoc>
|
||||||
|
<RadialAngle>0.</RadialAngle>
|
||||||
|
<Texture>file=(C:/Users/bkuker/Desktop/tube1.png)|position=(0,0,0)|origin=(0.5,0.5,0.5)|scale=(1,1,1)|repeat=(1)|interpolate=(0)|flipr(0)|flips(0)|flipt=(0)|preventseam=(1)
|
||||||
|
</Texture>
|
||||||
|
<Opacity>1.</Opacity>
|
||||||
|
<Specular>0.</Specular>
|
||||||
|
<SpecularPower>1.</SpecularPower>
|
||||||
|
<Ambient>0.</Ambient>
|
||||||
|
<Diffuse>1.</Diffuse>
|
||||||
|
<AbientColor>blue</AbientColor>
|
||||||
|
<DiffuseColor>rgb(255,255,255)</DiffuseColor>
|
||||||
|
<SpecularColor>white</SpecularColor>
|
||||||
|
<UseSingleColor>1</UseSingleColor>
|
||||||
|
<SerialNo>1</SerialNo>
|
||||||
|
<DisplayFlags>0</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<LocationMode>0</LocationMode>
|
||||||
|
<Color>blue</Color>
|
||||||
|
<BarrowmanCNa>2.</BarrowmanCNa>
|
||||||
|
<BarrowmanXN>0.0958054</BarrowmanXN>
|
||||||
|
<RockSimCNa>2.</RockSimCNa>
|
||||||
|
<RockSimXN>0.0958054</RockSimXN>
|
||||||
|
<SimpleColorModel>1</SimpleColorModel>
|
||||||
|
<ProduceTemplate>0</ProduceTemplate>
|
||||||
|
<TemplateUnits>8</TemplateUnits>
|
||||||
|
<Removed>0</Removed>
|
||||||
|
<Station>0.</Station>
|
||||||
|
<Len>207.01</Len>
|
||||||
|
<BaseDia>66.04</BaseDia>
|
||||||
|
<FinishCode>0</FinishCode>
|
||||||
|
<ShapeCode>1</ShapeCode>
|
||||||
|
<ConstructionType>1</ConstructionType>
|
||||||
|
<ShoulderLen>25.4</ShoulderLen>
|
||||||
|
<WallThickness>3.175</WallThickness>
|
||||||
|
<ShapeParameter>0.</ShapeParameter>
|
||||||
|
<ShoulderOD>62.992</ShoulderOD>
|
||||||
|
<BaseExtensionLen>0.</BaseExtensionLen>
|
||||||
|
<CoreDia>0.</CoreDia>
|
||||||
|
<CoreLen>0.</CoreLen>
|
||||||
|
<AttachedParts>
|
||||||
|
</AttachedParts>
|
||||||
|
</NoseCone>
|
||||||
|
<BodyTube>
|
||||||
|
<PartMfg>Estes</PartMfg>
|
||||||
|
<KnownMass>0.</KnownMass>
|
||||||
|
<Density>1121.29</Density>
|
||||||
|
<Material>Paper</Material>
|
||||||
|
<Name>Body tube</Name>
|
||||||
|
<KnownCG>0.</KnownCG>
|
||||||
|
<UseKnownCG>0</UseKnownCG>
|
||||||
|
<Xb>0.</Xb>
|
||||||
|
<CalcMass>10.58</CalcMass>
|
||||||
|
<CalcCG>179.388</CalcCG>
|
||||||
|
<WettedSurface>0.0744353</WettedSurface>
|
||||||
|
<PaintedSurface>0.0744353</PaintedSurface>
|
||||||
|
<GlueJointLength>0.</GlueJointLength>
|
||||||
|
<DensityType>0</DensityType>
|
||||||
|
<PartNo>EST 3090</PartNo>
|
||||||
|
<PartDesc>BT-80</PartDesc>
|
||||||
|
<RadialLoc>0.</RadialLoc>
|
||||||
|
<RadialAngle>0.</RadialAngle>
|
||||||
|
<Texture>file=(C:/Users/bkuker/Desktop/tube1.png)|position=(0,0,0)|origin=(0.5,0.5,0.5)|scale=(2,2,1)|repeat=(1)|interpolate=(0)|flipr(0)|flips(0)|flipt=(0)|preventseam=(1)
|
||||||
|
</Texture>
|
||||||
|
<Opacity>1.</Opacity>
|
||||||
|
<Specular>0.</Specular>
|
||||||
|
<SpecularPower>1.</SpecularPower>
|
||||||
|
<Ambient>0.</Ambient>
|
||||||
|
<Diffuse>1.</Diffuse>
|
||||||
|
<AbientColor>rgb(0,0,250)</AbientColor>
|
||||||
|
<DiffuseColor>rgb(255,170,255)</DiffuseColor>
|
||||||
|
<SpecularColor>rgb(255,255,255)</SpecularColor>
|
||||||
|
<UseSingleColor>1</UseSingleColor>
|
||||||
|
<SerialNo>2</SerialNo>
|
||||||
|
<DisplayFlags>0</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<LocationMode>0</LocationMode>
|
||||||
|
<Color>rgb(0,0,250)</Color>
|
||||||
|
<BarrowmanCNa>0.</BarrowmanCNa>
|
||||||
|
<BarrowmanXN>0.</BarrowmanXN>
|
||||||
|
<RockSimCNa>0.</RockSimCNa>
|
||||||
|
<RockSimXN>0.</RockSimXN>
|
||||||
|
<SimpleColorModel>1</SimpleColorModel>
|
||||||
|
<ProduceTemplate>0</ProduceTemplate>
|
||||||
|
<TemplateUnits>8</TemplateUnits>
|
||||||
|
<Removed>0</Removed>
|
||||||
|
<Station>207.01</Station>
|
||||||
|
<OD>66.04</OD>
|
||||||
|
<ID>65.786</ID>
|
||||||
|
<Len>358.775</Len>
|
||||||
|
<FinishCode>0</FinishCode>
|
||||||
|
<IsMotorMount>0</IsMotorMount>
|
||||||
|
<MotorDia>0.</MotorDia>
|
||||||
|
<EngineOverhang>0.5</EngineOverhang>
|
||||||
|
<FrontExtension>0.</FrontExtension>
|
||||||
|
<RearExtension>0.</RearExtension>
|
||||||
|
<IsInsideTube>0</IsInsideTube>
|
||||||
|
<isStrapOnTube>0</isStrapOnTube>
|
||||||
|
<AttachedParts>
|
||||||
|
<Ring>
|
||||||
|
<PartMfg>Estes</PartMfg>
|
||||||
|
<KnownMass>0.</KnownMass>
|
||||||
|
<Density>1121.29</Density>
|
||||||
|
<Material>Paper</Material>
|
||||||
|
<Name>Tube coupler</Name>
|
||||||
|
<KnownCG>0.</KnownCG>
|
||||||
|
<UseKnownCG>0</UseKnownCG>
|
||||||
|
<Xb>333.375</Xb>
|
||||||
|
<CalcMass>67.5392</CalcMass>
|
||||||
|
<CalcCG>25.4</CalcCG>
|
||||||
|
<WettedSurface>0.</WettedSurface>
|
||||||
|
<PaintedSurface>0.</PaintedSurface>
|
||||||
|
<GlueJointLength>0.</GlueJointLength>
|
||||||
|
<DensityType>0</DensityType>
|
||||||
|
<PartNo>Estes</PartNo>
|
||||||
|
<PartDesc>JT-70A</PartDesc>
|
||||||
|
<RadialLoc>0.</RadialLoc>
|
||||||
|
<RadialAngle>0.</RadialAngle>
|
||||||
|
<Texture>file=()|position=(0,0,0)|origin=(0.5,0.5,0.5)|scale=(1,1,1)|repeat=(1)|interpolate=(0)|flipr(0)|flips(0)|flipt=(0)|preventseam=(1)
|
||||||
|
</Texture>
|
||||||
|
<Opacity>1.</Opacity>
|
||||||
|
<Specular>0.</Specular>
|
||||||
|
<SpecularPower>1.</SpecularPower>
|
||||||
|
<Ambient>0.</Ambient>
|
||||||
|
<Diffuse>1.</Diffuse>
|
||||||
|
<AbientColor>blue</AbientColor>
|
||||||
|
<DiffuseColor>blue</DiffuseColor>
|
||||||
|
<SpecularColor>white</SpecularColor>
|
||||||
|
<UseSingleColor>1</UseSingleColor>
|
||||||
|
<SerialNo>3</SerialNo>
|
||||||
|
<DisplayFlags>0</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<LocationMode>0</LocationMode>
|
||||||
|
<Color>blue</Color>
|
||||||
|
<BarrowmanCNa>0.</BarrowmanCNa>
|
||||||
|
<BarrowmanXN>0.</BarrowmanXN>
|
||||||
|
<RockSimCNa>0.</RockSimCNa>
|
||||||
|
<RockSimXN>0.</RockSimXN>
|
||||||
|
<SimpleColorModel>1</SimpleColorModel>
|
||||||
|
<ProduceTemplate>0</ProduceTemplate>
|
||||||
|
<TemplateUnits>8</TemplateUnits>
|
||||||
|
<Removed>0</Removed>
|
||||||
|
<Station>540.385</Station>
|
||||||
|
<OD>65.786</OD>
|
||||||
|
<ID>53.086</ID>
|
||||||
|
<Len>50.8</Len>
|
||||||
|
<FinishCode>0</FinishCode>
|
||||||
|
<UsageCode>4</UsageCode>
|
||||||
|
<AutoSize>1</AutoSize>
|
||||||
|
<AttachedParts>
|
||||||
|
</AttachedParts>
|
||||||
|
</Ring>
|
||||||
|
</AttachedParts>
|
||||||
|
</BodyTube>
|
||||||
|
<BodyTube>
|
||||||
|
<PartMfg>Estes</PartMfg>
|
||||||
|
<KnownMass>0.</KnownMass>
|
||||||
|
<Density>1121.29</Density>
|
||||||
|
<Material>Paper</Material>
|
||||||
|
<Name>Body tube</Name>
|
||||||
|
<KnownCG>0.</KnownCG>
|
||||||
|
<UseKnownCG>0</UseKnownCG>
|
||||||
|
<Xb>0.</Xb>
|
||||||
|
<CalcMass>10.6367</CalcMass>
|
||||||
|
<CalcCG>180.34</CalcCG>
|
||||||
|
<WettedSurface>0.0748306</WettedSurface>
|
||||||
|
<PaintedSurface>0.0748306</PaintedSurface>
|
||||||
|
<GlueJointLength>0.</GlueJointLength>
|
||||||
|
<DensityType>0</DensityType>
|
||||||
|
<PartNo>EST 3090</PartNo>
|
||||||
|
<PartDesc>BT-80</PartDesc>
|
||||||
|
<RadialLoc>0.</RadialLoc>
|
||||||
|
<RadialAngle>0.</RadialAngle>
|
||||||
|
<Texture>file=(C:/Users/bkuker/Desktop/tube1.png)|position=(0,0,0)|origin=(0.5,0.5,0.5)|scale=(1,1,1)|repeat=(1)|interpolate=(0)|flipr(0)|flips(0)|flipt=(0)|preventseam=(1)
|
||||||
|
</Texture>
|
||||||
|
<Opacity>1.</Opacity>
|
||||||
|
<Specular>0.</Specular>
|
||||||
|
<SpecularPower>1.</SpecularPower>
|
||||||
|
<Ambient>0.</Ambient>
|
||||||
|
<Diffuse>1.</Diffuse>
|
||||||
|
<AbientColor>rgb(0,0,250)</AbientColor>
|
||||||
|
<DiffuseColor>rgb(255,255,255)</DiffuseColor>
|
||||||
|
<SpecularColor>rgb(255,255,255)</SpecularColor>
|
||||||
|
<UseSingleColor>1</UseSingleColor>
|
||||||
|
<SerialNo>4</SerialNo>
|
||||||
|
<DisplayFlags>1</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<LocationMode>0</LocationMode>
|
||||||
|
<Color>rgb(0,0,250)</Color>
|
||||||
|
<BarrowmanCNa>0.</BarrowmanCNa>
|
||||||
|
<BarrowmanXN>0.</BarrowmanXN>
|
||||||
|
<RockSimCNa>0.</RockSimCNa>
|
||||||
|
<RockSimXN>0.</RockSimXN>
|
||||||
|
<SimpleColorModel>1</SimpleColorModel>
|
||||||
|
<ProduceTemplate>0</ProduceTemplate>
|
||||||
|
<TemplateUnits>8</TemplateUnits>
|
||||||
|
<Removed>0</Removed>
|
||||||
|
<Station>565.785</Station>
|
||||||
|
<OD>66.04</OD>
|
||||||
|
<ID>65.786</ID>
|
||||||
|
<Len>360.68</Len>
|
||||||
|
<FinishCode>0</FinishCode>
|
||||||
|
<IsMotorMount>0</IsMotorMount>
|
||||||
|
<MotorDia>0.</MotorDia>
|
||||||
|
<EngineOverhang>0.5</EngineOverhang>
|
||||||
|
<FrontExtension>0.</FrontExtension>
|
||||||
|
<RearExtension>0.</RearExtension>
|
||||||
|
<IsInsideTube>0</IsInsideTube>
|
||||||
|
<isStrapOnTube>0</isStrapOnTube>
|
||||||
|
<AttachedParts>
|
||||||
|
<FinSet>
|
||||||
|
<PartMfg>Public Missiles</PartMfg>
|
||||||
|
<KnownMass>0.</KnownMass>
|
||||||
|
<Density>1905.24</Density>
|
||||||
|
<Material>G10 fiberglass</Material>
|
||||||
|
<Name>Fin set</Name>
|
||||||
|
<KnownCG>0.</KnownCG>
|
||||||
|
<UseKnownCG>0</UseKnownCG>
|
||||||
|
<Xb>228.6</Xb>
|
||||||
|
<CalcMass>81.9557</CalcMass>
|
||||||
|
<CalcCG>90.4119</CalcCG>
|
||||||
|
<WettedSurface>0.0180645</WettedSurface>
|
||||||
|
<PaintedSurface>0.0541934</PaintedSurface>
|
||||||
|
<GlueJointLength>0.</GlueJointLength>
|
||||||
|
<DensityType>0</DensityType>
|
||||||
|
<PartNo>FIN-A-06</PartNo>
|
||||||
|
<PartDesc>Fins</PartDesc>
|
||||||
|
<RadialLoc>0.</RadialLoc>
|
||||||
|
<RadialAngle>0.</RadialAngle>
|
||||||
|
<Texture>file=(C:/Users/bkuker/Desktop/tube1.png)|position=(0,0,0)|origin=(0.5,0.5,0.5)|scale=(1,1,1)|repeat=(1)|interpolate=(0)|flipr(0)|flips(0)|flipt=(0)|preventseam=(1)
|
||||||
|
</Texture>
|
||||||
|
<Opacity>1.</Opacity>
|
||||||
|
<Specular>0.</Specular>
|
||||||
|
<SpecularPower>1.</SpecularPower>
|
||||||
|
<Ambient>0.</Ambient>
|
||||||
|
<Diffuse>1.</Diffuse>
|
||||||
|
<AbientColor>blue</AbientColor>
|
||||||
|
<DiffuseColor>rgb(255,255,255)</DiffuseColor>
|
||||||
|
<SpecularColor>white</SpecularColor>
|
||||||
|
<UseSingleColor>1</UseSingleColor>
|
||||||
|
<SerialNo>7</SerialNo>
|
||||||
|
<DisplayFlags>0</DisplayFlags>
|
||||||
|
<MetricsFlags>0</MetricsFlags>
|
||||||
|
<LocationMode>0</LocationMode>
|
||||||
|
<Color>blue</Color>
|
||||||
|
<BarrowmanCNa>13.4865</BarrowmanCNa>
|
||||||
|
<BarrowmanXN>0.860153</BarrowmanXN>
|
||||||
|
<RockSimCNa>19.8425</RockSimCNa>
|
||||||
|
<RockSimXN>0.860153</RockSimXN>
|
||||||
|
<SimpleColorModel>1</SimpleColorModel>
|
||||||
|
<ProduceTemplate>0</ProduceTemplate>
|
||||||
|
<TemplateUnits>8</TemplateUnits>
|
||||||
|
<Removed>0</Removed>
|
||||||
|
<Station>794.385</Station>
|
||||||
|
<FinCount>3</FinCount>
|
||||||
|
<RootChord>139.7</RootChord>
|
||||||
|
<TipChord>38.1</TipChord>
|
||||||
|
<SemiSpan>101.6</SemiSpan>
|
||||||
|
<MidChordLen>113.592</MidChordLen>
|
||||||
|
<SweepDistance>101.6</SweepDistance>
|
||||||
|
<Thickness>1.5875</Thickness>
|
||||||
|
<ShapeCode>0</ShapeCode>
|
||||||
|
<FinishCode>0</FinishCode>
|
||||||
|
<TipShapeCode>0</TipShapeCode>
|
||||||
|
<TabLength>0.</TabLength>
|
||||||
|
<TabDepth>0.</TabDepth>
|
||||||
|
<TabOffset>0.</TabOffset>
|
||||||
|
<SweepMode>1</SweepMode>
|
||||||
|
<SweepAngle>0.790006</SweepAngle>
|
||||||
|
<RockSimXNPerFin>0.</RockSimXNPerFin>
|
||||||
|
<RockSimRadialXNPerFin>74.1438</RockSimRadialXNPerFin>
|
||||||
|
<RockSimCNaPerFin>11.4561</RockSimCNaPerFin>
|
||||||
|
<TaperRatio>0.272727</TaperRatio>
|
||||||
|
<CantAngle>0.</CantAngle>
|
||||||
|
<CantPivotPoint>0.</CantPivotPoint>
|
||||||
|
<AttachedParts>
|
||||||
|
</AttachedParts>
|
||||||
|
</FinSet>
|
||||||
|
</AttachedParts>
|
||||||
|
</BodyTube>
|
||||||
|
</Stage3Parts>
|
||||||
|
<Stage2Parts>
|
||||||
|
</Stage2Parts>
|
||||||
|
<Stage1Parts>
|
||||||
|
</Stage1Parts>
|
||||||
|
<SideViewDims>
|
||||||
|
</SideViewDims>
|
||||||
|
<BaseViewDims>
|
||||||
|
</BaseViewDims>
|
||||||
|
<VertViewDims>
|
||||||
|
</VertViewDims>
|
||||||
|
</RocketDesign>
|
||||||
|
</DesignInformation>
|
||||||
|
<SimulationResultsList>
|
||||||
|
</SimulationResultsList>
|
||||||
|
</RockSimDocument>
|
100
core/3d-Test-Junk/net/sf/openrocket/startup/TextureTest.java
Normal file
100
core/3d-Test-Junk/net/sf/openrocket/startup/TextureTest.java
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
package net.sf.openrocket.startup;
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
|
||||||
|
import net.sf.openrocket.database.ComponentPresetDatabase;
|
||||||
|
import net.sf.openrocket.database.ThrustCurveMotorSetDatabase;
|
||||||
|
import net.sf.openrocket.document.OpenRocketDocument;
|
||||||
|
import net.sf.openrocket.file.DatabaseMotorFinder;
|
||||||
|
import net.sf.openrocket.file.openrocket.importt.OpenRocketLoader;
|
||||||
|
import net.sf.openrocket.file.rocksim.importt.RocksimLoader;
|
||||||
|
import net.sf.openrocket.gui.main.componenttree.ComponentTree;
|
||||||
|
import net.sf.openrocket.gui.scalefigure.RocketPanel;
|
||||||
|
import net.sf.openrocket.gui.util.SwingPreferences;
|
||||||
|
import net.sf.openrocket.l10n.ResourceBundleTranslator;
|
||||||
|
import net.sf.openrocket.startup.Application;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An application for quickly testing 3d figure witout all the OpenRocket user
|
||||||
|
* interface
|
||||||
|
*
|
||||||
|
* @author bkuker
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class TextureTest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param args
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
Application.setBaseTranslator(new ResourceBundleTranslator("l10n.messages"));
|
||||||
|
Application.setMotorSetDatabase(new ThrustCurveMotorSetDatabase(false) {
|
||||||
|
{
|
||||||
|
startLoading();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void loadMotors() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Application.setPreferences(new SwingPreferences());
|
||||||
|
|
||||||
|
// Must be done after localization is initialized
|
||||||
|
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void load() {
|
||||||
|
ConcurrentComponentPresetDatabaseLoader presetLoader = new ConcurrentComponentPresetDatabaseLoader( this );
|
||||||
|
presetLoader.load();
|
||||||
|
try {
|
||||||
|
presetLoader.await();
|
||||||
|
} catch ( InterruptedException iex) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
componentPresetDao.load("datafiles", ".*csv");
|
||||||
|
Application.setComponentPresetDao(componentPresetDao);
|
||||||
|
|
||||||
|
OpenRocketDocument doc = new RocksimLoader().load(
|
||||||
|
TextureTest.class.getResourceAsStream("al1 Apocalypse_54mmtestFr.rkt.xml"), new DatabaseMotorFinder());
|
||||||
|
|
||||||
|
JFrame ff = new JFrame();
|
||||||
|
ff.setSize(1200, 400);
|
||||||
|
ff.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
|
doc.getDefaultConfiguration().setAllStages();
|
||||||
|
|
||||||
|
final RocketPanel panel = new RocketPanel(doc);
|
||||||
|
|
||||||
|
ComponentTree ct = new ComponentTree(doc);
|
||||||
|
panel.setSelectionModel(ct.getSelectionModel());
|
||||||
|
|
||||||
|
JPanel p = new JPanel();
|
||||||
|
p.setLayout(new BorderLayout());
|
||||||
|
p.add(ct, BorderLayout.WEST);
|
||||||
|
p.add(panel, BorderLayout.CENTER);
|
||||||
|
ff.setContentPane(p);
|
||||||
|
ff.setVisible(true);
|
||||||
|
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
try {
|
||||||
|
Method m = panel.getClass().getDeclaredMethod("go3D");
|
||||||
|
m.setAccessible(true);
|
||||||
|
m.invoke(panel);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
t.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
BIN
core/3d-Test-Junk/tube1.png
Normal file
BIN
core/3d-Test-Junk/tube1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Loading…
x
Reference in New Issue
Block a user