Rubberbanding onto a vgui_easy2D_tableau. More...
#include <vgui_rubberband_tableau.h>
Public Member Functions | |
vgui_rubberband_easy2D_client (vgui_easy2D_tableau_sptr const &e) | |
Constructor - takes a pointer to a vgui_easy2D_tableau. | |
void | add_point (float x, float y) |
Called by vgui_rubberband_tableau when the user has selected a point. | |
void | add_line (float x0, float y0, float x1, float y1) |
Called by vgui_rubberband_tableau when the user has selected a finite line. | |
void | add_infinite_line (float a, float b, float c) |
Called by vgui_rubberband_tableau when user has selected an infinite line. | |
void | add_circle (float x, float y, float r) |
Called by vgui_rubberband_tableau when the user has selected a circle. | |
void | add_linestrip (int n, float const *x, float const *y) |
Called by vgui_rubberband_tableau when the user has selected a linestrip. | |
void | add_polygon (int n, float const *x, float const *y) |
Called by vgui_rubberband_tableau when the user has selected a polygon. | |
void | add_box (float x0, float y0, float x1, float y1) |
Called by vgui_rubberband_tableau when the user has selected a box. | |
void | clear_highlight () |
Called by vgui_rubberband_tableau whenever mouse motion is captured. | |
Public Attributes | |
vgui_easy2D_tableau_sptr | easy |
Pointer to the vgui_easy2D_tableau object this client writes to. |
Rubberbanding onto a vgui_easy2D_tableau.
Special case of vgui_rubberband_client for cases where we just want to draw rubberbanded objects straight onto a vgui_easy2D_tableau.
Definition at line 71 of file vgui_rubberband_tableau.h.
vgui_rubberband_easy2D_client::vgui_rubberband_easy2D_client | ( | vgui_easy2D_tableau_sptr const & | e | ) | [inline] |
Constructor - takes a pointer to a vgui_easy2D_tableau.
Definition at line 78 of file vgui_rubberband_tableau.h.
void vgui_rubberband_easy2D_client::add_box | ( | float | x0, |
float | y0, | ||
float | x1, | ||
float | y1 | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a box.
Since vgui_easy2D_tableau doesn't have a rectangular box object, this add an equivalent 4 point polygon instead.
Reimplemented from vgui_rubberband_client.
Definition at line 89 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::add_circle | ( | float | x, |
float | y, | ||
float | r | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a circle.
Adds a circle to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
Definition at line 67 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::add_infinite_line | ( | float | a, |
float | b, | ||
float | c | ||
) | [virtual] |
Called by vgui_rubberband_tableau when user has selected an infinite line.
Adds an infinite line to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
Definition at line 60 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::add_line | ( | float | x0, |
float | y0, | ||
float | x1, | ||
float | y1 | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a finite line.
Adds a finite line to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
Definition at line 53 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::add_linestrip | ( | int | n, |
float const * | x, | ||
float const * | y | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a linestrip.
Adds a linestrip to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
Definition at line 74 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::add_point | ( | float | x, |
float | y | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a point.
Adds a point to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
void vgui_rubberband_easy2D_client::add_polygon | ( | int | n, |
float const * | x, | ||
float const * | y | ||
) | [virtual] |
Called by vgui_rubberband_tableau when the user has selected a polygon.
Adds a polygon to the vgui_easy2D_tableau.
Reimplemented from vgui_rubberband_client.
Definition at line 81 of file vgui_rubberband_tableau.cxx.
void vgui_rubberband_easy2D_client::clear_highlight | ( | ) | [virtual] |
Called by vgui_rubberband_tableau whenever mouse motion is captured.
This turns off the highlighting of geometry objects to eliminate flickering highlights while drawing temporary objects.
Reimplemented from vgui_rubberband_client.
Definition at line 99 of file vgui_rubberband_tableau.cxx.
Pointer to the vgui_easy2D_tableau object this client writes to.
Definition at line 75 of file vgui_rubberband_tableau.h.