Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8035 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
May 31, 2006, 4:20:51 PM (19 years ago)
Author:
bensch
Message:

gui: merged the gui back to the trunk

Location:
trunk/src/lib/graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/model.h

    r7193 r8035  
    2525#include "base_object.h"
    2626#include "vector.h"
    27 
    28 using namespace std;
    2927
    3028
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r7919 r8035  
    299299
    300300/**
     301 * @brief updates the Rel - Coordinate in x-direction
     302 * @param x the x coordinate
     303 */
     304void Element2D::setRelCoorX2D(float x)
     305{
     306  this->setRelCoor2D(Vector2D(x, this->relCoordinate.y));
     307}
     308
     309/**
     310 * @brief updates the Rel - Coordinate in y-direction
     311 * @param y the y coordinate
     312 */
     313void Element2D::setRelCoorY2D(float y)
     314{
     315  this->setRelCoor2D(Vector2D(this->relCoordinate.x, y));
     316}
     317
     318
     319/**
    301320 * @brief sets the Relative coordinate to the parent in Pixels
    302321 * @param x the relCoord X
     
    388407  this->setAbsCoor2D(Vector2D(x, y));
    389408}
     409
     410/**
     411 * @brief updates the Abs - Coordinate in x-direction
     412 * @param x the x coordinate
     413 */
     414void Element2D::setAbsCoorX2D(float x)
     415{
     416  this->setAbsCoor2D(x, this->getAbsCoor2D().y);
     417}
     418
     419/**
     420 * @brief updates the Abs - Coordinate in y-direction
     421 * @param y the y coordinate
     422 */
     423void Element2D::setAbsCoorY2D(float y)
     424{
     425  this->setAbsCoor2D(this->getAbsCoor2D().x, y);
     426}
     427
    390428
    391429/**
  • trunk/src/lib/graphics/render2D/element_2d.h

    r7919 r8035  
    143143  public:
    144144    void setRelCoor2D (const Vector2D& relCoord);
     145    void setRelCoorX2D(float x);
     146    void setRelCoorY2D(float y);
    145147    void setRelCoor2D (float x, float y);
    146148    void setRelCoor2Dpx (int x, int y);
     
    155157    void setAbsCoor2D (const Vector2D& absCoord);
    156158    void setAbsCoor2D (float x, float y);
     159    void setAbsCoorX2D(float x);
     160    void setAbsCoorY2D(float y);
    157161    void setAbsCoor2Dpx (int x, int y);
    158162    void setAbsCoorSoft2D (const Vector2D& absCoordSoft, float bias = 1.0);
Note: See TracChangeset for help on using the changeset viewer.