Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7316 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Apr 17, 2006, 1:49:05 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Element2D uses Vector2D instead of Vector whenever possible

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

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r7315 r7316  
    128128  EventHandler::getInstance()->withUNICODE(true);
    129129
    130   this->setRelCoorSoft2D(0, 0, 1, 5);
     130  this->setRelCoorSoft2D(0, 0, 5);
    131131
    132132  list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end();
     
    157157  EventHandler::getInstance()->popState();
    158158
    159   this->setRelCoorSoft2D(0, -(int)this->shellHeight, 1, 5);
     159  this->setRelCoorSoft2D(0, -(int)this->shellHeight, 5);
    160160
    161161  list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end();
     
    370370    lastText->setRelDir2D(-90);
    371371    lastText->setRelDirSoft2D(0, 20);
    372     lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector(-1000,0,0));
     372    lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0));
    373373    lastText->setRelCoorSoft2D(this->calculateLinePosition(0),10);
    374374
     
    493493
    494494/**
    495  * calculates the position of a Buffer-Display Line
     495 * @brief calculates the position of a Buffer-Display Line
    496496 * @param lineNumber the lineNumber from the bottom to calculate the position from
    497497 * @returns the Position of the Line.
    498498 */
    499 Vector Shell::calculateLinePosition(unsigned int lineNumber)
    500 {
    501   return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0);
    502 }
    503 
    504 
    505 
    506 /**
    507  * displays some nice output from the Shell
     499Vector2D Shell::calculateLinePosition(unsigned int lineNumber)
     500{
     501  return Vector2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize);
     502}
     503
     504
     505
     506/**
     507 * @brief displays some nice output from the Shell
    508508 */
    509509void Shell::debug() const
  • trunk/src/lib/shell/shell.h

    r7315 r7316  
    8080  private:
    8181    // helpers //
    82     Vector calculateLinePosition(unsigned int lineNumber);
     82    Vector2D calculateLinePosition(unsigned int lineNumber);
    8383
    8484    //     void testI (int i);
  • trunk/src/lib/shell/shell_buffer.cc

    r7315 r7316  
    2626
    2727/**
    28  * standard constructor
     28 * @brief standard constructor
    2929 */
    3030ShellBuffer::ShellBuffer ()
     
    4545
    4646/**
    47  * standard deconstructor
     47 * @brief standard deconstructor
    4848 */
    4949ShellBuffer::~ShellBuffer ()
     
    6262
    6363/**
    64  * registers the Shell to the Buffer
     64 * @brief registers the Shell to the Buffer
    6565 * @param shell the Shell to register.
    6666 */
     
    7474
    7575/**
    76  * unregisters the Shell from the Buffer
     76 * @brief unregisters the Shell from the Buffer
    7777 * @param shell the Shell to unregister.
    7878 */
     
    8686
    8787/**
    88  * deletes all the Buffers
     88 * @brief deletes all the Buffers
    8989 */
    9090void ShellBuffer::flush()
     
    9494
    9595/**
    96  * adds a new Line to the List of Buffers
     96 * @brief adds a new Line to the List of Buffers
    9797 * @param line the Line as in the first argument in printf
    9898 */
     
    121121
    122122/**
    123  * add a Line to the List of Buffers
     123 * @brief add a Line to the List of Buffers
    124124 * @param line
    125125 * @param arguments
Note: See TracChangeset for help on using the changeset viewer.