jme3-blender JavaDoc corrections (comments only)
This commit is contained in:
parent
ce730e5656
commit
8ecddf4fa2
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -304,10 +304,7 @@ public class BlenderContext {
|
|||||||
*
|
*
|
||||||
* @param oldMemoryAddress
|
* @param oldMemoryAddress
|
||||||
* the address of the feature
|
* the address of the feature
|
||||||
* @param featureName
|
* @param featureDataType
|
||||||
* the name of the feature
|
|
||||||
* @param structure
|
|
||||||
* the filled structure of the feature
|
|
||||||
* @param feature
|
* @param feature
|
||||||
* the feature we want to store
|
* the feature we want to store
|
||||||
*/
|
*/
|
||||||
@ -330,7 +327,7 @@ public class BlenderContext {
|
|||||||
* @param oldMemoryAddress
|
* @param oldMemoryAddress
|
||||||
* the address of the feature
|
* the address of the feature
|
||||||
* @param loadedFeatureDataType
|
* @param loadedFeatureDataType
|
||||||
* the type of data we want to retreive it can be either filled
|
* the type of data we want to retrieve it can be either filled
|
||||||
* structure or already converted feature
|
* structure or already converted feature
|
||||||
* @return loaded feature or null if it was not yet loaded
|
* @return loaded feature or null if it was not yet loaded
|
||||||
*/
|
*/
|
||||||
@ -497,7 +494,7 @@ public class BlenderContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method retreives the structure at the top of the parent's stack but
|
* This method retrieves the structure at the top of the parent's stack but
|
||||||
* does not remove it.
|
* does not remove it.
|
||||||
*
|
*
|
||||||
* @return the structure from the top of the stack
|
* @return the structure from the top of the stack
|
||||||
@ -754,7 +751,7 @@ public class BlenderContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This enum defines what loaded data type user wants to retreive. It can be
|
* This enum defines what loaded data type user wants to retrieve. It can be
|
||||||
* either filled structure or already converted data.
|
* either filled structure or already converted data.
|
||||||
*
|
*
|
||||||
* @author Marcin Roguski (Kaelthas)
|
* @author Marcin Roguski (Kaelthas)
|
||||||
|
@ -48,8 +48,6 @@ public abstract class Constraint {
|
|||||||
* the constraint's structure (bConstraint clss in blender 2.49).
|
* the constraint's structure (bConstraint clss in blender 2.49).
|
||||||
* @param ownerOMA
|
* @param ownerOMA
|
||||||
* the old memory address of the constraint owner
|
* the old memory address of the constraint owner
|
||||||
* @param ownerType
|
|
||||||
* the type of the constraint owner
|
|
||||||
* @param influenceIpo
|
* @param influenceIpo
|
||||||
* the ipo curve of the influence factor
|
* the ipo curve of the influence factor
|
||||||
* @param blenderContext
|
* @param blenderContext
|
||||||
|
@ -153,7 +153,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
|
|||||||
* the blender context
|
* the blender context
|
||||||
* @return constraint object for the required type
|
* @return constraint object for the required type
|
||||||
* @throws BlenderFileException
|
* @throws BlenderFileException
|
||||||
* thrown when problems with blender file occured
|
* thrown when problems with blender file occurred
|
||||||
*/
|
*/
|
||||||
private Constraint createConstraint(String dataType, Structure constraintStructure, Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {
|
private Constraint createConstraint(String dataType, Structure constraintStructure, Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {
|
||||||
if (dataType == null || "Mesh".equalsIgnoreCase(dataType) || "Camera".equalsIgnoreCase(dataType) || "Lamp".equalsIgnoreCase(dataType)) {
|
if (dataType == null || "Mesh".equalsIgnoreCase(dataType) || "Camera".equalsIgnoreCase(dataType) || "Lamp".equalsIgnoreCase(dataType)) {
|
||||||
@ -197,7 +197,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The method retreives the transform from a feature in a given space.
|
* The method retrieves the transform from a feature in a given space.
|
||||||
*
|
*
|
||||||
* @param oma
|
* @param oma
|
||||||
* the OMA of the feature (spatial or armature node)
|
* the OMA of the feature (spatial or armature node)
|
||||||
@ -205,7 +205,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
|
|||||||
* the feature's subtarget (bone in a case of armature's node)
|
* the feature's subtarget (bone in a case of armature's node)
|
||||||
* @param space
|
* @param space
|
||||||
* the space the transform is evaluated to
|
* the space the transform is evaluated to
|
||||||
* @return thensform of a feature in a given space
|
* @return the transform of a feature in a given space
|
||||||
*/
|
*/
|
||||||
public Transform getTransform(Long oma, String subtargetName, Space space) {
|
public Transform getTransform(Long oma, String subtargetName, Space space) {
|
||||||
Spatial feature = (Spatial) blenderContext.getLoadedFeature(oma, LoadedDataType.FEATURE);
|
Spatial feature = (Spatial) blenderContext.getLoadedFeature(oma, LoadedDataType.FEATURE);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -49,7 +49,7 @@ public class BlenderFileException extends Exception {
|
|||||||
/**
|
/**
|
||||||
* Constructor. Creates an exception containing the given message.
|
* Constructor. Creates an exception containing the given message.
|
||||||
* @param message
|
* @param message
|
||||||
* the message describing the problem that occured
|
* the message describing the problem that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(String message) {
|
public BlenderFileException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
@ -58,7 +58,7 @@ public class BlenderFileException extends Exception {
|
|||||||
/**
|
/**
|
||||||
* Constructor. Creates an exception that is based upon other thrown object. It contains the whole stacktrace then.
|
* Constructor. Creates an exception that is based upon other thrown object. It contains the whole stacktrace then.
|
||||||
* @param throwable
|
* @param throwable
|
||||||
* an exception/error that occured
|
* an exception/error that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(Throwable throwable) {
|
public BlenderFileException(Throwable throwable) {
|
||||||
super(throwable);
|
super(throwable);
|
||||||
@ -67,9 +67,9 @@ public class BlenderFileException extends Exception {
|
|||||||
/**
|
/**
|
||||||
* Constructor. Creates an exception with both a message and stacktrace.
|
* Constructor. Creates an exception with both a message and stacktrace.
|
||||||
* @param message
|
* @param message
|
||||||
* the message describing the problem that occured
|
* the message describing the problem that occurred
|
||||||
* @param throwable
|
* @param throwable
|
||||||
* an exception/error that occured
|
* an exception/error that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(String message, Throwable throwable) {
|
public BlenderFileException(String message, Throwable throwable) {
|
||||||
super(message, throwable);
|
super(message, throwable);
|
||||||
|
@ -186,11 +186,8 @@ public class Matrix extends SimpleMatrix {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retreives the scale vector from the matrix and stores it into a given
|
* Retrieves the scale vector from the matrix and stores it into a given
|
||||||
* vector.
|
* vector.
|
||||||
*
|
|
||||||
* @param the
|
|
||||||
* vector where the scale will be stored
|
|
||||||
*/
|
*/
|
||||||
public Vector3d toScaleVector() {
|
public Vector3d toScaleVector() {
|
||||||
Vector3d result = new Vector3d();
|
Vector3d result = new Vector3d();
|
||||||
@ -199,11 +196,10 @@ public class Matrix extends SimpleMatrix {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retreives the scale vector from the matrix and stores it into a given
|
* Retrieves the scale vector from the matrix and stores it into a given
|
||||||
* vector.
|
* vector.
|
||||||
*
|
*
|
||||||
* @param the
|
* @param vector the vector where the scale will be stored
|
||||||
* vector where the scale will be stored
|
|
||||||
*/
|
*/
|
||||||
public void toScaleVector(Vector3d vector) {
|
public void toScaleVector(Vector3d vector) {
|
||||||
double scaleX = Math.sqrt(this.get(0, 0) * this.get(0, 0) + this.get(1, 0) * this.get(1, 0) + this.get(2, 0) * this.get(2, 0));
|
double scaleX = Math.sqrt(this.get(0, 0) * this.get(0, 0) + this.get(1, 0) * this.get(1, 0) + this.get(2, 0) * this.get(2, 0));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -116,8 +116,8 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
|
|||||||
/**
|
/**
|
||||||
* Constructor instantiates a new <code>Vector3d</code> that is a copy
|
* Constructor instantiates a new <code>Vector3d</code> that is a copy
|
||||||
* of the provided vector
|
* of the provided vector
|
||||||
* @param copy
|
* @param vector3f
|
||||||
* The Vector3d to copy
|
* The Vector3f to copy
|
||||||
*/
|
*/
|
||||||
public Vector3d(Vector3f vector3f) {
|
public Vector3d(Vector3f vector3f) {
|
||||||
this(vector3f.x, vector3f.y, vector3f.z);
|
this(vector3f.x, vector3f.y, vector3f.z);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -140,11 +140,11 @@ public class MeshHelper extends AbstractBlenderHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method returns the vertices.
|
* This method returns the vertices: a list of vertex positions and a list
|
||||||
|
* of vertex normals.
|
||||||
*
|
*
|
||||||
* @param meshStructure
|
* @param meshStructure
|
||||||
* the structure containing the mesh data
|
* the structure containing the mesh data
|
||||||
* @return a list of two - element arrays, the first element is the vertex and the second - its normal
|
|
||||||
* @throws BlenderFileException
|
* @throws BlenderFileException
|
||||||
* this exception is thrown when the blend file structure is somehow invalid or corrupted
|
* this exception is thrown when the blend file structure is somehow invalid or corrupted
|
||||||
*/
|
*/
|
||||||
|
@ -198,8 +198,7 @@ public class TemporalMesh extends Geometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param the
|
* @param edge the edge of the mesh
|
||||||
* edge of the mesh
|
|
||||||
* @return a list of faces that contain the given edge or an empty list
|
* @return a list of faces that contain the given edge or an empty list
|
||||||
*/
|
*/
|
||||||
public Collection<Face> getAdjacentFaces(Edge edge) {
|
public Collection<Face> getAdjacentFaces(Edge edge) {
|
||||||
@ -212,8 +211,7 @@ public class TemporalMesh extends Geometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param the
|
* @param index the index of the mesh
|
||||||
* index of the mesh
|
|
||||||
* @return a list of edges that contain the index
|
* @return a list of edges that contain the index
|
||||||
*/
|
*/
|
||||||
public Collection<Edge> getAdjacentEdges(Integer index) {
|
public Collection<Edge> getAdjacentEdges(Integer index) {
|
||||||
@ -223,8 +221,7 @@ public class TemporalMesh extends Geometry {
|
|||||||
/**
|
/**
|
||||||
* Tells if the given edge is a boundary edge. The boundary edge means that it belongs to a single
|
* Tells if the given edge is a boundary edge. The boundary edge means that it belongs to a single
|
||||||
* face or to none.
|
* face or to none.
|
||||||
* @param the
|
* @param edge the edge of the mesh
|
||||||
* edge of the mesh
|
|
||||||
* @return <b>true</b> if the edge is a boundary one and <b>false</b> otherwise
|
* @return <b>true</b> if the edge is a boundary one and <b>false</b> otherwise
|
||||||
*/
|
*/
|
||||||
public boolean isBoundary(Edge edge) {
|
public boolean isBoundary(Edge edge) {
|
||||||
@ -289,8 +286,9 @@ public class TemporalMesh extends Geometry {
|
|||||||
/**
|
/**
|
||||||
* The method rebuilds the mappings between faces and edges. Should be called after
|
* The method rebuilds the mappings between faces and edges. Should be called after
|
||||||
* every major change of the temporal mesh done outside it.
|
* every major change of the temporal mesh done outside it.
|
||||||
* @note I will remove this method soon and make the mappings to be done automatically
|
* <p>
|
||||||
* when the mesh is modified.
|
* Note: I will remove this method soon and cause the mappings to be done
|
||||||
|
* automatically when the mesh is modified.
|
||||||
*/
|
*/
|
||||||
public void rebuildIndexesMappings() {
|
public void rebuildIndexesMappings() {
|
||||||
indexToEdgeMapping.clear();
|
indexToEdgeMapping.clear();
|
||||||
|
@ -62,7 +62,7 @@ public class UserUVCollection {
|
|||||||
* the name of the UV set
|
* the name of the UV set
|
||||||
* @param vertexIndex
|
* @param vertexIndex
|
||||||
* the vertex index corresponds to the index in jme mesh and not the original one in blender
|
* the vertex index corresponds to the index in jme mesh and not the original one in blender
|
||||||
* @return
|
* @return a pre-existing coordinate vector
|
||||||
*/
|
*/
|
||||||
public Vector2f getUVForVertex(String uvSetName, int vertexIndex) {
|
public Vector2f getUVForVertex(String uvSetName, int vertexIndex) {
|
||||||
return uvsMap.get(uvSetName).get(vertexIndex);
|
return uvsMap.get(uvSetName).get(vertexIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user