Skip to main content

ModelRenderer

Complete API reference for ModelRenderer, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Rendering

Component: yes


public class ModelRenderer extends Component

Constructors

SignatureDescription
ModelRenderer(ModelRenderer)Executes ModelRenderer and returns after the underlying engine call finishes.
ModelRenderer()Executes ModelRenderer and returns after the underlying engine call finishes.
ModelRenderer(Vertex)Creates a new instance of ModelRenderer.

Attributes

NameTypeDescription
CUBEintRepresents the CUBE value stored on this instance. Read or assign to update the property.
SPHEREintRepresents the SPHERE value stored on this instance. Read or assign to update the property.
CONEintRepresents the CONE value stored on this instance. Read or assign to update the property.
CYLINDERintRepresents the CYLINDER value stored on this instance. Read or assign to update the property.
CIRCLEintRepresents the CIRCLE value stored on this instance. Read or assign to update the property.
TORUSintRepresents the TORUS value stored on this instance. Read or assign to update the property.
SQUAREintRepresents the SQUARE value stored on this instance. Read or assign to update the property.
SQUARE90intRepresents the SQUARE90 value stored on this instance. Read or assign to update the property.
componentModelRendererRepresents the component value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
castShadowEnabledbooleanget/setVirtual attribute exposed by isCastShadowEnabled. Access it like a field to read or write the underlying value.
enableOutlinebooleanget/setVirtual attribute exposed by isEnableOutline. Access it like a field to read or write the underlying value.
materialMaterialget/setVirtual attribute exposed by getMaterial. Access it like a field to read or write the underlying value.
outlineColorColorget/setVirtual attribute exposed by getOutlineColor. Access it like a field to read or write the underlying value.
outlineScalefloatsetVirtual attribute exposed by setOutlineScale. Access it like a field to read or write the underlying value.
renderMatrixfloat[]get/setVirtual attribute exposed by getRenderMatrix. Access it like a field to read or write the underlying value.
vertexVertexget/setVirtual attribute exposed by getVertex. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setModelFile(VertexFile)voidSets or updates the model file.
setMaterialFile(MaterialFile)voidSets or updates the material file.
attachPrimitive(int)voidPerforms the attachPrimitive operation using the provided parameters (primitive).
getOutlineScale()floatReturns the current outline scale.
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.