osg.Object¶
- class osg.Object¶
- Represents
c++ class
- Wraps
osg::Object
- Bases
Base class/standard interface for objects which require IO support, cloning and reference counting.
Methods:
- :clone(osg.CopyOp copyop)¶
Clone an object with specified copy operator
- Параметры
copyop (
osg.CopyOp
) – Copy operator- Тип результата
- :libraryName()¶
Get the name of the object’s library (NodeKit). If an object’s class is
osg.Node
- „osg“ will be returned etc.- Тип результата
- :className()¶
Get the name of object’s class. If an object’s class is
osg.Node
- „Node“ will be returned etc.- Тип результата
- :asNode()¶
Convert „this“ into a Node if
osg.Object
is aosg.Node
, otherwise return nil.- Тип результата
- :asNodeVisitor()¶
Convert „this“ into a NodeVisitor if
osg.Object
is aosg.NodeVisitor
, otherwise return nil.- Тип результата
- :asStateSet()¶
Convert „this“ into a StateSet if
osg.Object
is aosg.StateSet
, otherwise return nil.- Тип результата
- :asStateAttribute()¶
Convert „this“ into a StateAttribute if
osg.Object
is aosg.StateAttribute
, otherwise return nil.- Тип результата
- :asUniform()¶
Convert „this“ into a Uniform if
osg.Object
is aosg.Uniform
, otherwise return nil.- Тип результата
- :asCamera()¶
Convert „this“ into a Camera if
osg.Object
is aosg.Camera
, otherwise return nil.- Тип результата
- :asDrawable()¶
Convert „this“ into a Drawable if
osg.Object
is aosg.Drawable
, otherwise return nil.- Тип результата
- :asCallback()¶
Convert „this“ into a Callback if
osg.Object
is aosg.Callback
, otherwise return nil.- Тип результата
- :asImage()¶
Convert „this“ into a Image if
osg.Object
is aosg.Image
, otherwise return nil.- Тип результата
- :setName(std.string name)¶
Set the name of this object.
- Параметры
name (
std.string
) – Name of object
- :getName()¶
Get the name of this object
- Тип результата
- :setDataVariance(osg.Object.DataVariance dv)¶
Set the data variance of this object.
- Параметры
dv (
osg.Object.DataVariance
) – Data variance
- :getDataVariance()¶
Get the data variance of this object.
- Тип результата
- :computeDataVariance()¶
Compute the DataVariance based on an assessment of callback etc.