19 #ifndef OST_GFX_OBJ_BASE_HH
20 #define OST_GFX_OBJ_BASE_HH
43 namespace ost {
namespace gfx {
59 virtual void SetMatAmb(
const Color& c) = 0;
61 virtual void SetMatDiff(
const Color& c) = 0;
63 virtual void SetMatSpec(
const Color& c) = 0;
65 virtual void SetMatShin(
float s) = 0;
67 virtual void SetMatEmm(
const Color& c) = 0;
70 virtual void ContextSwitch() = 0;
81 virtual void SetLineWidth(
float w) = 0;
84 virtual void SetPolyMode(
unsigned int m) = 0;
87 virtual void SetAALines(
bool f) = 0;
90 virtual void SetLineHalo(
float f) = 0;
93 virtual void SetOutline(
bool f) = 0;
95 virtual bool GetOutline()
const = 0;
97 virtual void SetOutlineMode(
int m) = 0;
99 virtual int GetOutlineMode()
const = 0;
102 virtual void SetOutlineWidth(
float f) = 0;
104 virtual float GetOutlineWidth()
const = 0;
107 virtual void SetOutlineExpandFactor(
float f) = 0;
109 virtual float GetOutlineExpandFactor()
const = 0;
111 virtual void SetOutlineExpandColor(
const Color& c) = 0;
113 virtual Color GetOutlineExpandColor()
const = 0;
116 virtual void SetOpacity(
float f) = 0;
118 virtual float GetOpacity()
const = 0;
120 virtual void SetSolid(
bool f) = 0;
121 virtual bool GetSolid()
const = 0;
122 virtual void SetSolidColor(
const Color& c) = 0;
123 virtual Color GetSolidColor()
const = 0;
125 virtual void SetClip(
bool f) = 0;
126 virtual bool GetClip()
const = 0;
127 virtual void SetClipPlane(
const geom::Vec4&) = 0;
129 virtual void SetClipOffset(
float f) = 0;
130 virtual float GetClipOffset()
const = 0;
136 const Gradient& g,
float minv,
float maxv) = 0;
142 const Gradient& g,
float minv,
float maxv) = 0;
#define DLLEXPORT_OST_GFX
main interface for all graphic objects, both in C++ and Python
Three dimensional vector class, using Real precision.
GfxObjBase(const String &name)
Manage shared instances of images.