#include <vgui_soview2D.h>
Inheritance diagram for vgui_soview2D_lineseg:

Definition at line 97 of file vgui_soview2D.h.
Public Member Functions | |
| vgui_soview2D_lineseg () | |
| Constructor - create a default 2D line segment. | |
| vgui_soview2D_lineseg (float x0_, float y0_, float x1_, float y1_) | |
| Constructor - create a 2D line segment with given start and end points. | |
| vgui_soview2D_lineseg (vgui_soview2D_lineseg &l_) | |
| Constructor - create a 2D line segment same as the given 2D line segment. | |
| virtual void | draw () const |
| Render this 2D line segment on the display. | |
| virtual vcl_ostream & | print (vcl_ostream &) const |
| Print details about this 2D line segment to the given stream. | |
| virtual float | distance_squared (float x, float y) const |
| Returns the distance squared to this 2D line segment. | |
| vcl_string | type_name () const |
| Returns the type of this class ('vgui_soview2D_lineseg'). | |
| void | get_centroid (float *x, float *y) const |
| Returns the centroid of this 2D line segment. | |
| void | translate (float x, float y) |
| Translate this 2D line segment by the given x and y distances. | |
| virtual void | draw_select () const |
| Render this soview for selection purposes. | |
| virtual void | load_name () const |
| Calls OpenGL function glLoadName with this soview's id. | |
| virtual void | set_style (const vgui_style_sptr &newstyle) |
| Set the style (colour, line width) of the soview. | |
| virtual vgui_style_sptr | get_style () const |
| Return the style (colour, line width) of the soview. | |
| void | set_colour (float r, float g, float b) |
| Set the colour of the soview. | |
| void | set_point_size (float s) |
| Set the point radius of the soview. | |
| void | set_line_width (float w) |
| Set the line width of the soview. | |
| void | attach (vgui_observer *) |
| Attach given observer to this soview. | |
| void | detach (vgui_observer *) |
| Detach the given observer from this soview. | |
| void | get_observers (vcl_vector< vgui_observer * > &) const |
| Get a list of all observers attached to this soview. | |
| virtual void | notify () const |
| Update all observers. | |
| virtual void | notify (vgui_message const &) const |
| Send message to all observers. | |
| virtual unsigned | get_id () const |
| Returns the ID of this soview. | |
| bool | get_selectable () const |
| Return true if it is possible to select this soview. | |
| void | set_selectable (bool s) |
| Make this soview selectable/non-selectable. | |
Static Public Member Functions | |
| static vgui_soview * | id_to_object (unsigned id) |
| Returns a pointer to the vgui_soview, given the ID. | |
| static unsigned | create_id () |
| Create a new ID. | |
Public Attributes | |
| float | x0 |
| Start point x coordinate. | |
| float | y0 |
| Start point y coordinate. | |
| float | x1 |
| End point x coordinate. | |
| float | y1 |
| End point y coordinate. | |
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 | |
| unsigned | id |
| ID of this soview. | |
| bool | selectable |
| Whether this soview is selectable. | |
| vgui_style_sptr | style |
| Style (colour, line width, etc) of this soview. | |
| vgui_soview2D_lineseg::vgui_soview2D_lineseg | ( | ) | [inline] |
| vgui_soview2D_lineseg::vgui_soview2D_lineseg | ( | float | x0_, | |
| float | y0_, | |||
| float | x1_, | |||
| float | y1_ | |||
| ) | [inline] |
Constructor - create a 2D line segment with given start and end points.
Definition at line 104 of file vgui_soview2D.h.
| vgui_soview2D_lineseg::vgui_soview2D_lineseg | ( | vgui_soview2D_lineseg & | l_ | ) | [inline] |
Constructor - create a 2D line segment same as the given 2D line segment.
Definition at line 108 of file vgui_soview2D.h.
| void vgui_soview2D_lineseg::draw | ( | ) | const [virtual] |
Render this 2D line segment on the display.
Implements vgui_soview.
Definition at line 91 of file vgui_soview2D.cxx.
| vcl_ostream & vgui_soview2D_lineseg::print | ( | vcl_ostream & | ) | const [virtual] |
Print details about this 2D line segment to the given stream.
Reimplemented from vgui_soview.
Definition at line 85 of file vgui_soview2D.cxx.
| float vgui_soview2D_lineseg::distance_squared | ( | float | x, | |
| float | y | |||
| ) | const [virtual] |
Returns the distance squared to this 2D line segment.
Implements vgui_soview2D.
Definition at line 104 of file vgui_soview2D.cxx.
| vcl_string vgui_soview2D_lineseg::type_name | ( | ) | const [inline, virtual] |
Returns the type of this class ('vgui_soview2D_lineseg').
Reimplemented from vgui_soview.
Definition at line 120 of file vgui_soview2D.h.
| void vgui_soview2D_lineseg::get_centroid | ( | float * | x, | |
| float * | y | |||
| ) | const [virtual] |
Returns the centroid of this 2D line segment.
Implements vgui_soview2D.
Definition at line 115 of file vgui_soview2D.cxx.
| void vgui_soview2D_lineseg::translate | ( | float | x, | |
| float | y | |||
| ) | [virtual] |
Translate this 2D line segment by the given x and y distances.
Implements vgui_soview2D.
Definition at line 121 of file vgui_soview2D.cxx.
| void vgui_soview::draw_select | ( | ) | const [virtual, inherited] |
Render this soview for selection purposes.
By default, this will call draw(). However, some objects take time to draw, especially in GL_SELECT mode. The routine allows such objects to render a simplified version for the selection process. Note that during selection, the object is not rendered on screen. The "rendering" is used by OpenGL internals to determine if the object is in the selection region (e.g. area around mouse pointer).
Reimplemented in vgui_soview2D_point, and vgui_soview2D_group.
Definition at line 93 of file vgui_soview.cxx.
| void vgui_soview::load_name | ( | ) | const [virtual, inherited] |
Calls OpenGL function glLoadName with this soview's id.
Definition at line 102 of file vgui_soview.cxx.
| virtual void vgui_soview::set_style | ( | const vgui_style_sptr & | newstyle | ) | [inline, virtual, inherited] |
Set the style (colour, line width) of the soview.
Reimplemented in vgui_soview2D_group.
Definition at line 66 of file vgui_soview.h.
| virtual vgui_style_sptr vgui_soview::get_style | ( | ) | const [inline, virtual, inherited] |
| void vgui_soview::set_colour | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) | [inherited] |
| void vgui_soview::set_point_size | ( | float | s | ) | [inherited] |
| void vgui_soview::set_line_width | ( | float | w | ) | [inherited] |
| void vgui_soview::attach | ( | vgui_observer * | ) | [inherited] |
| void vgui_soview::detach | ( | vgui_observer * | ) | [inherited] |
| void vgui_soview::get_observers | ( | vcl_vector< vgui_observer * > & | ) | const [inherited] |
Get a list of all observers attached to this soview.
Definition at line 204 of file vgui_soview.cxx.
| void vgui_soview::notify | ( | ) | const [virtual, inherited] |
| void vgui_soview::notify | ( | vgui_message const & | ) | const [virtual, inherited] |
| virtual unsigned vgui_soview::get_id | ( | ) | const [inline, virtual, inherited] |
| vgui_soview * vgui_soview::id_to_object | ( | unsigned | id | ) | [static, inherited] |
| unsigned vgui_soview::create_id | ( | ) | [static, inherited] |
| bool vgui_soview::get_selectable | ( | ) | const [inline, inherited] |
| void vgui_soview::set_selectable | ( | bool | s | ) | [inline, inherited] |
const void *const vgui_soview::msg_select [static, inherited] |
Definition at line 96 of file vgui_soview.h.
const void *const vgui_soview::msg_deselect [static, inherited] |
Definition at line 97 of file vgui_soview.h.
const void *const vgui_soview::msg_highlight [static, inherited] |
Definition at line 98 of file vgui_soview.h.
const void *const vgui_soview::msg_unhighlight [static, inherited] |
Definition at line 99 of file vgui_soview.h.
unsigned vgui_soview::id [protected, inherited] |
bool vgui_soview::selectable [protected, inherited] |
vgui_style_sptr vgui_soview::style [protected, inherited] |
1.5.1