#include <map_iso.hh>
Inherits ost::gfx::GfxObj.
Public Member Functions | |
| MapIso (const String &name, const img::MapHandle &mh, float level) | |
| MapIso (const String &name, const img::MapHandle &mh, float level, uint a) | |
| virtual geom::AlignedCuboid | GetBoundingBox () const |
| virtual geom::Vec3 | GetCenter () const |
| virtual void | CustomRenderGL (RenderPass pass) |
| virtual void | CustomRenderPov (PovState &pov) |
| virtual void | OnInput (const InputEvent &e) |
| virtual void | OnRenderModeChange () |
| void | Rebuild () |
| void | SetLevel (float l) |
| float | GetMinLevel () const |
| float | GetMaxLevel () const |
| float | GetLevel () const |
| float | GetMean () const |
| float | GetStdDev () const |
| std::vector< int > | GetHistogram () const |
| void | SetHistogramBinCount (int count) |
| int | GetHistogramBinCount () const |
| img::ImageHandle & | GetMap () |
| img::ImageHandle & | GetOriginalMap () |
| img::ImageHandle & | GetDownsampledMap () |
| void | ShowDownsampledMap () |
| void | ShowOriginalMap () |
| bool | IsDownsampledMapAvailable () const |
| MapIsoType | GetShownMapType () const |
| void | SetColor (const Color &color) |
| const Color & | GetColor () const |
| void | SetNSF (float smoothf) |
| void | SetDebugOctree (bool flag) |
| void | MakeOctreeDirty () |
| bool | IfOctreeDirty () const |
Protected Member Functions | |
| void | UpdateRenderParams () |
| void | CalculateStat () const |
| void | CalculateHistogram () const |
| virtual void | CustomPreRenderGL (bool flag) |
Static Protected Member Functions | |
| static img::ImageHandle | DownsampleMap (const img::ImageHandle &mh) |
Two render modes are supported: gfx::RenderMode::SIMPLE renders the map in wireframe mode, gfx::RenderMode::FILL renders a shaded isocontoured map.
Definition at line 52 of file map_iso.hh.
| MapIso | ( | const String & | name, | |
| const img::MapHandle & | mh, | |||
| float | level | |||
| ) |
| MapIso | ( | const String & | name, | |
| const img::MapHandle & | mh, | |||
| float | level, | |||
| uint | a | |||
| ) |
| void CalculateHistogram | ( | ) | const [protected] |
| void CalculateStat | ( | ) | const [protected] |
| virtual void CustomPreRenderGL | ( | bool | flag | ) | [protected, virtual] |
Reimplemented from GfxObj.
| virtual void CustomRenderGL | ( | RenderPass | pass | ) | [virtual] |
Reimplemented from GfxObj.
| static img::ImageHandle DownsampleMap | ( | const img::ImageHandle & | mh | ) | [static, protected] |
| 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.
| const Color& GetColor | ( | ) | const [inline] |
| img::ImageHandle& GetDownsampledMap | ( | ) |
get the map handle of the downsampled map
| std::vector<int> GetHistogram | ( | ) | const |
get histogram
| int GetHistogramBinCount | ( | ) | const |
get Histogram bin count
| float GetLevel | ( | ) | const |
get current isocontouring level
| img::ImageHandle& GetMap | ( | ) |
get the map handle of the currently displayed map
| float GetMaxLevel | ( | ) | const |
| float GetMean | ( | ) | const |
get mean value of map
| float GetMinLevel | ( | ) | const |
| img::ImageHandle& GetOriginalMap | ( | ) |
get the map handle of the original map
| MapIsoType GetShownMapType | ( | ) | const |
returns the type of map currently being show
| float GetStdDev | ( | ) | const |
get std dev of map.
| bool IfOctreeDirty | ( | ) | const |
checks is the octree needs to be rebuilt
| bool IsDownsampledMapAvailable | ( | ) | const |
checks if the downsampled map is available
| void MakeOctreeDirty | ( | ) |
flags the octree to be rebuilt
| virtual void OnInput | ( | const InputEvent & | e | ) | [virtual] |
Reimplemented from GfxObj.
| virtual void OnRenderModeChange | ( | ) | [virtual] |
Reimplemented from GfxObj.
| void Rebuild | ( | ) |
| void SetColor | ( | const Color & | color | ) | [inline] |
set color
By default, the color is white.
Definition at line 131 of file map_iso.hh.
| void SetDebugOctree | ( | bool | flag | ) | [inline] |
Definition at line 140 of file map_iso.hh.
| void SetHistogramBinCount | ( | int | count | ) |
set Histogram bin count
| void SetLevel | ( | float | l | ) |
set isocontouring level
Will force rebuild of the vertex buffers/indices
| void SetNSF | ( | float | smoothf | ) |
| void ShowDownsampledMap | ( | ) |
sets the donwsampled map to active
| void ShowOriginalMap | ( | ) |
sets the original map to active
| void UpdateRenderParams | ( | ) | [protected] |
1.5.8