2001-10-22 05:27:40 +08:00
|
|
|
#include <osg/Object>
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2002-12-16 18:25:31 +08:00
|
|
|
namespace osg
|
2002-02-07 09:11:20 +08:00
|
|
|
{
|
|
|
|
|
2002-07-19 03:41:52 +08:00
|
|
|
Object::Object(const Object& obj,const CopyOp& copyop):
|
Added DataVariance enum and set/get fields to osg::Object to help identify
which objects have values that vary over the lifetime of the object (DYNAMIC)
and ones that do not vary (STATIC). Removed the equivalent code in
osg::Transform, StateSet and StateAttribute, as these are now encompassed
by the new DataVariance field.
Removed MatrixMode enum from Matrix, and associated fields/parameters from
osg::Transfrom and osg::NodeVisitor, since MatrixMode was not providing
any useful functionality, but made the interface more complex (MatrixMode
was an experimental API)
Added ReferenceFrame field to osg::Transform which allows users to specify
transforms that are relative to their parents (the default, and previous behavior)
or absolute reference frame, which can be used for HUD's, camera relative
light sources etc etc. Note, the view frustum culling for absolute Transform
are disabled, and all their parents up to the root are also automatically
have view frustum culling disabled. However, once passed an absolute Transform
node culling will return to its default state of on, so you can still cull
underneath an absolute transform, its only the culling above which is disabled.
2002-04-12 07:20:23 +08:00
|
|
|
Referenced(),
|
2002-07-19 03:41:52 +08:00
|
|
|
_dataVariance(obj._dataVariance),
|
|
|
|
_userData(copyop(obj._userData.get())) {}
|
2002-12-16 18:25:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
}; // end of namespace osg
|