SceneView is literaly a view of a scene, encapsulating the camera, global state, lights and the scene itself.
SceneView is literaly a view of a scene, encapsulating the camera, global state, lights and the scene itself. Provides methods for setting up the view and rendering it.
void setSceneData(osg::Node* node)
osg::Node* getSceneData()
void setViewport(int x, int y, int width, int height)
void getViewport(int& x, int& y, int& width, int& height)
void setDefaults()
void setBackgroundColor(const osg::Vec4& color)
const osg::Vec4& getBackgroundColor() const
void setGlobalState(osg::GeoState* state)
osg::GeoState* getGlobalState() const
enum LightingMode
void setLightingMode(LightingMode mode)
LightingMode getLightingMode() const
void setLight(osg::Light* light)
osg::Light* getLight() const
void setCamera(osg::Camera* camera)
osg::Camera* getCamera() const
void setRenderVisitor(osgUtil::RenderVisitor* rv)
osgUtil::RenderVisitor* getRenderVisitor() const
void setLODBias(float bias)
float getLODBias() const
void setCalcNearFar(bool calc)
bool getCalcNearFar()
bool projectWindowIntoObject(const osg::Vec3& window, osg::Vec3& object) const
bool projectWindowXYIntoObject(int x, int y, osg::Vec3& near_point, osg::Vec3& far_point) const
bool projectObjectIntoWindow(const osg::Vec3& object, osg::Vec3& window) const
virtual void cull()
virtual void draw()
virtual ~SceneView()
osg::ref_ptr<osg::Node> _sceneData
osg::ref_ptr<osg::GeoState> _globalState
osg::ref_ptr<osg::Light> _light
osg::ref_ptr<osg::Camera> _camera
osg::ref_ptr<osgUtil::RenderVisitor> _renderVisitor
bool _need_compile
bool _calc_nearfar
osg::Vec4 _backgroundColor
double _near_plane
double _far_plane
Alphabetic index HTML hierarchy of classes or Java