pub struct PlanarSceneNodeData { /* private fields */ }
Expand description

The datas contained by a PlanarSceneNode.

Implementations

Whether this node contains an PlanarObject.

Whether this node has no parent.

Render the scene graph rooted by this node.

A reference to the object possibly contained by this node.

A mutable reference to the object possibly contained by this node.

A reference to the object possibly contained by this node.

Failure

Fails of this node does not contains an object.

A mutable reference to the object possibly contained by this node.

Failure

Fails of this node does not contains an object.

Sets the material of the objects contained by this node and its children.

Sets the material of the objects contained by this node and its children.

The material must already have been registered as name.

Sets the width of the lines drawn for the objects contained by this node and its children.

Sets the color of the lines drawn for the objects contained by this node and its children.

Sets the size of the points drawn for the objects contained by this node and its children.

Activates or deactivates the rendering of the surfaces of the objects contained by this node and its children.

Activates or deactivates backface culling for the objects contained by this node and its children.

Mutably accesses the vertices of the objects contained by this node and its children.

The provided closure is called once per object.

Accesses the vertices of the objects contained by this node and its children.

The provided closure is called once per object.

Mutably accesses the faces of the objects contained by this node and its children.

The provided closure is called once per object.

Accesses the faces of the objects contained by this node and its children.

The provided closure is called once per object.

Mutably accesses the texture coordinates of the objects contained by this node and its children.

The provided closure is called once per object.

Accesses the texture coordinates of the objects contained by this node and its children.

The provided closure is called once per object.

Get the visibility status of node.

Sets the visibility of this node.

The node and its children are not rendered if it is not visible.

Sets the color of the objects contained by this node and its children.

Colors components must be on the range [0.0, 1.0].

Sets the texture of the objects contained by this node and its children.

The texture is loaded from a file and registered by the global TextureManager.

Arguments
  • path - relative path of the texture on the disk
  • name - &str identifier to store this texture under

Sets the texture of the objects contained by this node and its children.

The texture is loaded from a byte slice and registered by the global TextureManager.

Arguments
  • path - relative path of the texture on the disk
  • image_data - slice of bytes containing encoded image
  • name - &str identifier to store this texture under

Sets the texture of the objects contained by this node and its children.

The texture must already have been registered as name.

Sets the texture of the objects contained by this node and its children.

Applies a closure to each object contained by this node and its children.

Applies a closure to each object contained by this node and its children.

Sets the local scaling factors of the object.

Returns the scaling factors of the object.

This node local transformation.

Inverse of this node local transformation.

This node world transformation.

This will force an update of the world transformation of its parents if they have been invalidated.

The inverse of this node world transformation.

This will force an update of the world transformation of its parents if they have been invalidated.

Appends a transformation to this node local transformation.

Prepends a transformation to this node local transformation.

Set this node local transformation.

This node local translation.

The inverse of this node local translation.

Appends a translation to this node local transformation.

Prepends a translation to this node local transformation.

Sets the local translation of this node.

This node local rotation.

The inverse of this node local rotation.

Appends a rotation to this node local transformation.

Appends a rotation to this node local transformation.

Prepends a rotation to this node local transformation.

Sets the local rotation of this node.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.