FixedFunctionTechnique
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGVOLUME_FIXEDFUNCTIONTECHNIQUE
#define OSGVOLUME_FIXEDFUNCTIONTECHNIQUE 1
#include <osgVolume/VolumeTechnique>
namespace osgVolume {
class OSGVOLUME_EXPORT FixedFunctionTechnique : public VolumeTechnique
{
public:
FixedFunctionTechnique();
FixedFunctionTechnique(const FixedFunctionTechnique&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osgVolume, FixedFunctionTechnique);
virtual void init();
virtual void update(osgUtil::UpdateVisitor* nv);
virtual void cull(osgUtil::CullVisitor* nv);
void setNumSlices(unsigned int numSlices);
unsigned int getNumSlices() const { return _numSlices; }
virtual void cleanSceneGraph();
virtual void traverse(osg::NodeVisitor& nv);
protected:
virtual ~FixedFunctionTechnique();
osg::ref_ptr<osg::Node> _node;
unsigned int _numSlices;
};
}
#endif
VolumeTechnique
osgUtil::CullVisitor
Definition CullVisitor:49
osgUtil::UpdateVisitor
Definition UpdateVisitor:38
osgVolume::FixedFunctionTechnique::cull
virtual void cull(osgUtil::CullVisitor *nv)
osgVolume::FixedFunctionTechnique::update
virtual void update(osgUtil::UpdateVisitor *nv)
osgVolume::FixedFunctionTechnique::FixedFunctionTechnique
FixedFunctionTechnique(const FixedFunctionTechnique &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgVolume::FixedFunctionTechnique::_numSlices
unsigned int _numSlices
Definition FixedFunctionTechnique:55
osgVolume::FixedFunctionTechnique::setNumSlices
void setNumSlices(unsigned int numSlices)
osgVolume::FixedFunctionTechnique::init
virtual void init()
osgVolume::FixedFunctionTechnique::FixedFunctionTechnique
FixedFunctionTechnique()
osgVolume::FixedFunctionTechnique::META_Object
META_Object(osgVolume, FixedFunctionTechnique)
osgVolume::FixedFunctionTechnique::~FixedFunctionTechnique
virtual ~FixedFunctionTechnique()
osgVolume::FixedFunctionTechnique::getNumSlices
unsigned int getNumSlices() const
Definition FixedFunctionTechnique:40
osgVolume::FixedFunctionTechnique::traverse
virtual void traverse(osg::NodeVisitor &nv)
osgVolume::FixedFunctionTechnique::cleanSceneGraph
virtual void cleanSceneGraph()
osgVolume::FixedFunctionTechnique::_node
osg::ref_ptr< osg::Node > _node
Definition FixedFunctionTechnique:53
osgVolume::VolumeTechnique::VolumeTechnique
VolumeTechnique()
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::NodeVisitor
Definition NodeVisitor:82
osg::ref_ptr
Definition ref_ptr:32
osgVolume
OSGVOLUME_EXPORT
#define OSGVOLUME_EXPORT
Definition osgVolume/Export:39