9 #ifndef PHASTGEOMETRYBUILDER_H
10 #define PHASTGEOMETRYBUILDER_H
14 #include <osg/ref_ptr>
17 #include <osg/ShapeDrawable>
18 #include <osgText/Text>
51 osg::ref_ptr<osg::Node>
create(
const PaDetect& det , osg::Vec3 color=osg::Vec3(1,1,1) );
53 osg::ref_ptr<osg::Node>
create(
const PaCalorimeter& cal , osg::Vec3 color=osg::Vec3(1,1,1) );
55 osg::ref_ptr<osg::Node>
create(
const PaRich& rich , osg::Vec3 color=osg::Vec3(1,1,1) );
58 osg::ref_ptr<osg::Node>
create(
const PaEvent& event );
60 osg::ref_ptr<osg::Node>
create(
const PaTrack& track, osg::Vec3 color=osg::Vec3(1,1,1) );
65 osg::ref_ptr<osgText::Text>
createLabel(
const std::string& label, osg::Node* node=0 );
osg::ref_ptr< osgText::Text > createLabel(const std::string &label, osg::Node *node=0)
Returns a Text placed on the upper right of the nodes bounding sphere (if one is given) ...
Definition: PhastGeometryBuilder.cpp:99
static void setShadowDistance(float dist)
Must be set BEFORE creating any geometry with shadow.
Definition: PhastGeometryBuilder.h:46
osg::ref_ptr< osg::Node > create(const PaDetect &det, osg::Vec3 color=osg::Vec3(1, 1, 1))
virtual ~PhastGeometryBuilder()
Definition: PhastGeometryBuilder.cpp:37
void setBlendState(osg::Node *node, bool enable)
Enable/Disable blending.
Definition: PhastGeometryBuilder.cpp:41
PhastGeometryBuilder()
Definition: PhastGeometryBuilder.cpp:32
Collection of functions to create OSG geometry (nodes) for Phast classes (detectors/tracks).
Definition: PhastGeometryBuilder.h:39