![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSearchCandidateVisitor.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtSearchCandidateVisitor_H_ 00014 #define DtSearchCandidateVisitor_H_ 00015 00016 #include <vrvOsg/vrvOsg.h> 00017 00018 #include <osg/NodeVisitor> 00019 #include <osg/ProxyNode> 00020 00021 #include <set> 00022 #include <string> 00023 00024 namespace makVrv 00025 { 00026 00030 class DT_DLL_VRVOSG DtSearchCandidateVisitor : public osg::NodeVisitor 00031 { 00032 00033 public: 00034 00036 DtSearchCandidateVisitor(); 00037 00039 void setSearchNames(bool flag); 00040 00042 void setSearchDescriptions(bool flag); 00043 00045 void setSearchFilenames(bool flag); 00046 00050 void setSearchForOriginalFilenames(bool bSearchDescriptions, bool bSearchFilenames); 00051 00053 void apply(osg::Node& node); 00054 00056 void apply(osg::ProxyNode& node); 00057 00059 std::set<std::string>& searchCandidateSet(); 00060 00061 protected: 00062 00063 std::set<std::string> mySearchCandidateSet; 00064 bool mySearchNames; 00065 bool mySearchDescriptions; 00066 bool mySearchFilenames; 00067 bool mySearchForOriginalFilenames; 00068 bool mySearchFilenamesFallback; 00069 00070 }; 00071 } 00072 00073 #endif 00074