19 #ifndef OST_GFX_OBJ_BASE_HH
20 #define OST_GFX_OBJ_BASE_HH
41 namespace ost {
namespace gfx {
134 const Gradient& g,
float minv,
float maxv) = 0;
139 const Gradient& g,
float minv,
float maxv) = 0;
Three dimensional vector class, using Real precision.
main interface for all graphic objects, both in C++ and Python
virtual int GetOutlineMode() const =0
get current outline mode
virtual void SetOutlineExpandFactor(float f)=0
set outline expansion factor (mode 3) this scales with resolution
virtual void SetMatSpec(const Color &c)=0
material specular color
virtual float GetOutlineExpandFactor() const =0
get current outline expand factor (mode 3)
virtual float GetOutlineWidth() const =0
get current outline width
GfxObjBase(const String &name)
virtual void ContextSwitch()=0
rendering context switch, some things need to be regenerated
virtual bool GetClip() const =0
virtual void SetAALines(bool f)=0
turn on sophisticated line anti-aliasing, requires shader
virtual Color GetSolidColor() const =0
virtual void SetClipPlane(const geom::Vec4 &)=0
virtual geom::Vec3 GetCenter() const =0
get geometric center
virtual void SetMatAmb(const Color &c)=0
material ambient color
virtual void ColorBy(const img::MapHandle &mh, const String &prop, const Gradient &g, float minv, float maxv)=0
color based on image
virtual float GetOpacity() const =0
returns a value smaller than 1.0 if transparency is used in this object
virtual void SetRenderMode(RenderMode::Type m)=0
change render mode
virtual void SetClip(bool f)=0
virtual bool GetSolid() const =0
virtual void SetMatDiff(const Color &c)=0
material diffuse color
virtual void SetClipOffset(float f)=0
virtual void SetLineHalo(float f)=0
turn on line halo of given strength
virtual geom::Vec4 GetClipPlane() const =0
virtual void SetOpacity(float f)=0
set opacity (1 = no transparency)
virtual RenderMode::Type GetRenderMode() const =0
current render mode
virtual float GetClipOffset() const =0
virtual void SetMatShin(float s)=0
material shininess
virtual void ColorBy(const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv)=0
color each component based on the gradient-mapped property of the given entity
virtual void SetMatEmm(const Color &c)=0
material emmissive color
virtual void SetOutlineWidth(float f)=0
set outline width in pixels (modes 1 + 2) this does not scale with resolution
virtual Color GetOutlineExpandColor() const =0
get current outline color (mode 3)
virtual void SetOutlineExpandColor(const Color &c)=0
set outline color (mode 3)
virtual void SetOutlineMode(int m)=0
set outline mode, 1, 2 or 3
virtual void SetSolid(bool f)=0
virtual void SetPolyMode(unsigned int m)=0
set polygon mode
virtual void SetLineWidth(float w)=0
set line width
virtual bool GetOutline() const =0
get state of outline rendering
virtual void SetSolidColor(const Color &c)=0
virtual void SetOutline(bool f)=0
turn outline rendering on or off
Manage shared instances of images.
#define DLLEXPORT_OST_GFX