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

« back to all changes in this revision

Viewing changes to src/fields/SoSFEnum.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
32
32
  A field of this type stores its value to file as the symbolic
33
33
  name, rather than the actual integer value.
34
34
 
 
35
  SoSFEnum instances are initialized on an instance basis, usually in
 
36
  the constructor of the fieldcontainer with the macros
 
37
  SO_NODE_DEFINE_ENUM_VALUE(enumtype, symbolvalue) and
 
38
  SO_NODE_SET_SF_ENUM_TYPE(enumfield, enumtype) for nodes, or for
 
39
  engines; SO_ENGINE_DEFINE_ENUM_VALUE() and
 
40
  SO_ENGINE_SET_SF_ENUM_TYPE().
 
41
 
 
42
  Example initialization from the constructor of the SoCone class:
 
43
  \code
 
44
  SO_NODE_DEFINE_ENUM_VALUE(Part, SIDES);
 
45
  SO_NODE_DEFINE_ENUM_VALUE(Part, BOTTOM);
 
46
  SO_NODE_DEFINE_ENUM_VALUE(Part, ALL);
 
47
  SO_NODE_SET_SF_ENUM_TYPE(parts, Part); \endcode
 
48
 
35
49
  \sa SoMFEnum, SoSFBitMask
36
50
*/
37
51