class SG_EXPORT osg::Geometry


Inheritance:


Public Methods

[more] Geometry()
[more] Geometry(const Geometry& Geometry, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more]virtual Object* cloneType() const
[more]virtual Object* clone(const CopyOp& copyop) const
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]void setVertexArray(Vec3Array* array)
[more]Vec3Array* getVertexArray()
[more]const Vec3Array* getVertexArray() const
[more]void setNormalBinding(AttributeBinding ab)
[more]AttributeBinding getNormalBinding() const
[more]void setNormalArray(Vec3Array* array)
[more]Vec3Array* getNormalArray()
[more]const Vec3Array* getNormalArray() const
[more]void setColorBinding(AttributeBinding ab)
[more]AttributeBinding getColorBinding() const
[more]void setColorArray(Array* array)
[more]Array* getColorArray()
[more]const Array* getColorArray() const
[more]typedef std::vector< ref_ptr<Array> > TexCoordArrayList void setTexCoordArray(unsigned int unit, Array*)
[more]Array* getTexCoordArray(unsigned int unit)
[more]const Array* getTexCoordArray(unsigned int unit) const
[more]unsigned int getNumTexCoordArrays() const
[more]TexCoordArrayList& getTexCoordArrayList()
[more]const TexCoordArrayList& getTexCoordArrayList() const
[more]typedef std::vector< ref_ptr<Primitive> > PrimitiveList void setPrimitiveList(const PrimitiveList& primitives)
[more]PrimitiveList& getPrimitiveList()
[more]const PrimitiveList& getPrimitiveList() const
[more]void addPrimitive(Primitive* primitive)
[more]bool verifyBindings() const
[more]void computeCorrectBindingsAndArraySizes()
[more]virtual void drawImmediateMode(State& state)
draw Geometry directly ignoring an OpenGL display list which could be attached.
[more]virtual void accept(AttributeFunctor& af)
accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has
[more]virtual void accept(PrimitiveFunctor& pf)
accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has

Public Members

[more]enum AttributeBinding

Protected Fields

[more]PrimitiveList _primitives
[more]ref_ptr<Vec3Array> _vertexArray
[more]AttributeBinding _normalBinding
[more]ref_ptr<Vec3Array> _normalArray
[more]AttributeBinding _colorBinding
[more]ref_ptr<Array> _colorArray
[more]TexCoordArrayList _texCoordList

Protected Methods

[more]Geometry& operator = (const Geometry&)
[more]virtual ~Geometry()
[more]virtual const bool computeBound() const


Inherited from Drawable:

Public Methods

oinline const ParentList& getParents() const
oinline ParentList getParents()
oinline Node* getParent(const unsigned int i)
oinline const Node* getParent(const unsigned int i) const
oinline const unsigned int getNumParents() const
oinline void setStateSet(StateSet* state)
oinline StateSet* getStateSet()
oinline const StateSet* getStateSet() const
ovoid setSupportsDisplayList(const bool flag)
oinline const bool getSupportsDisplayList() const
ovoid setUseDisplayList(const bool flag)
oinline const bool getUseDisplayList() const
ovoid dirtyDisplayList()
ovoid dirtyBound()
oinline const BoundingBox& getBound() const
ovoid compile(State& state)
ovoid setAppCallback(AppCallback* ac)
oAppCallback* getAppCallback()
oconst AppCallback* getAppCallback() const
ovoid setCullCallback(CullCallback* cc)
oCullCallback* getCullCallback()
oconst CullCallback* getCullCallback() const
ovoid setDrawCallback(DrawCallback* dc)
oDrawCallback* getDrawCallback()
oconst DrawCallback* getDrawCallback() const
ostatic void deleteDisplayList(uint contextID, uint globj)
ostatic void flushDeletedDisplayLists(uint contextID)
oinline void draw(State& state)

Public Members

otypedef std::vector<Node*> ParentList
ostruct AppCallback: public osg::Referenced
ostruct CullCallback: public osg::Referenced
ostruct DrawCallback: public osg::Referenced
oenum AttributeType
class AttributeFunctor
class PrimitiveFunctor

Protected Fields

oParentList _parents
oref_ptr<StateSet> _dstate
obool _supportsDisplayList
obool _useDisplayList
omutable BoundingBox _bbox
omutable bool _bbox_computed
oref_ptr<AppCallback> _appCallback
oref_ptr<DrawCallback> _drawCallback
oref_ptr<CullCallback> _cullCallback

Protected Methods

ovoid addParent(osg::Node* node)
ovoid removeParent(osg::Node* node)

Protected Members

otypedef std::vector<uint> GLObjectList mutable GLObjectList _globjList
otypedef std::map<uint,std::set<uint> >static DeletedDisplayListCache DeletedDisplayListCache s_deletedDisplayListCache


Inherited from Object:

Public Methods

oinline void setDataVariance(const DataVariance dv)
oinline const 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 void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

o Geometry()

o Geometry(const Geometry& Geometry, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

ovirtual Object* cloneType() const

ovirtual Object* clone(const CopyOp& copyop) const

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

oenum AttributeBinding

o BIND_OFF

o BIND_OVERALL

o BIND_PER_PRIMITIVE

o BIND_PER_VERTEX

ovoid setVertexArray(Vec3Array* array)

oVec3Array* getVertexArray()

oconst Vec3Array* getVertexArray() const

ovoid setNormalBinding(AttributeBinding ab)

oAttributeBinding getNormalBinding() const

ovoid setNormalArray(Vec3Array* array)

oVec3Array* getNormalArray()

oconst Vec3Array* getNormalArray() const

ovoid setColorBinding(AttributeBinding ab)

oAttributeBinding getColorBinding() const

ovoid setColorArray(Array* array)

oArray* getColorArray()

oconst Array* getColorArray() const

otypedef std::vector< ref_ptr<Array> > TexCoordArrayList void setTexCoordArray(unsigned int unit, Array*)

oArray* getTexCoordArray(unsigned int unit)

oconst Array* getTexCoordArray(unsigned int unit) const

ounsigned int getNumTexCoordArrays() const

oTexCoordArrayList& getTexCoordArrayList()

oconst TexCoordArrayList& getTexCoordArrayList() const

otypedef std::vector< ref_ptr<Primitive> > PrimitiveList void setPrimitiveList(const PrimitiveList& primitives)

oPrimitiveList& getPrimitiveList()

oconst PrimitiveList& getPrimitiveList() const

ovoid addPrimitive(Primitive* primitive)

obool verifyBindings() const

ovoid computeCorrectBindingsAndArraySizes()

ovirtual void drawImmediateMode(State& state)
draw Geometry directly ignoring an OpenGL display list which could be attached. This is the internal draw method which does the drawing itself, and is the method to override when deriving from Geometry for user-drawn objects.

ovirtual void accept(AttributeFunctor& af)
accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has

ovirtual void accept(PrimitiveFunctor& pf)
accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has

oGeometry& operator = (const Geometry&)

ovirtual ~Geometry()

ovirtual const bool computeBound() const

oPrimitiveList _primitives

oref_ptr<Vec3Array> _vertexArray

oAttributeBinding _normalBinding

oref_ptr<Vec3Array> _normalArray

oAttributeBinding _colorBinding

oref_ptr<Array> _colorArray

oTexCoordArrayList _texCoordList


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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