Google

class SG_EXPORT osg::Shape

Base class for all shape types.

Inheritance:


Public Methods

[more] Shape()
[more] Shape(const Shape& sa, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more]virtual Object* cloneType() const = 0
Clone the type of an attribute, with Object* return type.
[more]virtual Object* clone(const CopyOp&) const = 0
Clone an attribute, with Object* return type.
[more]virtual bool isSameKindAs(const Object* obj) const
return true if this and obj are of the same kind of object
[more]virtual const char* libraryName() const
return the name of the attribute's library
[more]virtual const char* className() const
return the name of the attribute's class type
[more]virtual void accept(ShapeVisitor&) = 0
accept a non const shape visitor which can be used on non const shape objects.
[more]virtual void accept(ConstShapeVisitor&) const = 0
accept a const shape visitor which can be used on const shape objects.

Protected Methods

[more]virtual ~Shape()


Inherited from Object:

Public Methods

oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable int _refCount


Documentation

Base class for all shape types. Shapes are used to either for culling and collision detection or to define the geometric shape of procedurally generate Geometry.
o Shape()

o Shape(const Shape& sa, const CopyOp& copyop=CopyOp::SHALLOW_COPY)

ovirtual Object* cloneType() const = 0
Clone the type of an attribute, with Object* return type. Must be defined by derived classes.

ovirtual Object* clone(const CopyOp&) const = 0
Clone an attribute, with Object* return type. Must be defined by derived classes.

ovirtual bool isSameKindAs(const Object* obj) const
return true if this and obj are of the same kind of object

ovirtual const char* libraryName() const
return the name of the attribute's library

ovirtual const char* className() const
return the name of the attribute's class type

ovirtual void accept(ShapeVisitor&) = 0
accept a non const shape visitor which can be used on non const shape objects. Must be defined by derived classes.

ovirtual void accept(ConstShapeVisitor&) const = 0
accept a const shape visitor which can be used on const shape objects. Must be defined by derived classes.

ovirtual ~Shape()


Direct child classes:
TriangleMesh
Sphere
InfinitePlane
HeightField
Cylinder
Cone
CompositeShape
Box

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.