19 #ifndef OST_GFX_SURFACE_HH
20 #define OST_GFX_SURFACE_HH
28 #include <boost/shared_ptr.hpp>
41 namespace ost {
namespace gfx {
47 typedef std::map<mol::SurfaceVertexID, VertexID> VMap;
69 const Gradient& g,
float minv,
float maxv);
73 const Gradient& g,
float minv,
float maxv);
78 float minv,
float maxv,
115 mutable bool recalc_bb_;
117 boost::ptr_vector<gfx::ColorOp> c_ops_;
main class for all graphic objects
void SetColor(const Color &col, const String &selection=String(""))
set color for selection
virtual void CustomRenderPov(PovState &pov)
void Apply(const gfx::GradientLevelColorOp &op, bool store=true)
virtual void OnRenderModeChange()
virtual void ColorBy(const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv)
color each component based on the gradient-mapped property of the given entity
void Apply(const gfx::MapHandleColorOp &op, bool store=true)
void Apply(const gfx::EntityViewColorOp &op, bool store=true)
void ColorBy(const String &prop, const Gradient &gradient, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
mol::SurfaceHandle GetHandle() const
virtual void ColorBy(const img::MapHandle &mh, const String &prop, const Gradient &g, float minv, float maxv)
color based on image
virtual geom::AlignedCuboid GetBoundingBox(bool use_global=false) const
returns the bounding box of this object
void ColorBy(const String &prop, const Color &c1, const Color &c2, float min, float max, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void Apply(const gfx::UniformColorOp &op, bool store=true)
virtual void CustomRenderGL(RenderPass pass)
void Apply(const gfx::BasicGradientColorOp &op, bool store=true)
Surface(const String &name, const mol::SurfaceHandle &sh)
void ColorBy(const String &prop, const Gradient &gradient, float minv, float maxv, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void ColorBy(const String &prop, const Color &c1, const Color &c2, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void Replace(const mol::SurfaceHandle &sh)
virtual void CustomPreRenderGL(bool flag)
Manage shared instances of images.
#define DLLEXPORT_OST_GFX
boost::shared_ptr< Surface > SurfaceP