vsol_digital_curve_2d. More...
#include <bgui_vsol_soview2D.h>
Public Member Functions | |
bgui_vsol_soview2D_digital_curve (vsol_digital_curve_2d_sptr const &dc, bool dotted=false) | |
Constructor - creates a view of a vsol_digital_curve_2d. | |
~bgui_vsol_soview2D_digital_curve () | |
Destructor - does nothing, smart pointers pass out of scope automatically. | |
vcl_string | type_name () const |
Returns the type of this class. | |
vsol_digital_curve_2d_sptr | sptr () const |
void | draw () const |
Render this 2D digital_curve on the display. | |
virtual float | distance_squared (float x, float y) const |
Returns the distance squared from this 2D digital_curve to the given position. | |
void | get_centroid (float *x, float *y) const |
Returns the centroid of this 2D digital_curve. | |
void | translate (float x, float y) |
Translate this 2D digital_curve by the given x and y distances. | |
vcl_ostream & | print (vcl_ostream &) const |
Print details about this vsol object to the given stream. | |
vsol_spatial_object_2d_sptr | base_sptr () 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 vcl_string | type_name_ () |
Returns the type of this class ('bgui_vsol_soview2D_digital_curve'). | |
static vgui_soview * | id_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 | |
bool | draw_dotted_ |
draw the sample points over the line segments. | |
vsol_spatial_object_2d_sptr | sptr_ |
Smart pointer to a vsol_spatial_object. | |
unsigned | id |
bool | selectable |
vgui_style_sptr | style |
Definition at line 268 of file bgui_vsol_soview2D.h.
bgui_vsol_soview2D_digital_curve::bgui_vsol_soview2D_digital_curve | ( | vsol_digital_curve_2d_sptr const & | dc, |
bool | dotted = false |
||
) |
Constructor - creates a view of a vsol_digital_curve_2d.
vsol_digital_curve_2d view.
Definition at line 285 of file bgui_vsol_soview2D.cxx.
bgui_vsol_soview2D_digital_curve::~bgui_vsol_soview2D_digital_curve | ( | ) | [inline] |
Destructor - does nothing, smart pointers pass out of scope automatically.
Definition at line 275 of file bgui_vsol_soview2D.h.
vsol_spatial_object_2d_sptr bgui_vsol_soview2D::base_sptr | ( | ) | const [inline, inherited] |
Definition at line 54 of file bgui_vsol_soview2D.h.
float bgui_vsol_soview2D_digital_curve::distance_squared | ( | float | x, |
float | y | ||
) | const [virtual] |
Returns the distance squared from this 2D digital_curve to the given position.
Implements vgui_soview2D.
Definition at line 318 of file bgui_vsol_soview2D.cxx.
void bgui_vsol_soview2D_digital_curve::draw | ( | ) | const [virtual] |
Render this 2D digital_curve on the display.
Implements bgui_vsol_soview2D.
Definition at line 296 of file bgui_vsol_soview2D.cxx.
void bgui_vsol_soview2D_digital_curve::get_centroid | ( | float * | x, |
float * | y | ||
) | const [virtual] |
Returns the centroid of this 2D digital_curve.
Implements vgui_soview2D.
Definition at line 338 of file bgui_vsol_soview2D.cxx.
vcl_ostream & bgui_vsol_soview2D::print | ( | vcl_ostream & | s | ) | const [virtual, inherited] |
Print details about this vsol object to the given stream.
Reimplemented from vgui_soview2D.
Definition at line 33 of file bgui_vsol_soview2D.cxx.
vsol_digital_curve_2d_sptr bgui_vsol_soview2D_digital_curve::sptr | ( | ) | const |
Definition at line 291 of file bgui_vsol_soview2D.cxx.
void bgui_vsol_soview2D_digital_curve::translate | ( | float | x, |
float | y | ||
) | [virtual] |
Translate this 2D digital_curve by the given x and y distances.
Implements bgui_vsol_soview2D.
Definition at line 355 of file bgui_vsol_soview2D.cxx.
vcl_string bgui_vsol_soview2D_digital_curve::type_name | ( | ) | const [inline, virtual] |
Returns the type of this class.
Implements bgui_vsol_soview2D.
Definition at line 279 of file bgui_vsol_soview2D.h.
static vcl_string bgui_vsol_soview2D_digital_curve::type_name_ | ( | ) | [inline, static] |
Returns the type of this class ('bgui_vsol_soview2D_digital_curve').
Definition at line 278 of file bgui_vsol_soview2D.h.
bool bgui_vsol_soview2D_digital_curve::draw_dotted_ [protected] |
draw the sample points over the line segments.
Definition at line 299 of file bgui_vsol_soview2D.h.
vsol_spatial_object_2d_sptr bgui_vsol_soview2D::sptr_ [protected, inherited] |
Smart pointer to a vsol_spatial_object.
Definition at line 61 of file bgui_vsol_soview2D.h.