This machine mirrors various open-source projects.
20 Gbit/s uplink.
If there are any issues or you want another project mirrored, please contact
mirror-service -=AT=- netcologne DOT de !
#include <selection.hxx>
Collaboration diagram for Selection:
Public Types | |
typedef SelectionLst::iterator | iterator |
Public Member Functions | |
Selection () | |
Vector2d | get_center () |
void | select_particles (Vector2d p1, Vector2d p2) |
void | scale (float factor) |
void | flip () |
void | set_velocity (const Vector2d vel) |
void | duplicate () |
void | clear () |
bool | empty () const |
void | validate () |
void | rotate (float rot_angle, Vector2d rotate_center) |
SelectionLst::size_type | size () |
SelectionLst::iterator | begin () |
SelectionLst::iterator | end () |
Definition at line 30 of file selection.hxx.
|
|
Definition at line 30 of file selection.cxx. |
|
|
clears the selection Definition at line 168 of file selection.cxx. Referenced by WorldViewSelectTool::deactivate(), WorldViewSelectTool::on_delete_press(), WorldViewSelectTool::on_primary_button_press(), and validate(). |
|
duplicates all selected objects Definition at line 122 of file selection.cxx. References ParticleFactory::add_particle(), World::add_spring(), World::get_particle_mgr(), World::get_spring_mgr(), Controller::instance(), Particle::pos, Controller::push_undo(), and validate(). Referenced by WorldViewSelectTool::on_duplicate_press(). |
|
Definition at line 162 of file selection.cxx. Referenced by WorldViewSelectTool::draw_foreground(), and WorldViewSelectTool::on_secondary_button_press(). |
|
|
Definition at line 92 of file selection.cxx. References validate(). Referenced by WorldViewSelectTool::on_button_press(). |
|
Definition at line 36 of file selection.cxx. References Rect< T >::get_center(), iterator, Math::max(), Math::min(), validate(), Rect< T >::x1, Rect< T >::x2, Rect< T >::y1, and Rect< T >::y2. Referenced by WorldViewSelectTool::draw_foreground(), WorldViewSelectTool::on_button_press(), and WorldViewSelectTool::on_secondary_button_press(). |
|
Definition at line 175 of file selection.cxx. References Vector2d::norm(), validate(), Vector2d::x, and Vector2d::y. Referenced by WorldViewSelectTool::on_mouse_move(). |
|
scales the selection by the given factor Definition at line 58 of file selection.cxx. References Rect< T >::get_center(), Math::max(), Math::min(), Particle::pos, validate(), Vector2d::x, Rect< T >::x1, Rect< T >::x2, Vector2d::y, Rect< T >::y1, and Rect< T >::y2. |
|
Select the particles between p1 (upper/left) and p2 (bottom/right) Definition at line 113 of file selection.cxx. References World::get_particles(), Controller::get_world(), Controller::instance(), Vector2d::x, and Vector2d::y. Referenced by WorldViewSelectTool::on_primary_button_release(). |
|
sets the velocity of all particles to the given one Definition at line 85 of file selection.cxx. Referenced by WorldViewSelectTool::on_button_press(). |
|
Definition at line 76 of file selection.hxx. |
|
Check if the world has changed, if so clear selecetion Definition at line 195 of file selection.cxx. References clear(), Controller::get_world(), and Controller::instance(). Referenced by duplicate(), flip(), get_center(), rotate(), and scale(). |