Added support for vector and map containers in osgDB::Serailizer's and lua plugin.
This commit is contained in:
@@ -104,6 +104,9 @@ class OSG_EXPORT TransferFunction1D : public osg::TransferFunction
|
||||
|
||||
typedef std::map<float, osg::Vec4> ColorMap;
|
||||
|
||||
/** set the color map and automatically update the image to make sure they are in sync.*/
|
||||
void setColorMap(const ColorMap& vcm) { assign(vcm); }
|
||||
|
||||
/** Get the color map that stores the mapping between the the transfer function value and the colour it maps to.*/
|
||||
ColorMap& getColorMap() { return _colorMap; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user