14 #ifndef OSGVOLUMESETTINGS
15 #define OSGVOLUMESETTINGS 1
18 #include <osgVolume/Property>
36 void setFilename(
const std::string& str) { _filename = str; dirty(); }
54 MaximumIntensityProjection
60 void setSampleRatio(
float sr) { _sampleRatioProperty->setValue(sr); dirty(); }
66 void setCutoff(
float co);
67 float getCutoff()
const {
return _cutoffProperty->getValue(); }
AlphaFuncProperty * getCutoffProperty()
void setShadingModel(ShadingModel sm)
virtual ~VolumeSettings()
Technique getTechnique() const
osg::ref_ptr< IsoSurfaceProperty > _isoSurfaceProperty
const SampleRatioWhenMovingProperty * getSampleRatioWhenMovingProperty() const
const IsoSurfaceProperty * getIsoSurfaceProperty() const
void setTechnique(Technique technique)
osg::ref_ptr< SampleRatioWhenMovingProperty > _sampleRatioWhenMovingProperty
void setTransparency(float t)
#define META_Object(library, name)
TransparencyProperty * getTransparencyProperty()
ShadingModel getShadingModel() const
void setSampleRatioWhenMoving(float sr)
const SampleRatioProperty * getSampleRatioProperty() const
osg::ref_ptr< SampleRatioProperty > _sampleRatioProperty
const std::string & getFilename() const
float getTransparency() const
float getSampleRatioWhenMoving() const
const TransparencyProperty * getTransparencyProperty() const
void setSampleRatio(float sr)
osg::ref_ptr< TransparencyProperty > _transparencyProperty
float getSampleRatio() const
void setFilename(const std::string &str)
osg::ref_ptr< AlphaFuncProperty > _cutoffProperty
ShadingModel _shadingModel
SampleRatioWhenMovingProperty * getSampleRatioWhenMovingProperty()
IsoSurfaceProperty * getIsoSurfaceProperty()
const AlphaFuncProperty * getCutoffProperty() const
SampleRatioProperty * getSampleRatioProperty()