Inheritance:
Public Methods
-
Geometry()
-
Geometry(const Geometry& Geometry, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
virtual Object* cloneType() const
-
virtual Object* clone(const CopyOp& copyop) const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* libraryName() const
-
virtual const char* className() const
-
void setVertexArray(Vec3Array* array)
-
Vec3Array* getVertexArray()
-
const Vec3Array* getVertexArray() const
-
void setNormalBinding(AttributeBinding ab)
-
AttributeBinding getNormalBinding() const
-
void setNormalArray(Vec3Array* array)
-
Vec3Array* getNormalArray()
-
const Vec3Array* getNormalArray() const
-
void setColorBinding(AttributeBinding ab)
-
AttributeBinding getColorBinding() const
-
void setColorArray(Array* array)
-
Array* getColorArray()
-
const Array* getColorArray() const
-
typedef std::vector< ref_ptr<Array> > TexCoordArrayList void setTexCoordArray(unsigned int unit, Array*)
-
Array* getTexCoordArray(unsigned int unit)
-
const Array* getTexCoordArray(unsigned int unit) const
-
unsigned int getNumTexCoordArrays() const
-
TexCoordArrayList& getTexCoordArrayList()
-
const TexCoordArrayList& getTexCoordArrayList() const
-
typedef std::vector< ref_ptr<Primitive> > PrimitiveList void setPrimitiveList(const PrimitiveList& primitives)
-
PrimitiveList& getPrimitiveList()
-
const PrimitiveList& getPrimitiveList() const
-
void addPrimitive(Primitive* primitive)
-
bool verifyBindings() const
-
void computeCorrectBindingsAndArraySizes()
-
virtual void drawImmediateMode(State& state)
- draw Geometry directly ignoring an OpenGL display list which could be attached.
-
virtual void accept(AttributeFunctor& af)
- accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has
-
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
-
enum AttributeBinding
Protected Fields
-
PrimitiveList _primitives
-
ref_ptr<Vec3Array> _vertexArray
-
AttributeBinding _normalBinding
-
ref_ptr<Vec3Array> _normalArray
-
AttributeBinding _colorBinding
-
ref_ptr<Array> _colorArray
-
TexCoordArrayList _texCoordList
Protected Methods
-
Geometry& operator = (const Geometry&)
-
virtual ~Geometry()
-
virtual const bool computeBound() const
Public Methods
-
inline const ParentList& getParents() const
-
inline ParentList getParents()
-
inline Node* getParent(const unsigned int i)
-
inline const Node* getParent(const unsigned int i) const
-
inline const unsigned int getNumParents() const
-
inline void setStateSet(StateSet* state)
-
inline StateSet* getStateSet()
-
inline const StateSet* getStateSet() const
-
void setSupportsDisplayList(const bool flag)
-
inline const bool getSupportsDisplayList() const
-
void setUseDisplayList(const bool flag)
-
inline const bool getUseDisplayList() const
-
void dirtyDisplayList()
-
void dirtyBound()
-
inline const BoundingBox& getBound() const
-
void compile(State& state)
-
void setAppCallback(AppCallback* ac)
-
AppCallback* getAppCallback()
-
const AppCallback* getAppCallback() const
-
void setCullCallback(CullCallback* cc)
-
CullCallback* getCullCallback()
-
const CullCallback* getCullCallback() const
-
void setDrawCallback(DrawCallback* dc)
-
DrawCallback* getDrawCallback()
-
const DrawCallback* getDrawCallback() const
-
static void deleteDisplayList(uint contextID, uint globj)
-
static void flushDeletedDisplayLists(uint contextID)
-
inline void draw(State& state)
Public Members
-
typedef std::vector<Node*> ParentList
-
struct AppCallback: public osg::Referenced
-
struct CullCallback: public osg::Referenced
-
struct DrawCallback: public osg::Referenced
-
enum AttributeType
-
class AttributeFunctor
-
class PrimitiveFunctor
Protected Fields
-
ParentList _parents
-
ref_ptr<StateSet> _dstate
-
bool _supportsDisplayList
-
bool _useDisplayList
-
mutable BoundingBox _bbox
-
mutable bool _bbox_computed
-
ref_ptr<AppCallback> _appCallback
-
ref_ptr<DrawCallback> _drawCallback
-
ref_ptr<CullCallback> _cullCallback
Protected Methods
-
void addParent(osg::Node* node)
-
void removeParent(osg::Node* node)
Protected Members
-
typedef std::vector<uint> GLObjectList mutable GLObjectList _globjList
-
typedef std::map<uint,std::set<uint> >static DeletedDisplayListCache DeletedDisplayListCache s_deletedDisplayListCache
Inherited from Object:
Public Methods
-
inline void setDataVariance(const DataVariance dv)
-
inline const DataVariance getDataVariance() const
-
inline void setUserData(Referenced* obj)
-
inline Referenced* getUserData()
-
inline const Referenced* getUserData() const
Public Members
-
enum DataVariance
Protected Fields
-
DataVariance _dataVariance
-
ref_ptr<Referenced> _userData
Public Methods
-
inline void ref() const
-
inline void unref() const
-
inline void unref_nodelete() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
- Geometry()
- Geometry(const Geometry& Geometry, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- virtual Object* cloneType() const
- virtual Object* clone(const CopyOp& copyop) const
- virtual bool isSameKindAs(const Object* obj) const
- virtual const char* libraryName() const
- virtual const char* className() const
- enum AttributeBinding
- BIND_OFF
- BIND_OVERALL
- BIND_PER_PRIMITIVE
- BIND_PER_VERTEX
- void setVertexArray(Vec3Array* array)
- Vec3Array* getVertexArray()
- const Vec3Array* getVertexArray() const
- void setNormalBinding(AttributeBinding ab)
- AttributeBinding getNormalBinding() const
- void setNormalArray(Vec3Array* array)
- Vec3Array* getNormalArray()
- const Vec3Array* getNormalArray() const
- void setColorBinding(AttributeBinding ab)
- AttributeBinding getColorBinding() const
- void setColorArray(Array* array)
- Array* getColorArray()
- const Array* getColorArray() const
- typedef std::vector< ref_ptr<Array> > TexCoordArrayList void setTexCoordArray(unsigned int unit, Array*)
- Array* getTexCoordArray(unsigned int unit)
- const Array* getTexCoordArray(unsigned int unit) const
- unsigned int getNumTexCoordArrays() const
- TexCoordArrayList& getTexCoordArrayList()
- const TexCoordArrayList& getTexCoordArrayList() const
- typedef std::vector< ref_ptr<Primitive> > PrimitiveList void setPrimitiveList(const PrimitiveList& primitives)
- PrimitiveList& getPrimitiveList()
- const PrimitiveList& getPrimitiveList() const
- void addPrimitive(Primitive* primitive)
- bool verifyBindings() const
- void computeCorrectBindingsAndArraySizes()
- virtual 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.
- virtual void accept(AttributeFunctor& af)
- accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has
- virtual void accept(PrimitiveFunctor& pf)
- accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has
- Geometry& operator = (const Geometry&)
- virtual ~Geometry()
- virtual const bool computeBound() const
- PrimitiveList _primitives
- ref_ptr<Vec3Array> _vertexArray
- AttributeBinding _normalBinding
- ref_ptr<Vec3Array> _normalArray
- AttributeBinding _colorBinding
- ref_ptr<Array> _colorArray
- TexCoordArrayList _texCoordList
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.