public class BD1Manipulator extends Object
| コンストラクタ | 説明 |
|---|---|
BD1Manipulator() |
|
BD1Manipulator(String bd1_filename) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
int |
GetBlockNum() |
Returns the number of blocks contained in the BD1 file.
|
List<BD1Block> |
GetBlocks() |
Returns blocks.
|
String |
GetTextureFilename(int texture_id) |
Returns the texture filename associated with the texture ID.
|
Map<Integer,String> |
GetTextureFilenamesMap() |
Returns the texture filenames.
|
void |
InvertZ() |
Inverts z-axis.
This method is used to make a mirrored map. |
void |
Rescale(com.daxie.basis.vector.Vector scale) |
Rescales every block.
|
void |
Rotate(com.daxie.basis.vector.Vector rotate) |
Rotates every block.
|
void |
SetBlocks(List<BD1Block> blocks) |
Sets blocks.
|
void |
SetMatrix(com.daxie.basis.matrix.Matrix m) |
Transforms every block with a matrix.
|
int |
SetTextureFilename(int texture_id,
String texture_filename) |
Sets the texture filename associated with the texture ID.
|
int |
SetTextureFilenamesMap(Map<Integer,String> texture_filenames_map) |
Sets the texture filenames.
|
void |
Translate(com.daxie.basis.vector.Vector translate) |
Translates every block.
|
int |
WriteAsBD1(String bd1_filename) |
Writes out data in a BD1 file.
|
int |
WriteAsOBJ(String obj_filename) |
Writes out data in an OBJ file.
|
public BD1Manipulator(String bd1_filename) throws FileNotFoundException
bd1_filename - BD1 filename to loadFileNotFoundException - BD1 file not foundpublic BD1Manipulator()
public int GetBlockNum()
public String GetTextureFilename(int texture_id)
texture_id - Texture IDpublic Map<Integer,String> GetTextureFilenamesMap()
public int SetTextureFilename(int texture_id,
String texture_filename)
texture_id - Texture IDtexture_filename - Texture filenamepublic int SetTextureFilenamesMap(Map<Integer,String> texture_filenames_map)
texture_filenames_map - Texture filenamespublic void Translate(com.daxie.basis.vector.Vector translate)
translate - Translation vectorpublic void Rotate(com.daxie.basis.vector.Vector rotate)
rotate - Angles of rotation (radian)public void Rescale(com.daxie.basis.vector.Vector scale)
scale - Scaling vectorpublic void SetMatrix(com.daxie.basis.matrix.Matrix m)
m - Transformation matrixpublic void InvertZ()
public int WriteAsBD1(String bd1_filename)
bd1_filename - Filenamepublic int WriteAsOBJ(String obj_filename)
obj_filename - FilenameCopyright © 2019. All rights reserved.