InlineInstance (object)

バージョン 1.12.0 で追加.

The InlineInstance represents a drawable instance of an InlineShape using an InlineTransform. InlineInstance objects are stored within an InlineMaterial.

InlineInstance InlineInstance InlineInstance InlineEntityBase InlineEntityBase InlineInstance->InlineEntityBase InlineEntity InlineEntity InlineEntityBase->InlineEntity

Methods

  InlineInstance ( in InlineInstance other )
  InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape )
  InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active )
  InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active, in Boolean ownsMaterial, io InlineMaterial material )
  InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active, io InlineMaterial material )
  InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, io InlineMaterial material )
  InlineInstance ()
  addMaterial ! ( io InlineMaterial material )
InlineInstance clone ? ()
Boolean containsUniforms ? ()
Boolean draw ! ( io DrawContext context )
InlineUniform getInstanceUniform ? ( in String name )
String getMappedAttributeName ? ( in String name )
InlineMaterial getMaterial ? ( in Index index )
Size getNumMaterials ? ()
String getPath ? ()
InlineShape getShape ? ()
InlineTransform getTransform ? ()
InlineUniform getTransformUniform ? ( in String name, in Index index )
Boolean hasInstanceUniform ? ( in String name )
Boolean hasMaterial ? ( in InlineMaterial material )
Boolean hasTransformUniform ? ( in String name, in Index index )
Boolean isActive ? ()
GeometryLocation[] raycast ? ( in Ray ray, in Boolean closest, in Boolean doubleSided, in Scalar coneThreshold, in Scalar maxDistance )
  removeMaterial ! ( io InlineMaterial material )
Boolean removeMaterial ! ( io Ref<InlineMaterial> material )
  setActive ! ( in Boolean active )
  setInstanceUniform ! ( in InlineUniform uniform )
  setMappedAttributeName ! ( in String shaderAttribute, in String geometryAttribute )
  setShape ! ( in InlineShape shape )
  setTransform ! ( in InlineTransform transform )
  setTransformUniform ! ( in InlineUniform uniform, in Index index )
  ~InlineInstance ()

Methods in detail

InlineInstance ( in InlineInstance other )

copy constructor


InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape )

default constructor given a transform and a shape


InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active )

default constructor given a transform and a shape


InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active, in Boolean ownsMaterial, io InlineMaterial material )

default constructor given a transform and a shape


InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, in Boolean active, io InlineMaterial material )

default constructor given a transform and a shape


InlineInstance ( in String name, in InlineTransform transform, in InlineShape shape, io InlineMaterial material )

default constructor given a transform and a shape


InlineInstance ()

default constructor


InlineInstance.addMaterial! ( io InlineMaterial material )

adds a new material to this instance


InlineInstance InlineInstance.clone? ()

clone method


Boolean InlineInstance.containsUniforms? ()

returns true if this instance specializes any of the material values


Boolean InlineInstance.draw! ( io DrawContext context )

draws the instance on screen. this is used by the material and should not be called manually.


InlineUniform InlineInstance.getInstanceUniform? ( in String name )

sets an uniform specializing a material value for the whole instance


String InlineInstance.getMappedAttributeName? ( in String name )

Returns the name of a mapped attribute. Returns the input name if not mapped.


InlineMaterial InlineInstance.getMaterial? ( in Index index )

returns the material of this instance


Size InlineInstance.getNumMaterials? ()

returns the number of materials applied to this instance


String InlineInstance.getPath? ()

returns the path of the instance. the path encodes the hierarchy using a ‘/’ character, so nested instanceA below transfoA results in a path like this: ‘transfoA/instanceA’


InlineShape InlineInstance.getShape? ()

returns the shape used by this instance


InlineTransform InlineInstance.getTransform? ()

returns the transform used by this instance


InlineUniform InlineInstance.getTransformUniform? ( in String name, in Index index )

sets an uniform specializing a material value for the whole instance


Boolean InlineInstance.hasInstanceUniform? ( in String name )

sets an uniform specializing a material value for the whole instance


Boolean InlineInstance.hasMaterial? ( in InlineMaterial material )

returns true if the instance has the material


Boolean InlineInstance.hasTransformUniform? ( in String name, in Index index )

sets an uniform specializing a material value for the whole instance


Boolean InlineInstance.isActive? ()

returns true if this instance is currently active


GeometryLocation[] InlineInstance.raycast? ( in Ray ray, in Boolean closest, in Boolean doubleSided, in Scalar coneThreshold, in Scalar maxDistance )

returns all hit GeometryLocation when performing a raycast against this instance


InlineInstance.removeMaterial! ( io InlineMaterial material )

removes a material from this instance


Boolean InlineInstance.removeMaterial! ( io Ref<InlineMaterial> material )

removes a material from this instance


InlineInstance.setActive! ( in Boolean active )

enables or disables this instance


InlineInstance.setInstanceUniform! ( in InlineUniform uniform )

sets an uniform specializing a material value for the whole instance


InlineInstance.setMappedAttributeName! ( in String shaderAttribute, in String geometryAttribute )

Sets the name for a mapped attribute. This allows to switch the geometry attribute to be used by a shader.


InlineInstance.setShape! ( in InlineShape shape )

sets the shape used by this instance


InlineInstance.setTransform! ( in InlineTransform transform )

sets the transform used by this instance


InlineInstance.setTransformUniform! ( in InlineUniform uniform, in Index index )

sets a uniform specializing a material value for a single transform of the instance.


~ InlineInstance ()

standard destructor