|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
#include <boost/lexical_cast.hpp>
|
|
|
|
|
|
|
|
|
|
#include <osg/AutoTransform>
|
|
|
|
|
#include <osg/Material>
|
|
|
|
|
#include <osg/Geode>
|
|
|
|
|
#include <osg/Group>
|
|
|
|
|
#include <osgText/Text>
|
|
|
|
@ -75,7 +76,10 @@ CSVRender::CellMarker::CellMarker(
|
|
|
|
|
mMarkerNode->setAutoRotateMode(osg::AutoTransform::ROTATE_TO_SCREEN);
|
|
|
|
|
mMarkerNode->setAutoScaleToScreen(true);
|
|
|
|
|
mMarkerNode->getOrCreateStateSet()->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
|
|
|
|
|
mMarkerNode->getOrCreateStateSet()->setRenderBinDetails(osg::StateSet::TRANSPARENT_BIN + 1, "RenderBin");
|
|
|
|
|
mMarkerNode->getOrCreateStateSet()->setRenderBinDetails(11, "RenderBin");
|
|
|
|
|
osg::ref_ptr<osg::Material> mat = new osg::Material;
|
|
|
|
|
mat->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
|
|
|
|
|
mMarkerNode->getOrCreateStateSet()->setAttribute(mat);
|
|
|
|
|
|
|
|
|
|
mMarkerNode->setUserData(new CellMarkerTag(this));
|
|
|
|
|
mMarkerNode->setNodeMask(Mask_CellMarker);
|
|
|
|
|