VR-Forces 4.0.4 Class Documentation
include/vrvDiGuy/DtDiGuyOsgGraphicsFile.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtDiGuyOsgGraphicsFile.h,v $ $Revision: 1.9 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtDiGuyOsgGraphicsFile_H_
00014 #define DtDiGuyOsgGraphicsFile_H_
00015 
00016 #include <vrvDiGuy/vrvDiGuy.h>
00017 #include <osg/ref_ptr>
00018 #include <osg/Node>
00019 
00020 #include <diguyGraphicsFile.h>
00021 
00022 
00023 namespace makVrv
00024 {
00025    class DtDe;
00026 
00029    class DT_DLL_VRVDIGUY DtDiGuyOsgGraphicsFile : public diguyGraphicsFile
00030    {
00031    public:
00032 
00035       static diguyGraphicsFile* create(void* internal_data);
00036 
00039       static void registerDiGuyPaths();
00040 
00042       DtDiGuyOsgGraphicsFile(DtDe& de, void* internal_data);      
00043 
00045       virtual ~DtDiGuyOsgGraphicsFile();
00046 
00048       virtual int load(const char* filename, const char* extension);
00049 
00051       virtual int unload();
00052 
00054       virtual void* find_part(const char* part_name);
00055 
00056    protected:
00057 
00058       static osg::Node* recursive_find_part(const char* part_name, osg::Node* parent);
00059 
00060    protected:
00061       DtDe& myDe;
00062       osg::ref_ptr<osg::Node> myFileRoot;      
00063    };
00064 }
00065 
00066 #endif
00067 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)