OpenSceneGraph 3.6.5
CompileSlideCallback
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2018 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSG_COMPILESLIDECALLBACK
15#define OSG_COMPILESLIDECALLBACK 1
16
17#include <osgViewer/Viewer>
19
20namespace osgPresentation {
21
23{
24 public:
25
29
30 virtual void operator()(const osg::Camera& camera) const;
31
32 void needCompile(osg::Node* node) { _needCompile=true; _sceneToCompile = node; }
33
34 protected:
35
37
38 mutable bool _needCompile;
39 mutable unsigned int _frameNumber;
41
42};
43
44}
45
46#endif
The osgPresentation library is a NodeKit that extends the core scene graph to support 3D scene graph ...
Definition AnimationMaterial:26
Camera - is a subclass of Transform which represents encapsulates the settings of a Camera.
Definition Camera:45
Draw callback for custom operations.
Definition Camera:595
Base class for all internal nodes in the scene graph.
Definition Node:72
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
void needCompile(osg::Node *node)
Definition CompileSlideCallback:32
bool _needCompile
Definition CompileSlideCallback:38
virtual void operator()(const osg::Camera &camera) const
Functor method, provided for backwards compatibility, called by operator() (osg::RenderInfo& renderIn...
CompileSlideCallback()
Definition CompileSlideCallback:26
osg::ref_ptr< osg::Node > _sceneToCompile
Definition CompileSlideCallback:40
virtual ~CompileSlideCallback()
Definition CompileSlideCallback:36
unsigned int _frameNumber
Definition CompileSlideCallback:39
#define OSGPRESENTATION_EXPORT
Definition Export:38

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.