![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00008 00009 #pragma once 00010 00011 #include <vrvCore/vrvCore.h> 00012 #include <vrvCore/DtAttachableIntervisibilityUpdater.h> 00013 #include <vrvCore/DtIntersector.h> 00014 00015 class DtVector; 00016 00017 namespace makVrv 00018 { 00024 class DT_DLL_VRVCORE DtAttachableFanUpdater : public DtAttachableIntervisibilityUpdater 00025 { 00026 public: 00028 DtAttachableFanUpdater( DtDe& de, DtElementID id, bool doNotAddToMgr = false ); 00029 00031 virtual ~DtAttachableFanUpdater(); 00032 00034 virtual void setFanModeSamplingRate(double); 00035 00038 virtual void setStartPointOffsetFromCenter(const DtVector&); 00039 const DtVector& startPointOffsetFromCenter() const; 00040 00041 protected: 00042 00043 virtual void updateSceneObject(); 00044 virtual bool doIntersection(); 00045 00047 virtual DtVector calculateEndPointFromRadian(const DtVector& start, double endZ, double radius, double degree) const; 00048 00049 protected: 00050 typedef std::vector<IntersectionInformation> Intersections; 00051 Intersections myIntersections; 00052 double myFanModeSamplingRate; 00053 DtVector myStartPointOffsetFromCenter; 00054 bool myForceUpdate; 00055 }; 00056 } 00057