~ubuntu-branches/debian/sid/coin2/sid

« back to all changes in this revision

Viewing changes to src/nodekits/SoBaseKit.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-06-28 02:38:17 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628023817-lgrh0u677j1gcqgf
Tags: 2.5.0-2
* debian/control: Change suggests from libopenal0 to libopenal0a.
  Closes: #488001.  Change ${Source-Version} to ${binary:Version}.
  Update to standards version 3.8.0.

* debian/rules: Do not ignore errors in clean rule.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************\
2
2
 *
3
3
 *  This file is part of the Coin 3D visualization library.
4
 
 *  Copyright (C) 1998-2006 by Systems in Motion.  All rights reserved.
 
4
 *  Copyright (C) 1998-2007 by Systems in Motion.  All rights reserved.
5
5
 *
6
6
 *  This library is free software; you can redistribute it and/or
7
7
 *  modify it under the terms of the GNU General Public License
204
204
  The header file:
205
205
 
206
206
  \code
207
 
  // Copyright (C) 1998-2005 by Systems in Motion. All rights reserved.
 
207
  // Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
208
208
 
209
209
  #ifndef COIN_SHAPESCALE_H
210
210
  #define COIN_SHAPESCALE_H
244
244
  The source code for the example:
245
245
 
246
246
  \code
247
 
  // Copyright (C) 1998-2005 by Systems in Motion. All rights reserved.
 
247
  // Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
248
248
 
249
249
  //  The ShapeScale class is used for scaling a shape based on
250
250
  //  projected size.
343
343
  And a complete example showing how one can use this node kit:
344
344
 
345
345
  \code
346
 
  // Copyright (C) 1998-2005 by Systems in Motion. All rights reserved.
 
346
  // Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
347
347
 
348
348
  #include <Inventor/Qt/SoQt.h>
349
349
  #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
1938
1938
        return kit->setPart(partNum, from);
1939
1939
      }
1940
1940
    }
1941
 
  }
 
1941
    else {
 
1942
#if COIN_DEBUG
 
1943
      SoDebugError::postWarning("SoBaseKit::setAnyPart",
 
1944
                                "attempted to set non-public part ``%s''",
 
1945
                                partname.getString());
 
1946
#endif // COIN_DEBUG
 
1947
    }
 
1948
  }
 
1949
#if COIN_DEBUG
 
1950
  else {
 
1951
    SoDebugError::postWarning("SoBaseKit::setAnyPart",
 
1952
                              "part '%s' not found in %s",
 
1953
                              partname.getString(),
 
1954
                              this->getTypeId().getName().getString());
 
1955
  }
 
1956
#endif // COIN_DEBUG
 
1957
 
1942
1958
  // FIXME:
1943
1959
  // run cleanup, in case some node has been temporarily created while
1944
1960
  // searching for the part?? pederb, 2000-01-05
2395
2411
    // indices belong to which catalog parts), we just disallow it for
2396
2412
    // now. 20020808 mortene.
2397
2413
    SoDebugError::postWarning("SoBaseKit::setPart",
2398
 
                              "Node pointer (%p) is already used under the same group node in the catalog "
2399
 
                              "as a child of %s -- this is not allowed",
2400
 
                              node, catalog->getName(parentIdx).getString());
 
2414
                              "Node pointer (%p, '%s', '%s') is already used under the same group node in the catalog "
 
2415
                              "as a child of part '%s' -- this is not allowed",
 
2416
                              node,
 
2417
                              node->getName().getString(),
 
2418
                              node->getTypeId().getName().getString(),
 
2419
                              catalog->getName(parentIdx).getString());
2401
2420
    return FALSE;
2402
2421
  }
2403
2422