isocontour rendering for 3D image data More...
#include <map_iso.hh>
Inherits ost::gfx::GfxObj.
Public Member Functions | |
| MapIso (const String &name, const img::MapHandle &mh, float level, uint a=0) | |
| virtual geom::AlignedCuboid | GetBoundingBox (bool use_global=false) 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 |
Static Public Attributes | |
| static bool | global_downsampling_flag |
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) |
isocontour rendering for 3D image data
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, | |||
| uint | a = 0 | |||
| ) |
| 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 | ( | bool | use_global = false |
) | const [virtual] |
returns bounding box of iso-contour object, not overall map
Reimplemented from GfxObj.
| virtual geom::Vec3 GetCenter | ( | ) | const [virtual] |
returns center of iso-contour object, not overall map
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 130 of file map_iso.hh.
| void SetDebugOctree | ( | bool | flag | ) | [inline] |
Definition at line 139 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] |
bool global_downsampling_flag [static] |
Definition at line 147 of file map_iso.hh.
1.6.1