~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/src/osgWrappers/osg/LOD.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-07-29 04:34:38 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080729043438-no1h9h0dpsrlzp1y
* Non-maintainer upload.
* No longer try to detect (using /proc/cpuinfo when available) how many
  CPUs are available, fixing the FTBFS (due to -j0) on various platforms
  (Closes: #477353). The right way to do it is to support parallel=n in
  DEB_BUILD_OPTIONS (see Debian Policy §4.9.1), and adequate support has
  been implemented.
* Add patch to fix FTBFS due to the build system now refusing to handle
  whitespaces (Policy CMP0004 say the logs), thanks to Andreas Putzo who
  provided it (Closes: #482239):
   - debian/patches/fix-cmp0004-build-failure.dpatch
* Remove myself from Uploaders, as requested a while ago, done by Luk in
  his 2.2.0-2.1 NMU, which was never acknowledged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include <osg/Node>
17
17
#include <osg/NodeVisitor>
18
18
#include <osg/Object>
19
 
#include <osg/Vec3>
20
19
 
21
20
// Must undefine IN and OUT macros defined in Windows headers
22
21
#ifdef IN
26
25
#undef OUT
27
26
#endif
28
27
 
 
28
TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::LOD::vec_type)
 
29
 
 
30
TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::LOD::value_type)
 
31
 
29
32
TYPE_NAME_ALIAS(std::pair< float COMMA  float >, osg::LOD::MinMaxPair)
30
33
 
31
34
TYPE_NAME_ALIAS(std::vector< osg::LOD::MinMaxPair >, osg::LOD::RangeList)
112
115
                  __CenterMode__getCenterMode,
113
116
                  "Get how the center of object should be determined when computing which child is active. ",
114
117
                  "");
115
 
        I_Method1(void, setCenter, IN, const osg::Vec3 &, center,
 
118
        I_Method1(void, setCenter, IN, const osg::LOD::vec_type &, center,
116
119
                  Properties::NON_VIRTUAL,
117
 
                  __void__setCenter__C5_Vec3_R1,
 
120
                  __void__setCenter__C5_vec_type_R1,
118
121
                  "Sets the object-space point which defines the center of the osg::LOD. ",
119
122
                  "center is affected by any transforms in the hierarchy above the osg::LOD. ");
120
 
        I_Method0(const osg::Vec3 &, getCenter,
 
123
        I_Method0(const osg::LOD::vec_type &, getCenter,
121
124
                  Properties::NON_VIRTUAL,
122
 
                  __C5_Vec3_R1__getCenter,
 
125
                  __C5_vec_type_R1__getCenter,
123
126
                  "return the LOD center point. ",
124
127
                  "");
125
 
        I_Method1(void, setRadius, IN, float, radius,
 
128
        I_Method1(void, setRadius, IN, osg::LOD::value_type, radius,
126
129
                  Properties::NON_VIRTUAL,
127
 
                  __void__setRadius__float,
 
130
                  __void__setRadius__value_type,
128
131
                  "Set the object-space reference radius of the volume enclosed by the LOD. ",
129
 
                  "Used to detmine the bounding sphere of the LOD in the absense of any children. ");
130
 
        I_Method0(float, getRadius,
 
132
                  "Used to determine the bounding sphere of the LOD in the absence of any children. ");
 
133
        I_Method0(osg::LOD::value_type, getRadius,
131
134
                  Properties::NON_VIRTUAL,
132
 
                  __float__getRadius,
 
135
                  __value_type__getRadius,
133
136
                  "Get the object-space radius of the volume enclosed by the LOD. ",
134
137
                  "");
135
138
        I_Method1(void, setRangeMode, IN, osg::LOD::RangeMode, mode,
136
139
                  Properties::NON_VIRTUAL,
137
140
                  __void__setRangeMode__RangeMode,
138
 
                  "Set how the range values should be intepreted when computing which child is active. ",
 
141
                  "Set how the range values should be interpreted when computing which child is active. ",
139
142
                  "");
140
143
        I_Method0(osg::LOD::RangeMode, getRangeMode,
141
144
                  Properties::NON_VIRTUAL,
142
145
                  __RangeMode__getRangeMode,
143
 
                  "Get how the range values should be intepreted when computing which child is active. ",
 
146
                  "Get how the range values should be interpreted when computing which child is active. ",
144
147
                  "");
145
148
        I_Method3(void, setRange, IN, unsigned int, childNo, IN, float, min, IN, float, max,
146
149
                  Properties::NON_VIRTUAL,
147
150
                  __void__setRange__unsigned_int__float__float,
148
 
                  "Sets the min and max visible ranges of range of specifiec child. ",
 
151
                  "Sets the min and max visible ranges of range of specific child. ",
149
152
                  "Values are floating point distance specified in local objects coordinates. ");
150
153
        I_Method1(float, getMinRange, IN, unsigned int, childNo,
151
154
                  Properties::NON_VIRTUAL,
177
180
                  __BoundingSphere__computeBound,
178
181
                  "Compute the bounding sphere around Node's geometry or children. ",
179
182
                  "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). ");
180
 
        I_SimpleProperty(const osg::Vec3 &, Center, 
181
 
                         __C5_Vec3_R1__getCenter, 
182
 
                         __void__setCenter__C5_Vec3_R1);
 
183
        I_SimpleProperty(const osg::LOD::vec_type &, Center, 
 
184
                         __C5_vec_type_R1__getCenter, 
 
185
                         __void__setCenter__C5_vec_type_R1);
183
186
        I_SimpleProperty(osg::LOD::CenterMode, CenterMode, 
184
187
                         __CenterMode__getCenterMode, 
185
188
                         __void__setCenterMode__CenterMode);
186
 
        I_SimpleProperty(float, Radius, 
187
 
                         __float__getRadius, 
188
 
                         __void__setRadius__float);
 
189
        I_SimpleProperty(osg::LOD::value_type, Radius, 
 
190
                         __value_type__getRadius, 
 
191
                         __void__setRadius__value_type);
189
192
        I_SimpleProperty(const osg::LOD::RangeList &, RangeList, 
190
193
                         __C5_RangeList_R1__getRangeList, 
191
194
                         __void__setRangeList__C5_RangeList_R1);