java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShapeSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
CompoundShapeSettings
,ConvexShapeSettings
,DecoratedShapeSettings
,EmptyShapeSettings
,HeightFieldShapeSettings
,MeshShapeSettings
,PlaneShapeSettings
public abstract class ShapeSettings
extends SerializableObject
implements ConstShapeSettings, RefTarget
Settings used to construct a
Shape
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoke this method after altering the settings but before generating any new shapes.create()
Generate aShapeResult
from these settings.int
Count the active references to the nativeShapeSettings
.void
Mark the nativeShapeSettings
as embedded.toRef()
Create a counted reference to the nativeShapeSettings
.toRefC()
Create a counted reference to the nativeShapeSettings
.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
clearCachedResult
public void clearCachedResult()Invoke this method after altering the settings but before generating any new shapes. -
create
Generate aShapeResult
from these settings.- Specified by:
create
in interfaceConstShapeSettings
- Returns:
- a new JVM object with a new native object assigned
-
toRefC
Create a counted reference to the nativeShapeSettings
.- Specified by:
toRefC
in interfaceConstShapeSettings
- Returns:
- a new JVM object with a new native object assigned
-
getRefCount
public int getRefCount()Count the active references to the nativeShapeSettings
. The settings are unaffected.- Specified by:
getRefCount
in interfaceRefTarget
- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeShapeSettings
as embedded.- Specified by:
setEmbedded
in interfaceRefTarget
-
toRef
Create a counted reference to the nativeShapeSettings
.
-