From c725dcf7e92a10cdeabdd16ac51347b91c0e9a5a Mon Sep 17 00:00:00 2001 From: Tobias Schmidt <tobias.schmidt@unibas.ch> Date: Fri, 13 May 2011 16:55:43 +0200 Subject: [PATCH] add GetHandle for gfx::Surface --- modules/gfx/src/surface.cc | 5 +++++ modules/gfx/src/surface.hh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/modules/gfx/src/surface.cc b/modules/gfx/src/surface.cc index 6063f242c..488375cf5 100644 --- a/modules/gfx/src/surface.cc +++ b/modules/gfx/src/surface.cc @@ -371,4 +371,9 @@ void Surface::ReapplyColorOps() GfxObj::ReapplyColorOps(); } +ost::mol::SurfaceHandle Surface::GetHandle() const +{ + return this->sh_; +} + }} // ns diff --git a/modules/gfx/src/surface.hh b/modules/gfx/src/surface.hh index bb1f4492b..740ae787f 100644 --- a/modules/gfx/src/surface.hh +++ b/modules/gfx/src/surface.hh @@ -58,6 +58,8 @@ public: virtual void CustomRenderPov(PovState& pov); virtual geom::AlignedCuboid GetBoundingBox() const; + mol::SurfaceHandle GetHandle() const; + void Rebuild(); void Replace(const mol::SurfaceHandle& sh); -- GitLab