Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Core::RendererBase Class Reference
Inheritance diagram for Core::RendererBase:
Core::AbstractRenderer Core::EventHandler Seg3D::Renderer

Public Types

typedef boost::signals2::signal< void(Point world_pick_point) > volume_pick_point_signal_type
 Triggered when user "picks" in volume view.
 
- Public Types inherited from Core::AbstractRenderer
typedef boost::signals2::signal< void(Core::Texture2DHandle, bool) > redraw_completed_signal_type
 

Public Member Functions

virtual void initialize ()
 Initialize the renderer.
 
virtual void resize (int width, int height)
 resize the renderer.
 
virtual void redraw_scene ()
 
virtual void redraw_overlay ()
 
virtual void redraw_all ()
 

Public Attributes

volume_pick_point_signal_type volume_pick_point_signal_
 
- Public Attributes inherited from Core::AbstractRenderer
redraw_completed_signal_type redraw_completed_signal_
 
redraw_completed_signal_type redraw_overlay_completed_signal_
 

Protected Member Functions

virtual void activate ()
 Activate the renderer.
 
virtual void deactivate ()
 Deactivate the renderer.
 
virtual bool is_active ()
 Return the status of the renderer.
 
virtual void post_initialize ()
 Called at the end of "initialize". The default implementation does not do anything.
 
virtual void post_resize ()
 Called at the end of "resize". The default implementation does not do anything.
 
virtual bool render_scene ()
 
virtual bool render_overlay ()
 
void redraw_scene (PickPointHandle pick_point)
 
bool redraw_needed ()
 Returns true if there is redraw pending, otherwise false.
 
void set_redraw_needed (bool needed=true)
 Set the redraw flag to the given value.
 
bool redraw_overlay_needed ()
 Returns true if there is redraw_overlay pending, otherwise false.
 
void set_redraw_overlay_needed (bool needed=true)
 Set the redraw_overlay flag to the given value.
 
bool is_renderer_thread ()
 Returns true if the calling thread is the renderer thread, otherwise false.
 
void post_renderer_event (boost::function< void() > event)
 Post an event to the renderer thread.
 

Protected Attributes

int width_
 
int height_
 

Friends

class RendererBasePrivate
 

Member Function Documentation

void Core::RendererBase::redraw_all ( )
virtual

Calls the "render" and "render_overlay" function to render everything into the FBO. It triggers the "redraw_overlay_completed_signal_" at the end.

Implements Core::AbstractRenderer.

void Core::RendererBase::redraw_overlay ( )
virtual

Calls the "render_overlay" function to render the overlay into the FBO. It triggers the "redraw_overlay_completed_signal_" at the end.

Implements Core::AbstractRenderer.

void Core::RendererBase::redraw_scene ( )
virtual

Calls the "render" function to render into the FBO. It triggers the "redraw_completed_signal_" at the end.

Implements Core::AbstractRenderer.

void Core::RendererBase::redraw_scene ( PickPointHandle  pick_point)
protected

If not picking (empty pick_point handle):

  • Calls the "render" function to render into the FBO.
  • It triggers the "redraw_completed_signal_" at the end. Else if picking:
  • Find 3D pick point
  • It triggers the volume_pick_point_signal_" at the end.
bool Core::RendererBase::render_overlay ( )
protectedvirtual

Re-implement this function to render the overlay. The default implementation renders a black scene. This function should return true if the rendering was successful, or false if there were errors or the rendering was interrupted.

Reimplemented in Seg3D::Renderer.

bool Core::RendererBase::render_scene ( )
protectedvirtual

Re-implement this function to do the real rendering. The default implementation renders a black scene. This function should return true if the rendering was successful, or false if there

Reimplemented in Seg3D::Renderer.


The documentation for this class was generated from the following files: