1
2
3
4
5
6 package cz.cuni.amis.pogamut.udk.t3dgenerator.elements.map;
7
8 import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.StaticText;
9 import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.LightingChannels;
10 import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.StaticReference;
11 import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.UnrealReference;
12
13
14
15
16
17
18 public class StaticMeshComponent extends AbstractPrimitiveComponent {
19 public static final String CLASSNAME = "StaticMesh";
20
21 private UnrealReference staticMesh;
22 private Integer previewEnvironmentShadowing;
23
24 @StaticText
25 private final String staticText = "VertexPositionVersionNumber=1\n "
26 + "PreviewEnvironmentShadowing=218\n "
27 + "bAllowApproximateOcclusion=True\n "
28 + "bForceDirectLightMap=True\n "
29 + "bForceDirectLightMap=True\n "
30 + "bUsePrecomputedShadows=True\n ";
31
32 public StaticMeshComponent(String meshName){
33 super(CLASSNAME, "Engine.Default__StaticMeshActor:StaticMeshComponent0");
34 init(meshName);
35 }
36
37 public StaticMeshComponent(String archetypeName, String meshName) {
38 super(CLASSNAME, archetypeName);
39 init(meshName);
40 }
41
42 private void init(String meshName) {
43 this.staticMesh = new StaticReference(CLASSNAME, meshName);
44 setLightingChannels(new LightingChannels(Boolean.TRUE, null, Boolean.TRUE));
45 }
46
47 public Integer getPreviewEnvironmentShadowing() {
48 return previewEnvironmentShadowing;
49 }
50
51 public void setPreviewEnvironmentShadowing(Integer previewEnvironmentShadowing) {
52 this.previewEnvironmentShadowing = previewEnvironmentShadowing;
53 }
54
55 public UnrealReference getStaticMesh() {
56 return staticMesh;
57 }
58
59 public void setStaticMesh(UnrealReference staticMesh) {
60 this.staticMesh = staticMesh;
61 }
62
63 public String getStaticText() {
64 return staticText;
65 }
66
67
68
69
70 }