osg.Object

class osg.Object
Represents

c++ class

Wraps

osg::Object

Bases

osg.Referenced

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

Тип результата

osg.Object

:libraryName()

Get the name of the object’s library (NodeKit). If an object’s class is osg.Node - „osg“ will be returned etc.

Тип результата

std.string

:className()

Get the name of object’s class. If an object’s class is osg.Node - „Node“ will be returned etc.

Тип результата

std.string

:asNode()

Convert „this“ into a Node if osg.Object is a osg.Node, otherwise return nil.

Тип результата

osg.Node

:asNodeVisitor()

Convert „this“ into a NodeVisitor if osg.Object is a osg.NodeVisitor, otherwise return nil.

Тип результата

osg.NodeVisitor

:asStateSet()

Convert „this“ into a StateSet if osg.Object is a osg.StateSet, otherwise return nil.

Тип результата

osg.StateSet

:asStateAttribute()

Convert „this“ into a StateAttribute if osg.Object is a osg.StateAttribute, otherwise return nil.

Тип результата

osg.StateAttribute

:asUniform()

Convert „this“ into a Uniform if osg.Object is a osg.Uniform, otherwise return nil.

Тип результата

osg.Uniform

:asCamera()

Convert „this“ into a Camera if osg.Object is a osg.Camera, otherwise return nil.

Тип результата

osg.Camera

:asDrawable()

Convert „this“ into a Drawable if osg.Object is a osg.Drawable, otherwise return nil.

Тип результата

osg.Drawable

:asCallback()

Convert „this“ into a Callback if osg.Object is a osg.Callback, otherwise return nil.

Тип результата

osg.Callback

:asImage()

Convert „this“ into a Image if osg.Object is a osg.Image, otherwise return nil.

Тип результата

osg.Image

:setName(std.string name)

Set the name of this object.

Параметры

name (std.string) – Name of object

:getName()

Get the name of this object

Тип результата

std.string

: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.

Тип результата

osg.Object.DataVariance

:computeDataVariance()

Compute the DataVariance based on an assessment of callback etc.