Home | History | Annotate | Download | only in blender

Lines Matching refs:structure

48 import com.jme3.scene.plugins.blender.file.Structure;

67 * This method converts the given structure to a scene node.
68 * @param structure
69 * structure of a scene
72 public Node toScene(Structure structure) {
76 Node result = new Node(structure.getName());
78 List<Structure> base = ((Structure)structure.getFieldValue("base")).evaluateListBase(blenderContext);
79 for(Structure b : base) {
82 Structure objectStructure = pObject.fetchData(blenderContext.getInputStream()).get(0);
98 * This method converts the given structure to a camera.
99 * @param structure
100 * structure of a camera
103 public Camera toCamera(Structure structure) throws BlenderFileException {
105 if (cameraHelper.shouldBeLoaded(structure, blenderContext)) {
106 return cameraHelper.toCamera(structure);
112 * This method converts the given structure to a light.
113 * @param structure
114 * structure of a light
117 public Light toLight(Structure structure) throws BlenderFileException {
119 if (lightHelper.shouldBeLoaded(structure, blenderContext)) {
120 return lightHelper.toLight(structure, blenderContext);
126 * This method converts the given structure to a node.
127 * @param structure
128 * structure of an object
131 public Object toObject(Structure structure) throws BlenderFileException {
133 if (objectHelper.shouldBeLoaded(structure, blenderContext)) {
134 return objectHelper.toObject(structure, blenderContext);
140 * This method converts the given structure to a list of geometries.
141 * @param structure
142 * structure of a mesh
145 public List<Geometry> toMesh(Structure structure) throws BlenderFileException {
147 if (meshHelper.shouldBeLoaded(structure, blenderContext)) {
148 return meshHelper.toMesh(structure, blenderContext);
154 * This method converts the given structure to a material.
155 * @param structure
156 * structure of a material
159 public Material toMaterial(Structure structure) throws BlenderFileException {
161 if (materialHelper.shouldBeLoaded(structure, blenderContext)) {
162 return materialHelper.toMaterial(structure, blenderContext);
170 * @param structure
171 * the structure with WORLD block data
174 public WorldData toWorldData(Structure structure) {
179 float ambr = ((Number) structure.getFieldValue("ambr")).floatValue();
180 float ambg = ((Number) structure.getFieldValue("ambg")).floatValue();
181 float ambb = ((Number) structure.getFieldValue("ambb")).floatValue();