class OSGUTIL_EXPORT osgUtil::RenderBin

RenderBin base class

Inheritance:


Public Fields

[more]int _binNum
[more]RenderBin* _parent
[more]RenderStage* _stage
[more]RenderBinList _bins
[more]RenderGraphList _renderGraphList
[more]RenderLeafList _renderLeafList
[more]SortMode _sortMode
[more]osg::ref_ptr<SortCallback> _sortCallback
[more]osg::ref_ptr<DrawCallback> _drawCallback

Public Methods

[more]static RenderBin* createRenderBin(const std::string& binName)
[more]static RenderBin* getRenderBinPrototype(const std::string& binName)
[more]static void addRenderBinPrototype(const std::string& binName, RenderBin* proto)
[more]static void removeRenderBinPrototype(RenderBin* proto)
[more] RenderBin(SortMode mode=SORT_BY_STATE)
[more] RenderBin(const RenderBin& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more]virtual osg::Object* cloneType() const
[more]virtual osg::Object* clone(const osg::CopyOp& copyop) const
[more]virtual bool isSameKindAs(const osg::Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]virtual void reset()
[more]RenderBin* find_or_insert(int binNum, const std::string& binName)
[more]void addRenderGraph(RenderGraph* rg)
[more]void sort()
[more]virtual void sortImplementation()
[more]void setSortMode(SortMode mode)
[more]SortMode getSortMode() const
[more]virtual void sortByState()
[more]virtual void sortFrontToBack()
[more]virtual void sortBackToFront()
[more]void setSortCallback(SortCallback* sortCallback)
[more]SortCallback* getSortCallback()
[more]const SortCallback* getSortCallback() const
[more]virtual void draw(osg::State& state, RenderLeaf*& previous)
[more]virtual void drawImplementation(osg::State& state, RenderLeaf*& previous)
[more]void setDrawCallback(DrawCallback* drawCallback)
[more]DrawCallback* getDrawCallback()
[more]const DrawCallback* getDrawCallback() const
[more]bool getStats(Statistics* primStats)
extract stats for current draw list.
[more]void getPrims(Statistics* primStats)
[more]bool getPrims(Statistics* primStats, int nbin)
[more]void copyLeavesFromRenderGraphListToRenderLeafList()

Public Members

[more]typedef std::vector<RenderLeaf*> RenderLeafList
[more]typedef std::vector<RenderGraph*> RenderGraphList
[more]typedef std::map< int, osg::ref_ptr<RenderBin> > RenderBinList
[more]enum SortMode
[more]struct SortCallback: public osg::Referenced
[more]struct DrawCallback: public osg::Referenced

Protected Methods

[more]virtual ~RenderBin()


Documentation

RenderBin base class
otypedef std::vector<RenderLeaf*> RenderLeafList

otypedef std::vector<RenderGraph*> RenderGraphList

otypedef std::map< int, osg::ref_ptr<RenderBin> > RenderBinList

ostatic RenderBin* createRenderBin(const std::string& binName)

ostatic RenderBin* getRenderBinPrototype(const std::string& binName)

ostatic void addRenderBinPrototype(const std::string& binName, RenderBin* proto)

ostatic void removeRenderBinPrototype(RenderBin* proto)

oenum SortMode

o SORT_BY_STATE

o SORT_FRONT_TO_BACK

o SORT_BACK_TO_FRONT

o RenderBin(SortMode mode=SORT_BY_STATE)

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

ovirtual osg::Object* cloneType() const

ovirtual osg::Object* clone(const osg::CopyOp& copyop) const

ovirtual bool isSameKindAs(const osg::Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

ovirtual void reset()

oRenderBin* find_or_insert(int binNum, const std::string& binName)

ovoid addRenderGraph(RenderGraph* rg)

ovoid sort()

ovirtual void sortImplementation()

ovoid setSortMode(SortMode mode)

oSortMode getSortMode() const

ovirtual void sortByState()

ovirtual void sortFrontToBack()

ovirtual void sortBackToFront()

ostruct SortCallback: public osg::Referenced

ovirtual void sortImplementation(RenderBin*) = 0

ovoid setSortCallback(SortCallback* sortCallback)

oSortCallback* getSortCallback()

oconst SortCallback* getSortCallback() const

ovirtual void draw(osg::State& state, RenderLeaf*& previous)

ovirtual void drawImplementation(osg::State& state, RenderLeaf*& previous)

ostruct DrawCallback: public osg::Referenced

ovirtual void drawImplementation(RenderBin* bin, osg::State& state, RenderLeaf*& previous) = 0

ovoid setDrawCallback(DrawCallback* drawCallback)

oDrawCallback* getDrawCallback()

oconst DrawCallback* getDrawCallback() const

obool getStats(Statistics* primStats)
extract stats for current draw list.

ovoid getPrims(Statistics* primStats)

obool getPrims(Statistics* primStats, int nbin)

ovoid copyLeavesFromRenderGraphListToRenderLeafList()

oint _binNum

oRenderBin* _parent

oRenderStage* _stage

oRenderBinList _bins

oRenderGraphList _renderGraphList

oRenderLeafList _renderLeafList

oSortMode _sortMode

oosg::ref_ptr<SortCallback> _sortCallback

oosg::ref_ptr<DrawCallback> _drawCallback

ovirtual ~RenderBin()


Direct child classes:
RenderStage

Alphabetic index HTML hierarchy of classes or Java



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