Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7725 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
May 19, 2006, 11:58:19 AM (19 years ago)
Author:
bensch
Message:

trunk: const Executor introduced

Location:
trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r7428 r7725  
    2929
    3030#include "synchronizeable.h"
    31 
    32 using namespace std;
    33 
    3431
    3532/**
     
    595592void PNode::removeNode()
    596593{
    597   list<PNode*>::iterator child = this->children.begin();
    598   list<PNode*>::iterator reparenter;
     594  std::list<PNode*>::iterator child = this->children.begin();
     595  std::list<PNode*>::iterator reparenter;
    599596  while (child != this->children.end())
    600597  {
     
    857854  if(!this->children.empty() && (this->bActive || this->parentMode & PNODE_UPDATE_CHILDREN_IF_INACTIVE ))
    858855  {
    859     list<PNode*>::iterator child;
     856    std::list<PNode*>::iterator child;
    860857    for (child = this->children.begin(); child != this->children.end(); child ++)
    861858    {
     
    888885{
    889886  nodes++;
    890   list<PNode*>::const_iterator child;
     887  std::list<PNode*>::const_iterator child;
    891888  for (child = this->children.begin(); child != this->children.end(); child ++)
    892889    (*child)->countChildNodes(nodes);
     
    928925  if (depth >= 2 || depth == 0)
    929926  {
    930     list<PNode*>::const_iterator child;
     927    std::list<PNode*>::const_iterator child;
    931928    for (child = this->children.begin(); child != this->children.end(); child ++)
    932929    {
     
    10061003    /* rotate the current color in HSV space around 20 degree */
    10071004    Vector childColor =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0));
    1008     list<PNode*>::const_iterator child;
     1005    std::list<PNode*>::const_iterator child;
    10091006    for (child = this->children.begin(); child != this->children.end(); child ++)
    10101007    {
     
    11761173  //   int n = children.size();
    11771174  //   //check if camera is in children
    1178   //   for (std::list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++)
     1175  //   for (std::std::list<PNode*>::const_iterator it = children.begin(); it!=children.end(); it++)
    11791176  //   {
    11801177  //     if ( (*it)->isA(CL_CAMERA) )
  • trunk/src/lib/coord/p_node.h

    r7221 r7725  
    178178  // DEBUG //
    179179  void countChildNodes(int& nodes) const;
    180   void debugNodeSC (unsigned int depth = 1, unsigned int level = 0) { this->debugNode(depth, level); };
    181180  void debugNode (unsigned int depth = 1, unsigned int level = 0) const;
    182181  void debugDraw(unsigned int depth = 1, float size = 1.0, const Vector& color = Vector(1, 0, 0), unsigned int level = 0) const;
Note: See TracChangeset for help on using the changeset viewer.