![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtPickIntersectionVisitor.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvOsg/vrvOsg.h> 00016 #include <osg/Billboard> 00017 #include <osgUtil/IntersectionVisitor> 00018 00019 #include <vrvOsg/DtOsgCullVisitorParameters.h> 00020 00021 namespace makVrv 00022 { 00026 class DT_DLL_VRVOSG DtPickIntersectionVisitor 00027 : public osgUtil::IntersectionVisitor 00028 { 00029 public: 00031 DtPickIntersectionVisitor(osg::Camera* camera, 00032 osgUtil::Intersector* i = 0, ReadCallback* rc = 0); 00033 00034 00036 virtual ~DtPickIntersectionVisitor(); 00037 00039 void apply(osg::Billboard& billboard); 00040 00042 void apply(osg::Transform& transform); 00043 00044 osg::Camera* camera() const; 00045 00046 protected: 00047 osg::Vec3 myEye; 00048 DtOsgCullVisitorParameters myInfo; 00049 osg::Camera* myCamera; // need this for Intersector clone 00050 }; 00051 } 00052 00053