00001 // Filename: ribGraphicsPipe.h 00002 // Created by: drose (15Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef RIBGRAPHICSPIPE_H 00020 #define RIBGRAPHICSPIPE_H 00021 00022 #include <pandabase.h> 00023 00024 #include <string> 00025 #include <noninteractiveGraphicsPipe.h> 00026 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : RIBGraphicsPipe 00030 // Description : A place to grab RIBGraphicsWindows from. Not 00031 // terribly exciting in itself. The name of the pipe is 00032 // used as the default RIB output filename for each 00033 // window, but the window may change this. 00034 //////////////////////////////////////////////////////////////////// 00035 class RIBGraphicsPipe : public NoninteractiveGraphicsPipe { 00036 public: 00037 00038 INLINE RIBGraphicsPipe(const PipeSpecifier&); 00039 00040 virtual TypeHandle get_window_type() const; 00041 00042 public: 00043 00044 static GraphicsPipe *make_RIBGraphicsPipe(const FactoryParams ¶ms); 00045 00046 static TypeHandle get_class_type(void); 00047 static void init_type(void); 00048 virtual TypeHandle get_type(void) const; 00049 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00050 00051 public: 00052 00053 INLINE std::string get_file_name(void) const; 00054 00055 protected: 00056 00057 std::string _filename; 00058 00059 private: 00060 00061 static TypeHandle _type_handle; 00062 00063 protected: 00064 00065 INLINE RIBGraphicsPipe(void); 00066 INLINE RIBGraphicsPipe(const RIBGraphicsPipe&); 00067 INLINE RIBGraphicsPipe& operator=(const RIBGraphicsPipe&); 00068 }; 00069 00070 #include "ribGraphicsPipe.I" 00071 00072 #endif 00073