main interface for all graphic objects, both in C++ and Python More...
#include <gfx_object_base.hh>
Inherits ost::gfx::GfxNode.
Inherited by GfxObj.
Public Member Functions | |
| GfxObjBase (const String &name) | |
| virtual void | SetMatAmb (const Color &c)=0 |
| virtual void | SetMatDiff (const Color &c)=0 |
| virtual void | SetMatSpec (const Color &c)=0 |
| virtual void | SetMatShin (float s)=0 |
| virtual void | SetMatEmm (const Color &c)=0 |
| virtual void | ContextSwitch ()=0 |
| virtual void | SetRenderMode (RenderMode::Type m)=0 |
| virtual RenderMode::Type | GetRenderMode () const =0 |
| virtual geom::Vec3 | GetCenter () const =0 |
| virtual void | SetLineWidth (float w)=0 |
| virtual void | SetPolyMode (unsigned int m)=0 |
| virtual void | SetAALines (bool f)=0 |
| virtual void | SetLineHalo (float f)=0 |
| virtual void | SetOutline (bool f)=0 |
| virtual bool | GetOutline () const =0 |
| virtual void | SetOutlineMode (int m)=0 |
| virtual int | GetOutlineMode () const =0 |
| virtual void | SetOutlineWidth (float f)=0 |
| virtual float | GetOutlineWidth () const =0 |
| virtual void | SetOutlineExpandFactor (float f)=0 |
| virtual float | GetOutlineExpandFactor () const =0 |
| virtual void | SetOutlineExpandColor (const Color &c)=0 |
| virtual Color | GetOutlineExpandColor () const =0 |
| virtual void | SetOpacity (float f)=0 |
| virtual float | GetOpacity () const =0 |
| virtual void | SetSolid (bool f)=0 |
| virtual bool | GetSolid () const =0 |
| virtual void | SetSolidColor (const Color &c)=0 |
| virtual Color | GetSolidColor () const =0 |
| virtual void | SetClip (bool f)=0 |
| virtual bool | GetClip () const =0 |
| virtual void | SetClipPlane (const geom::Vec4 &)=0 |
| virtual geom::Vec4 | GetClipPlane () const =0 |
| virtual void | SetClipOffset (float f)=0 |
| virtual float | GetClipOffset () const =0 |
| virtual void | ColorBy (const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv)=0 |
| virtual void | ColorBy (const img::MapHandle &mh, const String &prop, const Gradient &g, float minv, float maxv)=0 |
main interface for all graphic objects, both in C++ and Python
Definition at line 53 of file gfx_object_base.hh.
| GfxObjBase | ( | const String & | name | ) | [inline] |
Definition at line 56 of file gfx_object_base.hh.
| virtual void ColorBy | ( | const img::MapHandle & | mh, | |
| const String & | prop, | |||
| const Gradient & | g, | |||
| float | minv, | |||
| float | maxv | |||
| ) | [pure virtual] |
| virtual void ColorBy | ( | const mol::EntityView & | ev, | |
| const String & | prop, | |||
| const Gradient & | g, | |||
| float | minv, | |||
| float | maxv | |||
| ) | [pure virtual] |
| virtual void ContextSwitch | ( | ) | [pure virtual] |
| virtual geom::Vec3 GetCenter | ( | ) | const [pure virtual] |
get geometric center
Implemented in GfxObj, GfxTestObj, MapIso, MapSlab, and PrimList.
| virtual bool GetClip | ( | ) | const [pure virtual] |
Implemented in GfxObj.
| virtual float GetClipOffset | ( | ) | const [pure virtual] |
Implemented in GfxObj.
| virtual geom::Vec4 GetClipPlane | ( | ) | const [pure virtual] |
Implemented in GfxObj.
| virtual float GetOpacity | ( | ) | const [pure virtual] |
| virtual bool GetOutline | ( | ) | const [pure virtual] |
get state of outline rendering
Implemented in GfxObj.
| virtual Color GetOutlineExpandColor | ( | ) | const [pure virtual] |
get current outline color (mode 3)
Implemented in GfxObj.
| virtual float GetOutlineExpandFactor | ( | ) | const [pure virtual] |
get current outline expand factor (mode 3)
Implemented in GfxObj.
| virtual int GetOutlineMode | ( | ) | const [pure virtual] |
get current outline mode
Implemented in GfxObj.
| virtual float GetOutlineWidth | ( | ) | const [pure virtual] |
get current outline width
Implemented in GfxObj.
| virtual RenderMode::Type GetRenderMode | ( | ) | const [pure virtual] |
current render mode
Implemented in GfxObj.
| virtual bool GetSolid | ( | ) | const [pure virtual] |
Implemented in GfxObj.
| virtual void SetAALines | ( | bool | f | ) | [pure virtual] |
turn on sophisticated line anti-aliasing, requires shader
Implemented in GfxObj.
| virtual void SetClip | ( | bool | f | ) | [pure virtual] |
Implemented in GfxObj.
| virtual void SetClipPlane | ( | const geom::Vec4 & | ) | [pure virtual] |
Implemented in GfxObj.
| virtual void SetLineHalo | ( | float | f | ) | [pure virtual] |
turn on line halo of given strength
Implemented in GfxObj.
| virtual void SetLineWidth | ( | float | w | ) | [pure virtual] |
| virtual void SetMatAmb | ( | const Color & | c | ) | [pure virtual] |
material ambient color
Implemented in GfxObj.
| virtual void SetMatDiff | ( | const Color & | c | ) | [pure virtual] |
material diffuse color
Implemented in GfxObj.
| virtual void SetMatEmm | ( | const Color & | c | ) | [pure virtual] |
material emmissive color
Implemented in GfxObj.
| virtual void SetMatShin | ( | float | s | ) | [pure virtual] |
material shininess
Implemented in GfxObj.
| virtual void SetMatSpec | ( | const Color & | c | ) | [pure virtual] |
material specular color
Implemented in GfxObj.
| virtual void SetOpacity | ( | float | f | ) | [pure virtual] |
| virtual void SetOutline | ( | bool | f | ) | [pure virtual] |
turn outline rendering on or off
Implemented in GfxObj.
| virtual void SetOutlineExpandColor | ( | const Color & | c | ) | [pure virtual] |
| virtual void SetOutlineExpandFactor | ( | float | f | ) | [pure virtual] |
| virtual void SetOutlineMode | ( | int | m | ) | [pure virtual] |
set outline mode, 1, 2 or 3
Implemented in GfxObj.
| virtual void SetOutlineWidth | ( | float | f | ) | [pure virtual] |
| virtual void SetPolyMode | ( | unsigned int | m | ) | [pure virtual] |
set polygon mode
Implemented in GfxObj.
| virtual void SetRenderMode | ( | RenderMode::Type | m | ) | [pure virtual] |
| virtual void SetSolid | ( | bool | f | ) | [pure virtual] |
Implemented in GfxObj.
1.6.1