MapIso Class Reference

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::ImageHandleGetMap ()
img::ImageHandleGetOriginalMap ()
img::ImageHandleGetDownsampledMap ()
void ShowDownsampledMap ()
void ShowOriginalMap ()
bool IsDownsampledMapAvailable () const
MapIsoType GetShownMapType () const
void SetColor (const Color &color)
const ColorGetColor () 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)

Detailed Description

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.

See also:
gfx::MapSlab

Definition at line 52 of file map_iso.hh.


Constructor & Destructor Documentation

MapIso ( const String name,
const img::MapHandle mh,
float  level,
uint  a = 0 
)

Member Function Documentation

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.

virtual void CustomRenderPov ( PovState pov  )  [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]

get color

See also:
SetColor()

Definition at line 137 of file map_iso.hh.

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.

See also:
GetColor()

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]

Field Documentation

bool global_downsampling_flag [static]

Definition at line 147 of file map_iso.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1