#include <map_slab.hh>
Inherits ost::gfx::GfxObj.
Data Structures | |
| struct | PolyListEntry |
Public Member Functions | |
| MapSlab (const String &name, const img::MapHandle &mh, const geom::Plane &p) | |
| virtual geom::AlignedCuboid | GetBoundingBox () const |
| virtual geom::Vec3 | GetCenter () const |
| virtual void | CustomRenderGL (RenderPass pass) |
| virtual void | CustomRenderPov (PovState &pov) |
| geom::Plane | GetPlane () const |
| void | SetPlane (const geom::Plane &p) |
adjust coloring and value range | |
| void | ColorBy (const Gradient &g, float minv, float maxv) |
| void | ColorBy (const Gradient &g) |
| void | ColorBy (const Color &c1, const Color &c2, float minv, float maxv) |
| void | ColorBy (const Color &c1, const Color &c2) |
Protected Member Functions | |
| virtual void | CustomPreRenderGL (bool flag) |
| void | Rebuild () |
A slab is a planar slice through a 3D map. Its orientation is defined by a plane. The value range and coloring of the slab can be adjusted with the ColorBy() methods.
Definition at line 46 of file map_slab.hh.
| MapSlab | ( | const String & | name, | |
| const img::MapHandle & | mh, | |||
| const geom::Plane & | p | |||
| ) |
create new slab
| name | is the name of the object | |
| mh | is a 3D image | |
| p | is the plane that is intersected with mh |
color by interpolating between two colors with min/max of slab
color by interpolating between two colors with explicit min and max values
| void ColorBy | ( | const Gradient & | g | ) |
color by gradient, using min/max of slab
| void ColorBy | ( | const Gradient & | g, | |
| float | minv, | |||
| float | maxv | |||
| ) |
color by gradient, using explicit min/max values
| virtual void CustomPreRenderGL | ( | bool | flag | ) | [protected, virtual] |
Reimplemented from GfxObj.
| virtual void CustomRenderGL | ( | RenderPass | pass | ) | [virtual] |
Reimplemented from GfxObj.
| virtual void CustomRenderPov | ( | PovState & | pov | ) | [virtual] |
| virtual geom::AlignedCuboid GetBoundingBox | ( | ) | const [virtual] |
returns the left-bottom-front and the right-top-back corner that encompasses all graphical elements in this object
the bounding box is in local coordinates. to obtain the coordinates in the scene, multiply the bounding box by the object's transformation matrix.
Reimplemented from GfxObj.
| virtual geom::Vec3 GetCenter | ( | ) | const [virtual] |
Reimplemented from GfxObj.
| geom::Plane GetPlane | ( | ) | const |
| void Rebuild | ( | ) | [protected] |
| void SetPlane | ( | const geom::Plane & | p | ) |
set slab plane
Will force an update of the slab.
1.5.8