Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes
bgui_bmrf_epi_seg_soview2D Class Reference

This is a soview2D for a bmrf_epi_seg with a smart pointer back to the bmrf_epi_seg. More...

#include <bgui_bmrf_soview2D.h>

Inheritance diagram for bgui_bmrf_epi_seg_soview2D:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 bgui_bmrf_epi_seg_soview2D (bmrf_epi_seg_sptr const &seg, const bmrf_epipole &epipole=bmrf_epipole(), bool intensity=false)
 Constructor - creates a default view.
 ~bgui_bmrf_epi_seg_soview2D ()
 Destructor.
virtual void draw () const
 Render the bmrf_epi_seg on the display.
virtual vcl_ostream & print (vcl_ostream &) const
 Print details about this bmrf_epi_seg to the given stream.
vcl_string type_name () const
 Returns the type of this class ('dbgui_bmrf_epi_seg_soview2D').
virtual float distance_squared (float x, float y) const
 Returns the distance squared from this epi_seg to the given position.
void get_centroid (float *x, float *y) const
 Returns the centroid of this epi_seg.
virtual void translate (float x, float y)
 Translate this soview2D by the given x and y distances.
bmrf_epi_seg_sptr seg_sptr () const
 Returns a smart pointer to the segment.
vgui_soview2D_imagemake_intensity_view (const bmrf_epipole &epipole) const
virtual void draw_select () const
virtual void load_name () const
virtual void set_style (const vgui_style_sptr &newstyle)
virtual vgui_style_sptr get_style () const
void set_colour (float r, float g, float b)
void set_point_size (float s)
void set_line_width (float w)
void attach (vgui_observer *)
void detach (vgui_observer *)
void get_observers (vcl_vector< vgui_observer * > &) const
virtual void notify () const
virtual void notify (vgui_message const &) const
virtual unsigned get_id () const
bool get_selectable () const
void set_selectable (bool s)

Static Public Member Functions

static vgui_soviewid_to_object (unsigned id)
static unsigned create_id ()

Static Public Attributes

static vgui_DLLDATA const void
*const 
msg_select
static vgui_DLLDATA const void
*const 
msg_deselect
static vgui_DLLDATA const void
*const 
msg_highlight
static vgui_DLLDATA const void
*const 
msg_unhighlight

Protected Attributes

bmrf_epi_seg_sptr seg_sptr_
 Smart pointer to a bmrf_epi_seg.
vgui_soview2D_imageintensity_view_
unsigned id
bool selectable
vgui_style_sptr style

Detailed Description

This is a soview2D for a bmrf_epi_seg with a smart pointer back to the bmrf_epi_seg.

Definition at line 23 of file bgui_bmrf_soview2D.h.


Constructor & Destructor Documentation

bgui_bmrf_epi_seg_soview2D::bgui_bmrf_epi_seg_soview2D ( bmrf_epi_seg_sptr const &  seg,
const bmrf_epipole &  epipole = bmrf_epipole(),
bool  intensity = false 
)

Constructor - creates a default view.

Definition at line 20 of file bgui_bmrf_soview2D.cxx.

bgui_bmrf_epi_seg_soview2D::~bgui_bmrf_epi_seg_soview2D ( )

Destructor.

Definition at line 31 of file bgui_bmrf_soview2D.cxx.


Member Function Documentation

float bgui_bmrf_epi_seg_soview2D::distance_squared ( float  x,
float  y 
) const [virtual]

Returns the distance squared from this epi_seg to the given position.

Returns the distance squared from this bmrf_epi_seg to the given position.

Implements vgui_soview2D.

Definition at line 62 of file bgui_bmrf_soview2D.cxx.

void bgui_bmrf_epi_seg_soview2D::draw ( ) const [virtual]

Render the bmrf_epi_seg on the display.

Implements vgui_soview2D.

Definition at line 39 of file bgui_bmrf_soview2D.cxx.

void bgui_bmrf_epi_seg_soview2D::get_centroid ( float *  x,
float *  y 
) const [virtual]

Returns the centroid of this epi_seg.

Returns the centroid of this bmrf_epi_seg.

Implements vgui_soview2D.

Definition at line 88 of file bgui_bmrf_soview2D.cxx.

vgui_soview2D_image * bgui_bmrf_epi_seg_soview2D::make_intensity_view ( const bmrf_epipole &  epipole) const

Definition at line 118 of file bgui_bmrf_soview2D.cxx.

vcl_ostream & bgui_bmrf_epi_seg_soview2D::print ( vcl_ostream &  s) const [virtual]

Print details about this bmrf_epi_seg to the given stream.

Reimplemented from vgui_soview2D.

Definition at line 54 of file bgui_bmrf_soview2D.cxx.

bmrf_epi_seg_sptr bgui_bmrf_epi_seg_soview2D::seg_sptr ( ) const [inline]

Returns a smart pointer to the segment.

Definition at line 53 of file bgui_bmrf_soview2D.h.

void bgui_bmrf_epi_seg_soview2D::translate ( float  x,
float  y 
) [virtual]

Translate this soview2D by the given x and y distances.

Implements vgui_soview2D.

Definition at line 106 of file bgui_bmrf_soview2D.cxx.

vcl_string bgui_bmrf_epi_seg_soview2D::type_name ( ) const [inline, virtual]

Returns the type of this class ('dbgui_bmrf_epi_seg_soview2D').

Reimplemented from vgui_soview2D.

Definition at line 41 of file bgui_bmrf_soview2D.h.


Member Data Documentation

Definition at line 61 of file bgui_bmrf_soview2D.h.

bmrf_epi_seg_sptr bgui_bmrf_epi_seg_soview2D::seg_sptr_ [protected]

Smart pointer to a bmrf_epi_seg.

Definition at line 59 of file bgui_bmrf_soview2D.h.


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