java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.DrawSettings
- All Implemented Interfaces:
ConstDrawSettings,ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
Configure debug visualization of some hair. (native type:
Hair::DrawSettings)-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate settings with the default values.DrawSettings(ConstDrawSettings original) Instantiate a copy of the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether to visualize vertex angular velocities.booleanTest whether to visualize grid density.booleanTest whether to visualize grid velocity.booleanTest whether to visualize the initial gravity vector.booleanTest whether to visualize the grid density of the hair in its neutral pose.booleanTest whether to visualize the coordinate axes of each simulated vertex.booleanTest whether to visualize the strands.booleanTest whether to visualize the simulated rods.booleanTest whether to visualize the skinning points on the scalp.booleanTest whether to visualize rods in their unloaded pose.booleanTest whether to visualize vertex velocities.Return the option for coloring strands.intReturn the start of the range of strands to visualize.intReturn the end of the range of strands to visualize.setDrawAngularVelocity(boolean enable) Enable or disable visualization of vertex angular velocities.setDrawGridDensity(boolean enable) Enable or disable visualization of grid density.setDrawGridVelocity(boolean enable) Enable or disable visualization of grid velocity.setDrawInitialGravity(boolean enable) Enable or disable visualization of the initial gravity vector.setDrawNeutralDensity(boolean enable) Enable or disable visualization of the grid density of the hair in its neutral pose.setDrawOrientations(boolean enable) Enable or disable visualization of the coordinate axes of each simulated vertex.setDrawRenderStrands(boolean enable) Enable or disable debug visualization of the strands.setDrawRods(boolean enable) Enable or disable visualization of the simulated rods.setDrawSkinPoints(boolean enable) Enable or disable visualization of the skinning points on the scalp.setDrawUnloadedRods(boolean enable) Enable or disable visualization of rods in their unloaded pose.setDrawVertexVelocity(boolean enable) Enable or disable visualization of vertex velocities.Configure colors for visualizing strands.setSimulationStrandBegin(int strandIndex) Configure the start of the range of strands to visualize.setSimulationStrandEnd(int strandIndex) Configure the end of the range of strands to visualize.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
DrawSettings
public DrawSettings()Instantiate settings with the default values. -
DrawSettings
Instantiate a copy of the specified settings.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
Method Details
-
setDrawAngularVelocity
Enable or disable visualization of vertex angular velocities. (native attribute: mDrawAngularVelocity)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawGridDensity
Enable or disable visualization of grid density. (native attribute: mDrawGridDensity)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawGridVelocity
Enable or disable visualization of grid velocity. (native attribute: mDrawGridVelocity)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawInitialGravity
Enable or disable visualization of the initial gravity vector. (native attribute: mDrawInitialGravity)- Parameters:
enable-trueto enable, orfalseto disable (default=true)- Returns:
- the modified settings, for chaining
-
setDrawNeutralDensity
Enable or disable visualization of the grid density of the hair in its neutral pose. (native attribute: mDrawNeutralDensity)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawOrientations
Enable or disable visualization of the coordinate axes of each simulated vertex. (native attribute: mDrawOrientations)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawRenderStrands
Enable or disable debug visualization of the strands. (native attribute: mDrawRenderStrands)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawRods
Enable or disable visualization of the simulated rods. (native attribute: mDrawRods)- Parameters:
enable-trueto enable, orfalseto disable (default=true)- Returns:
- the modified settings, for chaining
-
setDrawSkinPoints
Enable or disable visualization of the skinning points on the scalp. (native attribute: mDrawSkinPoints)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawUnloadedRods
Enable or disable visualization of rods in their unloaded pose. (native attribute: mDrawUnloadedRods)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setDrawVertexVelocity
Enable or disable visualization of vertex velocities. (native attribute: mDrawVertexVelocity)- Parameters:
enable-trueto enable, orfalseto disable (default=false)- Returns:
- the modified settings, for chaining
-
setRenderStrandColor
Configure colors for visualizing strands. (native attribute: mRenderStrandColor)- Parameters:
color- the desired coloring option (notnull, default=PerSimulatedStrand)- Returns:
- the modified settings, for chaining
-
setSimulationStrandBegin
Configure the start of the range of strands to visualize. (native attribute: mSimulationStrandBegin)- Parameters:
strandIndex- the desired strand index (≥0)- Returns:
- the modified settings, for chaining
-
setSimulationStrandEnd
Configure the end of the range of strands to visualize. (native attribute: mSimulationStrandEnd)- Parameters:
strandIndex- the desired strand index (≥0)- Returns:
- the modified settings, for chaining
-
getDrawAngularVelocity
public boolean getDrawAngularVelocity()Test whether to visualize vertex angular velocities. The settings are unaffected. (native attribute: mDrawAngularVelocity)- Specified by:
getDrawAngularVelocityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawGridDensity
public boolean getDrawGridDensity()Test whether to visualize grid density. The settings are unaffected. (native attribute: mDrawGridDensity)- Specified by:
getDrawGridDensityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawGridVelocity
public boolean getDrawGridVelocity()Test whether to visualize grid velocity. The settings are unaffected. (native attribute: mDrawGridVelocity)- Specified by:
getDrawGridVelocityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawInitialGravity
public boolean getDrawInitialGravity()Test whether to visualize the initial gravity vector. The settings are unaffected. (native attribute: mDrawInitialGravity)- Specified by:
getDrawInitialGravityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawNeutralDensity
public boolean getDrawNeutralDensity()Test whether to visualize the grid density of the hair in its neutral pose. The settings are unaffected. (native attribute: mDrawNeutralDensity)- Specified by:
getDrawNeutralDensityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawOrientations
public boolean getDrawOrientations()Test whether to visualize the coordinate axes of each simulated vertex. The settings are unaffected. (native attribute: mDrawOrientations)- Specified by:
getDrawOrientationsin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawRenderStrands
public boolean getDrawRenderStrands()Test whether to visualize the strands. The settings are unaffected. (native attribute: mDrawRenderStrands)- Specified by:
getDrawRenderStrandsin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawRods
public boolean getDrawRods()Test whether to visualize the simulated rods. The settings are unaffected. (native attribute: mDrawRods)- Specified by:
getDrawRodsin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawSkinPoints
public boolean getDrawSkinPoints()Test whether to visualize the skinning points on the scalp. The settings are unaffected. (native attribute: mDrawSkinPoints)- Specified by:
getDrawSkinPointsin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawUnloadedRods
public boolean getDrawUnloadedRods()Test whether to visualize rods in their unloaded pose. The settings are unaffected. (native attribute: mDrawUnloadedRods)- Specified by:
getDrawUnloadedRodsin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getDrawVertexVelocity
public boolean getDrawVertexVelocity()Test whether to visualize vertex velocities. The settings are unaffected. (native attribute: mDrawVertexVelocity)- Specified by:
getDrawVertexVelocityin interfaceConstDrawSettings- Returns:
trueif enabled, otherwisefalse
-
getRenderStrandColor
Return the option for coloring strands. The settings are unaffected. (native attribute: mRenderStrandColor)- Specified by:
getRenderStrandColorin interfaceConstDrawSettings- Returns:
- the enum value (not
null)
-
getSimulationStrandBegin
public int getSimulationStrandBegin()Return the start of the range of strands to visualize. The settings are unaffected. (native attribute: mSimulationStrandBegin)- Specified by:
getSimulationStrandBeginin interfaceConstDrawSettings- Returns:
- the starting strand index
-
getSimulationStrandEnd
public int getSimulationStrandEnd()Return the end of the range of strands to visualize. The settings are unaffected. (native attribute: mSimulationStrandEnd)- Specified by:
getSimulationStrandEndin interfaceConstDrawSettings- Returns:
- the ending strand index
-