19 #ifndef OST_GFX_MAP_ISO_HH
20 #define OST_GFX_MAP_ISO_HH
26 #include <boost/shared_ptr.hpp>
36 namespace ost {
namespace gfx {
44 typedef boost::shared_ptr<MapIso>
MapIsoP;
162 mutable bool stat_calculated_;
164 mutable bool histogram_calculated_;
165 int histogram_bin_count_;
167 bool normals_calculated_;
177 mutable bool recalc_bb_;
Three dimensional vector class, using Real precision.
main class for all graphic objects
isocontour rendering for 3D image data
virtual void CustomRenderPov(PovState &pov)
void SetNSF(float smoothf)
void ShowOriginalMap()
sets the original map to active
void CalculateHistogram() const
void MakeOctreeDirty()
flags the octree to be rebuilt
float GetMinLevel() const
void SetLevel(float l)
set isocontouring level
virtual void OnRenderModeChange()
void SetHistogramBinCount(int count)
set Histogram bin count
float GetLevel() const
get current isocontouring level
void ShowDownsampledMap()
sets the donwsampled map to active
img::ImageHandle & GetMap()
get the map handle of the currently displayed map
static img::ImageHandle DownsampleMap(const img::ImageHandle &mh)
void SetColor(const Color &color)
set color
virtual void OnInput(const InputEvent &e)
float GetStdDev() const
get std dev of map.
std::vector< int > GetHistogram() const
get histogram
void SetDebugOctree(bool flag)
void CalculateStat() const
img::ImageHandle & GetOriginalMap()
get the map handle of the original map
virtual geom::AlignedCuboid GetBoundingBox(bool use_global=false) const
returns bounding box of iso-contour object, not overall map
bool IfOctreeDirty() const
checks is the octree needs to be rebuilt
int GetHistogramBinCount() const
get Histogram bin count
float GetMaxLevel() const
virtual geom::Vec3 GetCenter() const
returns center of iso-contour object, not overall map
MapIso(const String &name, const img::MapHandle &mh, float level, uint a=0)
virtual void CustomRenderGL(RenderPass pass)
static bool global_downsampling_flag
img::ImageHandle & GetDownsampledMap()
get the map handle of the downsampled map
MapIsoType GetShownMapType() const
returns the type of map currently being show
void UpdateRenderParams()
virtual void CustomPreRenderGL(bool flag)
float GetMean() const
get mean value of map
const Color & GetColor() const
get color
bool IsDownsampledMapAvailable() const
checks if the downsampled map is available
Octree datastructure for 3D images.
Manage shared instances of images.
non-modifying image state visitor plus non-mod algorithm
#define DLLEXPORT_OST_GFX
boost::shared_ptr< MapIso > MapIsoP