VR-Forces 4.1.1 Class Documentation
DtDiGuyOsgGraphicsFile.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtDiGuyOsgGraphicsFile.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtDiGuyOsgGraphicsFile_H_
14 #define DtDiGuyOsgGraphicsFile_H_
15 
16 #include <vrvDiGuy/vrvDiGuy.h>
17 #include <osg/ref_ptr>
18 #include <osg/Node>
19 
20 #include <diguyGraphicsFile.h>
21 
22 
23 namespace makVrv
24 {
25  class DtDe;
26 
30  {
31  public:
32 
35  static diguyGraphicsFile* create(void* internal_data);
36 
39  static void registerDiGuyPaths();
40 
42  DtDiGuyOsgGraphicsFile(DtDe& de, void* internal_data);
43 
45  virtual ~DtDiGuyOsgGraphicsFile();
46 
48  virtual int load(const char* filename, const char* extension);
49 
51  virtual int unload();
52 
54  virtual void* find_part(const char* part_name);
55 
56  protected:
57 
58  static osg::Node* recursive_find_part(const char* part_name, osg::Node* parent);
59 
60  protected:
62  osg::ref_ptr<osg::Node> myFileRoot;
63  };
64 }
65 
66 #endif
67 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)