#include <surface.hh>
Inherits ost::gfx::GfxObj.
Public Member Functions | |
| Surface (const String &name, const mol::SurfaceHandle &sh) | |
| virtual void | OnRenderModeChange () |
| virtual void | CustomRenderGL (RenderPass pass) |
| virtual void | CustomRenderPov (PovState &pov) |
| virtual geom::AlignedCuboid | GetBoundingBox () const |
| void | Rebuild () |
| void | Replace (const mol::SurfaceHandle &sh) |
| void | SetColor (const Color &col, const String &selection=String("")) |
| virtual void | ColorBy (const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv) |
| 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 Gradient &gradient, mol::Prop::Level hint=mol::Prop::UNSPECIFIED) |
| void | ColorBy (const String &prop, const Color &c1, const Color &c2, float min, float max, 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 | Apply (const gfx::UniformColorOp &op, bool store=true) |
| void | Apply (const gfx::BasicGradientColorOp &op, bool store=true) |
| void | Apply (const gfx::GradientLevelColorOp &op, bool store=true) |
| void | Apply (const gfx::EntityViewColorOp &op, bool store=true) |
| void | CleanColorOps () |
| void | ReapplyColorOps () |
Protected Member Functions | |
| virtual void | CustomPreRenderGL (bool flag) |
Definition at line 50 of file surface.hh.
| Surface | ( | const String & | name, | |
| const mol::SurfaceHandle & | sh | |||
| ) |
| void Apply | ( | const gfx::EntityViewColorOp & | op, | |
| bool | store = true | |||
| ) |
| void Apply | ( | const gfx::GradientLevelColorOp & | op, | |
| bool | store = true | |||
| ) |
| void Apply | ( | const gfx::BasicGradientColorOp & | op, | |
| bool | store = true | |||
| ) |
| void Apply | ( | const gfx::UniformColorOp & | op, | |
| bool | store = true | |||
| ) |
| void CleanColorOps | ( | ) |
Reimplemented from GfxObj.
| void ColorBy | ( | const String & | prop, | |
| const Color & | c1, | |||
| const Color & | c2, | |||
| mol::Prop::Level | hint = mol::Prop::UNSPECIFIED | |||
| ) |
| void ColorBy | ( | const String & | prop, | |
| const Color & | c1, | |||
| const Color & | c2, | |||
| float | min, | |||
| float | max, | |||
| mol::Prop::Level | hint = mol::Prop::UNSPECIFIED | |||
| ) |
| void ColorBy | ( | const String & | prop, | |
| const Gradient & | gradient, | |||
| mol::Prop::Level | hint = mol::Prop::UNSPECIFIED | |||
| ) |
| void ColorBy | ( | const String & | prop, | |
| const Gradient & | gradient, | |||
| float | minv, | |||
| float | maxv, | |||
| mol::Prop::Level | hint = mol::Prop::UNSPECIFIED | |||
| ) |
| virtual void ColorBy | ( | const mol::EntityView & | ev, | |
| const String & | prop, | |||
| const Gradient & | g, | |||
| float | minv, | |||
| float | maxv | |||
| ) | [virtual] |
color each component based on the gradient-mapped property of the given entity
Reimplemented from GfxObj.
| virtual void CustomPreRenderGL | ( | bool | flag | ) | [protected, virtual] |
Reimplemented from GfxObj.
| virtual void CustomRenderGL | ( | RenderPass | pass | ) | [virtual] |
Reimplemented from GfxObj.
| virtual geom::AlignedCuboid GetBoundingBox | ( | ) | const [virtual] |
returns the left-bottom-front and the right-top-back corner that encompasses all graphical elements in this object
the bounding box is in local coordinates. to obtain the coordinates in the scene, multiply the bounding box by the object's transformation matrix.
Reimplemented from GfxObj.
| virtual void OnRenderModeChange | ( | ) | [virtual] |
Reimplemented from GfxObj.
| void ReapplyColorOps | ( | ) |
Reimplemented from GfxObj.
| void Rebuild | ( | ) |
| void Replace | ( | const mol::SurfaceHandle & | sh | ) |
1.5.8