Basic visitor for rendering a scene.
Basic visitor for rendering a scene. The visitor traverses the scene graph, collecting transparent and opaque osg::GeoSet's into a depth sorted transparent bin and a state sorted opaque bin. The opaque bin is rendered first, and then the transparent bin in rendered in order from the furthest osg::GeoSet from the eye to the one nearest the eye.
virtual ~RenderVisitor()
void reset()
virtual void apply(Node&)
virtual void apply(Geode& node)
virtual void apply(Billboard& node)
virtual void apply(Group& node)
virtual void apply(DCS& node)
virtual void apply(Switch& node)
virtual void apply(LOD& node)
virtual void apply(Scene& node)
void setGlobalState(GeoState* global)
void setPerspective(float fovy, float aspect, float znear, float zfar)
void setLookAt(const Vec3& eye, const Vec3& center, const Vec3& upVector)
void setLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
void setLODBias(float bias)
float getLODBias()
enum TransparencySortMode
void setTransparencySortMode(TransparencySortMode tsm)
enum CullingType
void setCullingActive(CullingType ct, bool active)
bool getCullingActive(CullingType ct)
bool calcNearFar(double& near_plane, double& far_plane)
void render()
void pushMatrix(const Matrix& matrix)
void popMatrix()
Matrix* getCurrentMatrix()
Matrix* getInverseCurrentMatrix()
const Vec3& getEyeLocal()
const Vec3& getCenterLocal()
const Vec3& getLookVectorLocal()
bool _viewFrustumCullingActive
bool _smallFeatureCullingActive
bool isCulled(const BoundingSphere& sp)
bool isCulled(const BoundingBox& bb)
typedef std::pair<Matrix*,GeoSet*> MatrixGeoSet
typedef std::vector<ViewState*> ViewStateStack
ViewStateStack _viewStateStack
ViewState* _tvs
ViewState* _cvs
typedef std::multimap<GeoState*,MatrixGeoSet> OpaqueList
typedef std::multimap<float,MatrixGeoSet> TransparentList
OpaqueList _opaqueGeoSets
TransparentList _transparentGeoSets
GeoState* _globalState
float _LODBias
float _fovy
float _aspect
float _znear
float _zfar
void calculateClippingPlanes()
Alphabetic index HTML hierarchy of classes or Java