|
Drag[en]gine Script Module DragonScript 1.35
|
Create decals based on a decal definition for each visited element using a visitor. More...
Classes | |
| class | CreatedDecal |
| Created decal. More... | |
Public Member Functions | |
| bool | canHitCollider (Collider owner, Collider collider) |
| Colliders can hit each other. | |
| void | colliderChanged (Collider owner) |
| Collider changed which does not happen for this use of the listener. | |
| void | collisionResponse (Collider owner, CollisionInfo info) |
| Collision detected. | |
| Decal | createComponentDecal (Element element, Component component) |
| Create decal for component. | |
| void | createDecals (World world) |
| Create decals from stored decal definition for matching elements in the world. | |
| void | createDecals (World world, Array collectDecals) |
| Create decals from stored decal definition for matching elements in the world. | |
| void | dispose () |
| Dispose of decal builder to break reference loops. | |
| CollisionFilter | getCollisionFilter () |
| Collision filter limiting the elements to attach decals to. | |
| DMatrix | getMatrix () |
| Projection matrix constructed from position and orientation. | |
| Quaternion | getOrientation () |
| Orientation of projection. | |
| DVector | getPosition () |
| Position from to project. | |
| bool | getPropertyBoolFor (String key, bool default) |
| Boolean property value or default value if absent. | |
| int | getPropertyCount () |
| Number of properties. | |
| float | getPropertyFloatFor (String key, float default) |
| Floating point property value or default value if absent. | |
| int | getPropertyIntFor (String key, int default) |
| Integer property value or default value if absent. | |
| Array | getPropertyKeys () |
| Property keys (String array). | |
| String | getPropertyValueFor (String key, String default) |
| Value of property or default value if absent. | |
| Vector | getSize () |
| Size of projection. | |
| Skin | getSkin () |
| Skin to use for create decals. | |
| TexMatrix2 | getTransform () |
| bool | getVisible () |
| Decal is visible after being created. | |
| ElementVisitor | getVisitor () |
| Visitor to use to create the decals. | |
| bool | hasPropertyWithKey (String key) |
| Property key is present. | |
| DecalBuilder | new () |
| Create decal builder. | |
| void | removeAllProperties () |
| Remove all properties. | |
| void | setCollisionFilter (CollisionFilter collisionFilter) |
| Set collision filter limiting the elements to attach decals to. | |
| void | setPositionAndOrientation (DVector position, Quaternion orientation) |
| Set projection position and orientation. | |
| void | setPropertyValueFor (String key, String value) |
| Set property. | |
| void | setSize (Vector size) |
| Set size of projection. | |
| void | setSkin (Skin skin) |
| Set skin to use for create decals. | |
| void | setTransform (TexMatrix2 transform) |
| Transform to set for created decals. | |
| void | setVisible (bool visible) |
| Set if decal is visible after being created. | |
| void | setVisitor (ElementVisitor visitor) |
| Set visitor to use to create the decals. | |
| Public Member Functions inherited from Dragengine.Scenery.ColliderListener | |
Create decals based on a decal definition for each visited element using a visitor.
Colliders can hit each other.
Implements Dragengine.Scenery.ColliderListener.
Referenced by colliderChanged().
| void Dragengine.Utils.DecalBuilder.colliderChanged | ( | Collider | owner | ) |
Collider changed which does not happen for this use of the listener.
Implements Dragengine.Scenery.ColliderListener.
References canHitCollider(), colliderChanged(), collisionResponse(), createComponentDecal(), createDecals(), getPropertyBoolFor(), getPropertyCount(), getPropertyFloatFor(), getPropertyIntFor(), getPropertyKeys(), getPropertyValueFor(), hasPropertyWithKey(), new(), removeAllProperties(), setCollisionFilter(), setPropertyValueFor(), setSize(), setSkin(), setTransform(), and setVisitor().
Referenced by colliderChanged().
| void Dragengine.Utils.DecalBuilder.collisionResponse | ( | Collider | owner, |
| CollisionInfo | info ) |
Collision detected.
Uses visitor on hit colliders. For height terrain calls hitHeightTerrain method.
Implements Dragengine.Scenery.ColliderListener.
References getVisitor().
Referenced by colliderChanged().
Create decal for component.
A new decal is created with properties stored in the decal builder and attached to the component. Caller can then apply additional modifications to the decal.
If the builder is collecting created decals a new CreatedDecal instance is stored.
References setSkin().
Referenced by colliderChanged().
| void Dragengine.Utils.DecalBuilder.createDecals | ( | World | world | ) |
Create decals from stored decal definition for matching elements in the world.
References getSize().
Referenced by colliderChanged().
| void Dragengine.Utils.DecalBuilder.createDecals | ( | World | world, |
| Array | collectDecals ) |
| void Dragengine.Utils.DecalBuilder.dispose | ( | ) |
Dispose of decal builder to break reference loops.
Referenced by setSkin().
| CollisionFilter Dragengine.Utils.DecalBuilder.getCollisionFilter | ( | ) |
Collision filter limiting the elements to attach decals to.
Referenced by getPropertyIntFor().
| DMatrix Dragengine.Utils.DecalBuilder.getMatrix | ( | ) |
Projection matrix constructed from position and orientation.
References new().
Referenced by setCollisionFilter().
| Quaternion Dragengine.Utils.DecalBuilder.getOrientation | ( | ) |
Orientation of projection.
Referenced by setTransform().
| DVector Dragengine.Utils.DecalBuilder.getPosition | ( | ) |
Position from to project.
Referenced by setVisible().
| bool Dragengine.Utils.DecalBuilder.getPropertyBoolFor | ( | String | key, |
| bool | default ) |
Boolean property value or default value if absent.
Referenced by colliderChanged().
| int Dragengine.Utils.DecalBuilder.getPropertyCount | ( | ) |
Number of properties.
Referenced by colliderChanged().
| float Dragengine.Utils.DecalBuilder.getPropertyFloatFor | ( | String | key, |
| float | default ) |
Floating point property value or default value if absent.
References new(), and setCollisionFilter().
Referenced by colliderChanged().
| int Dragengine.Utils.DecalBuilder.getPropertyIntFor | ( | String | key, |
| int | default ) |
Integer property value or default value if absent.
References getCollisionFilter().
Referenced by colliderChanged().
| Array Dragengine.Utils.DecalBuilder.getPropertyKeys | ( | ) |
| String Dragengine.Utils.DecalBuilder.getPropertyValueFor | ( | String | key, |
| String | default ) |
Value of property or default value if absent.
References setVisible().
Referenced by colliderChanged().
| Vector Dragengine.Utils.DecalBuilder.getSize | ( | ) |
| Skin Dragengine.Utils.DecalBuilder.getSkin | ( | ) |
| TexMatrix2 Dragengine.Utils.DecalBuilder.getTransform | ( | ) |
Retrieves the texture coordinates transformation.
Referenced by setPropertyValueFor().
| bool Dragengine.Utils.DecalBuilder.getVisible | ( | ) |
Decal is visible after being created.
Referenced by getPropertyKeys().
| ElementVisitor Dragengine.Utils.DecalBuilder.getVisitor | ( | ) |
Visitor to use to create the decals.
References setPositionAndOrientation().
Referenced by collisionResponse().
| bool Dragengine.Utils.DecalBuilder.hasPropertyWithKey | ( | String | key | ) |
Property key is present.
Referenced by colliderChanged().
| DecalBuilder Dragengine.Utils.DecalBuilder.new | ( | ) |
Create decal builder.
Referenced by colliderChanged(), createDecals(), getMatrix(), getPropertyFloatFor(), getSize(), getSkin(), setPositionAndOrientation(), and setVisitor().
| void Dragengine.Utils.DecalBuilder.removeAllProperties | ( | ) |
| void Dragengine.Utils.DecalBuilder.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter limiting the elements to attach decals to.
References getMatrix().
Referenced by colliderChanged(), and getPropertyFloatFor().
| void Dragengine.Utils.DecalBuilder.setPositionAndOrientation | ( | DVector | position, |
| Quaternion | orientation ) |
| void Dragengine.Utils.DecalBuilder.setPropertyValueFor | ( | String | key, |
| String | value ) |
| void Dragengine.Utils.DecalBuilder.setSize | ( | Vector | size | ) |
Set size of projection.
Referenced by colliderChanged(), and createDecals().
| void Dragengine.Utils.DecalBuilder.setSkin | ( | Skin | skin | ) |
Set skin to use for create decals.
References dispose().
Referenced by colliderChanged(), and createComponentDecal().
| void Dragengine.Utils.DecalBuilder.setTransform | ( | TexMatrix2 | transform | ) |
Transform to set for created decals.
References getOrientation().
Referenced by colliderChanged(), and removeAllProperties().
| void Dragengine.Utils.DecalBuilder.setVisible | ( | bool | visible | ) |
Set if decal is visible after being created.
References getPosition().
Referenced by getPropertyValueFor().
| void Dragengine.Utils.DecalBuilder.setVisitor | ( | ElementVisitor | visitor | ) |