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]void setSecondaryColorBinding(AttributeBinding ab)
[more]AttributeBinding getSecondaryColorBinding() const
[more]void setSecondaryColorArray(Array* array)
[more]Array* getSecondaryColorArray()
[more]const Array* getSecondaryColorArray() const
[more]void setFogCoordBinding(AttributeBinding ab)
[more]AttributeBinding getFogCoordBinding() const
[more]void setFogCoordArray(FloatArray* array)
[more]FloatArray* getFogCoordArray()
[more]const FloatArray* getFogCoordArray() 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]unsigned int getNumPrimitives() const
[more]Primitive* getPrimitive(unsigned int pos)
[more]const Primitive* getPrimitive(unsigned int pos) 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]AttributeBinding _secondaryColorBinding
[more]ref_ptr<Array> _secondaryColorArray
[more]AttributeBinding _fogCoordBinding
[more]ref_ptr<FloatArray> _fogCoordArray
[more]TexCoordArrayList _texCoordList

Protected Methods

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


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

ovirtual const bool computeBound() const
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

ovoid setSecondaryColorBinding(AttributeBinding ab)

oAttributeBinding getSecondaryColorBinding() const

ovoid setSecondaryColorArray(Array* array)

oArray* getSecondaryColorArray()

oconst Array* getSecondaryColorArray() const

ovoid setFogCoordBinding(AttributeBinding ab)

oAttributeBinding getFogCoordBinding() const

ovoid setFogCoordArray(FloatArray* array)

oFloatArray* getFogCoordArray()

oconst FloatArray* getFogCoordArray() 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

ounsigned int getNumPrimitives() const

oPrimitive* getPrimitive(unsigned int pos)

oconst Primitive* getPrimitive(unsigned int pos) 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()

oPrimitiveList _primitives

oref_ptr<Vec3Array> _vertexArray

oAttributeBinding _normalBinding

oref_ptr<Vec3Array> _normalArray

oAttributeBinding _colorBinding

oref_ptr<Array> _colorArray

oAttributeBinding _secondaryColorBinding

oref_ptr<Array> _secondaryColorArray

oAttributeBinding _fogCoordBinding

oref_ptr<FloatArray> _fogCoordArray

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