PaintVolume
Object Hierarchy:
Description:
[ Compact ]
public class PaintVolume
PaintVolume is an opaque structure whose members cannot be directly accessed.
A PaintVolume represents an a bounding volume whose internal representation isn't defined but can be set and queried
in terms of an axis aligned bounding box.
A PaintVolume for a Actor is defined to be relative from
the current actor modelview matrix.
Other internal representation and methods for describing the bounding volume may be added in the future.
Content:
Methods:
- public PaintVolume copy ()
Copies pv into a new PaintVolume
- public void free ()
Frees the resources allocated by pv
- public float get_depth ()
Retrieves the depth of the volume's, axis aligned, bounding box.
- public float get_height ()
Retrieves the height of the volume's, axis aligned, bounding box.
- public Vertex get_origin ()
Retrieves the origin of the PaintVolume.
- public float get_width ()
Retrieves the width of the volume's, axis aligned, bounding box.
- public void set_depth (float depth)
Sets the depth of the paint volume.
- public bool set_from_allocation (Actor actor)
Sets the PaintVolume from the allocation of
actor.
- public void set_height (float height)
Sets the height of the paint volume.
- public void set_origin (Vertex origin)
Sets the origin of the paint volume.
- public void set_width (float width)
Sets the width of the paint volume.
- public void union (PaintVolume another_pv)
Updates the geometry of pv to encompass pv and
another_pv.
- public void union_box (ActorBox box)
Unions the 2D region represented by box to a
PaintVolume.