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.
All Classes Namespaces Functions Variables Typedefs Enumerator Friends
Public Member Functions | Protected Member Functions | Friends | List of all members
Seg3D::Renderer Class Reference
Inheritance diagram for Seg3D::Renderer:
Core::RendererBase Core::ConnectionHandler Core::AbstractRenderer Core::EventHandler

Public Member Functions

 Renderer (size_t viewer_id)
 
- Public Member Functions inherited from Core::RendererBase
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 ()
 

Protected Member Functions

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 ()
 
- Protected Member Functions inherited from Core::RendererBase
virtual void activate ()
 Activate the renderer.
 
virtual void deactivate ()
 Deactivate the renderer.
 
virtual bool is_active ()
 Return the status of the renderer.
 
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.
 

Friends

class RendererPrivate
 

Additional Inherited Members

- Public Types inherited from Core::RendererBase
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 Attributes inherited from Core::RendererBase
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 Attributes inherited from Core::RendererBase
int width_
 
int height_
 

Member Function Documentation

bool Seg3D::Renderer::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 from Core::RendererBase.

bool Seg3D::Renderer::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 from Core::RendererBase.


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